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

Static EVM Stablecoins #6723

Merged
merged 11 commits into from
Sep 18, 2024
28 changes: 28 additions & 0 deletions dbt_subprojects/tokens/models/tokens/_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,31 @@ models:
description: "NFT collection symbol"
- name: standard
description: "NFT collection standard"

- name: tokens_erc20_stablecoins
meta:
blockchain: arbitrum, avalanche_c, bnb, ethereum, fantom, gnosis, optimism, polygon, base
sector: tokens
contributors: hildobby, synthquest
config:
tags: ['tokens','stablecoin', 'arbitrum','avalanche_c','bnb','ethereum','fantom','gnosis','optimism','polygon','base']
description: >
Stablecoin (ERC20) tokens
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- blockchain
- contract_address
columns:
- name: blockchain
description: blockchain name
- name: contract_address
description: token contract address
- name: name
description: token backing
- name: symbol
description: token symbol
- name: decimal
description: token decimals
- name: backing
description: token backing
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{{ config(
schema = 'tokens_arbitrum'
, alias = 'erc20_stablecoins'
, tags=['static']
, post_hook='{{ expose_spells(\'["arbitrum"]\',
"sector",
"tokens_arbitrum",
\'["synthquest"]\') }}'
, unique_key = ['contract_address']
)
}}

SELECT blockchain, contract_address, backing, symbol, decimals, name
FROM (VALUES

('arbitrum', 0x641441c631e2f909700d2f41fd87f0aa6a6b4edb, 'Crypto-backed stablecoin', 'USX', 18, ''),
('arbitrum', 0x680447595e8b7b3aa1b43beb9f6098c79ac2ab3f, 'Algorithmic stablecoin', 'USDD', 18, ''),
('arbitrum', 0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'Fiat-backed stablecoin', 'USDT', 6, ''),
('arbitrum', 0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'Fiat-backed stablecoin', 'USDC', 6, ''),
('arbitrum', 0xfea7a6a0b346362bf88a9e4a88416b77a57d6c2a, 'Crypto-backed stablecoin', 'MIM', 18, ''),
('arbitrum', 0xa970af1a584579b618be4d69ad6f73459d112f95, 'Crypto-backed stablecoin', 'sUSD', 18, ''),
('arbitrum', 0xddc0385169797937066bbd8ef409b5b3c0dfeb52, 'RWA-backed stablecoin', 'wUSDR', 9, ''),
('arbitrum', 0xe80772eaf6e2e18b651f160bc9158b2a5cafca65, 'Crypto-backed stablecoin', 'USD+', 6, ''),
('arbitrum', 0x17fc002b466eec40dae837fc4be5c67993ddbd6f, 'Hybrid stablecoin', 'FRAX', 18, ''),
('arbitrum', 0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'Hybrid stablecoin', 'DAI', 18, ''),
('arbitrum', 0x64343594ab9b56e99087bfa6f2335db24c2d1f17, 'Crypto-backed stablecoin', 'VST', 18, ''),
('arbitrum', 0xd74f5255d557944cf7dd0e45ff521520002d5748, 'Crypto-backed stablecoin', 'USDs', 18, ''),
('arbitrum', 0x3f56e0c36d275367b8c502090edf38289b3dea0d, 'Crypto-backed stablecoin', 'MAI', 18, ''),
('arbitrum', 0xb1084db8d3c05cebd5fa9335df95ee4b8a0edc30, 'Crypto-backed stablecoin', 'USDT+', 6, ''),
('arbitrum', 0x3509f19581afedeff07c53592bc0ca84e4855475, 'Crypto-backed stablecoin', 'xUSD', 18, ''),
('arbitrum', 0x59d9356e565ab3a36dd77763fc0d87feaf85508c, 'Fiat-backed stablecoin', 'USDM', 18, ''),
('arbitrum', 0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'Fiat-backed stablecoin', 'USDC', 6, ''),
('arbitrum', 0x4d15a3a2286d883af0aa1b3f21367843fac63e07, 'Fiat-backed stablecoin', 'TUSD', 18, '')
) AS temp_table (blockchain, contract_address, backing, symbol, decimals, name)
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: stablecoins
contributors: synthquest
config:
tags: ['tokens', 'arbitrum', 'erc20', 'stablecoins']
description: >
Selection of stablecoin token addresses.
columns:
- name: blockchain
description: "Blockchain name"
- name: contract_address
description: "Stablecoin contract address"
- name: backing
description: "Stablecoin backing"
- name: symbol
description: "Stablecoin symbol"
- name: name
description: "Stablecoin project name"
- name: decimals
description: "Number of decimals"
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{ config(
schema = 'tokens_avalanche_c'
, alias = 'erc20_stablecoins'
, tags=['static']
, post_hook='{{ expose_spells(\'["avalanche_c"]\',
"sector",
"tokens_avalanche_c",
\'["synthquest"]\') }}'
, unique_key = ['contract_address']
)
}}

SELECT blockchain, contract_address, backing, symbol, decimals, name
FROM (VALUES

('avalanche_c', 0x111111111111ed1d73f860f57b2798b683f2d325, 'Crypto-backed stablecoin', 'YUSD', 18, ''),
('avalanche_c', 0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7, 'Fiat-backed stablecoin', 'USDt', 6, ''),
('avalanche_c', 0xab05b04743e0aeaf9d2ca81e5d3b8385e4bf961e, 'Hybrid stablecoin', 'USDS', 18, ''),
('avalanche_c', 0x00000000efe302beaa2b3e6e1b18d08d69a9012a, 'Fiat-backed stablecoin', 'AUSD', 6, ''),
('avalanche_c', 0x130966628846bfd36ff31a822705796e8cb8c18d, 'Crypto-backed stablecoin', 'MIM', 18, ''),
('avalanche_c', 0xd24c2ad096400b6fbcd2ad8b24e7acbc21a1da64, 'Hybrid stablecoin', 'FRAX', 18, ''),
('avalanche_c', 0xd586e7f844cea2f87f50152665bcbc2c279d8d70, 'Crypto-backed stablecoin', 'DAI.e', 18, ''),
('avalanche_c', 0x3b55e45fd6bd7d4724f5c47e0d1bcaedd059263e, 'Crypto-backed stablecoin', 'miMatic', 18, ''),
('avalanche_c', 0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e, 'Fiat-backed stablecoin', 'USDC', 6, ''),
('avalanche_c', 0x9c9e5fd8bbc25984b178fdce6117defa39d2db39, 'Fiat-backed stablecoin', 'BUSD', 18, ''),
('avalanche_c', 0xf14f4ce569cb3679e99d5059909e23b07bd2f387, 'Crypto-backed stablecoin', 'NXUSD', 18, ''),
('avalanche_c', 0x1c20e891bab6b1727d14da358fae2984ed9b59eb, 'Fiat-backed stablecoin', 'TUSD', 18, ''),
('avalanche_c', 0xdacde03d7ab4d81feddc3a20faa89abac9072ce2, 'Crypto-backed stablecoin', 'USP', 18, ''),
('avalanche_c', 0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664, 'Crypto-backed stablecoin', 'USDC.e', 6, ''),
('avalanche_c', 0x8861f5c40a0961579689fdf6cdea2be494f9b25a, 'Hybrid stablecoin', 'iUSDS', 18, '')

) AS temp_table (blockchain, contract_address, backing, symbol, decimals, name)
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: stablecoins
contributors: synthquest
config:
tags: ['tokens', 'avalanche_c', 'erc20', 'stablecoins']
description: >
Selection of stablecoin token addresses.
columns:
- name: blockchain
description: "Blockchain name"
- name: contract_address
description: "Stablecoin contract address"
- name: backing
description: "Stablecoin backing"
- name: symbol
description: "Stablecoin symbol"
- name: name
description: "Stablecoin project name"
- name: decimals
description: "Number of decimals"
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ config(
schema = 'tokens_base'
, alias = 'erc20_stablecoins'
, tags=['static']
, post_hook='{{ expose_spells(\'["base"]\',
"sector",
"tokens_base",
\'["synthquest"]\') }}'
, unique_key = ['contract_address']
)
}}

SELECT blockchain, contract_address, backing, symbol, decimals, name
FROM (VALUES

('base', 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42, 'Fiat-backed stablecoin', 'EURC', 6, ''),
('base', 0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'Crypto-backed stablecoin', 'USD+', 6, ''),
('base', 0xcc7ff230365bd730ee4b352cc2492cedac49383e, 'Algorithmic stablecoin', 'hyUSD', 18, ''),
('base', 0xcfa3ef56d303ae4faaba0592388f19d7c3399fb4, 'Crypto-backed stablecoin', 'eUSD', 18, ''),
('base', 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 'Fiat-backed stablecoin', 'USDC', 6, ''),
('base', 0x04d5ddf5f3a8939889f11e97f8c4bb48317f1938, 'Fiat-backed stablecoin', 'USDz', 18, ''),
('base', 0x4621b7a9c75199271f773ebd9a499dbd165c3191, 'Crypto-backed stablecoin', 'DOLA', 18, ''),
('base', 0xca72827a3d211cfd8f6b00ac98824872b72cab49, 'Fiat-backed stablecoin', 'cgUSD', 6, '')


) AS temp_table (blockchain, contract_address, backing, symbol, decimals, name)
23 changes: 23 additions & 0 deletions dbt_subprojects/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: stablecoins
contributors: synthquest
config:
tags: ['tokens', 'base', 'erc20', 'stablecoins']
description: >
Selection of stablecoin token addresses.
columns:
- name: blockchain
description: "Blockchain name"
- name: contract_address
description: "Stablecoin contract address"
- name: backing
description: "Stablecoin backing"
- name: symbol
description: "Stablecoin symbol"
- name: name
description: "Stablecoin project name"
- name: decimals
description: "Number of decimals"
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{ config(
schema = 'tokens_bnb'
, alias = 'erc20_stablecoins'
, tags=['static']
, post_hook='{{ expose_spells(\'["bnb"]\',
"sector",
"tokens_bnb",
\'["synthquest"]\') }}'
, unique_key = ['contract_address']
)
}}

SELECT blockchain, contract_address, backing, symbol, decimals, name
FROM (VALUES

('bnb', 0x14016e85a25aeb13065688cafb43044c2ef86784, 'Fiat-backed stablecoin', 'TUSD', 18, ''),
('bnb', 0x23396cf899ca06c4472205fc903bdb4de249d6fc, 'Algorithmic stablecoin', 'UST', 18, ''),
('bnb', 0x0782b6d8c4551b9760e74c0545a9bcd90bdc41e5, 'Crypto-backed stablecoin', 'HAY', 18, ''),
('bnb', 0x90c97f71e18723b0cf0dfa30ee176ab653e89f40, 'Hybrid stablecoin', 'FRAX', 18, ''),
('bnb', 0x6bf2be9468314281cd28a94c35f967cafd388325, 'Hybrid stablecoin', 'oUSD', 18, ''),
('bnb', 0x55d398326f99059ff775485246999027b3197955, 'Fiat-backed stablecoin', 'USDT', 18, ''),
('bnb', 0xde7d1ce109236b12809c45b23d22f30dba0ef424, 'Hybrid stablecoin', 'USDS', 18, ''),
('bnb', 0xfa4ba88cf97e282c505bea095297786c16070129, 'Fiat-backed stablecoin', 'CUSD', 18, ''),
('bnb', 0xc5f0f7b66764f6ec8c8dff7ba683102295e16409, 'Fiat-backed stablecoin', 'FDUSD', 18, ''),
('bnb', 0x2952beb1326accbb5243725bd4da2fc937bca087, 'RWA-backed stablecoin', 'wUSDR', 9, ''),
('bnb', 0x1d6cbdc6b29c6afbae65444a1f65ba9252b8ca83, 'Crypto-backed stablecoin', 'TOR', 18, ''),
('bnb', 0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b, 'Crypto-backed stablecoin', 'BOB', 18, ''),
('bnb', 0x6458df5d764284346c19d88a104fd3d692471499, 'Hybrid stablecoin', 'iUSDS', 18, ''),
('bnb', 0x2f29bc0ffaf9bff337b31cbe6cb5fb3bf12e5840, 'Crypto-backed stablecoin', 'DOLA', 18, ''),
('bnb', 0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d, 'Fiat-backed stablecoin', 'USDC', 18, ''),
('bnb', 0x3f56e0c36d275367b8c502090edf38289b3dea0d, 'Crypto-backed stablecoin', 'MAI', 18, ''),
('bnb', 0x4bd17003473389a42daf6a0a729f6fdb328bbbd7, 'Crypto-backed stablecoin', 'VAI', 18, ''),
('bnb', 0xf0186490b18cb74619816cfc7feb51cdbe4ae7b9, 'RWA-backed stablecoin', 'zUSD', 18, ''),
('bnb', 0xfe19f0b51438fd612f6fd59c1dbb3ea319f433ba, 'Crypto-backed stablecoin', 'MIM', 18, ''),
('bnb', 0xe9e7cea3dedca5984780bafc599bd69add087d56, 'Fiat-backed stablecoin', 'BUSD', 18, ''),
('bnb', 0xb5102cee1528ce2c760893034a4603663495fd72, 'Crypto-backed stablecoin', 'USX', 18, ''),
('bnb', 0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094, 'Crypto-backed stablecoin', 'PAX', 18, ''),
('bnb', 0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3, 'Hybrid stablecoin', 'DAI', 18, ''),
('bnb', 0xd17479997f34dd9156deef8f95a52d81d265be9c, 'Algorithmic stablecoin', 'USDD', 18, '')



) AS temp_table (blockchain, contract_address, backing, symbol, decimals, name)
23 changes: 23 additions & 0 deletions dbt_subprojects/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_erc20_stablecoins
meta:
blockchain: bnb
sector: stablecoins
contributors: synthquest
config:
tags: ['tokens', 'bnb', 'erc20', 'stablecoins']
description: >
Selection of stablecoin token addresses.
columns:
- name: blockchain
description: "Blockchain name"
- name: contract_address
description: "Stablecoin contract address"
- name: backing
description: "Stablecoin backing"
- name: symbol
description: "Stablecoin symbol"
- name: name
description: "Stablecoin project name"
- name: decimals
description: "Number of decimals"
Loading
Loading