diff --git a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql index 6068509c347..51f600e1325 100644 --- a/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql +++ b/tokens/models/tokens/arbitrum/tokens_arbitrum_erc20.sql @@ -79,4 +79,9 @@ 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_schema.yml b/tokens/models/tokens/arbitrum/tokens_arbitrum_schema.yml index e875305d821..e175ce4d1d1 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 5cc6bfd5d23..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,4 +368,7 @@ FROM (VALUES , (0x60b78d111382036abc5eed987a709b07d52df9d3, 'COM-LP', 18) , (0xf0ed25fd26e0b64c86c6c78b661f2ef283e9b6ff, 'COM-LP', 18) , (0xf105fb50fc6ddd8a857bbecd296c8a630e8ca857, 'PGL', 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_schema.yml b/tokens/models/tokens/avalanche_c/tokens_avalanche_c_schema.yml index 33c7d6a409a..421a7b65dff 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 330eebf97b7..b016149ded5 100644 --- a/tokens/models/tokens/base/tokens_base_erc20.sql +++ b/tokens/models/tokens/base/tokens_base_erc20.sql @@ -239,4 +239,8 @@ 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_schema.yml b/tokens/models/tokens/base/tokens_base_schema.yml index 46487efa49d..869b06cf23f 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/blast/tokens_blast_erc20.sql b/tokens/models/tokens/blast/tokens_blast_erc20.sql index 725a1f8816f..f6c524bd985 100644 --- a/tokens/models/tokens/blast/tokens_blast_erc20.sql +++ b/tokens/models/tokens/blast/tokens_blast_erc20.sql @@ -1,10 +1,10 @@ -{{ +{{ config( schema = 'tokens_blast' - ,alias = 'erc20' - ,tags = ['static'] - ,materialized = 'table' - ) + , alias = 'erc20' + , tags = ['static'] + , materialized = 'table' + ) }} SELECT @@ -19,4 +19,5 @@ FROM (VALUES , (0x5ffd9ebd27f2fcab044c0f0a26a45cb62fa29c06, 'PAC', 18) , (0x2416092f143378750bb29b79ed961ab195cceea5, 'ezETH', 18) , (0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A, 'weETH', 18) + , (0x76da31d7c9cbeae102aff34d3398bc450c8374c1, 'MIM', 18) ) AS temp_table (contract_address, symbol, decimals) diff --git a/tokens/models/tokens/blast/tokens_blast_schema.yml b/tokens/models/tokens/blast/tokens_blast_schema.yml index b2e34b596c1..006f6e3ba3a 100644 --- a/tokens/models/tokens/blast/tokens_blast_schema.yml +++ b/tokens/models/tokens/blast/tokens_blast_schema.yml @@ -6,9 +6,9 @@ models: blockchain: blast sector: tokens project: erc20 - contributors: Henrystats + contributors: Henrystats, thetroyharris config: - tags: ['table', 'erc20'] + tags: ['table', 'erc20', 'blast' ] description: "ERC20 Token Addresses, Symbols and Decimals" columns: - name: contract_address @@ -18,4 +18,4 @@ 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" diff --git a/tokens/models/tokens/bnb/tokens_bnb_bep20.sql b/tokens/models/tokens/bnb/tokens_bnb_bep20.sql index 658e5a913fb..56c39260030 100644 --- a/tokens/models/tokens/bnb/tokens_bnb_bep20.sql +++ b/tokens/models/tokens/bnb/tokens_bnb_bep20.sql @@ -587,4 +587,11 @@ 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_schema.yml b/tokens/models/tokens/bnb/tokens_bnb_schema.yml index a92c8032276..aba74f4fce2 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 d1643cd1955..e7e13e6ad80 100644 --- a/tokens/models/tokens/celo/tokens_celo_erc20.sql +++ b/tokens/models/tokens/celo/tokens_celo_erc20.sql @@ -351,4 +351,10 @@ 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_schema.yml b/tokens/models/tokens/celo/tokens_celo_schema.yml index e6d0f7ce9cb..cbe617a475c 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 f1f191477dc..3cb7766950c 100644 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql +++ b/tokens/models/tokens/ethereum/tokens_ethereum_erc20.sql @@ -4565,4 +4565,33 @@ 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) + , (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 2fdc644a473..00000000000 --- a/tokens/models/tokens/ethereum/tokens_ethereum_erc20_stablecoins.sql +++ /dev/null @@ -1,37 +0,0 @@ -{{ config( - alias = 'stablecoins' - , tags=['static'] - , post_hook='{{ expose_spells(\'["ethereum"]\', - "sector", - "tokens_ethereum", - \'["gentrexha", "dot2dotseurat"]\') }}' - ) -}} - -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') - ) 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..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" @@ -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 - 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_erc20.sql b/tokens/models/tokens/fantom/tokens_fantom_erc20.sql index 7406d31901c..6fbcd9dcdd0 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/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_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_schema.yml b/tokens/models/tokens/gnosis/tokens_gnosis_schema.yml index 30caa673f35..3b9dbc4fb91 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 new file mode 100644 index 00000000000..30cb52bb1e4 --- /dev/null +++ b/tokens/models/tokens/linea/tokens_linea_erc20.sql @@ -0,0 +1,19 @@ +{{ + config( + schema = 'tokens_linea' + , alias = 'erc20' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals +FROM ( + VALUES + (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) 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..d374e5e1b58 --- /dev/null +++ b/tokens/models/tokens/linea/tokens_linea_schema.yml @@ -0,0 +1,21 @@ +version: 2 + +models: + - name: tokens_linea_erc20 + meta: + blockchain: linea + sector: tokens + project: erc20 + contributors: thetroyharris + config: + tags: [ 'table', 'erc20', 'linea' ] + 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" diff --git a/tokens/models/tokens/optimism/tokens_optimism_schema.yml b/tokens/models/tokens/optimism/tokens_optimism_schema.yml index 6e8afb8c534..935929cb2d0 100644 --- a/tokens/models/tokens/optimism/tokens_optimism_schema.yml +++ b/tokens/models/tokens/optimism/tokens_optimism_schema.yml @@ -241,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_schema.yml b/tokens/models/tokens/polygon/tokens_polygon_schema.yml index 5056c5f769e..60f87249bf1 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/tokens_schema.yml b/tokens/models/tokens/tokens_schema.yml index b100e42c1bd..e4a883cdd96 100644 --- a/tokens/models/tokens/tokens_schema.yml +++ b/tokens/models/tokens/tokens_schema.yml @@ -63,3 +63,27 @@ models: description: "NFT collection symbol" - name: standard description: "NFT collection standard" + + - name: tokens_stablecoins + meta: + 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: + 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" + + diff --git a/tokens/models/tokens/tokens_stablecoins.sql b/tokens/models/tokens/tokens_stablecoins.sql new file mode 100644 index 00000000000..3f1542bf9c8 --- /dev/null +++ b/tokens/models/tokens/tokens_stablecoins.sql @@ -0,0 +1,211 @@ +{{ + config( + schema = 'tokens' + , alias = 'stablecoins' + , materialized = 'view' + , 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"]\') }}' + ) +}} + +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) + 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..05a6bffd315 --- /dev/null +++ b/tokens/models/tokens/tron/tokens_tron_schema.yml @@ -0,0 +1,21 @@ +version: 2 + +models: + - name: tokens_tron_trc20 + meta: + blockchain: tron + sector: tokens + project: trc20 + contributors: thetroyharris + config: + tags: [ 'table', 'trc20', 'tron' ] + description: "TRC20 Token Addresses, Symbols and Decimals" + columns: + - name: contract_address + description: "TRC20 token contract address" + tests: + - unique + - name: symbol + 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/tron/tokens_tron_trc20.sql b/tokens/models/tokens/tron/tokens_tron_trc20.sql new file mode 100644 index 00000000000..ee1e3fa86e7 --- /dev/null +++ b/tokens/models/tokens/tron/tokens_tron_trc20.sql @@ -0,0 +1,18 @@ +{{ + config( + schema = 'tokens_tron' + , alias = 'trc20' + , tags = ['static'] + , materialized = 'table' + ) +}} + +SELECT contract_address, symbol, decimals +FROM ( + VALUES + (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_schema.yml b/tokens/models/tokens/zkevm/tokens_zkevm_schema.yml index eb12ef55487..afca867a9ab 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" @@ -18,4 +18,4 @@ 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" 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_schema.yml b/tokens/models/tokens/zksync/tokens_zksync_schema.yml index 4f73d366bea..5c003f7c4af 100644 --- a/tokens/models/tokens/zksync/tokens_zksync_schema.yml +++ b/tokens/models/tokens/zksync/tokens_zksync_schema.yml @@ -6,7 +6,7 @@ models: blockchain: zksync sector: tokens project: erc20 - contributors: lgingerich + contributors: lgingerich, thetroyharris config: tags: ['table', 'erc20'] description: "ERC20 Token Addresses, Symbols and Decimals" 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' ] -