Skip to content

Commit 6a5cb5e

Browse files
authored
added bsc contracts to dim_contracts (#125)
1 parent fa7fe9f commit 6a5cb5e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

models/core/core__dim_contracts.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ WITH base AS (
6666
'contracts'
6767
) }}
6868
UNION ALL
69+
SELECT
70+
contract_address AS address,
71+
token_symbol AS symbol,
72+
token_name AS NAME,
73+
token_decimals AS decimals,
74+
'bsc' AS blockchain
75+
FROM
76+
{{ source(
77+
'bsc_silver',
78+
'contracts'
79+
) }}
80+
UNION ALL
6981
SELECT
7082
address AS address,
7183
LOWER(project_name) AS symbol,

models/sources.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ sources:
142142
- name: logs
143143
- name: traces
144144
- name: transactions
145+
- name: contracts
145146
- name: bsc_core
146147
database: bsc
147148
schema: core

0 commit comments

Comments
 (0)