upd atlas daily lockup locked balances

This commit is contained in:
Jack Forgash 2025-04-25 12:36:37 -06:00
parent 21b6037aa9
commit d5bd29d5ad
2 changed files with 29 additions and 3 deletions

View File

@ -923,4 +923,22 @@ Query Changes:
- Uniqueness check for transfers_id
- Enhanced model description to better reflect its purpose and data sources
### silver__atlas_supply_daily_lockup_locked_balances
**Date**: 2024-03-XX
#### Changes
- Architecture:
- Replaced `silver__actions_events_function_call_s3` with `core__ez_actions`
- Updated column mappings to match new schema:
- `receipt_receiver_id``receiver_id`
- `action_data :method_name``method_name`
- `action_data :args``args`
- Added `action_index` to function call CTE for better event tracking
- Added `receipt_succeeded` field from core__ez_actions
#### Impact
- No functional changes to the model's logic or output
- Maintains same lockup contract tracking and vesting calculations
- Preserves all existing downstream dependencies
---

View File

@ -6,7 +6,6 @@
) }}
WITH lockup_receipts AS (
SELECT
*
FROM
@ -14,9 +13,18 @@ WITH lockup_receipts AS (
),
function_call AS (
SELECT
*
tx_hash,
block_timestamp,
receipt_id,
action_index,
receipt_receiver_id AS receiver_id,
action_data :method_name ::STRING AS method_name,
action_data :args ::VARIANT AS args,
receipt_succeeded
FROM
{{ ref('silver__actions_events_function_call_s3') }}
{{ ref('core__ez_actions') }}
WHERE
action_name = 'FunctionCall'
),
dates AS (
SELECT