-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update/create stablecoin token sets. #6186
Closed
+426
−130
Closed
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
813ff51
Update/create stablecoin token sets.
thetroyharris d9d17e7
Small fixes.
thetroyharris 46ab050
Small fix.
thetroyharris 8ed69e2
Small fix.
thetroyharris c16c01a
Merge branch 'duneanalytics:main' into stablecoin
thetroyharris f129a15
Agg spell create.
thetroyharris fbc5ed1
Agg spell fix.
thetroyharris d36fab7
Small fixes.
thetroyharris 35d83bc
Update tokens/models/tokens/tokens_erc20_stablecoins.sql
Hosuke b00ce05
Update tokens_erc20_stablecoins.sql
thetroyharris ae314b9
Update tokens_schema.yml
thetroyharris 4bbfd83
Rename tokens_erc20_stablecoins.sql to tokens_stablecoins.sql
thetroyharris 1262140
Saving changes to make spell a view.
thetroyharris 2c49297
Merge branch 'main' into stablecoin
thetroyharris 4c47ed7
Merge fixes.
thetroyharris 250f33c
Rebuild as a highlevel view.
thetroyharris 4112c9f
Small fix.
thetroyharris 788d48c
Small fixes.
thetroyharris 9ce6f7a
Tweak
thetroyharris a546fda
Small tweaks
thetroyharris 6e35bf6
Small tweaks
thetroyharris 8b5aa54
Remove duplicate entry.
thetroyharris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
tokens/models/tokens/arbitrum/tokens_arbitrum_erc20_stablecoins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_arbitrum' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0xaf88d065e77c8cc2239327c5edb3a432268e5831, 'USDC', 6, 'USD Coin') -- Native | ||
, (0xff970a61a04b1ca14834a43f5de4533ebddb5cc8, 'USDC', 6, 'USD Coin') -- Bridged | ||
, (0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9, 'USDT', 6, 'Tether') | ||
, (0xda10009cbd5d07dd0cecc66161fc93d7c9000da1, 'DAI', 18, 'Dai') | ||
, (0x17fc002b466eec40dae837fc4be5c67993ddbd6f, 'FRAX', 18, 'Frax') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tokens/models/tokens/avalanche_c/tokens_avalanche_c_erc20_stablecoins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_avalance_c' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E, 'USDC', 6, 'USD Coin') | ||
, (0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664, 'USDC', 6, 'USC Coin') --bridged | ||
, (0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7, 'USDT', 6, 'Tether') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tokens/models/tokens/base/tokens_base_erc20_stablecoins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_base' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0x833589fcd6edb6e08f4c7c32d4f71b54bda02913, 'USDC', 6, 'USD Coin') | ||
, (0xb79dd08ea68a908a97220c76d19a6aa9cbde4376, 'USD+', 6, 'USD+') | ||
, (0x50c5725949a6f0c72e6c4a641f24049a917db0cb, 'DAI', 18, 'Dai') | ||
, (0x4a3a6dd60a34bb2aba60d73b4c88315e9ceb6a3d, 'MIM', 18, 'Magic Internet Money') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tokens/models/tokens/blast/tokens_blast_erc20_stablecoins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_blast' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0x4300000000000000000000000000000000000003, 'USDB', 18, 'Blast USD') | ||
, (0x76da31d7c9cbeae102aff34d3398bc450c8374c1, 'MIM', 18, 'Magic Internet Money') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: tokens_blast_erc20_stablecoins | ||
meta: | ||
blockchain: blast | ||
sector: tokens | ||
project: erc20 | ||
contributors: thetroyharris | ||
config: | ||
tags: [ 'table', 'erc20', 'stablecoins' ] | ||
description: "ERC20 Stablecoin Token Addresses, Symbols and Decimals" | ||
columns: | ||
- name: contract_address | ||
description: "ERC20 stablecoin token contract address" | ||
tests: | ||
- unique | ||
- name: symbol | ||
description: "ERC20 stablecoin token symbol" | ||
- name: decimals | ||
description: "Number of decimals, refers to how divisible an ERC20 stablecoin token can be" | ||
- name: name | ||
description: "ERC20 stablecoin token name" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_bnb' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d, 'USDC', 18, 'USD Coin') | ||
, (0x55d398326f99059ff775485246999027b3197955, 'USDT', 18, 'Tether') | ||
, (0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3, 'DAI', 18, 'Dai') | ||
, (0xd17479997F34dd9156Deef8F95A52D81D265be9c, 'USDD', 18, 'Decentralized USD') | ||
, (0xe80772eaf6e2e18b651f160bc9158b2a5cafca65, 'USD+', 6, 'Overnight USD') | ||
, (0xb7f8cd00c5a06c0537e2abff0b58033d02e5e094, 'PAX', 18, 'Paxos Standard') | ||
, (0x8965349fb649a33a30cbfda057d8ec2c48abe2a2, 'USDC', 18, 'anyUSDC') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
tokens/models/tokens/celo/tokens_celo_erc20_stablecoins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_celo' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0xceba9300f2b948710d2653dd7b07f33a8b32118c, 'USDC', 6, 'USD Coin') --native | ||
, (0xef4229c8c3250c675f21bcefa42f58efbff6002a, 'USDC', 6, 'USD Coin') --bridged | ||
, (0x37f750b7cc259a2f741af45294f6a16572cf5cad, 'USDC', 6, 'USD Coin') --bridged | ||
, (0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e, 'USDT', 6, 'Tether') --native | ||
, (0x617f3112bf5397d0467d315cc709ef968d9ba546, 'USDT', 6, 'Tether') --bridged | ||
, (0x765de816845861e75a25fca122bb6898b8b1282a, 'cUSD', 18, 'Celo Dollar') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tokens/models/tokens/gnosis/tokens_gnosis_erc20_stablecoins.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ | ||
config( | ||
schema = 'tokens_gnosis' | ||
, alias = 'stablecoins' | ||
, tags = ['static'] | ||
, materialized = 'table' | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals, name | ||
FROM ( | ||
VALUES | ||
(0xddafbb505ad214d7b80b1f830fccc89b60fb7a83, 'USDC', 6, 'USD Coin') | ||
, (0x4ecaba5870353805a9f068101a40e0f32ed605c6, 'USDT', 6, 'Tether') | ||
, (0xe91d153e0b41518a2ce8dd3d7944fa863463a97d, 'WXDAI', 18, 'Wrapped xDai') | ||
) AS temp_table (contract_address, symbol, decimals, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not sure we should delete these, as they may have downstream dependencies or get used by a few users/dashboards on dune?