Add Terra

This commit is contained in:
liangping 2021-08-10 14:30:06 +08:00
parent 184088ae83
commit 1ffa71b8e4
3 changed files with 14 additions and 7 deletions

View File

@ -10,6 +10,7 @@
"osmosis": "Osmosis", "osmosis": "Osmosis",
"okexchain": "OKEX Chain", "okexchain": "OKEX Chain",
"band": "Band Protocal", "band": "Band Protocal",
"terra": "Terra",
"staking": "Staking", "staking": "Staking",
"governance": "Governance", "governance": "Governance",

View File

@ -8,13 +8,13 @@ configs.keys().forEach(k => {
update[c.chain_name] = c update[c.chain_name] = c
}) })
const localChains = localStorage.getItem('chains') // const localChains = localStorage.getItem('chains')
if (localChains) { // if (localChains) {
chains = JSON.parse(localChains) // chains = JSON.parse(localChains)
} else { // } else {
chains = update chains = update
localStorage.setItem('chains', JSON.stringify(update)) localStorage.setItem('chains', JSON.stringify(update))
} // }
// Object.keys(update).forEach(key => { // Object.keys(update).forEach(key => {
// const chain = update[key] // const chain = update[key]

View File

@ -0,0 +1,6 @@
{
"chain_name": "terra",
"api": "https://fcd.terra.dev",
"sdk_version": "0.39.2",
"logo": "https://dl.airtable.com/.attachments/275a6cbdbdc911856556e716a60d6ec4/87addd7f/terra.jpg"
}