mirror of
https://github.com/FlipsideCrypto/optimism-models.git
synced 2026-02-06 14:06:44 +00:00
merge
This commit is contained in:
commit
e1b41b2e98
@ -1,49 +0,0 @@
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
persist_docs ={ "relation": true,
|
||||
"columns": true },
|
||||
meta={
|
||||
'database_tags':{
|
||||
'table': {
|
||||
'PROTOCOL': 'SONNE, AAVE, GRANARY, TAROT, EXACTLY',
|
||||
'PURPOSE': 'LENDING, BORROWS'
|
||||
}
|
||||
}
|
||||
},
|
||||
tags = ['gold','defi','lending','curated','ez']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
block_number,
|
||||
block_timestamp,
|
||||
tx_hash,
|
||||
contract_address,
|
||||
event_name,
|
||||
event_index,
|
||||
origin_function_signature,
|
||||
origin_from_address,
|
||||
origin_to_address,
|
||||
platform,
|
||||
protocol_market,
|
||||
borrower,
|
||||
token_address,
|
||||
token_symbol,
|
||||
amount_unadj,
|
||||
amount,
|
||||
amount_usd,
|
||||
COALESCE (
|
||||
complete_lending_borrows_id,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['tx_hash', 'event_index']
|
||||
) }}
|
||||
) AS ez_lending_borrows_id,
|
||||
COALESCE(
|
||||
inserted_timestamp,
|
||||
'2000-01-01'
|
||||
) AS inserted_timestamp,
|
||||
COALESCE(
|
||||
modified_timestamp,
|
||||
'2000-01-01'
|
||||
) AS modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver__complete_lending_borrows') }}
|
||||
@ -1,46 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: defi__ez_lending_borrows
|
||||
description: '{{ doc("evm_complete_lending_borrows_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_logs_tx_hash") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_logs_contract_address") }}'
|
||||
- name: EVENT_NAME
|
||||
description: '{{ doc("evm_event_name") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_event_index") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_origin_to") }}'
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("evm_complete_lending_platform") }}'
|
||||
- name: PROTOCOL_MARKET
|
||||
description: '{{ doc("evm_complete_lending_protocol_token") }}'
|
||||
- name: BORROWER
|
||||
description: '{{ doc("evm_complete_lending_borrower") }}'
|
||||
- name: TOKEN_ADDRESS
|
||||
description: '{{ doc("evm_complete_lending_token_address") }}'
|
||||
- name: TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_token_symbol") }}'
|
||||
- name: AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_amount_unadj") }}'
|
||||
- name: AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_amount") }}'
|
||||
- name: AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_amount_usd") }}'
|
||||
- name: EZ_LENDING_BORROWS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -1,49 +0,0 @@
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
persist_docs ={ "relation": true,
|
||||
"columns": true },
|
||||
meta={
|
||||
'database_tags':{
|
||||
'table': {
|
||||
'PROTOCOL': 'SONNE, AAVE, GRANARY, TAROT, EXACTLY',
|
||||
'PURPOSE': 'LENDING, DEPOSITS'
|
||||
}
|
||||
}
|
||||
},
|
||||
tags = ['gold','defi','lending','curated','ez']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
block_number,
|
||||
block_timestamp,
|
||||
tx_hash,
|
||||
contract_address,
|
||||
event_name,
|
||||
event_index,
|
||||
origin_function_signature,
|
||||
origin_from_address,
|
||||
origin_to_address,
|
||||
platform,
|
||||
protocol_market,
|
||||
depositor,
|
||||
token_address,
|
||||
token_symbol,
|
||||
amount_unadj,
|
||||
amount,
|
||||
amount_usd,
|
||||
COALESCE (
|
||||
complete_lending_deposits_id,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['tx_hash', 'event_index']
|
||||
) }}
|
||||
) AS ez_lending_deposits_id,
|
||||
COALESCE(
|
||||
inserted_timestamp,
|
||||
'2000-01-01'
|
||||
) AS inserted_timestamp,
|
||||
COALESCE(
|
||||
modified_timestamp,
|
||||
'2000-01-01'
|
||||
) AS modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver__complete_lending_deposits') }}
|
||||
@ -1,46 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: defi__ez_lending_deposits
|
||||
description: '{{ doc("evm_complete_lending_deposits_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_logs_tx_hash") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_logs_contract_address") }}'
|
||||
- name: EVENT_NAME
|
||||
description: '{{ doc("evm_event_name") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_event_index") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_origin_to") }}'
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("evm_complete_lending_platform") }}'
|
||||
- name: PROTOCOL_MARKET
|
||||
description: '{{ doc("evm_complete_lending_protocol_token") }}'
|
||||
- name: DEPOSITOR
|
||||
description: '{{ doc("evm_complete_lending_depositor") }}'
|
||||
- name: TOKEN_ADDRESS
|
||||
description: '{{ doc("evm_complete_lending_token_address") }}'
|
||||
- name: TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_token_symbol") }}'
|
||||
- name: AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_amount_unadj") }}'
|
||||
- name: AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_amount") }}'
|
||||
- name: AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_amount_usd") }}'
|
||||
- name: EZ_LENDING_DEPOSITS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -1,53 +0,0 @@
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
persist_docs ={ "relation": true,
|
||||
"columns": true },
|
||||
meta={
|
||||
'database_tags':{
|
||||
'table': {
|
||||
'PROTOCOL': 'AAVE, GRANARY',
|
||||
'PURPOSE': 'LENDING, FLASHLOANS'
|
||||
}
|
||||
}
|
||||
},
|
||||
tags = ['gold','defi','lending','curated','ez']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
block_number,
|
||||
block_timestamp,
|
||||
tx_hash,
|
||||
contract_address,
|
||||
event_name,
|
||||
event_index,
|
||||
origin_function_signature,
|
||||
origin_from_address,
|
||||
origin_to_address,
|
||||
platform,
|
||||
initiator,
|
||||
target,
|
||||
protocol_market,
|
||||
flashloan_token,
|
||||
flashloan_token_symbol,
|
||||
flashloan_amount_unadj,
|
||||
flashloan_amount,
|
||||
flashloan_amount_usd,
|
||||
premium_amount_unadj,
|
||||
premium_amount,
|
||||
premium_amount_usd,
|
||||
COALESCE (
|
||||
complete_lending_flashloans_id,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['tx_hash', 'event_index']
|
||||
) }}
|
||||
) AS ez_lending_flashloans_id,
|
||||
COALESCE(
|
||||
inserted_timestamp,
|
||||
'2000-01-01'
|
||||
) AS inserted_timestamp,
|
||||
COALESCE(
|
||||
modified_timestamp,
|
||||
'2000-01-01'
|
||||
) AS modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver__complete_lending_flashloans') }}
|
||||
@ -1,54 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: defi__ez_lending_flashloans
|
||||
description: '{{ doc("evm_complete_lending_flashloans_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_logs_tx_hash") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_logs_contract_address") }}'
|
||||
- name: EVENT_NAME
|
||||
description: '{{ doc("evm_event_name") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_event_index") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_origin_to") }}'
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("evm_complete_lending_platform") }}'
|
||||
- name: INITIATOR
|
||||
description: '{{ doc("evm_complete_lending_initiator_address") }}'
|
||||
- name: TARGET
|
||||
description: '{{ doc("evm_complete_lending_target_address") }}'
|
||||
- name: PROTOCOL_MARKET
|
||||
description: '{{ doc("evm_complete_lending_protocol_token") }}'
|
||||
- name: FLASHLOAN_TOKEN
|
||||
description: '{{ doc("evm_complete_lending_flashloan_token") }}'
|
||||
- name: FLASHLOAN_TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_flashloan_token_symbol") }}'
|
||||
- name: FLASHLOAN_AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_flashloan_amount_unadj") }}'
|
||||
- name: FLASHLOAN_AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_flashloan_amount") }}'
|
||||
- name: FLASHLOAN_AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_flashloan_amount_usd") }}'
|
||||
- name: PREMIUM_AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_premium_amount_unadj") }}'
|
||||
- name: PREMIUM_AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_premium_amount") }}'
|
||||
- name: PREMIUM_AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_premium_amount_usd") }}'
|
||||
- name: EZ_LENDING_FLASHLOANS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -1,52 +0,0 @@
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
persist_docs ={ "relation": true,
|
||||
"columns": true },
|
||||
meta={
|
||||
'database_tags':{
|
||||
'table': {
|
||||
'PROTOCOL': 'SONNE, AAVE, GRANARY, TAROT, EXACTLY',
|
||||
'PURPOSE': 'LENDING, LIQUIDATIONS'
|
||||
}
|
||||
}
|
||||
},
|
||||
tags = ['gold','defi','lending','curated','ez']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
block_number,
|
||||
block_timestamp,
|
||||
tx_hash,
|
||||
contract_address,
|
||||
event_name,
|
||||
event_index,
|
||||
origin_function_signature,
|
||||
origin_from_address,
|
||||
origin_to_address,
|
||||
platform,
|
||||
liquidator,
|
||||
borrower,
|
||||
protocol_market,
|
||||
collateral_token,
|
||||
collateral_token_symbol,
|
||||
amount_unadj,
|
||||
amount,
|
||||
amount_usd,
|
||||
debt_token,
|
||||
debt_token_symbol,
|
||||
COALESCE (
|
||||
complete_lending_liquidations_id,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['tx_hash', 'event_index']
|
||||
) }}
|
||||
) AS ez_lending_liquidations_id,
|
||||
COALESCE(
|
||||
inserted_timestamp,
|
||||
'2000-01-01'
|
||||
) AS inserted_timestamp,
|
||||
COALESCE(
|
||||
modified_timestamp,
|
||||
'2000-01-01'
|
||||
) AS modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver__complete_lending_liquidations') }}
|
||||
@ -1,52 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: defi__ez_lending_liquidations
|
||||
description: '{{ doc("evm_complete_lending_liquidations_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_logs_tx_hash") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_logs_contract_address") }}'
|
||||
- name: EVENT_NAME
|
||||
description: '{{ doc("evm_event_name") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_event_index") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_origin_to") }}'
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("evm_complete_lending_platform") }}'
|
||||
- name: LIQUIDATOR
|
||||
description: '{{ doc("evm_complete_lending_liquidator") }}'
|
||||
- name: BORROWER
|
||||
description: '{{ doc("evm_complete_lending_borrower") }}'
|
||||
- name: PROTOCOL_MARKET
|
||||
description: '{{ doc("evm_complete_lending_protocol_token") }}'
|
||||
- name: COLLATERAL_TOKEN
|
||||
description: '{{ doc("evm_complete_lending_collateral_asset") }}'
|
||||
- name: COLLATERAL_TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_token_symbol") }}'
|
||||
- name: AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_amount_unadj") }}'
|
||||
- name: AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_amount") }}'
|
||||
- name: AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_amount_usd") }}'
|
||||
- name: DEBT_TOKEN
|
||||
description: '{{ doc("evm_complete_lending_debt_asset") }}'
|
||||
- name: DEBT_TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_token_symbol") }}'
|
||||
- name: EZ_LENDING_LIQUDATIONS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -1,50 +0,0 @@
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
persist_docs ={ "relation": true,
|
||||
"columns": true },
|
||||
meta={
|
||||
'database_tags':{
|
||||
'table': {
|
||||
'PROTOCOL': 'SONNE, AAVE, GRANARY, TAROT, EXACTLY',
|
||||
'PURPOSE': 'LENDING, REPAYMENTS'
|
||||
}
|
||||
}
|
||||
},
|
||||
tags = ['gold','defi','lending','curated','ez']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
block_number,
|
||||
block_timestamp,
|
||||
origin_from_address,
|
||||
origin_to_address,
|
||||
origin_function_signature,
|
||||
tx_hash,
|
||||
event_index,
|
||||
contract_address,
|
||||
event_name,
|
||||
platform,
|
||||
payer,
|
||||
borrower,
|
||||
protocol_market,
|
||||
token_address,
|
||||
token_symbol,
|
||||
amount_unadj,
|
||||
amount,
|
||||
amount_usd,
|
||||
COALESCE (
|
||||
complete_lending_repayments_id,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['tx_hash', 'event_index']
|
||||
) }}
|
||||
) AS ez_lending_repayments_id,
|
||||
COALESCE(
|
||||
inserted_timestamp,
|
||||
'2000-01-01'
|
||||
) AS inserted_timestamp,
|
||||
COALESCE(
|
||||
modified_timestamp,
|
||||
'2000-01-01'
|
||||
) AS modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver__complete_lending_repayments') }}
|
||||
@ -1,48 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: defi__ez_lending_repayments
|
||||
description: '{{ doc("evm_complete_lending_repayments_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_logs_tx_hash") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_logs_contract_address") }}'
|
||||
- name: EVENT_NAME
|
||||
description: '{{ doc("evm_event_name") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_event_index") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_origin_to") }}'
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("evm_complete_lending_platform") }}'
|
||||
- name: PAYER
|
||||
description: '{{ doc("evm_complete_lending_payer") }}'
|
||||
- name: BORROWER
|
||||
description: '{{ doc("evm_complete_lending_borrower") }}'
|
||||
- name: PROTOCOL_MARKET
|
||||
description: '{{ doc("evm_complete_lending_protocol_token") }}'
|
||||
- name: TOKEN_ADDRESS
|
||||
description: '{{ doc("evm_complete_lending_token_address") }}'
|
||||
- name: TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_token_symbol") }}'
|
||||
- name: AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_amount_unadj") }}'
|
||||
- name: AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_amount") }}'
|
||||
- name: AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_amount_usd") }}'
|
||||
- name: EZ_LENDING_REPAYMENTS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -1,49 +0,0 @@
|
||||
{{ config(
|
||||
materialized = 'view',
|
||||
persist_docs ={ "relation": true,
|
||||
"columns": true },
|
||||
meta={
|
||||
'database_tags':{
|
||||
'table': {
|
||||
'PROTOCOL': 'SONNE, AAVE, GRANARY, TAROT, EXACTLY',
|
||||
'PURPOSE': 'LENDING, WITHDRAWS'
|
||||
}
|
||||
}
|
||||
},
|
||||
tags = ['gold','defi','lending','curated','ez']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
block_number,
|
||||
block_timestamp,
|
||||
tx_hash,
|
||||
contract_address,
|
||||
event_name,
|
||||
event_index,
|
||||
origin_function_signature,
|
||||
origin_from_address,
|
||||
origin_to_address,
|
||||
platform,
|
||||
depositor,
|
||||
protocol_market,
|
||||
token_address,
|
||||
token_symbol,
|
||||
amount_unadj,
|
||||
amount,
|
||||
amount_usd,
|
||||
COALESCE (
|
||||
complete_lending_withdraws_id,
|
||||
{{ dbt_utils.generate_surrogate_key(
|
||||
['tx_hash', 'event_index']
|
||||
) }}
|
||||
) AS ez_lending_withdraws_id,
|
||||
COALESCE(
|
||||
inserted_timestamp,
|
||||
'2000-01-01'
|
||||
) AS inserted_timestamp,
|
||||
COALESCE(
|
||||
modified_timestamp,
|
||||
'2000-01-01'
|
||||
) AS modified_timestamp
|
||||
FROM
|
||||
{{ ref('silver__complete_lending_withdraws') }}
|
||||
@ -1,46 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: defi__ez_lending_withdraws
|
||||
description: '{{ doc("evm_complete_lending_withdraws_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_logs_tx_hash") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_logs_contract_address") }}'
|
||||
- name: EVENT_NAME
|
||||
description: '{{ doc("evm_event_name") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_event_index") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_origin_to") }}'
|
||||
- name: PLATFORM
|
||||
description: '{{ doc("evm_complete_lending_platform") }}'
|
||||
- name: DEPOSITOR
|
||||
description: '{{ doc("evm_borrower") }}'
|
||||
- name: PROTOCOL_MARKET
|
||||
description: '{{ doc("evm_complete_lending_protocol_token") }}'
|
||||
- name: TOKEN_ADDRESS
|
||||
description: '{{ doc("evm_complete_lending_token_address") }}'
|
||||
- name: TOKEN_SYMBOL
|
||||
description: '{{ doc("evm_complete_lending_token_symbol") }}'
|
||||
- name: AMOUNT_UNADJ
|
||||
description: '{{ doc("evm_complete_lending_amount_unadj") }}'
|
||||
- name: AMOUNT
|
||||
description: '{{ doc("evm_complete_lending_amount") }}'
|
||||
- name: AMOUNT_USD
|
||||
description: '{{ doc("evm_complete_lending_amount_usd") }}'
|
||||
- name: EZ_LENDING_WITHDRAWS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -4,13 +4,13 @@ models:
|
||||
description: 'This table contains the details of the OP Delegations made by users on the Optimism network.'
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_block_number") }}'
|
||||
description: '{{ doc("general_block_number") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_block_timestamp") }}'
|
||||
description: '{{ doc("general_block_timestamp") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_tx_hash") }}'
|
||||
description: '{{ doc("general_tx_hash") }}'
|
||||
- name: STATUS
|
||||
description: '{{ doc("evm_tx_status") }}'
|
||||
description: 'The status of the tx, can be "Success" or "Failed"'
|
||||
- name: DELEGATOR
|
||||
description: 'The address of the delegator'
|
||||
- name: DELEGATE
|
||||
@ -30,8 +30,8 @@ models:
|
||||
- name: FROM_DELEGATE
|
||||
description: 'The address of the delegate from which the delegator has delegated their votes'
|
||||
- name: FACT_DELEGATIONS_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
description: '{{ doc("general_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
description: '{{ doc("general_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
description: '{{ doc("general_modified_timestamp") }}'
|
||||
@ -1,70 +0,0 @@
|
||||
version: 2
|
||||
models:
|
||||
- name: nft__ez_nft_sales
|
||||
description: '{{ doc("evm_ez_nft_sales_table_doc") }}'
|
||||
|
||||
columns:
|
||||
- name: BLOCK_NUMBER
|
||||
description: '{{ doc("evm_nft_block_no") }}'
|
||||
- name: BLOCK_TIMESTAMP
|
||||
description: '{{ doc("evm_nft_blocktime") }}'
|
||||
- name: TX_HASH
|
||||
description: '{{ doc("evm_nft_tx_hash") }}'
|
||||
- name: EVENT_INDEX
|
||||
description: '{{ doc("evm_nft_event_index") }}'
|
||||
- name: EVENT_TYPE
|
||||
description: '{{ doc("evm_nft_event_type") }}'
|
||||
- name: PLATFORM_ADDRESS
|
||||
description: '{{ doc("evm_nft_platform_address") }}'
|
||||
- name: PLATFORM_NAME
|
||||
description: '{{ doc("evm_nft_platform_name") }}'
|
||||
- name: PLATFORM_EXCHANGE_VERSION
|
||||
description: '{{ doc("evm_nft_platform_exchange_version") }}'
|
||||
- name: AGGREGATOR_NAME
|
||||
description: '{{ doc("evm_nft_aggregator_name") }}'
|
||||
- name: SELLER_ADDRESS
|
||||
description: '{{ doc("evm_nft_seller_address") }}'
|
||||
- name: BUYER_ADDRESS
|
||||
description: '{{ doc("evm_nft_buyer_address") }}'
|
||||
- name: CONTRACT_ADDRESS
|
||||
description: '{{ doc("evm_nft_address") }}'
|
||||
- name: NAME
|
||||
description: '{{ doc("evm_nft_project_name") }}'
|
||||
- name: TOKEN_ID
|
||||
description: '{{ doc("evm_nft_tokenid") }}'
|
||||
- name: QUANTITY
|
||||
description: '{{ doc("evm_nft_quantity") }}'
|
||||
- name: TOKEN_STANDARD
|
||||
description: '{{ doc("evm_token_standard") }}'
|
||||
- name: CURRENCY_SYMBOL
|
||||
description: '{{ doc("evm_nft_currency_symbol") }}'
|
||||
- name: CURRENCY_ADDRESS
|
||||
description: '{{ doc("evm_nft_currency_address") }}'
|
||||
- name: PRICE
|
||||
description: '{{ doc("evm_nft_price") }}'
|
||||
- name: PRICE_USD
|
||||
description: '{{ doc("evm_nft_price_usd") }}'
|
||||
- name: TOTAL_FEES
|
||||
description: '{{ doc("evm_nft_total_fees") }}'
|
||||
- name: PLATFORM_FEE
|
||||
description: '{{ doc("evm_nft_platform_fee") }}'
|
||||
- name: CREATOR_FEE
|
||||
description: '{{ doc("evm_nft_creator_fee") }}'
|
||||
- name: TOTAL_FEES_USD
|
||||
description: '{{ doc("evm_nft_total_fees_usd") }}'
|
||||
- name: PLATFORM_FEE_USD
|
||||
description: '{{ doc("evm_nft_platform_fee_usd") }}'
|
||||
- name: CREATOR_FEE_USD
|
||||
description: '{{ doc("evm_nft_creator_fee_usd") }}'
|
||||
- name: ORIGIN_FROM_ADDRESS
|
||||
description: '{{ doc("evm_nft_origin_from") }}'
|
||||
- name: ORIGIN_TO_ADDRESS
|
||||
description: '{{ doc("evm_nft_origin_to") }}'
|
||||
- name: ORIGIN_FUNCTION_SIGNATURE
|
||||
description: '{{ doc("evm_nft_origin_sig") }}'
|
||||
- name: EZ_NFT_SALES_ID
|
||||
description: '{{ doc("evm_pk") }}'
|
||||
- name: INSERTED_TIMESTAMP
|
||||
description: '{{ doc("evm_inserted_timestamp") }}'
|
||||
- name: MODIFIED_TIMESTAMP
|
||||
description: '{{ doc("evm_modified_timestamp") }}'
|
||||
@ -1,3 +1,3 @@
|
||||
packages:
|
||||
- git: https://github.com/FlipsideCrypto/fsc-evm.git
|
||||
revision: AN-6265/consolidate
|
||||
revision: AN-6265/consolidate
|
||||
|
||||
Loading…
Reference in New Issue
Block a user