Skip to content

Commit

Permalink
Added manual additions of tokens for mantle to tokens.erc20 model
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-analytics committed Jun 9, 2024
1 parent c3f0bac commit df511f7
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 6 deletions.
35 changes: 35 additions & 0 deletions tokens/models/tokens/mantle/tokens_mantle_erc20.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{{
config(
schema = 'tokens_mantle'
,alias = 'erc20'
,tags = ['static']
,materialized = 'table'
)
}}

SELECT
contract_address
, symbol
, decimals
FROM (VALUES
(0x19a414a6b1743315c731492cb9b7b559d7db9ab7, 'MoeLP', 18)
, (0x1a4d4aa3bd8587f6e05cc98cf87954f7d95c11c6, 'MoeLP', 18)
, (0x30ac02b4c99d140cde2a212ca807cbda35d4f6b5, 'MoeLP', 18)
, (0x33b1d7cfff71bba9dd987f96ad57e0a5f7db9ac5, 'MoeLP', 18)
, (0x347bb5065eadd5f7cb5fd0a696137d49f38ac6cb, 'MoeLP', 18)
, (0x371c7ec6d8039ff7933a2aa28eb827ffe1f52f07, 'JOE', 18)
, (0x4515a45337f461a11ff0fe8abf3c606ae5dc00c9, 'MOE', 18)
, (0x4a18891de69124d2853a4e27543edb7e2e001179, 'MoeLP', 18)
, (0x4e7685df06201521f35a182467feefe02c53d847, 'MoeLP', 18)
, (0x5126ac4145ed84ebe28cfb34bb6300bcef492bb7, 'MoeLP', 18)
, (0x562a1a3979a4a10ac2e060cfa4b53cad8011604a, 'MoeLP', 18)
, (0x763868612858358f62b05691db82ad35a9b3e110, 'MoeLP', 18)
, (0x7d35ba038df5afde64a1962683ffeb3e150637ff, 'MoeLP', 18)
, (0x86e3a987187fed135d6d9c114f1857d8144f01e1, 'MoeLP', 18)
, (0x8e3a13418743ab1a98434551937ea687e451b589, 'MoeLP', 18)
, (0xb1e695dc6ca41d0dc5030d7e316c879a47fd492a, 'MoeLP', 18)
, (0xb670d2b452d0ecc468cccfd532482d45dddde2a1, 'MoeLP', 18)
, (0xc1f43e45f86e7bfb92c3c309b0ef366f9ba33bfa, 'MoeLP', 18)
, (0xefc38c1b0d60725b824ebee8d431abfbf12bc953, 'MoeLP', 18)
, (0xfbea6da85f6554fe4d429e9f37f8ba54a9ac94c3, 'MoeLP', 18)
) AS temp_table (contract_address, symbol, decimals)
21 changes: 21 additions & 0 deletions tokens/models/tokens/mantle/tokens_mantle_schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2

models:
- name: tokens_mantle_erc20
meta:
blockchain: mantle
sector: tokens
project: erc20
contributors: angus_1
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"
7 changes: 4 additions & 3 deletions tokens/models/tokens/tokens_erc20.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
schema = 'tokens'
,alias = 'erc20'
,materialized = 'table'
,post_hook='{{ expose_spells(\'["arbitrum","avalanche_c","base","bnb","celo","ethereum","fantom","gnosis","goerli","optimism","polygon","scroll","zkevm","zksync","zora","fuse"]\',
,post_hook='{{ expose_spells(\'["arbitrum","avalanche_c","base","bnb","celo","ethereum","fantom","fuse","gnosis","goerli","mantle","optimism","polygon","scroll","zkevm","zksync","zora"]\',
"sector",
"tokens",
\'["bh2smith", "0xManny","hildobby","soispoke","dot2dotseurat","mtitus6","wuligy","lgingerich","0xRob","jeff-dude", "viniabussafi","IrishLatte19"]\') }}'
\'["bh2smith","0xManny","hildobby","soispoke","dot2dotseurat","mtitus6","wuligy","lgingerich","0xRob","jeff-dude","viniabussafi","IrishLatte19","angus_1"]\') }}'
)
}}

Expand All @@ -23,15 +23,16 @@
,'tokens_celo': {'blockchain': 'celo', 'model': ref('tokens_celo_erc20')}
,'tokens_ethereum': {'blockchain': 'ethereum', 'model': ref('tokens_ethereum_erc20')}
,'tokens_fantom': {'blockchain': 'fantom', 'model': ref('tokens_fantom_erc20')}
,'tokens_fuse': {'blockchain': 'fuse', 'model': ref('tokens_fuse_erc20')}
,'tokens_gnosis': {'blockchain': 'gnosis', 'model': ref('tokens_gnosis_erc20')}
,'tokens_goerli': {'blockchain': 'goerli', 'model': ref('tokens_goerli_erc20')}
,'tokens_mantle': {'blockchain': 'mantle', 'model': ref('tokens_mantle_erc20')}
,'tokens_optimism': {'blockchain': 'optimism', 'model': ref('tokens_optimism_erc20')}
,'tokens_polygon': {'blockchain': 'polygon', 'model': ref('tokens_polygon_erc20')}
,'tokens_scroll': {'blockchain': 'scroll', 'model': ref('tokens_scroll_erc20')}
,'tokens_zkevm': {'blockchain': 'zkevm', 'model': ref('tokens_zkevm_erc20')}
,'tokens_zksync': {'blockchain': 'zksync', 'model': ref('tokens_zksync_erc20')}
,'tokens_zora': {'blockchain': 'zora', 'model': ref('tokens_zora_erc20')}
,'tokens_fuse': {'blockchain': 'fuse', 'model': ref('tokens_fuse_erc20')}
} %}

with
Expand Down
6 changes: 3 additions & 3 deletions tokens/models/tokens/tokens_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ version: 2
models:
- name: tokens_erc20
meta:
blockchain: arbitrum, avalanche_c, bnb, ethereum, gnosis, optimism, fantom, polygon, base
blockchain: arbitrum, avalanche_c, bnb, ethereum, gnosis, mantle, optimism, fantom, polygon, base
sector: tokens
contributors: hildobby, 0xManny, dot2dotseurat, soispoke, mtitus6, wuligy
contributors: hildobby, 0xManny, dot2dotseurat, soispoke, mtitus6, wuligy, angus_1
config:
tags: ['tokens','erc20', 'arbitrum', 'avalanche_c', 'bnb','ethereum', 'gnosis','optimism', 'fantom', 'base']
tags: ['tokens','erc20', 'arbitrum', 'avalanche_c', 'bnb', 'ethereum', 'gnosis', 'mantle', 'optimism', 'fantom', 'base']
description: >
Crosschain ERC20 tokens
tests:
Expand Down

0 comments on commit df511f7

Please sign in to comment.