Skip to content

Commit

Permalink
Apply cast to chain_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Hosuke committed May 30, 2023
1 parent 2f7aeab commit dbae438
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions models/chain_info/chain_info_chain_ids.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
-- data pull: https://github.com/MSilb7/msilb7-crypto-queries/blob/main/dune_spell_utils/chain_ids/gt_chain_ids.ipynb

SELECT
`name` AS chain_name
,`chain` AS chain_shortname
,`nativeCurrency` AS native_currency_symbol
,`chainId` AS chain_id
,`networkId` AS network_id
,`infoURL` AS info_url
,`explorer` AS explorer
name AS chain_name
,chain AS chain_shortname
,nativeCurrency AS native_currency_symbol
,CAST(chainId AS VARCHAR) AS chain_id
,networkId AS network_id
,infoURL AS info_url
,explorer AS explorer
FROM ( values
('Ethereum Mainnet' ,'ETH' ,'ETH' ,'1' ,'1' ,'https://ethereum.org' ,'https://etherscan.io')
,('Expanse Network' ,'EXP' ,'EXP' ,'2' ,'1' ,'https://expanse.tech' ,'')
Expand Down Expand Up @@ -629,4 +629,4 @@ FROM ( values
,('Molereum Network' ,'ETH' ,'MOLE' ,'6022140761023' ,'6022140761023' ,'https://github.com/Jdubedition/molereum' ,'')
,('Godwoken Testnet (V1)' ,'GWT' ,'CKB' ,'868455272153094' ,'868455272153094' ,'https://www.nervos.org' ,'https://v1.aggron.gwscan.com')

) a (`name`,`chain`,`nativeCurrency`,`chainId`,`networkId`,`infoURL`,`explorer`)
) a (name,chain,nativeCurrency,chainId,networkId,infoURL,explorer)

0 comments on commit dbae438

Please sign in to comment.