Skip to content

Commit

Permalink
add balances
Browse files Browse the repository at this point in the history
  • Loading branch information
soispoke committed Sep 7, 2022
1 parent 02d90f5 commit 76bc61e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions models/labels/balances/labels_balances_erc20.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{config(alias='balances_erc20')}}

WITH erc20_balances AS
(SELECT
'ethereum' as blockchain,
wallet_address as address,
amount_usd as latest_balance_usd
FROM {{ ref('balances_ethereum_erc20_latest') }})

SELECT
collect_set(blockchain) as blockchain,
address,
latest_balance_usd,
'balances' AS category,
'soispoke' AS contributor,
'query' AS source,
timestamp('2022-10-04') as created_at,
now() as updated_at
FROM erc20_balances
GROUP BY address, latest_balance_usd
15 changes: 15 additions & 0 deletions models/labels/balances/labels_balances_schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2

models:
- name: labels_balances
meta:
blockchain: ethereum
sector: labels
category: balances
project: ['erc20']
contibutors: soispoke
config:
tags: ['labels', 'balances', 'ethereum', 'erc20', 'latest']
description: "Token millionaires and billionaires query labels on Ethereum"


0 comments on commit 76bc61e

Please sign in to comment.