From 813ff511ea0b3dd59673bd97841c59dc274e3080 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:15:17 -0400 Subject: [PATCH 01/19] Update/create stablecoin token sets. --- .../tokens_arbitrum_erc20_stablecoins.sql | 18 ++++++ .../arbitrum/tokens_arbitrum_schema.yml | 23 ++++++++ .../tokens_avalanche_c_erc20_stablecoins.sql | 16 ++++++ .../avalanche_c/tokens_avalanche_c_schema.yml | 23 ++++++++ .../base/tokens_base_erc20_stablecoins.sql | 17 ++++++ .../models/tokens/base/tokens_base_schema.yml | 23 ++++++++ .../blast/tokens_blast_erc20_stablecoins.sql | 15 +++++ .../tokens/blast/tokens_blast_schema.yml | 25 +++++++++ .../bnb/tokens_bnb_bep20_stablecoins.sql | 20 +++++++ .../models/tokens/bnb/tokens_bnb_schema.yml | 23 ++++++++ .../celo/tokens_celo_erc20_stablecoins.sql | 19 +++++++ .../models/tokens/celo/tokens_celo_schema.yml | 23 ++++++++ .../tokens_ethereum_erc20_stablecoins.sql | 56 ++++++++++--------- .../ethereum/tokens_ethereum_schema.yml | 2 +- .../tokens_gnosis_erc20_stablecoins.sql | 16 ++++++ .../tokens/gnosis/tokens_gnosis_schema.yml | 23 ++++++++ .../linea/tokens_linea_erc20_stablecoins.sql | 19 +++++++ .../tokens/linea/tokens_linea_schema.yml | 25 +++++++++ .../tokens_polygon_erc20_stablecoins.sql | 22 ++++++++ .../tokens/polygon/tokens_polygon_schema.yml | 22 ++++++++ .../tokens_scroll_erc20_stablecoins.sql | 17 ++++++ .../tokens/scroll/tokens_scroll_schema.yml | 23 ++++++++ .../models/tokens/tron/tokens_tron_schema.yml | 25 +++++++++ .../tron/tokens_tron_trc20_stablecoins.sql | 18 ++++++ .../zkevm/tokens_zkevm_erc20_stablecoins.sql | 18 ++++++ .../tokens/zkevm/tokens_zkevm_schema.yml | 25 ++++++++- .../tokens_zksync_erc20_stablecoins.sql | 17 ++++++ .../tokens/zksync/tokens_zksync_schema.yml | 23 ++++++++ 28 files changed, 569 insertions(+), 27 deletions(-) create mode 100644 tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/blast/tokens_blast_schema.yml create mode 100644 tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql create mode 100644 tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/linea/tokens_linea_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/linea/tokens_linea_schema.yml create mode 100644 tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/tron/tokens_tron_schema.yml create mode 100644 tokens/models/tokens/tron/tokens_tron_trc20_stablecoins.sql create mode 100644 tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql new file mode 100644 index 00000000000..a0627b0a879 --- /dev/null +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml index e875305d821..0264d360587 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql new file mode 100644 index 00000000000..5d7b3291d50 --- /dev/null +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql @@ -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 + , (0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDT', 6, 'Tether') +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml index 33c7d6a409a..a8205343e05 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql b/tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql new file mode 100644 index 00000000000..ee0eb469183 --- /dev/null +++ b/tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/base/tokens_base_schema.yml b/tokens/models/tokens/base/tokens_base_schema.yml index 46487efa49d..adcd963933c 100644 --- a/tokens/models/tokens/base/tokens_base_schema.yml +++ b/tokens/models/tokens/base/tokens_base_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql b/tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql new file mode 100644 index 00000000000..c493d21a154 --- /dev/null +++ b/tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/blast/tokens_blast_schema.yml b/tokens/models/tokens/blast/tokens_blast_schema.yml new file mode 100644 index 00000000000..eff2f6e16b7 --- /dev/null +++ b/tokens/models/tokens/blast/tokens_blast_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql b/tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql new file mode 100644 index 00000000000..9f8cd4af66b --- /dev/null +++ b/tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/bnb/tokens_bnb_schema.yml b/tokens/models/tokens/bnb/tokens_bnb_schema.yml index a92c8032276..b3bf670767f 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_schema.yml +++ b/tokens/models/tokens/bnb/tokens_bnb_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql b/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql new file mode 100644 index 00000000000..b2304ee48c3 --- /dev/null +++ b/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/celo/tokens_celo_schema.yml b/tokens/models/tokens/celo/tokens_celo_schema.yml index e6d0f7ce9cb..2d64ac3b335 100644 --- a/tokens/models/tokens/celo/tokens_celo_schema.yml +++ b/tokens/models/tokens/celo/tokens_celo_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql b/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql index 2fdc644a473..e859a882f6a 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql +++ b/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml b/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml index f3d409b6995..9b65fc899af 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml +++ b/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml @@ -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" diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql b/tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql new file mode 100644 index 00000000000..1305333babc --- /dev/null +++ b/tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql @@ -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) diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml index 30caa673f35..c3ea696d680 100644 --- a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml +++ b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml @@ -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" + + diff --git a/tokens/models/tokens/linea/tokens_linea_erc20_stablecoins.sql b/tokens/models/tokens/linea/tokens_linea_erc20_stablecoins.sql new file mode 100644 index 00000000000..44cd77300c8 --- /dev/null +++ b/tokens/models/tokens/linea/tokens_linea_erc20_stablecoins.sql @@ -0,0 +1,19 @@ +{{ + config( + schema = 'tokens_linea' + , alias = 'stablecoins' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals, name +FROM ( + VALUES + (0x176211869ca2b568f2a7d4ee941e073a821ee1ff, 'USDC', 6, 'USD Coin') --bridged + , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6, 'Overnight USD') + , (0xA219439258ca9da29E9Cc4cE5596924745e12B93, 'USDT', 6, 'Tether') + , (0x4af15ec2a0bd43db75dd04e62faa3b8ef36b00d5, 'DAI', 18, 'Dai') + , (0xd2bc272EA0154A93bf00191c8a1DB23E67643EC5, 'USDP', 18, 'Pax Dollar') + , (0xDD3B8084AF79B9BaE3D1b668c0De08CCC2C9429A, 'MIM', 18, 'Magic Internet Money') +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/linea/tokens_linea_schema.yml b/tokens/models/tokens/linea/tokens_linea_schema.yml new file mode 100644 index 00000000000..df8bd5eb74e --- /dev/null +++ b/tokens/models/tokens/linea/tokens_linea_schema.yml @@ -0,0 +1,25 @@ +version: 2 + +models: + - name: tokens_linea_erc20_stablecoins + meta: + blockchain: linea + 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" + + diff --git a/tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql b/tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql new file mode 100644 index 00000000000..842b6feafc4 --- /dev/null +++ b/tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql @@ -0,0 +1,22 @@ +{{ + config( + schema = 'tokens_polygon' + , alias = 'stablecoins' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals, name +FROM ( + VALUES + (0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359, 'USDC', 6, 'USD Coin') --native + , (0x2791bca1f2de4661ed88a30c99a7a9449aa84174, 'USDC', 6, 'USD Coin') --bridged + , (0xc2132d05d31c914a87c6611c10748aeb04b58e8f, 'USDT', 6, 'Tether') --unkknown + , (0x8f3cf7ad23cd3cadbd9735aff958023239c6a063, 'DAI', 18, 'Dai') --unkknown + , (0x45c32fa6df82ead1e2ef74d17b76547eddfaff89, 'FRAX', 18, 'Frax') --unkknown + , (0xdab529f40e671a1d4bf91361c21bf9f0c9712ab7, 'BUSD', 18, 'Binance USD') --unkknown + , (0xc4Ce1D6F5D98D65eE25Cf85e9F2E9DcFEe6Cb5d6, 'crvUSD', 18, 'Curve USD') --unkknown + , (0x2e1ad108ff1d8c782fcbbb89aad783ac49586756, 'TUSD', 18, 'True USD') --unkknown + , (0x236eec6359fb44cce8f97e99387aa7f8cd5cde1f, 'USD+', 6, 'Overnight USD') --unkknown +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/polygon/tokens_polygon_schema.yml b/tokens/models/tokens/polygon/tokens_polygon_schema.yml index 5056c5f769e..88aa083647e 100644 --- a/tokens/models/tokens/polygon/tokens_polygon_schema.yml +++ b/tokens/models/tokens/polygon/tokens_polygon_schema.yml @@ -81,3 +81,25 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155' ] + + - name: tokens_polygon_erc20_stablecoins + meta: + blockchain: polygon + 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" + diff --git a/tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql b/tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql new file mode 100644 index 00000000000..78c242e1b80 --- /dev/null +++ b/tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql @@ -0,0 +1,17 @@ +{{ + config( + schema = 'tokens_scroll' + , alias = 'stablecoins' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals, name +FROM ( + VALUES + (0x06efdbff2a14a7c8e15944d1f4a48f9f95f663a4, 'USDC', 6, 'USD Coin') + , (0xf55bec9cafdbe8730f096aa55dad6d22d44099df, 'USDT', 6, 'Tether') + , (0xca77eb3fefe3725dc33bccb54edefc3d9f764f97, 'DAI', 18, 'Dai') + , (0xedeabc3a1e7d21fe835ffa6f83a710c70bb1a051, 'LUSD', 18, 'Liquidity USD') +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/scroll/tokens_scroll_schema.yml b/tokens/models/tokens/scroll/tokens_scroll_schema.yml index b59b397f529..4963b3e1d4d 100644 --- a/tokens/models/tokens/scroll/tokens_scroll_schema.yml +++ b/tokens/models/tokens/scroll/tokens_scroll_schema.yml @@ -19,3 +19,26 @@ models: description: "ERC20 token symbol" - name: decimals description: "Number of decimals, refers to how divisible an ERC20 token can be" + + - name: tokens_scroll_erc20_stablecoins + meta: + blockchain: scroll + 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" + + diff --git a/tokens/models/tokens/tron/tokens_tron_schema.yml b/tokens/models/tokens/tron/tokens_tron_schema.yml new file mode 100644 index 00000000000..a30e01d198e --- /dev/null +++ b/tokens/models/tokens/tron/tokens_tron_schema.yml @@ -0,0 +1,25 @@ +version: 2 + +models: + - name: tokens_tron_erc20_stablecoins + meta: + blockchain: tron + 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" + + diff --git a/tokens/models/tokens/tron/tokens_tron_trc20_stablecoins.sql b/tokens/models/tokens/tron/tokens_tron_trc20_stablecoins.sql new file mode 100644 index 00000000000..3070ceb339e --- /dev/null +++ b/tokens/models/tokens/tron/tokens_tron_trc20_stablecoins.sql @@ -0,0 +1,18 @@ +{{ + config( + schema = 'tokens_tron' + , alias = 'stablecoins' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals, name +FROM ( + VALUES + (0xa614f803b6fd780986a42c78ec9c7f77e6ded13c, 'USDT', 6, 'Tether') + , (0x94f24e992ca04b49c6f2a2753076ef8938ed4daa, 'USDD', 18, 'Decentralized USD') + , (0x3487b63d30b5b2c87fb7ffa8bcfade38eaac1abe, 'USDC', 6, 'USD Coin') + , (0xcebde71077b830b958c8da17bcddeeb85d0bcf25, 'TUSD', 18, 'TrueUSD') + , (0x83c91bfde3e6d130e286a3722f171ae49fb25047, 'BUSD', 18, 'Binance USD') +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql b/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql new file mode 100644 index 00000000000..dfb09b508c6 --- /dev/null +++ b/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql @@ -0,0 +1,18 @@ +{{ + config( + schema = 'tokens_zkevm' + , alias = 'stablecoins' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals, name +FROM ( + VALUES + (0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035, 'USDC', 6, 'USD Coin') + , (0x37eaa0ef3549a5bb7d431be78a3d99bd360d19e5, 'USDC', 6, 'USD Coin') + , (0x1e4a5963abfd975d8c9021ce480b42188849d41d, 'USDT', 6, 'Tether') + , (0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4, 'DAI', 18, 'Dai') + , (0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D, 'FRAX', 18, 'Frax') +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml index eb12ef55487..a98baaac43c 100644 --- a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml +++ b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml @@ -18,4 +18,27 @@ models: - name: symbol description: "ERC20 token symbol" - name: decimals - description: "Number of decimals, refers to how divisible an ERC20 token can be" \ No newline at end of file + description: "Number of decimals, refers to how divisible an ERC20 token can be" + + - name: tokens_zkevm_erc20_stablecoins + meta: + blockchain: zkevm + 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" + + diff --git a/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql b/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql new file mode 100644 index 00000000000..b173e5eb2f0 --- /dev/null +++ b/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql @@ -0,0 +1,17 @@ +{{ + config( + schema = 'tokens_zksync' + , alias = 'stablecoins' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals, name +FROM ( + VALUES + (0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4, 'USDC', 6, 'USD Coin') --native + , (0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4, 'USDC', 6, 'USD Coin') --bridged + , (0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656, 'DAI', 18, 'Dai') + , (0x503234F203fC7Eb888EEC8513210612a43Cf6115, 'LUSD', 18, 'LUSD') +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/zksync/tokens_zksync_schema.yml b/tokens/models/tokens/zksync/tokens_zksync_schema.yml index 4f73d366bea..4b61bf309ea 100644 --- a/tokens/models/tokens/zksync/tokens_zksync_schema.yml +++ b/tokens/models/tokens/zksync/tokens_zksync_schema.yml @@ -83,3 +83,26 @@ models: - unique - name: standard description: "The NFT standard erc721/erc1155/..." + + - name: tokens_zksync_erc20_stablecoins + meta: + blockchain: zksync + 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" + + From d9d17e7ae5b2d4b0093e03d687227f228273c175 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:32:40 -0400 Subject: [PATCH 02/19] Small fixes. --- .../celo/tokens_celo_erc20_stablecoins.sql | 6 +++--- tokens/models/tokens/tron/tokens_tron_schema.yml | 16 ++++++++-------- .../zkevm/tokens_zkevm_erc20_stablecoins.sql | 8 ++++---- .../zksync/tokens_zksync_erc20_stablecoins.sql | 6 +++--- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql b/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql index b2304ee48c3..583211509b7 100644 --- a/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql +++ b/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql @@ -13,7 +13,7 @@ FROM ( (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') + , (0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e, 'USDT', 6, 'Tether') --native + , (0x617f3112bf5397d0467d315cc709ef968d9ba546, 'USDT', 6, 'Tether') --bridged + , (0x765de816845861e75a25fca122bb6898b8b1282a, 'cUSD', 18, 'Celo Dollar') ) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/tron/tokens_tron_schema.yml b/tokens/models/tokens/tron/tokens_tron_schema.yml index a30e01d198e..91544952ab2 100644 --- a/tokens/models/tokens/tron/tokens_tron_schema.yml +++ b/tokens/models/tokens/tron/tokens_tron_schema.yml @@ -1,25 +1,25 @@ version: 2 models: - - name: tokens_tron_erc20_stablecoins + - name: tokens_tron_trc20_stablecoins meta: blockchain: tron sector: tokens - project: erc20 + project: trc20 contributors: thetroyharris config: - tags: [ 'table', 'erc20', 'stablecoins' ] - description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals" + tags: [ 'table', 'trc20', 'stablecoins' ] + description: "TRC20 Stablecoin Token Addresses, Symbols and Decimals" columns: - name: contract_address - description: "ERC20 stablecoin token contract address" + description: "TRC20 stablecoin token contract address" tests: - unique - name: symbol - description: "ERC20 stablecoin token symbol" + description: "TRC20 stablecoin token symbol" - name: decimals - description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be" + description: "Number of decimals, refers to how divisible an TRC20 stablecoin token can be" - name: name - description: "ERC20 stablecoin token name" + description: "TRC20 stablecoin token name" diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql b/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql index dfb09b508c6..97c6b476c57 100644 --- a/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql +++ b/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql @@ -11,8 +11,8 @@ SELECT contract_address, symbol, decimals, name FROM ( VALUES (0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035, 'USDC', 6, 'USD Coin') - , (0x37eaa0ef3549a5bb7d431be78a3d99bd360d19e5, 'USDC', 6, 'USD Coin') - , (0x1e4a5963abfd975d8c9021ce480b42188849d41d, 'USDT', 6, 'Tether') - , (0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4, 'DAI', 18, 'Dai') - , (0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D, 'FRAX', 18, 'Frax') + , (0x37eaa0ef3549a5bb7d431be78a3d99bd360d19e5, 'USDC', 6, 'USD Coin') + , (0x1e4a5963abfd975d8c9021ce480b42188849d41d, 'USDT', 6, 'Tether') + , (0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4, 'DAI', 18, 'Dai') + , (0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D, 'FRAX', 18, 'Frax') ) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql b/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql index b173e5eb2f0..262834f668f 100644 --- a/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql +++ b/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql @@ -11,7 +11,7 @@ SELECT contract_address, symbol, decimals, name FROM ( VALUES (0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4, 'USDC', 6, 'USD Coin') --native - , (0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4, 'USDC', 6, 'USD Coin') --bridged - , (0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656, 'DAI', 18, 'Dai') - , (0x503234F203fC7Eb888EEC8513210612a43Cf6115, 'LUSD', 18, 'LUSD') + , (0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4, 'USDC', 6, 'USD Coin') --bridged + , (0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656, 'DAI', 18, 'Dai') + , (0x503234F203fC7Eb888EEC8513210612a43Cf6115, 'LUSD', 18, 'LUSD') ) AS temp_table (contract_address, symbol, decimals, name) From 46ab050e2b3f94e99e46a63e65afd4c1016c0ded Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:36:05 -0400 Subject: [PATCH 03/19] Small fix. --- tokens/models/tokens/tron/tokens_tron_schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/models/tokens/tron/tokens_tron_schema.yml b/tokens/models/tokens/tron/tokens_tron_schema.yml index 91544952ab2..95b7e8bf534 100644 --- a/tokens/models/tokens/tron/tokens_tron_schema.yml +++ b/tokens/models/tokens/tron/tokens_tron_schema.yml @@ -1,7 +1,7 @@ version: 2 models: - - name: tokens_tron_trc20_stablecoins + - name: tokens_tron_trc20_stablecoins meta: blockchain: tron sector: tokens From 8ed69e22391c5fbdcc556dcf45e8cbe7ed57dfdb Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Sun, 16 Jun 2024 20:42:11 -0400 Subject: [PATCH 04/19] Small fix. --- .../tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql index 5d7b3291d50..fe1890d0df6 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql @@ -12,5 +12,5 @@ FROM ( VALUES (0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDC', 6, 'USD Coin') , (0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664, 'USDC', 6, 'USC Coin') --bridged - , (0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDT', 6, 'Tether') + , (0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7, 'USDT', 6, 'Tether') ) AS temp_table (contract_address, symbol, decimals, name) From f129a1547178fd2059a0c8062cb370b2556b658d Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:50:58 -0400 Subject: [PATCH 05/19] Agg spell create. --- .../tokens/tokens_erc20_stablecoins.sql | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 tokens/models/tokens/tokens_erc20_stablecoins.sql diff --git a/tokens/models/tokens/tokens_erc20_stablecoins.sql b/tokens/models/tokens/tokens_erc20_stablecoins.sql new file mode 100644 index 00000000000..206d23389c5 --- /dev/null +++ b/tokens/models/tokens/tokens_erc20_stablecoins.sql @@ -0,0 +1,47 @@ +{{ + config( + schema = 'tokens' + ,alias = 'erc20' + ,materialized = 'table' + ,post_hook='{{ expose_spells(\'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', + "sector", + "tokens", + \'["thetroyharris", "gentrexha", "dot2dotseurat", "msilb7", "lgingerich", "Henrystats"]\') }}' + ) +}} + +{% set static_models = { + 'tokens_arbitrum': {'blockchain': 'arbitrum', 'model': ref('tokens_arbitrum_erc20_stablecoins')} + ,'tokens_avalanche_c': {'blockchain': 'avalanche_c', 'model': ref('tokens_avalanche_c_erc20_stablecoins')} + ,'tokens_base': {'blockchain': 'base', 'model': ref('tokens_base_erc20_stablecoins')} + ,'tokens_blast': {'blockchain': 'blast', 'model': ref('tokens_blast_erc20_stablecoins')} + ,'tokens_bnb': {'blockchain': 'bnb', 'model': ref('tokens_bnb_bep20_stablecoins')} + ,'tokens_celo': {'blockchain': 'celo', 'model': ref('tokens_celo_erc20_stablecoins')} + ,'tokens_ethereum': {'blockchain': 'ethereum', 'model': ref('tokens_ethereum_erc20_stablecoins')} + ,'tokens_fantom': {'blockchain': 'fantom', 'model': ref('tokens_fantom_erc20_stablecoins')} + ,'tokens_gnosis': {'blockchain': 'gnosis', 'model': ref('tokens_gnosis_erc20_stablecoins')} + ,'tokens_optimism': {'blockchain': 'optimism', 'model': ref('tokens_optimism_erc20_stablecoins')} + ,'tokens_polygon': {'blockchain': 'polygon', 'model': ref('tokens_polygon_erc20_stablecoins')} + ,'tokens_scroll': {'blockchain': 'scroll', 'model': ref('tokens_scroll_erc20_stablecoins')} + ,'tokens_zkevm': {'blockchain': 'zkevm', 'model': ref('tokens_zkevm_erc20_stablecoins')} + ,'tokens_zksync': {'blockchain': 'zksync', 'model': ref('tokens_zksync_erc20_stablecoins')} + ,'tokens_linea': {'blockchain': 'linea', 'model': ref('tokens_linea_erc20_stablecoins')} + ,'tokens_tron': {'blockchain': 'tron', 'model': ref('tokens_tron_erc20_stablecoins')} +} %} + +SELECT * +FROM ( + {% for key, value in static_models.items() %} + SELECT + '{{ value.blockchain }}' AS blockchain + , contract_address + , symbol + , decimals + , name + FROM + {{ value.model }} + {% if not loop.last %} + union all + {% endif %} + {% endfor %} +) From fbc5ed10ec8d138e152eaa3886d9ede792f5c311 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:52:24 -0400 Subject: [PATCH 06/19] Agg spell fix. --- tokens/models/tokens/tokens_erc20_stablecoins.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/models/tokens/tokens_erc20_stablecoins.sql b/tokens/models/tokens/tokens_erc20_stablecoins.sql index 206d23389c5..b086191a763 100644 --- a/tokens/models/tokens/tokens_erc20_stablecoins.sql +++ b/tokens/models/tokens/tokens_erc20_stablecoins.sql @@ -26,7 +26,7 @@ ,'tokens_zkevm': {'blockchain': 'zkevm', 'model': ref('tokens_zkevm_erc20_stablecoins')} ,'tokens_zksync': {'blockchain': 'zksync', 'model': ref('tokens_zksync_erc20_stablecoins')} ,'tokens_linea': {'blockchain': 'linea', 'model': ref('tokens_linea_erc20_stablecoins')} - ,'tokens_tron': {'blockchain': 'tron', 'model': ref('tokens_tron_erc20_stablecoins')} + ,'tokens_tron': {'blockchain': 'tron', 'model': ref('tokens_tron_trc20_stablecoins')} } %} SELECT * From d36fab78ad6b83eac11044efd2c8ca10f5c6d6f7 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:01:31 -0400 Subject: [PATCH 07/19] Small fixes. --- .../tokens/tokens_erc20_stablecoins.sql | 6 ++--- tokens/models/tokens/tokens_schema.yml | 26 +++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/tokens/models/tokens/tokens_erc20_stablecoins.sql b/tokens/models/tokens/tokens_erc20_stablecoins.sql index b086191a763..a128b6c040d 100644 --- a/tokens/models/tokens/tokens_erc20_stablecoins.sql +++ b/tokens/models/tokens/tokens_erc20_stablecoins.sql @@ -1,9 +1,9 @@ {{ config( schema = 'tokens' - ,alias = 'erc20' - ,materialized = 'table' - ,post_hook='{{ expose_spells(\'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', + , alias = 'erc20_stablecoins' + , materialized = 'table' + , post_hook='{{ expose_spells(\'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', "sector", "tokens", \'["thetroyharris", "gentrexha", "dot2dotseurat", "msilb7", "lgingerich", "Henrystats"]\') }}' diff --git a/tokens/models/tokens/tokens_schema.yml b/tokens/models/tokens/tokens_schema.yml index 39a720d6628..575ce40d6c7 100644 --- a/tokens/models/tokens/tokens_schema.yml +++ b/tokens/models/tokens/tokens_schema.yml @@ -63,3 +63,29 @@ models: description: "NFT collection symbol" - name: standard description: "NFT collection standard" + + - name: tokens_erc20_stablecoins + meta: + blockchain: arbitrum, avalanche_c, base, blast, bnb, celo, ethereum, fantom, gnosis, optimism, polygon, scroll, zkevm, zksync, linea, tron + sector: tokens + contributors: thetroyharris, gentrexha, dot2dotseurat, msilb7, lgingerich, Henrystats + config: + tags: ['tokens', 'erc20', 'stablecoins'] + description: > + Crosschain ERC20 stablecoin tokens + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - blockchain + - contract_address + columns: + - name: contract_address + description: "ERC20 Stablecoin contract address" + - name: symbol + description: "ERC20 Stablecoin symbol" + - name: decimals + description: "ERC20 Stablecoin number of decimals" + - name: name + description: "ERC20 Stablecoin name" + + From 35d83bc5efa7d8d7afdc415b6a1d35423582e753 Mon Sep 17 00:00:00 2001 From: Huang Geyang Date: Tue, 18 Jun 2024 00:49:26 +0800 Subject: [PATCH 08/19] Update tokens/models/tokens/tokens_erc20_stablecoins.sql --- tokens/models/tokens/tokens_erc20_stablecoins.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tokens/models/tokens/tokens_erc20_stablecoins.sql b/tokens/models/tokens/tokens_erc20_stablecoins.sql index a128b6c040d..f924c6a6b4f 100644 --- a/tokens/models/tokens/tokens_erc20_stablecoins.sql +++ b/tokens/models/tokens/tokens_erc20_stablecoins.sql @@ -3,10 +3,10 @@ schema = 'tokens' , alias = 'erc20_stablecoins' , materialized = 'table' - , post_hook='{{ expose_spells(\'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', - "sector", - "tokens", - \'["thetroyharris", "gentrexha", "dot2dotseurat", "msilb7", "lgingerich", "Henrystats"]\') }}' + , post_hook='{{ expose_spells(blockchains = \'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', + spell_type = "sector", + spell_name = "tokens", + contributors = \'["thetroyharris", "gentrexha", "dot2dotseurat", "msilb7", "lgingerich", "Henrystats"]\') }}' ) }} From b00ce052fbf4f178c39f3bd629448f95d8e1c9ae Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:20:22 -0400 Subject: [PATCH 09/19] Update tokens_erc20_stablecoins.sql Change alias so the table would be `tokens.stablecoins` --- tokens/models/tokens/tokens_erc20_stablecoins.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/models/tokens/tokens_erc20_stablecoins.sql b/tokens/models/tokens/tokens_erc20_stablecoins.sql index f924c6a6b4f..083044a56df 100644 --- a/tokens/models/tokens/tokens_erc20_stablecoins.sql +++ b/tokens/models/tokens/tokens_erc20_stablecoins.sql @@ -1,7 +1,7 @@ {{ config( schema = 'tokens' - , alias = 'erc20_stablecoins' + , alias = 'stablecoins' , materialized = 'table' , post_hook='{{ expose_spells(blockchains = \'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', spell_type = "sector", From ae314b98a70030abf3a45b89c173ea3dd91745e5 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:25:23 -0400 Subject: [PATCH 10/19] Update tokens_schema.yml --- tokens/models/tokens/tokens_schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokens/models/tokens/tokens_schema.yml b/tokens/models/tokens/tokens_schema.yml index 575ce40d6c7..83e58e6f303 100644 --- a/tokens/models/tokens/tokens_schema.yml +++ b/tokens/models/tokens/tokens_schema.yml @@ -64,7 +64,7 @@ models: - name: standard description: "NFT collection standard" - - name: tokens_erc20_stablecoins + - name: tokens_stablecoins meta: blockchain: arbitrum, avalanche_c, base, blast, bnb, celo, ethereum, fantom, gnosis, optimism, polygon, scroll, zkevm, zksync, linea, tron sector: tokens From 4bbfd838c437b6589535b47e625b6ab655ee366f Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:28:32 -0400 Subject: [PATCH 11/19] Rename tokens_erc20_stablecoins.sql to tokens_stablecoins.sql --- .../{tokens_erc20_stablecoins.sql => tokens_stablecoins.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tokens/models/tokens/{tokens_erc20_stablecoins.sql => tokens_stablecoins.sql} (100%) diff --git a/tokens/models/tokens/tokens_erc20_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql similarity index 100% rename from tokens/models/tokens/tokens_erc20_stablecoins.sql rename to tokens/models/tokens/tokens_stablecoins.sql From 126214083fe1e77532ecad607ca2cbd1429414bc Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Mon, 17 Jun 2024 18:03:46 -0400 Subject: [PATCH 12/19] Saving changes to make spell a view. --- .../tokens/arbitrum/tokens_arbitrum_erc20.sql | 6 +++ .../tokens_arbitrum_erc20_stablecoins.sql | 18 -------- .../arbitrum/tokens_arbitrum_schema.yml | 21 --------- .../avalanche_c/tokens_avalanche_c_erc20.sql | 4 ++ .../tokens_avalanche_c_erc20_stablecoins.sql | 16 ------- .../avalanche_c/tokens_avalanche_c_schema.yml | 21 --------- .../models/tokens/base/tokens_base_erc20.sql | 5 +++ .../base/tokens_base_erc20_stablecoins.sql | 17 -------- .../models/tokens/base/tokens_base_schema.yml | 21 --------- .../tokens/blast/tokens_blast_erc20.sql | 15 +++++++ .../blast/tokens_blast_erc20_stablecoins.sql | 15 ------- .../tokens/blast/tokens_blast_schema.yml | 14 +++--- tokens/models/tokens/bnb/tokens_bnb_bep20.sql | 10 ++++- .../bnb/tokens_bnb_bep20_stablecoins.sql | 20 --------- .../models/tokens/bnb/tokens_bnb_schema.yml | 22 ---------- .../models/tokens/celo/tokens_celo_erc20.sql | 9 +++- .../celo/tokens_celo_erc20_stablecoins.sql | 19 -------- .../models/tokens/celo/tokens_celo_schema.yml | 23 +--------- .../tokens/ethereum/tokens_ethereum_erc20.sql | 31 +++++++++++++ .../tokens_ethereum_erc20_stablecoins.sql | 43 ------------------- .../ethereum/tokens_ethereum_schema.yml | 21 --------- .../tokens/fantom/tokens_fantom_schema.yml | 21 --------- .../tokens/gnosis/tokens_gnosis_schema.yml | 22 ---------- ...stablecoins.sql => tokens_linea_erc20.sql} | 0 .../tokens/linea/tokens_linea_schema.yml | 14 +++--- .../optimism/tokens_optimism_schema.yml | 30 ------------- .../tokens/polygon/tokens_polygon_schema.yml | 21 --------- .../tokens/scroll/tokens_scroll_schema.yml | 21 --------- tokens/models/tokens/tokens_stablecoins.sql | 4 +- .../models/tokens/tron/tokens_tron_schema.yml | 14 +++--- ..._stablecoins.sql => tokens_tron_trc20.sql} | 0 .../tokens/zkevm/tokens_zkevm_schema.yml | 21 --------- .../tokens/zksync/tokens_zksync_schema.yml | 43 ------------------- 33 files changed, 99 insertions(+), 483 deletions(-) delete mode 100644 tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql create mode 100644 tokens/models/tokens/blast/tokens_blast_erc20.sql delete mode 100644 tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql delete mode 100644 tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql rename tokens/models/tokens/linea/{tokens_linea_erc20_stablecoins.sql => tokens_linea_erc20.sql} (100%) rename tokens/models/tokens/tron/{tokens_tron_trc20_stablecoins.sql => tokens_tron_trc20.sql} (100%) diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql index 6068509c347..0c0a0e04873 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql @@ -79,4 +79,10 @@ FROM (VALUES , (0x323665443cef804a3b5206103304bd4872ea4253, 'USDV', 6) , (0x966570a84709d693463cdd69dcadb0121b2c9d26, 'taoUSD', 18) , (0x993614e1c8c9c5abe49462ce5702431978fd767f, 'S*ETH', 18) + + , (0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6) -- Native + , (0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'USDC', 6) -- Bridged + , (0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'USDT', 6) + , (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18) + , (0x17fc002b466eec40dae837fc4be5c67993ddbd6f, 'FRAX', 18) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql deleted file mode 100644 index a0627b0a879..00000000000 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql +++ /dev/null @@ -1,18 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml index 0264d360587..e9f0bc0af1b 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml @@ -82,25 +82,4 @@ models: - 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" - diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql index 150667ba16c..dcba947598f 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql @@ -363,4 +363,8 @@ FROM (VALUES , (0xfdfe62182f63000b58c70bdd39566dec89d4006c, 'JLP', 18) , (0xfebf47cf89f766e6c24317b17f862ba5d4d82f8c, 'ELP', 18) , (0xffa26cb3458023c4b78c3d10f8bef4704c2fd198, 'HAKU-LP', 18) + + , (0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDC', 6) + , (0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664, 'USDC', 6) --bridged + , (0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7, 'USDT', 6) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql deleted file mode 100644 index fe1890d0df6..00000000000 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql +++ /dev/null @@ -1,16 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml index a8205343e05..8992e51bc03 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml @@ -86,25 +86,4 @@ models: - 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" - diff --git a/tokens/models/tokens/base/tokens_base_erc20.sql b/tokens/models/tokens/base/tokens_base_erc20.sql index 330eebf97b7..8a2ad3fbaae 100644 --- a/tokens/models/tokens/base/tokens_base_erc20.sql +++ b/tokens/models/tokens/base/tokens_base_erc20.sql @@ -239,4 +239,9 @@ FROM (VALUES , (0x96419929d7949D6A801A6909c145C8EEf6A40431, 'SPEC', 18) , (0x7ab8ea5ef610f979e1c59fbd9da9284672e5a136, 'KABOSU', 18) , (0xd722e55c1d9d9fa0021a5215cbb904b92b3dc5d4, 'RDNT', 18) + + , (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 'USDC', 6) + , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6) + , (0x50c5725949a6f0c72e6c4a641f24049a917db0cb, 'DAI', 18) + , (0x4a3a6dd60a34bb2aba60d73b4c88315e9ceb6a3d, 'MIM', 18) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql b/tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql deleted file mode 100644 index ee0eb469183..00000000000 --- a/tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql +++ /dev/null @@ -1,17 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/base/tokens_base_schema.yml b/tokens/models/tokens/base/tokens_base_schema.yml index adcd963933c..fab6a9bc0e6 100644 --- a/tokens/models/tokens/base/tokens_base_schema.yml +++ b/tokens/models/tokens/base/tokens_base_schema.yml @@ -82,25 +82,4 @@ models: - 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" - diff --git a/tokens/models/tokens/blast/tokens_blast_erc20.sql b/tokens/models/tokens/blast/tokens_blast_erc20.sql new file mode 100644 index 00000000000..94871036805 --- /dev/null +++ b/tokens/models/tokens/blast/tokens_blast_erc20.sql @@ -0,0 +1,15 @@ +{{ + config( + schema = 'tokens_blast' + , alias = 'erc20' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals +FROM ( + VALUES + (0x4300000000000000000000000000000000000003, 'USDB', 18) + , (0x76da31d7c9cbeae102aff34d3398bc450c8374c1, 'MIM', 18) +) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql b/tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql deleted file mode 100644 index c493d21a154..00000000000 --- a/tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql +++ /dev/null @@ -1,15 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/blast/tokens_blast_schema.yml b/tokens/models/tokens/blast/tokens_blast_schema.yml index eff2f6e16b7..6c71deeae6e 100644 --- a/tokens/models/tokens/blast/tokens_blast_schema.yml +++ b/tokens/models/tokens/blast/tokens_blast_schema.yml @@ -1,25 +1,23 @@ version: 2 models: - - name: tokens_blast_erc20_stablecoins + - name: tokens_blast_erc20 meta: blockchain: blast sector: tokens project: erc20 contributors: thetroyharris config: - tags: [ 'table', 'erc20', 'stablecoins' ] - description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals" + tags: ['table', 'erc20', 'blast' ] + description: "ERC20 Token Addresses, Symbols and Decimals" columns: - name: contract_address - description: "ERC20 stablecoin token contract address" + description: "ERC20 token contract address" tests: - unique - name: symbol - description: "ERC20 stablecoin token symbol" + description: "ERC20 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" + description: "Number of decimals, refers to how divisible an ERC20 token can be" diff --git a/tokens/models/tokens/bnb/tokens_bnb_bep20.sql b/tokens/models/tokens/bnb/tokens_bnb_bep20.sql index 658e5a913fb..3bf0492ad02 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_bep20.sql +++ b/tokens/models/tokens/bnb/tokens_bnb_bep20.sql @@ -587,4 +587,12 @@ FROM (VALUES , (0x188738e1177a994fd3f1a1daa07c14e148ef03d0, 'CHOPIN', 18) , (0x1cebf8735c8d1365cb4c2117787dc811ea6148e0, 'DUSD', 18) , (0xefc41e176a20ae15c7c20da48d40d83d098845d8, 'SPRT', 18) -) AS temp_table (contract_address, symbol, decimals) \ No newline at end of file + + , (0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d, 'USDC', 18) + , (0x55d398326f99059ff775485246999027b3197955, 'USDT', 18) + , (0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3, 'DAI', 18) + , (0xd17479997F34dd9156Deef8F95A52D81D265be9c, 'USDD', 18) + , (0xe80772eaf6e2e18b651f160bc9158b2a5cafca65, 'USD+', 6) + , (0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094, 'PAX', 18) + , (0x8965349fb649a33a30cbfda057d8ec2c48abe2a2, 'USDC', 18) +) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql b/tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql deleted file mode 100644 index 9f8cd4af66b..00000000000 --- a/tokens/models/tokens/bnb/tokens_bnb_bep20_stablecoins.sql +++ /dev/null @@ -1,20 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/bnb/tokens_bnb_schema.yml b/tokens/models/tokens/bnb/tokens_bnb_schema.yml index b3bf670767f..5f05a731053 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_schema.yml +++ b/tokens/models/tokens/bnb/tokens_bnb_schema.yml @@ -82,25 +82,3 @@ models: - 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" - - diff --git a/tokens/models/tokens/celo/tokens_celo_erc20.sql b/tokens/models/tokens/celo/tokens_celo_erc20.sql index d1643cd1955..0007660c451 100644 --- a/tokens/models/tokens/celo/tokens_celo_erc20.sql +++ b/tokens/models/tokens/celo/tokens_celo_erc20.sql @@ -351,4 +351,11 @@ FROM (VALUES , (0x1a648004d8ab84ee34d2d1cd2f2a7a7828d6939f, 'MobLP-gauge', 18) , (0x3b07929950357629c7cb353ba298ed092ab51b2e, 'D2D', 18) , (0x653ead45a8c49c6d86b430fb742a5bff55bae53f, 'CPC02STG', 18) -) AS temp_table (contract_address, symbol, decimals) \ No newline at end of file + + , (0xceba9300f2b948710d2653dd7b07f33a8b32118c, 'USDC', 6) --native + , (0xef4229c8c3250c675f21bcefa42f58efbff6002a, 'USDC', 6) --bridged + , (0x37f750b7cc259a2f741af45294f6a16572cf5cad, 'USDC', 6) --bridged + , (0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e, 'USDT', 6) --native + , (0x617f3112bf5397d0467d315cc709ef968d9ba546, 'USDT', 6) --bridged + , (0x765de816845861e75a25fca122bb6898b8b1282a, 'cUSD', 18) +) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql b/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql deleted file mode 100644 index 583211509b7..00000000000 --- a/tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql +++ /dev/null @@ -1,19 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/celo/tokens_celo_schema.yml b/tokens/models/tokens/celo/tokens_celo_schema.yml index 2d64ac3b335..f7c991330d6 100644 --- a/tokens/models/tokens/celo/tokens_celo_schema.yml +++ b/tokens/models/tokens/celo/tokens_celo_schema.yml @@ -82,25 +82,4 @@ models: - 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" - - + diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql index f1f191477dc..869198e11f1 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql +++ b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql @@ -4565,4 +4565,35 @@ FROM (VALUES , ( 0x988567FE094570cCE1FFdA29D1f2d842B70492be, 'ZERO', 6) , ( 0x10dea67478c5f8c5e2d90e5e9b26dbe60c54d800, 'TAIKO', 18) , ( 0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b, 'syrupUSDC', 6) + + , (0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 'alUSD', 18) + , (0xd46ba6d942050d489dbd938a2c909a5d5039a161, 'AMPL', 9) + , (0x4fabb145d64652a948d72533023f6e7a623c7c53, 'BUSD', 18) + , (0x6b175474e89094c44da98b954eedeac495271d0f, 'DAI', 18) + , (0xdb25f211ab05b1c97d595516f45794528a807ad8, 'EURS', 18) + , (0x956f47f50a910163d8bf957cf5846d573e7f87ca, 'FEI', 18) + , (0x853d955acef822db058eb8505911ed77f175b99e, 'FRAX', 18) + , (0x056fd409e1d7a124bd7017459dfea2f387b6d5cd, 'GUSD', 2) + , (0xdf574c24545e5ffecb9a659c229253d4111d87e1, 'HUSD', 8) + , (0x5f98805A4E8be255a32880FDeC7F6728C6568bA0, 'LUSD', 18) + , (0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 'MIM', 18) + , (0xe2f2a5c287993345a840db3b0845fbc70f5935a5, 'MUSD', 18) + , (0x8e870d67f660d95d5be530380d0ec0bd388289e1, 'PAX', 18) + , (0x03ab458634910aad20ef5f1c8ee96f1d6ac54919, 'RAI', 18) + , (0x57Ab1ec28D129707052df4dF418D58a2D46d5f51, 'sUSD', 18) + , (0x57Ab1E02fEE23774580C119740129eAC7081e9D3, 'sUSD', 18) + , (0x0000000000085d4780b73119b644ae5ecd22b376, 'TUSD', 18) + , (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 'USDC', 6) + , (0x674c6ad92fd080e4004b2312b45f796a192d27a0, 'USDN', 18) + , (0x1456688345527bE1f37E9e627DA0837D6f08C925, 'USDP', 18) + , (0xdac17f958d2ee523a2206206994597c13d831ec7, 'USDT', 6) + , (0xa47c8bf37f92abed4a126bda807a7b7498661acd, 'UST', 18) + , (0xa693b19d2931d498c5b318df961919bb4aee87a5, 'UST', 6) + , (0xe07F9D810a48ab5c3c914BA3cA53AF14E4491e8A, 'GYD', 18) + , (0x4c9edd5852cd905f086c759e8383e09bff1e68b3, 'USDe', 18) + , (0xf939e0a03fb07f59a73314e73794be0e57ac1b4e, 'crvUSD',18) + , (0xc5f0f7b66764f6ec8c8dff7ba683102295e16409, 'FDUSD', 18) + , (0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, 'GHO', 18) + , (0x865377367054516e17014CcdED1e7d814EDC9ce4, 'DOLA', 18) + , (0x6c3ea9036406852006290770bedfcaba0e23a0e8, 'PYUSD', 6) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql b/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql deleted file mode 100644 index e859a882f6a..00000000000 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql +++ /dev/null @@ -1,43 +0,0 @@ -{{ config( - alias = 'stablecoins' - , tags=['static'] - , post_hook='{{ expose_spells(\'["ethereum"]\', - "sector", - "tokens_ethereum", - \'["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') - , (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) diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml b/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml index 9b65fc899af..93a1996fbac 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml +++ b/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml @@ -85,27 +85,6 @@ models: to be compatible with the common standards. Accepted values are presently standards represented. If you are adding a token with a new standard, remember to add it the accepted values list. - - name: tokens_ethereum_erc20_stablecoins - meta: - blockchain: ethereum - sector: tokens - project: erc20 - contributors: gentrexha, dot2dotseurat, 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" - - name: tokens_ethereum_nft_standards meta: blockchain: ethereum diff --git a/tokens/models/tokens/fantom/tokens_fantom_schema.yml b/tokens/models/tokens/fantom/tokens_fantom_schema.yml index 4d6b5f3eb00..e6b9e340888 100644 --- a/tokens/models/tokens/fantom/tokens_fantom_schema.yml +++ b/tokens/models/tokens/fantom/tokens_fantom_schema.yml @@ -86,27 +86,6 @@ models: to be compatible with the common standards. Accepted values are presently standards represented. If you are adding a token with a new standard, remember to add it the accepted values list. - - name: tokens_fantom_erc20_stablecoins - meta: - blockchain: fantom - sector: tokens - project: erc20 - contributors: Henrystats - 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" - - name: tokens_fantom_nft_standards meta: blockchain: fantom diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml index c3ea696d680..17acc54b603 100644 --- a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml +++ b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml @@ -87,25 +87,3 @@ models: - 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" - - diff --git a/tokens/models/tokens/linea/tokens_linea_erc20_stablecoins.sql b/tokens/models/tokens/linea/tokens_linea_erc20.sql similarity index 100% rename from tokens/models/tokens/linea/tokens_linea_erc20_stablecoins.sql rename to tokens/models/tokens/linea/tokens_linea_erc20.sql diff --git a/tokens/models/tokens/linea/tokens_linea_schema.yml b/tokens/models/tokens/linea/tokens_linea_schema.yml index df8bd5eb74e..0151e274a67 100644 --- a/tokens/models/tokens/linea/tokens_linea_schema.yml +++ b/tokens/models/tokens/linea/tokens_linea_schema.yml @@ -1,25 +1,23 @@ version: 2 models: - - name: tokens_linea_erc20_stablecoins + - name: tokens_linea_erc20 meta: blockchain: linea sector: tokens project: erc20 contributors: thetroyharris config: - tags: [ 'table', 'erc20', 'stablecoins' ] - description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals" + tags: [ 'table', 'erc20', 'linea' ] + description: "ERC20 Token Addresses, Symbols and Decimals" columns: - name: contract_address - description: "ERC20 stablecoin token contract address" + description: "ERC20 token contract address" tests: - unique - name: symbol - description: "ERC20 stablecoin token symbol" + description: "ERC20 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" + description: "Number of decimals, refers to how divisible an ERC20 token can be" diff --git a/tokens/models/tokens/optimism/tokens_optimism_schema.yml b/tokens/models/tokens/optimism/tokens_optimism_schema.yml index 6e8afb8c534..c42e73983ca 100644 --- a/tokens/models/tokens/optimism/tokens_optimism_schema.yml +++ b/tokens/models/tokens/optimism/tokens_optimism_schema.yml @@ -169,36 +169,6 @@ models: tests: - unique - - name: tokens_optimism_erc20_stablecoins - meta: - blockchain: optimism - sector: tokens - project: erc20 - contributors: msilb7 - config: - tags: [ 'table', 'erc20', 'stablecoins' ] - description: "Optimism ERC20 Stablecoin Token Addresses, Symbols, Decimals, and Information" - columns: - - name: contract_address - description: "ERC20 stablecoin token contract address" - tests: - - unique - - not_null - - 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" - - name: currency_peg - description: "What currency is the stablecoin pegged to" - - &reserve_type - name: reserve_type - description: "What is the type of backing for the stablecoin" - tests: - - accepted_values: - values: ['Crypto-Backed','Fiat-Backed','Algorithmic','Bridge-Backed'] - - name: tokens_optimism_nft_standards meta: blockchain: optimism diff --git a/tokens/models/tokens/polygon/tokens_polygon_schema.yml b/tokens/models/tokens/polygon/tokens_polygon_schema.yml index 88aa083647e..63dd6707977 100644 --- a/tokens/models/tokens/polygon/tokens_polygon_schema.yml +++ b/tokens/models/tokens/polygon/tokens_polygon_schema.yml @@ -82,24 +82,3 @@ models: - accepted_values: values: [ 'erc721', 'erc1155' ] - - name: tokens_polygon_erc20_stablecoins - meta: - blockchain: polygon - 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" - diff --git a/tokens/models/tokens/scroll/tokens_scroll_schema.yml b/tokens/models/tokens/scroll/tokens_scroll_schema.yml index 4963b3e1d4d..75c3a6001d3 100644 --- a/tokens/models/tokens/scroll/tokens_scroll_schema.yml +++ b/tokens/models/tokens/scroll/tokens_scroll_schema.yml @@ -20,25 +20,4 @@ models: - name: decimals description: "Number of decimals, refers to how divisible an ERC20 token can be" - - name: tokens_scroll_erc20_stablecoins - meta: - blockchain: scroll - 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" - diff --git a/tokens/models/tokens/tokens_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql index 083044a56df..1fd421b69e1 100644 --- a/tokens/models/tokens/tokens_stablecoins.sql +++ b/tokens/models/tokens/tokens_stablecoins.sql @@ -2,8 +2,8 @@ config( schema = 'tokens' , alias = 'stablecoins' - , materialized = 'table' - , post_hook='{{ expose_spells(blockchains = \'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea", "tron"]\', + , materialized = 'view' + , post_hook='{{ expose_spells(blockchains = \'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea","tron"]\', spell_type = "sector", spell_name = "tokens", contributors = \'["thetroyharris", "gentrexha", "dot2dotseurat", "msilb7", "lgingerich", "Henrystats"]\') }}' diff --git a/tokens/models/tokens/tron/tokens_tron_schema.yml b/tokens/models/tokens/tron/tokens_tron_schema.yml index 95b7e8bf534..3193a1eb79e 100644 --- a/tokens/models/tokens/tron/tokens_tron_schema.yml +++ b/tokens/models/tokens/tron/tokens_tron_schema.yml @@ -1,25 +1,23 @@ version: 2 models: - - name: tokens_tron_trc20_stablecoins + - name: tokens_tron_trc20 meta: blockchain: tron sector: tokens project: trc20 contributors: thetroyharris config: - tags: [ 'table', 'trc20', 'stablecoins' ] - description: "TRC20 Stablecoin Token Addresses, Symbols and Decimals" + tags: [ 'table', 'trc20', 'tron' ] + description: "TRC20 Token Addresses, Symbols and Decimals" columns: - name: contract_address - description: "TRC20 stablecoin token contract address" + description: "TRC20 token contract address" tests: - unique - name: symbol - description: "TRC20 stablecoin token symbol" + description: "TRC20 token symbol" - name: decimals - description: "Number of decimals, refers to how divisible an TRC20 stablecoin token can be" - - name: name - description: "TRC20 stablecoin token name" + description: "Number of decimals, refers to how divisible an TRC20 token can be" diff --git a/tokens/models/tokens/tron/tokens_tron_trc20_stablecoins.sql b/tokens/models/tokens/tron/tokens_tron_trc20.sql similarity index 100% rename from tokens/models/tokens/tron/tokens_tron_trc20_stablecoins.sql rename to tokens/models/tokens/tron/tokens_tron_trc20.sql diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml index a98baaac43c..ae5e0a4df86 100644 --- a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml +++ b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml @@ -20,25 +20,4 @@ models: - name: decimals description: "Number of decimals, refers to how divisible an ERC20 token can be" - - name: tokens_zkevm_erc20_stablecoins - meta: - blockchain: zkevm - 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" - diff --git a/tokens/models/tokens/zksync/tokens_zksync_schema.yml b/tokens/models/tokens/zksync/tokens_zksync_schema.yml index 4b61bf309ea..bcba4813260 100644 --- a/tokens/models/tokens/zksync/tokens_zksync_schema.yml +++ b/tokens/models/tokens/zksync/tokens_zksync_schema.yml @@ -1,25 +1,3 @@ -version: 2 - -models: - - name: tokens_zksync_erc20 - meta: - blockchain: zksync - sector: tokens - project: erc20 - contributors: lgingerich - config: - tags: ['table', 'erc20'] - description: "ERC20 Token Addresses, Symbols and Decimals" - columns: - - name: contract_address - description: "ERC20 token contract address" - tests: - - unique - - name: symbol - description: "ERC20 token symbol" - - name: decimals - description: "Number of decimals, refers to how divisible an ERC20 token can be" - - name: tokens_zksync_nft_curated meta: blockchain: zksync @@ -84,25 +62,4 @@ models: - name: standard description: "The NFT standard erc721/erc1155/..." - - name: tokens_zksync_erc20_stablecoins - meta: - blockchain: zksync - 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" - From 250f33c3eb9b7a52705a5ba4c3841b51c7ebe3c5 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:43:18 -0400 Subject: [PATCH 13/19] Rebuild as a highlevel view. --- .../tokens/arbitrum/tokens_arbitrum_erc20.sql | 1 - .../arbitrum/tokens_arbitrum_schema.yml | 2 +- .../avalanche_c/tokens_avalanche_c_erc20.sql | 1 - .../avalanche_c/tokens_avalanche_c_schema.yml | 2 +- .../models/tokens/base/tokens_base_erc20.sql | 1 - .../models/tokens/base/tokens_base_schema.yml | 2 +- tokens/models/tokens/bnb/tokens_bnb_bep20.sql | 1 - .../models/tokens/bnb/tokens_bnb_schema.yml | 2 +- .../models/tokens/celo/tokens_celo_erc20.sql | 1 - .../models/tokens/celo/tokens_celo_schema.yml | 2 +- .../tokens/ethereum/tokens_ethereum_erc20.sql | 1 - .../ethereum/tokens_ethereum_schema.yml | 2 +- .../tokens/fantom/tokens_fantom_erc20.sql | 13 + .../tokens_fantom_erc20_stablecoins.sql | 26 -- .../tokens/gnosis/tokens_gnosis_erc20.sql | 3 + .../tokens_gnosis_erc20_stablecoins.sql | 16 -- .../tokens/gnosis/tokens_gnosis_schema.yml | 2 +- .../tokens/linea/tokens_linea_erc20.sql | 14 +- .../optimism/tokens_optimism_schema.yml | 31 ++- .../tokens/polygon/tokens_polygon_erc20.sql | 9 + .../tokens_polygon_erc20_stablecoins.sql | 22 -- .../tokens/polygon/tokens_polygon_schema.yml | 2 +- .../tokens/scroll/tokens_scroll_erc20.sql | 2 +- .../tokens_scroll_erc20_stablecoins.sql | 17 -- tokens/models/tokens/tokens_schema.yml | 4 +- tokens/models/tokens/tokens_stablecoins.sql | 234 +++++++++++++++--- .../models/tokens/tron/tokens_tron_trc20.sql | 16 +- .../tokens/zkevm/tokens_zkevm_erc20.sql | 7 +- .../zkevm/tokens_zkevm_erc20_stablecoins.sql | 18 -- .../tokens/zkevm/tokens_zkevm_schema.yml | 2 +- .../tokens/zksync/tokens_zksync_erc20.sql | 4 + .../tokens_zksync_erc20_stablecoins.sql | 17 -- .../tokens/zksync/tokens_zksync_schema.yml | 24 +- 33 files changed, 312 insertions(+), 189 deletions(-) delete mode 100644 tokens/models/tokens/fantom/tokens_fantom_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql delete mode 100644 tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql index 0c0a0e04873..51f600e1325 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql @@ -79,7 +79,6 @@ FROM (VALUES , (0x323665443cef804a3b5206103304bd4872ea4253, 'USDV', 6) , (0x966570a84709d693463cdd69dcadb0121b2c9d26, 'taoUSD', 18) , (0x993614e1c8c9c5abe49462ce5702431978fd767f, 'S*ETH', 18) - , (0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6) -- Native , (0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'USDC', 6) -- Bridged , (0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'USDT', 6) diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml index e9f0bc0af1b..c03d1d905af 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml @@ -6,7 +6,7 @@ models: blockchain: arbitrum sector: tokens project: erc20 - contributors: soispoke, dot2dotseurat, mtitus6, maybeYonas + contributors: soispoke, dot2dotseurat, mtitus6, maybeYonas, thetroyharris config: tags: ['table', 'erc20'] description: "ERC20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql index 174bcdb5916..6e4d84f22cf 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20.sql @@ -368,7 +368,6 @@ FROM (VALUES , (0x60b78d111382036abc5eed987a709b07d52df9d3, 'COM-LP', 18) , (0xf0ed25fd26e0b64c86c6c78b661f2ef283e9b6ff, 'COM-LP', 18) , (0xf105fb50fc6ddd8a857bbecd296c8a630e8ca857, 'PGL', 18) - , (0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDC', 6) , (0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664, 'USDC', 6) --bridged , (0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7, 'USDT', 6) diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml index 8992e51bc03..46bdcf0fcad 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml @@ -6,7 +6,7 @@ models: blockchain: avalanche_c sector: tokens project: erc20 - contributors: 0xManny + contributors: 0xManny, thetroyharris config: tags: ['tokens', 'erc20', 'avalanche_c'] description: "ERC20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/base/tokens_base_erc20.sql b/tokens/models/tokens/base/tokens_base_erc20.sql index 8a2ad3fbaae..b016149ded5 100644 --- a/tokens/models/tokens/base/tokens_base_erc20.sql +++ b/tokens/models/tokens/base/tokens_base_erc20.sql @@ -239,7 +239,6 @@ FROM (VALUES , (0x96419929d7949D6A801A6909c145C8EEf6A40431, 'SPEC', 18) , (0x7ab8ea5ef610f979e1c59fbd9da9284672e5a136, 'KABOSU', 18) , (0xd722e55c1d9d9fa0021a5215cbb904b92b3dc5d4, 'RDNT', 18) - , (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 'USDC', 6) , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6) , (0x50c5725949a6f0c72e6c4a641f24049a917db0cb, 'DAI', 18) diff --git a/tokens/models/tokens/base/tokens_base_schema.yml b/tokens/models/tokens/base/tokens_base_schema.yml index fab6a9bc0e6..0bdc60ea372 100644 --- a/tokens/models/tokens/base/tokens_base_schema.yml +++ b/tokens/models/tokens/base/tokens_base_schema.yml @@ -6,7 +6,7 @@ models: blockchain: base sector: tokens project: erc20 - contributors: hildobby + contributors: hildobby, thetroyharris config: tags: ['table', 'erc20', 'base'] description: "All ERC20 Token Addresses on Base - with mapped Symbols and Decimals if known." diff --git a/tokens/models/tokens/bnb/tokens_bnb_bep20.sql b/tokens/models/tokens/bnb/tokens_bnb_bep20.sql index 3bf0492ad02..56c39260030 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_bep20.sql +++ b/tokens/models/tokens/bnb/tokens_bnb_bep20.sql @@ -587,7 +587,6 @@ FROM (VALUES , (0x188738e1177a994fd3f1a1daa07c14e148ef03d0, 'CHOPIN', 18) , (0x1cebf8735c8d1365cb4c2117787dc811ea6148e0, 'DUSD', 18) , (0xefc41e176a20ae15c7c20da48d40d83d098845d8, 'SPRT', 18) - , (0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d, 'USDC', 18) , (0x55d398326f99059ff775485246999027b3197955, 'USDT', 18) , (0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3, 'DAI', 18) diff --git a/tokens/models/tokens/bnb/tokens_bnb_schema.yml b/tokens/models/tokens/bnb/tokens_bnb_schema.yml index 5f05a731053..af1db8ac541 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_schema.yml +++ b/tokens/models/tokens/bnb/tokens_bnb_schema.yml @@ -6,7 +6,7 @@ models: blockchain: bnb sector: tokens project: bep20 - contributors: hildobby + contributors: hildobby, thetroyharris config: tags: ['tokens', 'metadata', 'bep20', 'bnb'] description: "BEP20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/celo/tokens_celo_erc20.sql b/tokens/models/tokens/celo/tokens_celo_erc20.sql index 0007660c451..e7e13e6ad80 100644 --- a/tokens/models/tokens/celo/tokens_celo_erc20.sql +++ b/tokens/models/tokens/celo/tokens_celo_erc20.sql @@ -351,7 +351,6 @@ FROM (VALUES , (0x1a648004d8ab84ee34d2d1cd2f2a7a7828d6939f, 'MobLP-gauge', 18) , (0x3b07929950357629c7cb353ba298ed092ab51b2e, 'D2D', 18) , (0x653ead45a8c49c6d86b430fb742a5bff55bae53f, 'CPC02STG', 18) - , (0xceba9300f2b948710d2653dd7b07f33a8b32118c, 'USDC', 6) --native , (0xef4229c8c3250c675f21bcefa42f58efbff6002a, 'USDC', 6) --bridged , (0x37f750b7cc259a2f741af45294f6a16572cf5cad, 'USDC', 6) --bridged diff --git a/tokens/models/tokens/celo/tokens_celo_schema.yml b/tokens/models/tokens/celo/tokens_celo_schema.yml index f7c991330d6..40074014a6d 100644 --- a/tokens/models/tokens/celo/tokens_celo_schema.yml +++ b/tokens/models/tokens/celo/tokens_celo_schema.yml @@ -6,7 +6,7 @@ models: blockchain: celo sector: tokens project: erc20 - contributors: hosuke + contributors: hosuke, thetroyharris config: tags: ['table', 'erc20', 'celo'] description: "All ERC20 Token Addresses on Celo - with mapped Symbols and Decimals if known." diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql index 869198e11f1..1d506732869 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql +++ b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql @@ -4565,7 +4565,6 @@ FROM (VALUES , ( 0x988567FE094570cCE1FFdA29D1f2d842B70492be, 'ZERO', 6) , ( 0x10dea67478c5f8c5e2d90e5e9b26dbe60c54d800, 'TAIKO', 18) , ( 0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b, 'syrupUSDC', 6) - , (0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 'alUSD', 18) , (0xd46ba6d942050d489dbd938a2c909a5d5039a161, 'AMPL', 9) , (0x4fabb145d64652a948d72533023f6e7a623c7c53, 'BUSD', 18) diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml b/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml index 93a1996fbac..89c0f82a22c 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml +++ b/tokens/models/tokens/ethereum/tokens_ethereum_schema.yml @@ -6,7 +6,7 @@ models: blockchain: ethereum sector: tokens project: erc20 - contributors: soispoke, dot2dotseurat + contributors: soispoke, dot2dotseurat, gentrexha, thetroyharris config: tags: ['table', 'erc20'] description: "ERC20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/fantom/tokens_fantom_erc20.sql b/tokens/models/tokens/fantom/tokens_fantom_erc20.sql index 7406d31901c..935e08a8a37 100644 --- a/tokens/models/tokens/fantom/tokens_fantom_erc20.sql +++ b/tokens/models/tokens/fantom/tokens_fantom_erc20.sql @@ -166,4 +166,17 @@ FROM (VALUES , (0xe8cea5f5098b237bc8291dca2694db2f503f08da, 'oft_fuse_VOLT', 18) , (0x50799f9c292e800780d339d17e1f664eb04ff126, 'oft_fuse_sFUSE', 18) , (0x8b6f1c276410d8bac84d8ed587cc0f9d30f52ee2, 'oft_arbitrum_GRAI', 18) + , (0xc54A1684fD1bef1f077a336E6be4Bd9a3096a6Ca, '2SHARES', 18) + , (0x04068DA6C83AFCFA0e13ba15A6696662335D5B75, 'USDC', 6) + , (0x049d68029688eAbF473097a2fC38ef61633A3C7A, 'fUSDT', 6) + , (0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E, 'DAI', 18) + , (0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355, 'FRAX', 18) + , (0xAd84341756Bf337f5a0164515b1f6F993D194E1f, 'FUSD', 18) + , (0x7a6e4E3CC2ac9924605DCa4bA31d1831c84b44aE, '2OMB', 18) + , (0x846e4D51d7E2043C1a87E0Ab7490B93FB940357b, 'UST', 6) + , (0x87a5C9B60A3aaf1064006FE64285018e50e0d020, 'MAGIK', 18) + , (0x9879aBDea01a879644185341F7aF7d8343556B7a, 'TUSD', 18) + , (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18), + , (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18), + , (0xb9D62c829fbF7eAff1EbA4E50F3D0480b66c1748, 'PDO', 18) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/fantom/tokens_fantom_erc20_stablecoins.sql b/tokens/models/tokens/fantom/tokens_fantom_erc20_stablecoins.sql deleted file mode 100644 index 5b58d18f6ff..00000000000 --- a/tokens/models/tokens/fantom/tokens_fantom_erc20_stablecoins.sql +++ /dev/null @@ -1,26 +0,0 @@ -{{ config( - alias = 'stablecoins' - , tags=['static'] - , post_hook='{{ expose_spells(\'["fantom"]\', - "sector", - "tokens_fantom", - \'["Henrystats"]\') }}' - ) -}} - -SELECT contract_address, symbol, decimals, name -FROM (VALUES - (0xc54A1684fD1bef1f077a336E6be4Bd9a3096a6Ca, '2SHARES', 18, '2SHARE'), - (0x04068DA6C83AFCFA0e13ba15A6696662335D5B75, 'USDC', 6, 'USD Coin'), - (0x049d68029688eAbF473097a2fC38ef61633A3C7A, 'fUSDT', 6, 'Frapped USDT'), - (0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E, 'DAI', 18, 'Dai Stablecoin'), - (0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355, 'FRAX', 18, 'Frax'), - (0xAd84341756Bf337f5a0164515b1f6F993D194E1f, 'FUSD', 18, 'Fantom Foundation USD'), - (0x7a6e4E3CC2ac9924605DCa4bA31d1831c84b44aE, '2OMB', 18, '2omb Token'), - (0x846e4D51d7E2043C1a87E0Ab7490B93FB940357b, 'UST', 6, 'UST (Wormhole)'), - (0x87a5C9B60A3aaf1064006FE64285018e50e0d020, 'MAGIK', 18, 'Magik'), - (0x9879aBDea01a879644185341F7aF7d8343556B7a, 'TUSD', 18, 'TrueUSD'), - (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18, 'pDollar Share'), - (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18, 'L3USD'), - (0xb9D62c829fbF7eAff1EbA4E50F3D0480b66c1748, 'PDO', 18, 'pDollar') - ) AS temp_table (contract_address, symbol, decimals, name) \ No newline at end of file diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_erc20.sql b/tokens/models/tokens/gnosis/tokens_gnosis_erc20.sql index 45a84963bc3..aab171e9a59 100644 --- a/tokens/models/tokens/gnosis/tokens_gnosis_erc20.sql +++ b/tokens/models/tokens/gnosis/tokens_gnosis_erc20.sql @@ -7795,4 +7795,7 @@ FROM (VALUES , ( 0x270ba1f35d8b87510d24f693fccc0da02e6e4eeb, 'stataGnoUSDC', 6) , ( 0x1a8805194d0ef2f73045a00c70da399d9e74221c, 'GNOBBY', 18) , ( 0xF4F3c1666E750E014DE65c50d0e98B1263E678B8, 'SLX', 18) + , (0xddafbb505ad214d7b80b1f830fccc89b60fb7a83, 'USDC', 6) + , (0x4ecaba5870353805a9f068101a40e0f32ed605c6, 'USDT', 6) + , (0xe91d153e0b41518a2ce8dd3d7944fa863463a97d, 'WXDAI', 18) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql b/tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql deleted file mode 100644 index 1305333babc..00000000000 --- a/tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql +++ /dev/null @@ -1,16 +0,0 @@ -{{ - 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) diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml index 17acc54b603..0cfdc3f3646 100644 --- a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml +++ b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml @@ -6,7 +6,7 @@ models: blockchain: gnosis sector: tokens project: erc20 - contributors: hildobby + contributors: hildobby, thetroyharris config: tags: ['table', 'metadata', 'gnosis', 'erc20'] description: "ERC20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/linea/tokens_linea_erc20.sql b/tokens/models/tokens/linea/tokens_linea_erc20.sql index 44cd77300c8..6b03dbe891d 100644 --- a/tokens/models/tokens/linea/tokens_linea_erc20.sql +++ b/tokens/models/tokens/linea/tokens_linea_erc20.sql @@ -1,7 +1,7 @@ {{ config( schema = 'tokens_linea' - , alias = 'stablecoins' + , alias = 'erc20' , tags = ['static'] , materialized = 'table' ) @@ -10,10 +10,10 @@ SELECT contract_address, symbol, decimals, name FROM ( VALUES - (0x176211869ca2b568f2a7d4ee941e073a821ee1ff, 'USDC', 6, 'USD Coin') --bridged - , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6, 'Overnight USD') - , (0xA219439258ca9da29E9Cc4cE5596924745e12B93, 'USDT', 6, 'Tether') - , (0x4af15ec2a0bd43db75dd04e62faa3b8ef36b00d5, 'DAI', 18, 'Dai') - , (0xd2bc272EA0154A93bf00191c8a1DB23E67643EC5, 'USDP', 18, 'Pax Dollar') - , (0xDD3B8084AF79B9BaE3D1b668c0De08CCC2C9429A, 'MIM', 18, 'Magic Internet Money') + (0x176211869ca2b568f2a7d4ee941e073a821ee1ff, 'USDC', 6) --bridged + , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6) + , (0xA219439258ca9da29E9Cc4cE5596924745e12B93, 'USDT', 6) + , (0x4af15ec2a0bd43db75dd04e62faa3b8ef36b00d5, 'DAI', 18) + , (0xd2bc272EA0154A93bf00191c8a1DB23E67643EC5, 'USDP', 18) + , (0xDD3B8084AF79B9BaE3D1b668c0De08CCC2C9429A, 'MIM', 18) ) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/optimism/tokens_optimism_schema.yml b/tokens/models/tokens/optimism/tokens_optimism_schema.yml index c42e73983ca..935929cb2d0 100644 --- a/tokens/models/tokens/optimism/tokens_optimism_schema.yml +++ b/tokens/models/tokens/optimism/tokens_optimism_schema.yml @@ -169,6 +169,36 @@ models: tests: - unique + - name: tokens_optimism_erc20_stablecoins + meta: + blockchain: optimism + sector: tokens + project: erc20 + contributors: msilb7 + config: + tags: [ 'table', 'erc20', 'stablecoins' ] + description: "Optimism ERC20 Stablecoin Token Addresses, Symbols, Decimals, and Information" + columns: + - name: contract_address + description: "ERC20 stablecoin token contract address" + tests: + - unique + - not_null + - 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" + - name: currency_peg + description: "What currency is the stablecoin pegged to" + - &reserve_type + name: reserve_type + description: "What is the type of backing for the stablecoin" + tests: + - accepted_values: + values: ['Crypto-Backed','Fiat-Backed','Algorithmic','Bridge-Backed'] + - name: tokens_optimism_nft_standards meta: blockchain: optimism @@ -211,4 +241,3 @@ models: description: "Percent Royalty in decimal form (i.e. 0.01 = 1% royalty)" - name: platform description: "Where was the NFT minted" - diff --git a/tokens/models/tokens/polygon/tokens_polygon_erc20.sql b/tokens/models/tokens/polygon/tokens_polygon_erc20.sql index aeb41337634..2d682b5688c 100644 --- a/tokens/models/tokens/polygon/tokens_polygon_erc20.sql +++ b/tokens/models/tokens/polygon/tokens_polygon_erc20.sql @@ -45,4 +45,13 @@ FROM (VALUES , (0x5d0270967bab81d0822e500b986cb6652186eaa9, 'AUC02', 18) , (0xc3323b6e71925b25943fb7369ee6769837e9c676, 'PORIGON', 18) , (0x365e13f973bd62024be8a70a225684c58baad03c, 'MPM', 18) + , (0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359, 'USDC', 6) --native + , (0x2791bca1f2de4661ed88a30c99a7a9449aa84174, 'USDC', 6) --bridged + , (0xc2132d05d31c914a87c6611c10748aeb04b58e8f, 'USDT', 6) --unkknown + , (0x8f3cf7ad23cd3cadbd9735aff958023239c6a063, 'DAI', 18) --unkknown + , (0x45c32fa6df82ead1e2ef74d17b76547eddfaff89, 'FRAX', 18) --unkknown + , (0xdab529f40e671a1d4bf91361c21bf9f0c9712ab7, 'BUSD', 18) --unkknown + , (0xc4Ce1D6F5D98D65eE25Cf85e9F2E9DcFEe6Cb5d6, 'crvUSD', 18) --unkknown + , (0x2e1ad108ff1d8c782fcbbb89aad783ac49586756, 'TUSD', 18) --unkknown + , (0x236eec6359fb44cce8f97e99387aa7f8cd5cde1f, 'USD+', 6) --unkknown ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql b/tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql deleted file mode 100644 index 842b6feafc4..00000000000 --- a/tokens/models/tokens/polygon/tokens_polygon_erc20_stablecoins.sql +++ /dev/null @@ -1,22 +0,0 @@ -{{ - config( - schema = 'tokens_polygon' - , alias = 'stablecoins' - , tags = ['static'] - , materialized = 'table' - ) -}} - -SELECT contract_address, symbol, decimals, name -FROM ( - VALUES - (0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359, 'USDC', 6, 'USD Coin') --native - , (0x2791bca1f2de4661ed88a30c99a7a9449aa84174, 'USDC', 6, 'USD Coin') --bridged - , (0xc2132d05d31c914a87c6611c10748aeb04b58e8f, 'USDT', 6, 'Tether') --unkknown - , (0x8f3cf7ad23cd3cadbd9735aff958023239c6a063, 'DAI', 18, 'Dai') --unkknown - , (0x45c32fa6df82ead1e2ef74d17b76547eddfaff89, 'FRAX', 18, 'Frax') --unkknown - , (0xdab529f40e671a1d4bf91361c21bf9f0c9712ab7, 'BUSD', 18, 'Binance USD') --unkknown - , (0xc4Ce1D6F5D98D65eE25Cf85e9F2E9DcFEe6Cb5d6, 'crvUSD', 18, 'Curve USD') --unkknown - , (0x2e1ad108ff1d8c782fcbbb89aad783ac49586756, 'TUSD', 18, 'True USD') --unkknown - , (0x236eec6359fb44cce8f97e99387aa7f8cd5cde1f, 'USD+', 6, 'Overnight USD') --unkknown -) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/polygon/tokens_polygon_schema.yml b/tokens/models/tokens/polygon/tokens_polygon_schema.yml index 63dd6707977..4d46defbe25 100644 --- a/tokens/models/tokens/polygon/tokens_polygon_schema.yml +++ b/tokens/models/tokens/polygon/tokens_polygon_schema.yml @@ -6,7 +6,7 @@ models: blockchain: polygon sector: tokens project: erc20 - contributors: sohwak, rantum + contributors: sohwak, rantum, thetroyharris config: tags: ['table', 'metadata', 'erc20', 'polygon'] description: "ERC20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/scroll/tokens_scroll_erc20.sql b/tokens/models/tokens/scroll/tokens_scroll_erc20.sql index 61bdbe0aba7..2faf4490487 100644 --- a/tokens/models/tokens/scroll/tokens_scroll_erc20.sql +++ b/tokens/models/tokens/scroll/tokens_scroll_erc20.sql @@ -25,4 +25,4 @@ FROM (VALUES , (0x608ef9a3bffe206b86c3108218003b3cfbf99c84, 'KNC', 18) , (0x79379c0e09a41d7978f883a56246290ee9a8c4d3, 'AAVE', 18) , (0x5300000000000000000000000000000000000004, 'WETH', 18) -) AS temp_table (contract_address, symbol, decimals) \ No newline at end of file +) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql b/tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql deleted file mode 100644 index 78c242e1b80..00000000000 --- a/tokens/models/tokens/scroll/tokens_scroll_erc20_stablecoins.sql +++ /dev/null @@ -1,17 +0,0 @@ -{{ - config( - schema = 'tokens_scroll' - , alias = 'stablecoins' - , tags = ['static'] - , materialized = 'table' - ) -}} - -SELECT contract_address, symbol, decimals, name -FROM ( - VALUES - (0x06efdbff2a14a7c8e15944d1f4a48f9f95f663a4, 'USDC', 6, 'USD Coin') - , (0xf55bec9cafdbe8730f096aa55dad6d22d44099df, 'USDT', 6, 'Tether') - , (0xca77eb3fefe3725dc33bccb54edefc3d9f764f97, 'DAI', 18, 'Dai') - , (0xedeabc3a1e7d21fe835ffa6f83a710c70bb1a051, 'LUSD', 18, 'Liquidity USD') -) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/tokens_schema.yml b/tokens/models/tokens/tokens_schema.yml index f16d6917f58..e4a883cdd96 100644 --- a/tokens/models/tokens/tokens_schema.yml +++ b/tokens/models/tokens/tokens_schema.yml @@ -66,7 +66,7 @@ models: - name: tokens_stablecoins meta: - blockchain: arbitrum, avalanche_c, base, blast, bnb, celo, ethereum, fantom, gnosis, optimism, polygon, scroll, zkevm, zksync, linea, tron + blockchain: arbitrum, avalanche_c, base, blast, bnb, celo, ethereum, fantom, gnosis, linea, optimism, polygon, scroll, tron, zkevm, zksync sector: tokens contributors: thetroyharris, gentrexha, dot2dotseurat, msilb7, lgingerich, Henrystats config: @@ -85,7 +85,5 @@ models: description: "ERC20 Stablecoin symbol" - name: decimals description: "ERC20 Stablecoin number of decimals" - - name: name - description: "ERC20 Stablecoin name" diff --git a/tokens/models/tokens/tokens_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql index 1fd421b69e1..14829f218d7 100644 --- a/tokens/models/tokens/tokens_stablecoins.sql +++ b/tokens/models/tokens/tokens_stablecoins.sql @@ -3,45 +3,209 @@ schema = 'tokens' , alias = 'stablecoins' , materialized = 'view' - , post_hook='{{ expose_spells(blockchains = \'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","optimism","polygon","scroll","zkevm","zksync","linea","tron"]\', + , post_hook='{{ expose_spells(blockchains = \'["arbitrum","avalanche_c","base","blast","bnb","celo","ethereum","fantom","gnosis","linea","optimism","polygon","scroll","tron","zkevm","zksync"]\', spell_type = "sector", spell_name = "tokens", contributors = \'["thetroyharris", "gentrexha", "dot2dotseurat", "msilb7", "lgingerich", "Henrystats"]\') }}' ) }} -{% set static_models = { - 'tokens_arbitrum': {'blockchain': 'arbitrum', 'model': ref('tokens_arbitrum_erc20_stablecoins')} - ,'tokens_avalanche_c': {'blockchain': 'avalanche_c', 'model': ref('tokens_avalanche_c_erc20_stablecoins')} - ,'tokens_base': {'blockchain': 'base', 'model': ref('tokens_base_erc20_stablecoins')} - ,'tokens_blast': {'blockchain': 'blast', 'model': ref('tokens_blast_erc20_stablecoins')} - ,'tokens_bnb': {'blockchain': 'bnb', 'model': ref('tokens_bnb_bep20_stablecoins')} - ,'tokens_celo': {'blockchain': 'celo', 'model': ref('tokens_celo_erc20_stablecoins')} - ,'tokens_ethereum': {'blockchain': 'ethereum', 'model': ref('tokens_ethereum_erc20_stablecoins')} - ,'tokens_fantom': {'blockchain': 'fantom', 'model': ref('tokens_fantom_erc20_stablecoins')} - ,'tokens_gnosis': {'blockchain': 'gnosis', 'model': ref('tokens_gnosis_erc20_stablecoins')} - ,'tokens_optimism': {'blockchain': 'optimism', 'model': ref('tokens_optimism_erc20_stablecoins')} - ,'tokens_polygon': {'blockchain': 'polygon', 'model': ref('tokens_polygon_erc20_stablecoins')} - ,'tokens_scroll': {'blockchain': 'scroll', 'model': ref('tokens_scroll_erc20_stablecoins')} - ,'tokens_zkevm': {'blockchain': 'zkevm', 'model': ref('tokens_zkevm_erc20_stablecoins')} - ,'tokens_zksync': {'blockchain': 'zksync', 'model': ref('tokens_zksync_erc20_stablecoins')} - ,'tokens_linea': {'blockchain': 'linea', 'model': ref('tokens_linea_erc20_stablecoins')} - ,'tokens_tron': {'blockchain': 'tron', 'model': ref('tokens_tron_trc20_stablecoins')} -} %} +SELECT contract_address, symbol, decimals, 'arbitrum' AS blockchain +FROM (VALUES + (0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6) -- Native + , (0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'USDC', 6) -- Bridged + , (0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'USDT', 6) + , (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18) + , (0x17fc002b466eec40dae837fc4be5c67993ddbd6f, 'FRAX', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'avalanche_c' AS blockchain +FROM (VALUES + (0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDC', 6) + , (0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664, 'USDC', 6) --bridged + , (0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7, 'USDT', 6) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'base' AS blockchain +FROM (VALUES + (0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 'USDC', 6) + , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6) + , (0x50c5725949a6f0c72e6c4a641f24049a917db0cb, 'DAI', 18) + , (0x4a3a6dd60a34bb2aba60d73b4c88315e9ceb6a3d, 'MIM', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'blast' AS blockchain +FROM (VALUES + (0x4300000000000000000000000000000000000003, 'USDB', 18) + , (0x76da31d7c9cbeae102aff34d3398bc450c8374c1, 'MIM', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'bnb' AS blockchain +FROM (VALUES + (0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d, 'USDC', 18) + , (0x55d398326f99059ff775485246999027b3197955, 'USDT', 18) + , (0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3, 'DAI', 18) + , (0xd17479997F34dd9156Deef8F95A52D81D265be9c, 'USDD', 18) + , (0xe80772eaf6e2e18b651f160bc9158b2a5cafca65, 'USD+', 6) + , (0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094, 'PAX', 18) + , (0x8965349fb649a33a30cbfda057d8ec2c48abe2a2, 'USDC', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'celo' AS blockchain +FROM (VALUES + (0xceba9300f2b948710d2653dd7b07f33a8b32118c, 'USDC', 6) --native + , (0xef4229c8c3250c675f21bcefa42f58efbff6002a, 'USDC', 6) --bridged + , (0x37f750b7cc259a2f741af45294f6a16572cf5cad, 'USDC', 6) --bridged + , (0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e, 'USDT', 6) --native + , (0x617f3112bf5397d0467d315cc709ef968d9ba546, 'USDT', 6) --bridged + , (0x765de816845861e75a25fca122bb6898b8b1282a, 'cUSD', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'ethereum' AS blockchain +FROM (VALUES + (0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 'alUSD', 18) + , (0xd46ba6d942050d489dbd938a2c909a5d5039a161, 'AMPL', 9) + , (0x4fabb145d64652a948d72533023f6e7a623c7c53, 'BUSD', 18) + , (0x6b175474e89094c44da98b954eedeac495271d0f, 'DAI', 18) + , (0xdb25f211ab05b1c97d595516f45794528a807ad8, 'EURS', 18) + , (0x956f47f50a910163d8bf957cf5846d573e7f87ca, 'FEI', 18) + , (0x853d955acef822db058eb8505911ed77f175b99e, 'FRAX', 18) + , (0x056fd409e1d7a124bd7017459dfea2f387b6d5cd, 'GUSD', 2) + , (0xdf574c24545e5ffecb9a659c229253d4111d87e1, 'HUSD', 8) + , (0x5f98805A4E8be255a32880FDeC7F6728C6568bA0, 'LUSD', 18) + , (0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 'MIM', 18) + , (0xe2f2a5c287993345a840db3b0845fbc70f5935a5, 'MUSD', 18) + , (0x8e870d67f660d95d5be530380d0ec0bd388289e1, 'PAX', 18) + , (0x03ab458634910aad20ef5f1c8ee96f1d6ac54919, 'RAI', 18) + , (0x57Ab1ec28D129707052df4dF418D58a2D46d5f51, 'sUSD', 18) + , (0x57Ab1E02fEE23774580C119740129eAC7081e9D3, 'sUSD', 18) + , (0x0000000000085d4780b73119b644ae5ecd22b376, 'TUSD', 18) + , (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 'USDC', 6) + , (0x674c6ad92fd080e4004b2312b45f796a192d27a0, 'USDN', 18) + , (0x1456688345527bE1f37E9e627DA0837D6f08C925, 'USDP', 18) + , (0xdac17f958d2ee523a2206206994597c13d831ec7, 'USDT', 6) + , (0xa47c8bf37f92abed4a126bda807a7b7498661acd, 'UST', 18) + , (0xa693b19d2931d498c5b318df961919bb4aee87a5, 'UST', 6) + , (0xe07F9D810a48ab5c3c914BA3cA53AF14E4491e8A, 'GYD', 18) + , (0x4c9edd5852cd905f086c759e8383e09bff1e68b3, 'USDe', 18) + , (0xf939e0a03fb07f59a73314e73794be0e57ac1b4e, 'crvUSD',18) + , (0xc5f0f7b66764f6ec8c8dff7ba683102295e16409, 'FDUSD', 18) + , (0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, 'GHO', 18) + , (0x865377367054516e17014CcdED1e7d814EDC9ce4, 'DOLA', 18) + , (0x6c3ea9036406852006290770bedfcaba0e23a0e8, 'PYUSD', 6) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'fantom' AS blockchain +FROM (VALUES + (0xc54A1684fD1bef1f077a336E6be4Bd9a3096a6Ca, '2SHARES', 18) + , (0x04068DA6C83AFCFA0e13ba15A6696662335D5B75, 'USDC', 6) + , (0x049d68029688eAbF473097a2fC38ef61633A3C7A, 'fUSDT', 6) + , (0x8D11eC38a3EB5E956B052f67Da8Bdc9bef8Abf3E, 'DAI', 18) + , (0xdc301622e621166BD8E82f2cA0A26c13Ad0BE355, 'FRAX', 18) + , (0xAd84341756Bf337f5a0164515b1f6F993D194E1f, 'FUSD', 18) + , (0x7a6e4E3CC2ac9924605DCa4bA31d1831c84b44aE, '2OMB', 18) + , (0x846e4D51d7E2043C1a87E0Ab7490B93FB940357b, 'UST', 6) + , (0x87a5C9B60A3aaf1064006FE64285018e50e0d020, 'MAGIK', 18) + , (0x9879aBDea01a879644185341F7aF7d8343556B7a, 'TUSD', 18) + , (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18), + , (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18), + , (0xb9D62c829fbF7eAff1EbA4E50F3D0480b66c1748, 'PDO', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'gnosis' AS blockchain +FROM (VALUES + (0xddafbb505ad214d7b80b1f830fccc89b60fb7a83, 'USDC', 6) + , (0x4ecaba5870353805a9f068101a40e0f32ed605c6, 'USDT', 6) + , (0xe91d153e0b41518a2ce8dd3d7944fa863463a97d, 'WXDAI', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'linea' AS blockchain +FROM (VALUES + (0x176211869ca2b568f2a7d4ee941e073a821ee1ff, 'USDC', 6, 'USD Coin') --bridged + , (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6, 'Overnight USD') + , (0xA219439258ca9da29E9Cc4cE5596924745e12B93, 'USDT', 6, 'Tether') + , (0x4af15ec2a0bd43db75dd04e62faa3b8ef36b00d5, 'DAI', 18, 'Dai') + , (0xd2bc272EA0154A93bf00191c8a1DB23E67643EC5, 'USDP', 18, 'Pax Dollar') + , (0xDD3B8084AF79B9BaE3D1b668c0De08CCC2C9429A, 'MIM', 18, 'Magic Internet Money') +) AS temp_table (contract_address, symbol, decimals, name) +UNION ALL +SELECT contract_address, symbol, decimals, 'optimism' AS blockchain +FROM (VALUES + --Type sourced from Defillama's mappings when relevant: https://defillama.com/stablecoins + (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', '18', 'Dai Stablecoin', 'USD', 'Crypto-Backed') + ,(0x94b008aa00579c1307b0ef2c499ad98a8ce58e58, 'USDT', '6', 'Tether USD', 'USD', 'Fiat-Backed') + ,(0x7f5c764cbc14f9669b88837ca1490cca17c31607, 'USDC', '6', 'USD Coin', 'USD', 'Fiat-Backed') + ,(0xc40f949f8a4e094d1b49a23ea9241d289b7b2819, 'LUSD', '18', 'LUSD Stablecoin', 'USD', 'Crypto-Backed') + ,(0xbfd291da8a403daaf7e5e9dc1ec0aceacd4848b9, 'USX', '18', 'dForce USD', 'USD', 'Crypto-Backed') + ,(0x2e3d870790dc77a83dd1d18184acc7439a53f475, 'FRAX', '18', 'FRAX', 'USD', 'Algorithmic') + ,(0xfb21b70922b9f6e3c6274bcd6cb1aa8a0fe20b80, 'UST', '6', 'Terra USD', 'USD', 'Algorithmic') + ,(0x7113370218f31764c1b6353bdf6004d86ff6b9cc, 'USDD', '18', 'Decentralized USD','USD','Algorithmic') + ,(0xcb59a0a753fdb7491d5f3d794316f1ade197b21e, 'TUSD', '18', 'TrueUSD','USD','Fiat-Backed') + ,(0xcb8fa9a76b8e203d8c3797bf438d8fb81ea3326a, 'alUSD', '18', 'Alchemix USD','USD','Algorithmic') + ,(0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b, 'BOB', '18', 'BOB','USD','Crypto-Backed') + ,(0xdfa46478f9e5ea86d57387849598dbfb2e964b02, 'MAI', '18', 'Mai Stablecoin','USD','Crypto-Backed') + ,(0x7fb688ccf682d58f86d7e38e03f9d22e7705448b, 'RAI', '18', 'Rai Reflex Index','None','Crypto-Backed') + ,(0x9c9e5fd8bbc25984b178fdce6117defa39d2db39, 'BUSD', '18', 'Binance-Peg BUSD Token','USD','Fiat-Backed') + ,(0xb153fb3d196a8eb25522705560ac152eeec57901, 'MIM', '18', 'Magic Internet Money','USD','Crypto-Backed') + ,(0x8ae125e8653821e851f12a49f7765db9a9ce7384, 'DOLA', '18', 'Dola USD Stablecoin','USD','Crypto-Backed') + ,(0x73cb180bf0521828d8849bc8CF2B920918e23032, 'USD+', '6', 'USD+', 'USD','Crypto-Backed') + ,(0x9485aca5bbbe1667ad97c7fe7c4531a624c8b1ed, 'agEUR', '18', 'agEUR', 'EUR', 'Crypto-Backed') + ,(0x79af5dd14e855823fa3e9ecacdf001d99647d043, 'jEUR', '18', 'Jarvis Synthetic Euro','EUR','Crypto-Backed') + -- --Synthetix Tokens + ,(0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9, 'sUSD', '18', 'Synth sUSD', 'USD', 'Crypto-Backed') + ,(0xfbc4198702e81ae77c06d58f81b629bdf36f0a71, 'sEUR', '18', 'Synth sEUR', 'EUR', 'Crypto-Backed') + ,(0xa3a538ea5d5838dc32dde15946ccd74bdd5652ff, 'sINR', '18', 'Synth sINR', 'INR', 'Crypto-Backed') + -- --Transfer Tokens (Common Among Bridges) + ,(0x25d8039bb044dc227f741a9e381ca4ceae2e6ae8, 'USDC', '6', 'USD Coin Hop Token', 'USD', 'Bridge-Backed') + ,(0x2057c8ecb70afd7bee667d76b4cd373a325b1a20, 'USDT', '6', 'Tether USD Hop Token', 'USD', 'Bridge-Backed') + ,(0x56900d66d74cb14e3c86895789901c9135c95b16, 'DAI', '18', 'DAI Hop Token', 'USD', 'Bridge-Backed') + ,(0x67c10c397dd0ba417329543c1a40eb48aaa7cd00, 'nUSD', '18', 'Synapse USD', 'USD', 'Bridge-Backed') +) AS tbl (contract_address, symbol, decimals, name, currency_peg, reserve_type) +UNION ALL +SELECT contract_address, symbol, decimals, 'polygon' AS blockchain +FROM (VALUES + (0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359, 'USDC', 6) --native + , (0x2791bca1f2de4661ed88a30c99a7a9449aa84174, 'USDC', 6) --bridged + , (0xc2132d05d31c914a87c6611c10748aeb04b58e8f, 'USDT', 6) --unkknown + , (0x8f3cf7ad23cd3cadbd9735aff958023239c6a063, 'DAI', 18) --unkknown + , (0x45c32fa6df82ead1e2ef74d17b76547eddfaff89, 'FRAX', 18) --unkknown + , (0xdab529f40e671a1d4bf91361c21bf9f0c9712ab7, 'BUSD', 18) --unkknown + , (0xc4Ce1D6F5D98D65eE25Cf85e9F2E9DcFEe6Cb5d6, 'crvUSD', 18) --unkknown + , (0x2e1ad108ff1d8c782fcbbb89aad783ac49586756, 'TUSD', 18) --unkknown + , (0x236eec6359fb44cce8f97e99387aa7f8cd5cde1f, 'USD+', 6) --unkknown +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'scroll' AS blockchain +FROM (VALUES + (0x06efdbff2a14a7c8e15944d1f4a48f9f95f663a4, 'USDC', 6) + , (0xf55bec9cafdbe8730f096aa55dad6d22d44099df, 'USDT', 6) + , (0xca77eb3fefe3725dc33bccb54edefc3d9f764f97, 'DAI', 18) + , (0xedeabc3a1e7d21fe835ffa6f83a710c70bb1a051, 'LUSD', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'tron' AS blockchain +FROM (VALUES + (0xa614f803b6fd780986a42c78ec9c7f77e6ded13c, 'USDT', 6) + , (0x94f24e992ca04b49c6f2a2753076ef8938ed4daa, 'USDD', 18) + , (0x3487b63d30b5b2c87fb7ffa8bcfade38eaac1abe, 'USDC', 6) + , (0xcebde71077b830b958c8da17bcddeeb85d0bcf25, 'TUSD', 18) + , (0x83c91bfde3e6d130e286a3722f171ae49fb25047, 'BUSD', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'zkevm' AS blockchain +FROM (VALUES + (0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035, 'USDC', 6) + , (0x37eaa0ef3549a5bb7d431be78a3d99bd360d19e5, 'USDC', 6) + , (0x1e4a5963abfd975d8c9021ce480b42188849d41d, 'USDT', 6) + , (0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4, 'DAI', 18) + , (0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D, 'FRAX', 18) +) AS temp_table (contract_address, symbol, decimals) +UNION ALL +SELECT contract_address, symbol, decimals, 'zksync' AS blockchain +FROM (VALUES + (0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4, 'USDC', 6) --native + , (0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4, 'USDC', 6) --bridged + , (0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656, 'DAI', 18) + , (0x503234F203fC7Eb888EEC8513210612a43Cf6115, 'LUSD', 18) +) AS temp_table (contract_address, symbol, decimals) -SELECT * -FROM ( - {% for key, value in static_models.items() %} - SELECT - '{{ value.blockchain }}' AS blockchain - , contract_address - , symbol - , decimals - , name - FROM - {{ value.model }} - {% if not loop.last %} - union all - {% endif %} - {% endfor %} -) diff --git a/tokens/models/tokens/tron/tokens_tron_trc20.sql b/tokens/models/tokens/tron/tokens_tron_trc20.sql index 3070ceb339e..ee1e3fa86e7 100644 --- a/tokens/models/tokens/tron/tokens_tron_trc20.sql +++ b/tokens/models/tokens/tron/tokens_tron_trc20.sql @@ -1,18 +1,18 @@ {{ config( schema = 'tokens_tron' - , alias = 'stablecoins' + , alias = 'trc20' , tags = ['static'] , materialized = 'table' ) }} -SELECT contract_address, symbol, decimals, name +SELECT contract_address, symbol, decimals FROM ( VALUES - (0xa614f803b6fd780986a42c78ec9c7f77e6ded13c, 'USDT', 6, 'Tether') - , (0x94f24e992ca04b49c6f2a2753076ef8938ed4daa, 'USDD', 18, 'Decentralized USD') - , (0x3487b63d30b5b2c87fb7ffa8bcfade38eaac1abe, 'USDC', 6, 'USD Coin') - , (0xcebde71077b830b958c8da17bcddeeb85d0bcf25, 'TUSD', 18, 'TrueUSD') - , (0x83c91bfde3e6d130e286a3722f171ae49fb25047, 'BUSD', 18, 'Binance USD') -) AS temp_table (contract_address, symbol, decimals, name) + (0xa614f803b6fd780986a42c78ec9c7f77e6ded13c, 'USDT', 6) + , (0x94f24e992ca04b49c6f2a2753076ef8938ed4daa, 'USDD', 18) + , (0x3487b63d30b5b2c87fb7ffa8bcfade38eaac1abe, 'USDC', 6) + , (0xcebde71077b830b958c8da17bcddeeb85d0bcf25, 'TUSD', 18) + , (0x83c91bfde3e6d130e286a3722f171ae49fb25047, 'BUSD', 18) +) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_erc20.sql b/tokens/models/tokens/zkevm/tokens_zkevm_erc20.sql index b716c3f2c9d..f6bceeb6080 100644 --- a/tokens/models/tokens/zkevm/tokens_zkevm_erc20.sql +++ b/tokens/models/tokens/zkevm/tokens_zkevm_erc20.sql @@ -19,4 +19,9 @@ FROM (VALUES , (0x550d3bb1f77f97e4debb45d4f817d7b9f9a1affb, 'woUSDT', 6) , (0x120ef59b80774f02211563834d8e3b72cb1649d6, 'BAL', 18) , (0x12d8ce035c5de3ce39b1fdd4c1d5a745eaba3b8c, 'ankrETH', 18) -) AS temp_table (contract_address, symbol, decimals) \ No newline at end of file + , (0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035, 'USDC', 6) + , (0x37eaa0ef3549a5bb7d431be78a3d99bd360d19e5, 'USDC', 6) + , (0x1e4a5963abfd975d8c9021ce480b42188849d41d, 'USDT', 6) + , (0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4, 'DAI', 18) + , (0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D, 'FRAX', 18) +) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql b/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql deleted file mode 100644 index 97c6b476c57..00000000000 --- a/tokens/models/tokens/zkevm/tokens_zkevm_erc20_stablecoins.sql +++ /dev/null @@ -1,18 +0,0 @@ -{{ - config( - schema = 'tokens_zkevm' - , alias = 'stablecoins' - , tags = ['static'] - , materialized = 'table' - ) -}} - -SELECT contract_address, symbol, decimals, name -FROM ( - VALUES - (0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035, 'USDC', 6, 'USD Coin') - , (0x37eaa0ef3549a5bb7d431be78a3d99bd360d19e5, 'USDC', 6, 'USD Coin') - , (0x1e4a5963abfd975d8c9021ce480b42188849d41d, 'USDT', 6, 'Tether') - , (0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4, 'DAI', 18, 'Dai') - , (0xFf8544feD5379D9ffa8D47a74cE6b91e632AC44D, 'FRAX', 18, 'Frax') -) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml index ae5e0a4df86..a0dade94284 100644 --- a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml +++ b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml @@ -6,7 +6,7 @@ models: blockchain: zkevm sector: tokens project: erc20 - contributors: viniabussafi + contributors: viniabussafi, thetroyharris config: tags: ['table', 'metadata', 'erc20', 'zkevm'] description: "ERC20 Token Addresses, Symbols and Decimals" diff --git a/tokens/models/tokens/zksync/tokens_zksync_erc20.sql b/tokens/models/tokens/zksync/tokens_zksync_erc20.sql index 86013e5d0e1..59e9b2a07a2 100644 --- a/tokens/models/tokens/zksync/tokens_zksync_erc20.sql +++ b/tokens/models/tokens/zksync/tokens_zksync_erc20.sql @@ -29,4 +29,8 @@ FROM (VALUES , (0xe0ef1c039a36ec77339e7277ecd4d48e57b61eec, 'ySYNC', 18) , (0x9e22d758629761fc5708c171d06c2fabb60b5159, 'WOO', 18) , (0x140d5bc5b62d6cb492b1a475127f50d531023803, 'DERI', 18) + , (0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4, 'USDC', 6) --native + , (0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4, 'USDC', 6) --bridged + , (0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656, 'DAI', 18) + , (0x503234F203fC7Eb888EEC8513210612a43Cf6115, 'LUSD', 18) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql b/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql deleted file mode 100644 index 262834f668f..00000000000 --- a/tokens/models/tokens/zksync/tokens_zksync_erc20_stablecoins.sql +++ /dev/null @@ -1,17 +0,0 @@ -{{ - config( - schema = 'tokens_zksync' - , alias = 'stablecoins' - , tags = ['static'] - , materialized = 'table' - ) -}} - -SELECT contract_address, symbol, decimals, name -FROM ( - VALUES - (0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4, 'USDC', 6, 'USD Coin') --native - , (0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4, 'USDC', 6, 'USD Coin') --bridged - , (0x4B9eb6c0b6ea15176BBF62841C6B2A8a398cb656, 'DAI', 18, 'Dai') - , (0x503234F203fC7Eb888EEC8513210612a43Cf6115, 'LUSD', 18, 'LUSD') -) AS temp_table (contract_address, symbol, decimals, name) diff --git a/tokens/models/tokens/zksync/tokens_zksync_schema.yml b/tokens/models/tokens/zksync/tokens_zksync_schema.yml index bcba4813260..5c003f7c4af 100644 --- a/tokens/models/tokens/zksync/tokens_zksync_schema.yml +++ b/tokens/models/tokens/zksync/tokens_zksync_schema.yml @@ -1,3 +1,25 @@ +version: 2 + +models: + - name: tokens_zksync_erc20 + meta: + blockchain: zksync + sector: tokens + project: erc20 + contributors: lgingerich, thetroyharris + config: + tags: ['table', 'erc20'] + description: "ERC20 Token Addresses, Symbols and Decimals" + columns: + - name: contract_address + description: "ERC20 token contract address" + tests: + - unique + - name: symbol + description: "ERC20 token symbol" + - name: decimals + description: "Number of decimals, refers to how divisible an ERC20 token can be" + - name: tokens_zksync_nft_curated meta: blockchain: zksync @@ -61,5 +83,3 @@ - unique - name: standard description: "The NFT standard erc721/erc1155/..." - - From 4112c9f890fd790a2935d533079ec17dc180caf7 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:48:38 -0400 Subject: [PATCH 14/19] Small fix. --- tokens/models/tokens/fantom/tokens_fantom_erc20.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokens/models/tokens/fantom/tokens_fantom_erc20.sql b/tokens/models/tokens/fantom/tokens_fantom_erc20.sql index 935e08a8a37..6fbcd9dcdd0 100644 --- a/tokens/models/tokens/fantom/tokens_fantom_erc20.sql +++ b/tokens/models/tokens/fantom/tokens_fantom_erc20.sql @@ -176,7 +176,7 @@ FROM (VALUES , (0x846e4D51d7E2043C1a87E0Ab7490B93FB940357b, 'UST', 6) , (0x87a5C9B60A3aaf1064006FE64285018e50e0d020, 'MAGIK', 18) , (0x9879aBDea01a879644185341F7aF7d8343556B7a, 'TUSD', 18) - , (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18), - , (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18), + , (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18) + , (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18) , (0xb9D62c829fbF7eAff1EbA4E50F3D0480b66c1748, 'PDO', 18) ) AS temp_table (contract_address, symbol, decimals) From 788d48cadbdf9f5464e2b55d9f33c172ea330a02 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:56:12 -0400 Subject: [PATCH 15/19] Small fixes. --- tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml | 2 -- .../models/tokens/avalanche_c/tokens_avalanche_c_schema.yml | 2 -- tokens/models/tokens/base/tokens_base_schema.yml | 2 -- tokens/models/tokens/bnb/tokens_bnb_schema.yml | 1 - tokens/models/tokens/celo/tokens_celo_schema.yml | 2 -- tokens/models/tokens/gnosis/tokens_gnosis_schema.yml | 1 - tokens/models/tokens/linea/tokens_linea_erc20.sql | 4 ++-- tokens/models/tokens/linea/tokens_linea_schema.yml | 2 -- tokens/models/tokens/polygon/tokens_polygon_schema.yml | 1 - tokens/models/tokens/scroll/tokens_scroll_schema.yml | 2 -- tokens/models/tokens/tron/tokens_tron_schema.yml | 2 -- tokens/models/tokens/zkevm/tokens_zkevm_schema.yml | 2 -- tokens/models/tokens/zora/tokens_zora_schema.yml | 1 - 13 files changed, 2 insertions(+), 22 deletions(-) diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml index c03d1d905af..e175ce4d1d1 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml @@ -81,5 +81,3 @@ models: - unique - name: standard description: "The NFT standard erc721/erc1155/..." - - diff --git a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml index 46bdcf0fcad..421a7b65dff 100644 --- a/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml +++ b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml @@ -85,5 +85,3 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155'] - - diff --git a/tokens/models/tokens/base/tokens_base_schema.yml b/tokens/models/tokens/base/tokens_base_schema.yml index 0bdc60ea372..869b06cf23f 100644 --- a/tokens/models/tokens/base/tokens_base_schema.yml +++ b/tokens/models/tokens/base/tokens_base_schema.yml @@ -81,5 +81,3 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155' ] - - diff --git a/tokens/models/tokens/bnb/tokens_bnb_schema.yml b/tokens/models/tokens/bnb/tokens_bnb_schema.yml index af1db8ac541..aba74f4fce2 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_schema.yml +++ b/tokens/models/tokens/bnb/tokens_bnb_schema.yml @@ -81,4 +81,3 @@ models: tests: - accepted_values: values: [ 'bep721', 'bep1155' ] - diff --git a/tokens/models/tokens/celo/tokens_celo_schema.yml b/tokens/models/tokens/celo/tokens_celo_schema.yml index 40074014a6d..cbe617a475c 100644 --- a/tokens/models/tokens/celo/tokens_celo_schema.yml +++ b/tokens/models/tokens/celo/tokens_celo_schema.yml @@ -81,5 +81,3 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155' ] - - diff --git a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml index 0cfdc3f3646..3b9dbc4fb91 100644 --- a/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml +++ b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml @@ -86,4 +86,3 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155'] - diff --git a/tokens/models/tokens/linea/tokens_linea_erc20.sql b/tokens/models/tokens/linea/tokens_linea_erc20.sql index 6b03dbe891d..30cb52bb1e4 100644 --- a/tokens/models/tokens/linea/tokens_linea_erc20.sql +++ b/tokens/models/tokens/linea/tokens_linea_erc20.sql @@ -7,7 +7,7 @@ ) }} -SELECT contract_address, symbol, decimals, name +SELECT contract_address, symbol, decimals FROM ( VALUES (0x176211869ca2b568f2a7d4ee941e073a821ee1ff, 'USDC', 6) --bridged @@ -16,4 +16,4 @@ FROM ( , (0x4af15ec2a0bd43db75dd04e62faa3b8ef36b00d5, 'DAI', 18) , (0xd2bc272EA0154A93bf00191c8a1DB23E67643EC5, 'USDP', 18) , (0xDD3B8084AF79B9BaE3D1b668c0De08CCC2C9429A, 'MIM', 18) -) AS temp_table (contract_address, symbol, decimals, name) +) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/linea/tokens_linea_schema.yml b/tokens/models/tokens/linea/tokens_linea_schema.yml index 0151e274a67..d374e5e1b58 100644 --- a/tokens/models/tokens/linea/tokens_linea_schema.yml +++ b/tokens/models/tokens/linea/tokens_linea_schema.yml @@ -19,5 +19,3 @@ models: description: "ERC20 token symbol" - name: decimals description: "Number of decimals, refers to how divisible an ERC20 token can be" - - diff --git a/tokens/models/tokens/polygon/tokens_polygon_schema.yml b/tokens/models/tokens/polygon/tokens_polygon_schema.yml index 4d46defbe25..60f87249bf1 100644 --- a/tokens/models/tokens/polygon/tokens_polygon_schema.yml +++ b/tokens/models/tokens/polygon/tokens_polygon_schema.yml @@ -81,4 +81,3 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155' ] - diff --git a/tokens/models/tokens/scroll/tokens_scroll_schema.yml b/tokens/models/tokens/scroll/tokens_scroll_schema.yml index 75c3a6001d3..b59b397f529 100644 --- a/tokens/models/tokens/scroll/tokens_scroll_schema.yml +++ b/tokens/models/tokens/scroll/tokens_scroll_schema.yml @@ -19,5 +19,3 @@ models: description: "ERC20 token symbol" - name: decimals description: "Number of decimals, refers to how divisible an ERC20 token can be" - - diff --git a/tokens/models/tokens/tron/tokens_tron_schema.yml b/tokens/models/tokens/tron/tokens_tron_schema.yml index 3193a1eb79e..05a6bffd315 100644 --- a/tokens/models/tokens/tron/tokens_tron_schema.yml +++ b/tokens/models/tokens/tron/tokens_tron_schema.yml @@ -19,5 +19,3 @@ models: description: "TRC20 token symbol" - name: decimals description: "Number of decimals, refers to how divisible an TRC20 token can be" - - diff --git a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml index a0dade94284..afca867a9ab 100644 --- a/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml +++ b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml @@ -19,5 +19,3 @@ models: description: "ERC20 token symbol" - name: decimals description: "Number of decimals, refers to how divisible an ERC20 token can be" - - diff --git a/tokens/models/tokens/zora/tokens_zora_schema.yml b/tokens/models/tokens/zora/tokens_zora_schema.yml index 4caef3b7467..4b54a646d70 100644 --- a/tokens/models/tokens/zora/tokens_zora_schema.yml +++ b/tokens/models/tokens/zora/tokens_zora_schema.yml @@ -81,4 +81,3 @@ models: tests: - accepted_values: values: [ 'erc721', 'erc1155' ] - From 9ce6f7aee1aa03e8946f7ebf9f568079df21089f Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:01:53 -0400 Subject: [PATCH 16/19] Tweak --- tokens/models/tokens/tokens_stablecoins.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokens/models/tokens/tokens_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql index 14829f218d7..edcd236ddb1 100644 --- a/tokens/models/tokens/tokens_stablecoins.sql +++ b/tokens/models/tokens/tokens_stablecoins.sql @@ -107,8 +107,8 @@ FROM (VALUES , (0x846e4D51d7E2043C1a87E0Ab7490B93FB940357b, 'UST', 6) , (0x87a5C9B60A3aaf1064006FE64285018e50e0d020, 'MAGIK', 18) , (0x9879aBDea01a879644185341F7aF7d8343556B7a, 'TUSD', 18) - , (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18), - , (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18), + , (0x1D3918043d22de2D799a4d80f72Efd50Db90B5Af, 'sPDO', 18) + , (0x5f0456F728E2D59028b4f5B8Ad8C604100724C6A, 'L3USD', 18) , (0xb9D62c829fbF7eAff1EbA4E50F3D0480b66c1748, 'PDO', 18) ) AS temp_table (contract_address, symbol, decimals) UNION ALL From a546fda9b1b838ff8ecd14fb08e59782c093d924 Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:08:18 -0400 Subject: [PATCH 17/19] Small tweaks --- tokens/models/tokens/tokens_stablecoins.sql | 52 ++++++++++----------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/tokens/models/tokens/tokens_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql index edcd236ddb1..1889fd73798 100644 --- a/tokens/models/tokens/tokens_stablecoins.sql +++ b/tokens/models/tokens/tokens_stablecoins.sql @@ -132,34 +132,34 @@ UNION ALL SELECT contract_address, symbol, decimals, 'optimism' AS blockchain FROM (VALUES --Type sourced from Defillama's mappings when relevant: https://defillama.com/stablecoins - (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', '18', 'Dai Stablecoin', 'USD', 'Crypto-Backed') - ,(0x94b008aa00579c1307b0ef2c499ad98a8ce58e58, 'USDT', '6', 'Tether USD', 'USD', 'Fiat-Backed') - ,(0x7f5c764cbc14f9669b88837ca1490cca17c31607, 'USDC', '6', 'USD Coin', 'USD', 'Fiat-Backed') - ,(0xc40f949f8a4e094d1b49a23ea9241d289b7b2819, 'LUSD', '18', 'LUSD Stablecoin', 'USD', 'Crypto-Backed') - ,(0xbfd291da8a403daaf7e5e9dc1ec0aceacd4848b9, 'USX', '18', 'dForce USD', 'USD', 'Crypto-Backed') - ,(0x2e3d870790dc77a83dd1d18184acc7439a53f475, 'FRAX', '18', 'FRAX', 'USD', 'Algorithmic') - ,(0xfb21b70922b9f6e3c6274bcd6cb1aa8a0fe20b80, 'UST', '6', 'Terra USD', 'USD', 'Algorithmic') - ,(0x7113370218f31764c1b6353bdf6004d86ff6b9cc, 'USDD', '18', 'Decentralized USD','USD','Algorithmic') - ,(0xcb59a0a753fdb7491d5f3d794316f1ade197b21e, 'TUSD', '18', 'TrueUSD','USD','Fiat-Backed') - ,(0xcb8fa9a76b8e203d8c3797bf438d8fb81ea3326a, 'alUSD', '18', 'Alchemix USD','USD','Algorithmic') - ,(0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b, 'BOB', '18', 'BOB','USD','Crypto-Backed') - ,(0xdfa46478f9e5ea86d57387849598dbfb2e964b02, 'MAI', '18', 'Mai Stablecoin','USD','Crypto-Backed') - ,(0x7fb688ccf682d58f86d7e38e03f9d22e7705448b, 'RAI', '18', 'Rai Reflex Index','None','Crypto-Backed') - ,(0x9c9e5fd8bbc25984b178fdce6117defa39d2db39, 'BUSD', '18', 'Binance-Peg BUSD Token','USD','Fiat-Backed') - ,(0xb153fb3d196a8eb25522705560ac152eeec57901, 'MIM', '18', 'Magic Internet Money','USD','Crypto-Backed') - ,(0x8ae125e8653821e851f12a49f7765db9a9ce7384, 'DOLA', '18', 'Dola USD Stablecoin','USD','Crypto-Backed') - ,(0x73cb180bf0521828d8849bc8CF2B920918e23032, 'USD+', '6', 'USD+', 'USD','Crypto-Backed') - ,(0x9485aca5bbbe1667ad97c7fe7c4531a624c8b1ed, 'agEUR', '18', 'agEUR', 'EUR', 'Crypto-Backed') - ,(0x79af5dd14e855823fa3e9ecacdf001d99647d043, 'jEUR', '18', 'Jarvis Synthetic Euro','EUR','Crypto-Backed') + (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18, 'Dai Stablecoin', 'USD', 'Crypto-Backed') + ,(0x94b008aa00579c1307b0ef2c499ad98a8ce58e58, 'USDT', 6, 'Tether USD', 'USD', 'Fiat-Backed') + ,(0x7f5c764cbc14f9669b88837ca1490cca17c31607, 'USDC', 6, 'USD Coin', 'USD', 'Fiat-Backed') + ,(0xc40f949f8a4e094d1b49a23ea9241d289b7b2819, 'LUSD', 18, 'LUSD Stablecoin', 'USD', 'Crypto-Backed') + ,(0xbfd291da8a403daaf7e5e9dc1ec0aceacd4848b9, 'USX', 18, 'dForce USD', 'USD', 'Crypto-Backed') + ,(0x2e3d870790dc77a83dd1d18184acc7439a53f475, 'FRAX', 18, 'FRAX', 'USD', 'Algorithmic') + ,(0xfb21b70922b9f6e3c6274bcd6cb1aa8a0fe20b80, 'UST', 6, 'Terra USD', 'USD', 'Algorithmic') + ,(0x7113370218f31764c1b6353bdf6004d86ff6b9cc, 'USDD', 18, 'Decentralized USD','USD','Algorithmic') + ,(0xcb59a0a753fdb7491d5f3d794316f1ade197b21e, 'TUSD', 18, 'TrueUSD','USD','Fiat-Backed') + ,(0xcb8fa9a76b8e203d8c3797bf438d8fb81ea3326a, 'alUSD', 18, 'Alchemix USD','USD','Algorithmic') + ,(0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b, 'BOB', 18, 'BOB','USD','Crypto-Backed') + ,(0xdfa46478f9e5ea86d57387849598dbfb2e964b02, 'MAI', 18, 'Mai Stablecoin','USD','Crypto-Backed') + ,(0x7fb688ccf682d58f86d7e38e03f9d22e7705448b, 'RAI', 18, 'Rai Reflex Index','None','Crypto-Backed') + ,(0x9c9e5fd8bbc25984b178fdce6117defa39d2db39, 'BUSD', 18, 'Binance-Peg BUSD Token','USD','Fiat-Backed') + ,(0xb153fb3d196a8eb25522705560ac152eeec57901, 'MIM', 18, 'Magic Internet Money','USD','Crypto-Backed') + ,(0x8ae125e8653821e851f12a49f7765db9a9ce7384, 'DOLA', 18, 'Dola USD Stablecoin','USD','Crypto-Backed') + ,(0x73cb180bf0521828d8849bc8CF2B920918e23032, 'USD+', 6, 'USD+', 'USD','Crypto-Backed') + ,(0x9485aca5bbbe1667ad97c7fe7c4531a624c8b1ed, 'agEUR', 18, 'agEUR', 'EUR', 'Crypto-Backed') + ,(0x79af5dd14e855823fa3e9ecacdf001d99647d043, 'jEUR', 18, 'Jarvis Synthetic Euro','EUR','Crypto-Backed') -- --Synthetix Tokens - ,(0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9, 'sUSD', '18', 'Synth sUSD', 'USD', 'Crypto-Backed') - ,(0xfbc4198702e81ae77c06d58f81b629bdf36f0a71, 'sEUR', '18', 'Synth sEUR', 'EUR', 'Crypto-Backed') - ,(0xa3a538ea5d5838dc32dde15946ccd74bdd5652ff, 'sINR', '18', 'Synth sINR', 'INR', 'Crypto-Backed') + ,(0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9, 'sUSD', 18, 'Synth sUSD', 'USD', 'Crypto-Backed') + ,(0xfbc4198702e81ae77c06d58f81b629bdf36f0a71, 'sEUR', 18, 'Synth sEUR', 'EUR', 'Crypto-Backed') + ,(0xa3a538ea5d5838dc32dde15946ccd74bdd5652ff, 'sINR', 18, 'Synth sINR', 'INR', 'Crypto-Backed') -- --Transfer Tokens (Common Among Bridges) - ,(0x25d8039bb044dc227f741a9e381ca4ceae2e6ae8, 'USDC', '6', 'USD Coin Hop Token', 'USD', 'Bridge-Backed') - ,(0x2057c8ecb70afd7bee667d76b4cd373a325b1a20, 'USDT', '6', 'Tether USD Hop Token', 'USD', 'Bridge-Backed') - ,(0x56900d66d74cb14e3c86895789901c9135c95b16, 'DAI', '18', 'DAI Hop Token', 'USD', 'Bridge-Backed') - ,(0x67c10c397dd0ba417329543c1a40eb48aaa7cd00, 'nUSD', '18', 'Synapse USD', 'USD', 'Bridge-Backed') + ,(0x25d8039bb044dc227f741a9e381ca4ceae2e6ae8, 'USDC', 6, 'USD Coin Hop Token', 'USD', 'Bridge-Backed') + ,(0x2057c8ecb70afd7bee667d76b4cd373a325b1a20, 'USDT', 6, 'Tether USD Hop Token', 'USD', 'Bridge-Backed') + ,(0x56900d66d74cb14e3c86895789901c9135c95b16, 'DAI', 18, 'DAI Hop Token', 'USD', 'Bridge-Backed') + ,(0x67c10c397dd0ba417329543c1a40eb48aaa7cd00, 'nUSD', 18, 'Synapse USD', 'USD', 'Bridge-Backed') ) AS tbl (contract_address, symbol, decimals, name, currency_peg, reserve_type) UNION ALL SELECT contract_address, symbol, decimals, 'polygon' AS blockchain From 6e35bf6087a86580c82d7d7c402723d3566581af Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:12:05 -0400 Subject: [PATCH 18/19] Small tweaks --- tokens/models/tokens/tokens_stablecoins.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tokens/models/tokens/tokens_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql index 1889fd73798..3f1542bf9c8 100644 --- a/tokens/models/tokens/tokens_stablecoins.sql +++ b/tokens/models/tokens/tokens_stablecoins.sql @@ -12,10 +12,10 @@ SELECT contract_address, symbol, decimals, 'arbitrum' AS blockchain FROM (VALUES - (0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6) -- Native + (0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6) -- Native , (0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'USDC', 6) -- Bridged , (0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'USDT', 6) - , (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18) + , (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18) , (0x17fc002b466eec40dae837fc4be5c67993ddbd6f, 'FRAX', 18) ) AS temp_table (contract_address, symbol, decimals) UNION ALL From 8b5aa5417de0a21ea85b9af26e25b3ffa972a4ca Mon Sep 17 00:00:00 2001 From: thetroyharris <127905654+thetroyharris@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:23:49 -0400 Subject: [PATCH 19/19] Remove duplicate entry. --- tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql index 1d506732869..3cb7766950c 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql +++ b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql @@ -4580,7 +4580,6 @@ FROM (VALUES , (0x8e870d67f660d95d5be530380d0ec0bd388289e1, 'PAX', 18) , (0x03ab458634910aad20ef5f1c8ee96f1d6ac54919, 'RAI', 18) , (0x57Ab1ec28D129707052df4dF418D58a2D46d5f51, 'sUSD', 18) - , (0x57Ab1E02fEE23774580C119740129eAC7081e9D3, 'sUSD', 18) , (0x0000000000085d4780b73119b644ae5ecd22b376, 'TUSD', 18) , (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 'USDC', 6) , (0x674c6ad92fd080e4004b2312b45f796a192d27a0, 'USDN', 18)