From 1ed570254624057b6f79c9ebcfe1765f9fd252ed Mon Sep 17 00:00:00 2001 From: Huang Geyang Date: Mon, 2 Dec 2024 23:42:21 +0800 Subject: [PATCH] Add tokens.erc20 --- .../tokens/models/tokens/flare/_schema.yml | 21 +++++++++++++++++++ .../tokens/models/tokens/tokens_erc20.sql | 1 + 2 files changed, 22 insertions(+) create mode 100644 dbt_subprojects/tokens/models/tokens/flare/_schema.yml diff --git a/dbt_subprojects/tokens/models/tokens/flare/_schema.yml b/dbt_subprojects/tokens/models/tokens/flare/_schema.yml new file mode 100644 index 00000000000..afe1b985700 --- /dev/null +++ b/dbt_subprojects/tokens/models/tokens/flare/_schema.yml @@ -0,0 +1,21 @@ +version: 2 + +models: + - name: tokens_flare_erc20 + meta: + blockchain: flare + sector: tokens + project: erc20 + contributors: hosuke + config: + tags: ['table', 'erc20', 'flare'] + description: "ERC20 Token Addresses, Symbols and Decimals on flare Network" + columns: + - name: contract_address + description: "ERC20 token contract address" + data_tests: + - unique + - name: symbol + description: "ERC20 token symbol" + - name: decimals + description: "Number of decimals, refers to how divisible an ERC20 token can be" diff --git a/dbt_subprojects/tokens/models/tokens/tokens_erc20.sql b/dbt_subprojects/tokens/models/tokens/tokens_erc20.sql index c50255ecaf7..87471eae872 100644 --- a/dbt_subprojects/tokens/models/tokens/tokens_erc20.sql +++ b/dbt_subprojects/tokens/models/tokens/tokens_erc20.sql @@ -71,6 +71,7 @@ ,'tokens_tron': {'blockchain': 'tron', 'model': ref('tokens_tron_erc20')} ,'tokens_ronin': {'blockchain': 'ronin', 'model': ref('tokens_ronin_erc20')} ,'tokens_bob': {'blockchain': 'bob', 'model': ref('tokens_bob_erc20')} + ,'tokens_flare': {'blockchain': 'flare', 'model': ref('tokens_flare_erc20')} } %} with automated_source as (