mirror of
https://github.com/FlipsideCrypto/near-models.git
synced 2026-02-06 11:26:52 +00:00
upd atlas daily lockup locked balances
This commit is contained in:
parent
21b6037aa9
commit
d5bd29d5ad
@ -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
|
||||
|
||||
---
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user