-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scroll prices and tokens * remove duplicate
- Loading branch information
Showing
6 changed files
with
105 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: prices_scroll_tokens | ||
meta: | ||
blockchain: scroll | ||
sector: prices | ||
contributors: 0xRob | ||
config: | ||
tags: ['prices', 'tokens', 'usd', 'scroll'] | ||
description: "Price tokens on scroll chain" | ||
tests: | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- contract_address | ||
columns: | ||
- name: token_id | ||
description: "Id of the token at coinpaprika. This id is required to pull the price feed data. NOTE: Not all tokens are listed at coinpaprika - consider using price data from DEX sources in this case or submit a listing request at coinpaprika." | ||
- name: blockchain | ||
description: "Native blockchain of the token, if any" | ||
tests: | ||
- accepted_values: | ||
values: [ "scroll" ] | ||
- name: contract_address | ||
description: "Contract address of the token, if any" | ||
- name: symbol | ||
description: "Token symbol" | ||
- name: decimals | ||
description: "Number of decimals for the token contract" |
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,27 @@ | ||
{{ config( | ||
schema='prices_scroll', | ||
alias = 'tokens', | ||
materialized='table', | ||
file_format = 'delta', | ||
tags = ['static'] | ||
) | ||
}} | ||
SELECT | ||
token_id | ||
, blockchain | ||
, symbol | ||
, contract_address | ||
, decimals | ||
FROM | ||
( | ||
VALUES | ||
('weth-weth', 'scroll', 'WETH', 0x5300000000000000000000000000000000000004, 18), | ||
('wbtc-wrapped-bitcoin', 'scroll', 'WBTC', 0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1, 8), | ||
('usdc-usd-coin', 'scroll', 'USDC', 0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4, 6), | ||
('usdt-tether', 'scroll', 'USDT', 0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df, 6), | ||
('izi-izumi-finance', 'scroll', 'iZi', 0x60D01EC2D5E98Ac51C8B4cF84DfCCE98D527c747, 18), | ||
('lusd-liquity-usd', 'scroll', 'LUSD', 0xeDEAbc3A1e7D21fE835FFA6f83a710c70BB1a051, 18), | ||
('wsteth-wrapped-liquid-staked-ether-20', 'scroll', 'wstETH', 0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32, 18), | ||
('reth-rocket-pool-eth', 'scroll', 'rETH', 0x53878B874283351D26d206FA512aEcE1Bef6C0dD, 18) | ||
|
||
) as temp (token_id, blockchain, symbol, contract_address, decimals) |
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,23 @@ | ||
{{ config( | ||
schema = 'tokens_scroll' | ||
, alias = 'erc20' | ||
, tags=['static'] | ||
) | ||
}} | ||
|
||
SELECT contract_address, symbol, decimals | ||
FROM (VALUES | ||
(0x5300000000000000000000000000000000000004, 'WETH', 18) | ||
,(0xf55BEC9cafDbE8730f096Aa55dad6D22d44099Df, 'USDT', 6) | ||
,(0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4, 'USDC', 6) | ||
,(0x3C1BCa5a656e69edCD0D4E36BEbb3FcDAcA60Cf1, 'WBTC', 8) | ||
,(0x434cdA25E8a2CA5D9c1C449a8Cb6bCbF719233E8, 'UNI', 18) | ||
,(0xcA77eB3fEFe3725Dc33bccB54eDEFc3D9f764f97, 'DAI', 18) | ||
,(0x53878B874283351D26d206FA512aEcE1Bef6C0dD, 'rETH', 18) | ||
,(0x79379C0E09a41d7978f883a56246290eE9a8c4d3, 'AAVE', 18) | ||
,(0x6a28e90582c583fcd3347931c544819C31e9D0e0, 'BAL', 18) | ||
,(0x608ef9A3BffE206B86c3108218003b3cfBf99c84, 'KNC', 18) | ||
,(0xeDEAbc3A1e7D21fE835FFA6f83a710c70BB1a051, 'LUSD', 18) | ||
,(0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32, 'wstETH', 18) | ||
,(0x60D01EC2D5E98Ac51C8B4cF84DfCCE98D527c747, 'iZi', 18) | ||
) AS temp_table (contract_address, symbol, decimals) |
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,21 @@ | ||
version: 2 | ||
|
||
models: | ||
- name: tokens_scroll_erc20 | ||
meta: | ||
blockchain: scroll | ||
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" |
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