Skip to content

Commit

Permalink
adding account mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
SebMelendez01 committed Nov 14, 2024
1 parent 126c80f commit c555701
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions models/projects/solana/raw/ez_solana_token_account_mapping.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{
config(
materialized="table",
snowflake_warehouse="SOLANA",
database="solana",
schema="raw",
alias="ez_token_account_mappings",
)
}}

select
account_address
, owner
, start_b.block_timestamp as start_timestamp
, coalesce(end_b.block_timestamp, sysdate()) as end_timestamp
from solana_flipside.core.fact_token_account_owners
left join solana_flipside.core.fact_blocks start_b on start_block_id = start_b.block_id
left join solana_flipside.core.fact_blocks end_b on end_block_id = end_b.block_id

0 comments on commit c555701

Please sign in to comment.