-
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
Add mantle prices feed #6112
Merged
Merged
Add mantle prices feed #6112
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
78910ec
Add prices_mantle.tokens
Hosuke 346710f
Add prices_mantle.tokens
Hosuke c882716
Fix token-id
Hosuke 405bce9
Fix quote
Hosuke dff0cac
Add mantle support
Hosuke b932e12
Add and clasify tokens
Hosuke 66298a6
Merge branch 'main' into 0607-mantle-prices-usd
Hosuke 265262a
finalize prices file
jeff-dude 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
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_mantle_tokens | ||
meta: | ||
blockchain: mantle | ||
sector: prices | ||
contributors: hosuke | ||
config: | ||
tags: ['prices', 'tokens', 'usd', 'mantle'] | ||
description: "Price tokens on mantle L2 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: [ "mantle" ] | ||
- 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,39 @@ | ||
{{ config( | ||
schema='prices_mantle', | ||
alias='tokens', | ||
materialized='table', | ||
file_format='delta', | ||
tags=['static'] | ||
) | ||
}} | ||
|
||
SELECT | ||
token_id, | ||
blockchain, | ||
symbol, | ||
contract_address, | ||
decimals | ||
FROM | ||
( | ||
VALUES | ||
-- verified | ||
('mnt-mantle', 'mantle', 'MNT', 0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000, 18), | ||
('mnt-mantle', 'mantle', 'WMNT', 0x78c1b0c915c4faa5fffa6cabf0219da63d7f4cb8, 18), | ||
('joe-trader-joe', 'mantle', 'JOE', 0x371c7ec6d8039ff7933a2aa28eb827ffe1f52f07, 18), | ||
('usdc-usd-coin', 'mantle', 'USDC', 0x09bc4e0d864854c6afb6eb9a9cdf58ac190d0df9, 6), | ||
('weth-weth', 'mantle', 'WETH', 0xdeaddeaddeaddeaddeaddeaddeaddeaddead1111, 18), | ||
('meth-meth', 'mantle', 'mETH', 0xcda86a272531e8640cd7f1a92c01839911b90bb0, 18), | ||
('usdt-tether', 'mantle', 'USDT', 0x201eba5cc46d216ce6dc03f6a759e8e766e956ae, 6), | ||
('axlusdc-axelar-wrapped-usdc', 'mantle', 'axlUSDC', 0xeb466342c4d449bc9f53a865d5cb90586f405215, 6), | ||
|
||
-- not verified | ||
('stg-stargatetoken', 'mantle', 'STG', 0x8731d54e9d02c286767d56ac03e8037c07e01e98, 18), | ||
('pendle-pendle', 'mantle', 'PENDLE', 0xd27b18915e7acc8fd6ac75db6766a80f8d2f5729, 18), | ||
-- ('wbtc-wrapped-bitcoin', 'mantle', 'WBTC', 0xcabae6f6ea1ecab08ad02fe02ce9a44f09aebfa2, 8), not sure about authenticity | ||
('ena-ethena', 'mantle', 'ENA', 0x58538e6a46e07434d7e7375bc268d3cb839c0133, 18), | ||
('lend-ethlend', 'mantle', 'LEND', 0x25356aeca4210ef7553140edb9b8026089e49396, 18) | ||
-- ('pepe-pepe', 'mantle', 'PEPE', 0x2cb76c8949c7b7fae6dc0614c3b1bfd435f9a0bc, 18), | ||
-- ('lusd-lusd', 'mantle', 'LUSD', 0xf93a85d53e4af0d62bdf3a83ccfc1ecf3eaf9f32, 18), not sure about authenticity | ||
-- ('wsteth-wrapped-steth', 'mantle', 'wstETH', 0x636d4073738c071326aa70c9e5db7c334beb87be, 18), not sure about authenticity | ||
-- ('usde-ethena-usde', 'mantle', 'USDe', 0x5d3a1ff2b6bab83b63cd9ad0787074081a52ef34, 18) not sure about authenticity | ||
) 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
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.
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.
looks like this one is returning as inactive, maybe we deactivate for now too?