Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/create stablecoin token sets. #6186

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{
config(
schema = 'tokens_arbitrum'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6, 'USD Coin') -- Native
, (0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'USDC', 6, 'USD Coin') -- Bridged
, (0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'USDT', 6, 'Tether')
, (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18, 'Dai')
, (0x17fc002b466eec40dae837fc4be5c67993ddbd6f, 'FRAX', 18, 'Frax')
) AS temp_table (contract_address, symbol, decimals, name)
23 changes: 23 additions & 0 deletions tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,26 @@ models:
- unique
- name: standard
description: "The NFT standard erc721/erc1155/..."

- name: tokens_arbitrum_erc20_stablecoins
meta:
blockchain: arbitrum
sector: tokens
project: erc20
contributors: thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "ERC20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "ERC20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be"
- name: name
description: "ERC20 stablecoin token name"


Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{
config(
schema = 'tokens_avalance_c'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDC', 6, 'USD Coin')
, (0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664, 'USDC', 6, 'USC Coin') --bridged
, (0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7, 'USDT', 6, 'Tether')
) AS temp_table (contract_address, symbol, decimals, name)
23 changes: 23 additions & 0 deletions tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,26 @@ models:
tests:
- accepted_values:
values: [ 'erc721', 'erc1155']

- name: tokens_avalanche_c_erc20_stablecoins
meta:
blockchain: avalanche_c
sector: tokens
project: erc20
contributors: thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "ERC20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "ERC20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be"
- name: name
description: "ERC20 stablecoin token name"


17 changes: 17 additions & 0 deletions tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{
config(
schema = 'tokens_base'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 'USDC', 6, 'USD Coin')
, (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6, 'USD+')
, (0x50c5725949a6f0c72e6c4a641f24049a917db0cb, 'DAI', 18, 'Dai')
, (0x4a3a6dd60a34bb2aba60d73b4c88315e9ceb6a3d, 'MIM', 18, 'Magic Internet Money')
) AS temp_table (contract_address, symbol, decimals, name)
23 changes: 23 additions & 0 deletions tokens/models/tokens/base/tokens_base_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,26 @@ models:
tests:
- accepted_values:
values: [ 'erc721', 'erc1155' ]

- name: tokens_base_erc20_stablecoins
meta:
blockchain: base
sector: tokens
project: erc20
contributors: thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "ERC20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "ERC20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be"
- name: name
description: "ERC20 stablecoin token name"


15 changes: 15 additions & 0 deletions tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{
config(
schema = 'tokens_blast'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0x4300000000000000000000000000000000000003, 'USDB', 18, 'Blast USD')
, (0x76da31d7c9cbeae102aff34d3398bc450c8374c1, 'MIM', 18, 'Magic Internet Money')
) AS temp_table (contract_address, symbol, decimals, name)
25 changes: 25 additions & 0 deletions tokens/models/tokens/blast/tokens_blast_schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2

models:
- name: tokens_blast_erc20_stablecoins
meta:
blockchain: blast
sector: tokens
project: erc20
contributors: thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "ERC20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "ERC20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be"
- name: name
description: "ERC20 stablecoin token name"


20 changes: 20 additions & 0 deletions tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{
config(
schema = 'tokens_bnb'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d, 'USDC', 18, 'USD Coin')
, (0x55d398326f99059ff775485246999027b3197955, 'USDT', 18, 'Tether')
, (0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3, 'DAI', 18, 'Dai')
, (0xd17479997F34dd9156Deef8F95A52D81D265be9c, 'USDD', 18, 'Decentralized USD')
, (0xe80772eaf6e2e18b651f160bc9158b2a5cafca65, 'USD+', 6, 'Overnight USD')
, (0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094, 'PAX', 18, 'Paxos Standard')
, (0x8965349fb649a33a30cbfda057d8ec2c48abe2a2, 'USDC', 18, 'anyUSDC')
) AS temp_table (contract_address, symbol, decimals, name)
23 changes: 23 additions & 0 deletions tokens/models/tokens/bnb/tokens_bnb_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,26 @@ models:
tests:
- accepted_values:
values: [ 'bep721', 'bep1155' ]

- name: tokens_bnb_bep20_stablecoins
meta:
blockchain: bnb
sector: tokens
project: bep20
contributors: thetroyharris
config:
tags: [ 'table', 'bep20', 'stablecoins' ]
description: "BEP20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "BEP20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "BEP20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an BEP20 stablecoin token can be"
- name: name
description: "BEP20 stablecoin token name"


19 changes: 19 additions & 0 deletions tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{
config(
schema = 'tokens_celo'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0xceba9300f2b948710d2653dd7b07f33a8b32118c, 'USDC', 6, 'USD Coin') --native
, (0xef4229c8c3250c675f21bcefa42f58efbff6002a, 'USDC', 6, 'USD Coin') --bridged
, (0x37f750b7cc259a2f741af45294f6a16572cf5cad, 'USDC', 6, 'USD Coin') --bridged
, (0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e, 'USDT', 6, 'Tether') --native
, (0x617f3112bf5397d0467d315cc709ef968d9ba546, 'USDT', 6, 'Tether') --bridged
, (0x765de816845861e75a25fca122bb6898b8b1282a, 'cUSD', 18, 'Celo Dollar')
) AS temp_table (contract_address, symbol, decimals, name)
23 changes: 23 additions & 0 deletions tokens/models/tokens/celo/tokens_celo_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,26 @@ models:
tests:
- accepted_values:
values: [ 'erc721', 'erc1155' ]

- name: tokens_celo_erc20_stablecoins
meta:
blockchain: celo
sector: tokens
project: erc20
contributors: thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "ERC20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "ERC20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be"
- name: name
description: "ERC20 stablecoin token name"


56 changes: 31 additions & 25 deletions tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm not sure we should delete these, as they may have downstream dependencies or get used by a few users/dashboards on dune?

Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,40 @@
, post_hook='{{ expose_spells(\'["ethereum"]\',
"sector",
"tokens_ethereum",
\'["gentrexha", "dot2dotseurat"]\') }}'
\'["gentrexha", "dot2dotseurat", "thetroyharris"]\') }}'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (VALUES
(0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 'alUSD', 18, 'Alchemix USD'),
(0xd46ba6d942050d489dbd938a2c909a5d5039a161, 'AMPL', 9, 'Ampleforth'),
(0x4fabb145d64652a948d72533023f6e7a623c7c53, 'BUSD', 18, 'Binance USD'),
(0x6b175474e89094c44da98b954eedeac495271d0f, 'DAI', 18, 'Dai'),
(0xdb25f211ab05b1c97d595516f45794528a807ad8, 'EURS', 18, 'STASIS EURS'),
(0x956f47f50a910163d8bf957cf5846d573e7f87ca, 'FEI', 18, 'Fei USD'),
(0x853d955acef822db058eb8505911ed77f175b99e, 'FRAX', 18, 'Frax'),
(0x056fd409e1d7a124bd7017459dfea2f387b6d5cd, 'GUSD', 2, 'Gemini Dollar'),
(0xdf574c24545e5ffecb9a659c229253d4111d87e1, 'HUSD', 8, 'HUSD'),
(0x5f98805A4E8be255a32880FDeC7F6728C6568bA0, 'LUSD', 18, 'Liquity USD'),
(0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 'MIM', 18, 'Magic Internet Money'),
(0xe2f2a5c287993345a840db3b0845fbc70f5935a5, 'MUSD', 18, 'mStable USD'),
(0x8e870d67f660d95d5be530380d0ec0bd388289e1, 'PAX', 18, 'Paxos Standard'),
(0x03ab458634910aad20ef5f1c8ee96f1d6ac54919, 'RAI', 18, 'Rai Reflex Index'),
(0x57Ab1ec28D129707052df4dF418D58a2D46d5f51, 'sUSD', 18, 'Synthetix sUSD'),
(0x57Ab1E02fEE23774580C119740129eAC7081e9D3, 'sUSD', 18, 'Synthetix sUSD'),
(0x0000000000085d4780b73119b644ae5ecd22b376, 'TUSD', 18, 'TrueUSD'),
(0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 'USDC', 6, 'USD Coin'),
(0x674c6ad92fd080e4004b2312b45f796a192d27a0, 'USDN', 18, 'Neutrino USD'),
(0x1456688345527bE1f37E9e627DA0837D6f08C925, 'USDP', 18, 'Pax Dollar'),
(0xdac17f958d2ee523a2206206994597c13d831ec7, 'USDT', 6, 'Tether'),
(0xa47c8bf37f92abed4a126bda807a7b7498661acd, 'UST', 18, 'Wrapped UST Token'),
(0xa693b19d2931d498c5b318df961919bb4aee87a5, 'UST', 6, 'UST (Wormhole)'),
(0xe07F9D810a48ab5c3c914BA3cA53AF14E4491e8A, 'GYD', 18, 'Gyro Dollar')
(0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 'alUSD', 18, 'Alchemix USD')
, (0xd46ba6d942050d489dbd938a2c909a5d5039a161, 'AMPL', 9, 'Ampleforth')
, (0x4fabb145d64652a948d72533023f6e7a623c7c53, 'BUSD', 18, 'Binance USD')
, (0x6b175474e89094c44da98b954eedeac495271d0f, 'DAI', 18, 'Dai')
, (0xdb25f211ab05b1c97d595516f45794528a807ad8, 'EURS', 18, 'STASIS EURS')
, (0x956f47f50a910163d8bf957cf5846d573e7f87ca, 'FEI', 18, 'Fei USD')
, (0x853d955acef822db058eb8505911ed77f175b99e, 'FRAX', 18, 'Frax')
, (0x056fd409e1d7a124bd7017459dfea2f387b6d5cd, 'GUSD', 2, 'Gemini Dollar')
, (0xdf574c24545e5ffecb9a659c229253d4111d87e1, 'HUSD', 8, 'HUSD')
, (0x5f98805A4E8be255a32880FDeC7F6728C6568bA0, 'LUSD', 18, 'Liquity USD')
, (0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 'MIM', 18, 'Magic Internet Money')
, (0xe2f2a5c287993345a840db3b0845fbc70f5935a5, 'MUSD', 18, 'mStable USD')
, (0x8e870d67f660d95d5be530380d0ec0bd388289e1, 'PAX', 18, 'Paxos Standard')
, (0x03ab458634910aad20ef5f1c8ee96f1d6ac54919, 'RAI', 18, 'Rai Reflex Index')
, (0x57Ab1ec28D129707052df4dF418D58a2D46d5f51, 'sUSD', 18, 'Synthetix sUSD')
, (0x57Ab1E02fEE23774580C119740129eAC7081e9D3, 'sUSD', 18, 'Synthetix sUSD')
, (0x0000000000085d4780b73119b644ae5ecd22b376, 'TUSD', 18, 'TrueUSD')
, (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 'USDC', 6, 'USD Coin')
, (0x674c6ad92fd080e4004b2312b45f796a192d27a0, 'USDN', 18, 'Neutrino USD')
, (0x1456688345527bE1f37E9e627DA0837D6f08C925, 'USDP', 18, 'Pax Dollar')
, (0xdac17f958d2ee523a2206206994597c13d831ec7, 'USDT', 6, 'Tether')
, (0xa47c8bf37f92abed4a126bda807a7b7498661acd, 'UST', 18, 'Wrapped UST Token')
, (0xa693b19d2931d498c5b318df961919bb4aee87a5, 'UST', 6, 'UST (Wormhole)')
, (0xe07F9D810a48ab5c3c914BA3cA53AF14E4491e8A, 'GYD', 18, 'Gyro Dollar')
, (0x4c9edd5852cd905f086c759e8383e09bff1e68b3, 'USDe', 18, 'Ethena USD')
, (0xf939e0a03fb07f59a73314e73794be0e57ac1b4e, 'crvUSD', 18, 'Curve USD')
, (0xc5f0f7b66764f6ec8c8dff7ba683102295e16409, 'FDUSD', 18, 'First Digital USD')
, (0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, 'GHO', 18, 'Gho Token')
, (0x865377367054516e17014CcdED1e7d814EDC9ce4, 'DOLA', 18, 'Dola USD')
, (0x6c3ea9036406852006290770bedfcaba0e23a0e8, 'PYUSD', 6, 'PayPal USD')
) AS temp_table (contract_address, symbol, decimals, name)
2 changes: 1 addition & 1 deletion tokens/models/tokens/ethereum/tokens_ethereum_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ models:
blockchain: ethereum
sector: tokens
project: erc20
contributors: gentrexha
contributors: gentrexha, dot2dotseurat, thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
Expand Down
16 changes: 16 additions & 0 deletions tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{
config(
schema = 'tokens_gnosis'
, alias = 'stablecoins'
, tags = ['static']
, materialized = 'table'
)
}}

SELECT contract_address, symbol, decimals, name
FROM (
VALUES
(0xddafbb505ad214d7b80b1f830fccc89b60fb7a83, 'USDC', 6, 'USD Coin')
, (0x4ecaba5870353805a9f068101a40e0f32ed605c6, 'USDT', 6, 'Tether')
, (0xe91d153e0b41518a2ce8dd3d7944fa863463a97d, 'WXDAI', 18, 'Wrapped xDai')
) AS temp_table (contract_address, symbol, decimals, name)
23 changes: 23 additions & 0 deletions tokens/models/tokens/gnosis/tokens_gnosis_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,26 @@ models:
tests:
- accepted_values:
values: [ 'erc721', 'erc1155']

- name: tokens_gnosis_erc20_stablecoins
meta:
blockchain: gnosis
sector: tokens
project: erc20
contributors: thetroyharris
config:
tags: [ 'table', 'erc20', 'stablecoins' ]
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals"
columns:
- name: contract_address
description: "ERC20 stablecoin token contract address"
tests:
- unique
- name: symbol
description: "ERC20 stablecoin token symbol"
- name: decimals
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be"
- name: name
description: "ERC20 stablecoin token name"


Loading
Loading