diff --git a/.prettierrc.js b/.prettierrc.js index 5b96425d9..5160c62a6 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,4 +1,5 @@ module.exports = { trailingComma: "all", tabWidth: 2, + endOfLine: "auto", }; diff --git a/cosmos/chihuahua.json b/cosmos/chihuahua.json index 4b16588f3..5eac9e081 100644 --- a/cosmos/chihuahua.json +++ b/cosmos/chihuahua.json @@ -65,6 +65,12 @@ "coinMinimalDenom": "factory/chihuahua13jawsn574rf3f0u5rhu7e8n6sayx5gkw3eddhp/ucorso", "coinDecimals": 6, "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/chihuahua/factory/chihuahua13jawsn574rf3f0u5rhu7e8n6sayx5gkw3eddhp/corso.png" + }, + { + "coinDenom": "ashHUAHUA", + "coinMinimalDenom": "factory/chihuahua1hplyuj2hzxd75q8686g9vm3uzrrny9ggvt8aza2csupgdp98vg2sp0e3h0/uhuahua.ash", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/chihuahua/factory/chihuahua1hplyuj2hzxd75q8686g9vm3uzrrny9ggvt8aza2csupgdp98vg2sp0e3h0/uhuahua.ash.png" } ], "feeCurrencies": [ diff --git a/cosmos/coreum-testnet.json b/cosmos/coreum-testnet.json new file mode 100644 index 000000000..e87498cdf --- /dev/null +++ b/cosmos/coreum-testnet.json @@ -0,0 +1,54 @@ +{ + "chainId": "coreum-testnet-1", + "chainName": "Coreum Testnet", + "chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/coreum-testnet/chain.png", + "rpc": "https://full-node.testnet-1.coreum.dev:26657", + "rest": "https://full-node.testnet-1.coreum.dev:1317", + "nodeProvider": { + "name": "Coreum Full Node", + "website":"https://www.coreum.com/", + "email": "hello@coreum.com" + }, + "bip44": { + "coinType": 990 + }, + "bech32Config": { + "bech32PrefixAccAddr": "core", + "bech32PrefixAccPub": "corepub", + "bech32PrefixValAddr": "corevaloper", + "bech32PrefixValPub": "corevaloperpub", + "bech32PrefixConsAddr": "corevalcons", + "bech32PrefixConsPub": "corevalconspub" + }, + "currencies": [ + { + "coinDenom": "TESTCORE", + "coinMinimalDenom": "utestcore", + "coinDecimals": 6, + "coinGeckoId": "coreum" + } + ], + "feeCurrencies": [ + { + "coinDenom": "TESTCORE", + "coinMinimalDenom": "utestcore", + "coinDecimals": 6, + "coinGeckoId": "coreum", + "gasPriceStep": { + "low": 0.0625, + "average": 0.0625, + "high": 0.0625 + } + } + ], + "stakeCurrency": { + "coinDenom": "TESTCORE", + "coinMinimalDenom": "utestcore", + "coinDecimals": 6, + "coinGeckoId": "coreum" + }, + "features": [ + "cosmwasm" + ] + } + diff --git a/cosmos/furya.json b/cosmos/furya.json index c2c6e51ea..dbf4de87c 100644 --- a/cosmos/furya.json +++ b/cosmos/furya.json @@ -2,12 +2,12 @@ "chainId": "furya-1", "chainName": "Furya", "chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/furya/chain.png", - "rpc": "https://rpc.furya.xyz", - "rest": "https://api.furya.xyz", + "rpc": "https://furya.rpc.nodeshub.online", + "rest": "https://furya.api.nodeshub.online", "nodeProvider": { "name": "Furya", - "email": "team@fury.fan", - "website": "https://one.furya.xyz/" + "email": "team@furya.network", + "website": "https://docs.furya.network" }, "bip44": { "coinType": 118 @@ -51,5 +51,5 @@ "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/furya/ufury.png" }, "features": ["cosmwasm"], - "walletUrlForStaking": "https://one.furya.xyz/staking" + "walletUrlForStaking": "https://explorer.furya.network/furya-1/staking" } diff --git a/cosmos/migaloo.json b/cosmos/migaloo.json index baba95208..8f3dc7f36 100644 --- a/cosmos/migaloo.json +++ b/cosmos/migaloo.json @@ -57,12 +57,18 @@ "coinMinimalDenom": "factory/migaloo1d0uma9qzcts4fzt7ml39xp44aut5k6qyjfzz4asalnecppppr3rsl52vvv/rstk", "coinDecimals": 6, "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/migaloo/factory/migaloo1d0uma9qzcts4fzt7ml39xp44aut5k6qyjfzz4asalnecppppr3rsl52vvv/rstk.png" - }, - { + }, + { "coinDenom": "GRAC", "coinMinimalDenom": "factory/migaloo1eqntnl6tzcj9h86psg4y4h6hh05g2h9nj8e09l/ugrac", "coinDecimals": 6, "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/migaloo/factory/migaloo1eqntnl6tzcj9h86psg4y4h6hh05g2h9nj8e09l/grac.png" + }, + { + "coinDenom": "ampGASH", + "coinMinimalDenom": "factory/migaloo1nsskhvvh0msm7d5ke2kfg24a8d4jecsnxd28s27h0uz5kf9ap60shlqmcl/ampGASH", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/migaloo/factory/migaloo1nsskhvvh0msm7d5ke2kfg24a8d4jecsnxd28s27h0uz5kf9ap60shlqmcl/ampGASH.png" } ], "feeCurrencies":[ diff --git a/cosmos/nibiru-devnet.json b/cosmos/nibiru-devnet.json new file mode 100644 index 000000000..1dd09fe86 --- /dev/null +++ b/cosmos/nibiru-devnet.json @@ -0,0 +1,51 @@ +{ + "chainId": "nibiru-devnet-1", + "chainName": "nibirudevnet", + "chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nibiru-devnet/chain.png", + "rpc": "https://rpc.devnet-1.nibiru.fi/", + "rest": "https://lcd.devnet-1.nibiru.fi/", + "nodeProvider": { + "name": "Nibiru Team", + "email": "dev@nibiru.fi", + "website": "https://nibiru.fi" + }, + "bip44": { + "coinType": 118 + }, + "bech32Config": { + "bech32PrefixAccAddr": "nibi", + "bech32PrefixAccPub": "nibipub", + "bech32PrefixValAddr": "nibivaloper", + "bech32PrefixValPub": "nibivaloperpub", + "bech32PrefixConsAddr": "nibivalcons", + "bech32PrefixConsPub": "nibivalconspub" + }, + "currencies": [ + { + "coinDenom": "NIBI", + "coinMinimalDenom": "unibi", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nibiru-devnet/chain.png" + } + ], + "feeCurrencies": [ + { + "coinDenom": "NIBI", + "coinMinimalDenom": "unibi", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nibiru-devnet/chain.png", + "gasPriceStep": { + "low": 0.05, + "average": 0.125, + "high": 0.2 + } + } + ], + "stakeCurrency": { + "coinDenom": "NIBI", + "coinMinimalDenom": "unibi", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nibiru-devnet/chain.png" + }, + "features": ["cosmwasm"] +} diff --git a/cosmos/nibiru-testnet.json b/cosmos/nibiru-testnet.json index 2a3f89119..146678708 100644 --- a/cosmos/nibiru-testnet.json +++ b/cosmos/nibiru-testnet.json @@ -1,13 +1,13 @@ { "chainId": "nibiru-testnet-1", - "chainName": "Nibiru Testnet", + "chainName": "nibirutestnet", "chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nibiru-testnet/chain.png", "rpc": "https://rpc.testnet-1.nibiru.fi/", "rest": "https://lcd.testnet-1.nibiru.fi/", "nodeProvider": { "name": "Nibiru Team", "email": "dev@nibiru.fi", - "website": "https://app.nibiru.fi" + "website": "https://nibiru.fi" }, "bip44": { "coinType": 118 diff --git a/cosmos/pion.json b/cosmos/pion.json index bf887b5ab..e2702bf93 100644 --- a/cosmos/pion.json +++ b/cosmos/pion.json @@ -26,6 +26,11 @@ "coinMinimalDenom": "factory/neutron15lku24mqhvy4v4gryrqs4662n9v9q4ux9tayn89cmdzldjcgawushxvm76/amatom", "coinDecimals": 6, "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pion/factory/neutron15lku24mqhvy4v4gryrqs4662n9v9q4ux9tayn89cmdzldjcgawushxvm76/amATOM.png" + }, + { + "coinDenom": "dATOM", + "coinMinimalDenom": "factory/neutron1wgtjgeprg53wthczzlzpg0vrytuvfl9j59lpf87qd3mtj2dq6xysxvwcxd/drop", + "coinDecimals": 6 } ], "feeCurrencies": [ diff --git a/cosmos/self.json b/cosmos/self.json new file mode 100644 index 000000000..943458a23 --- /dev/null +++ b/cosmos/self.json @@ -0,0 +1,51 @@ +{ + "chainId": "self-1", + "chainName": "Self Chain", + "chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/self/chain.png", + "rpc": "https://rpc.selfchain.io:26657", + "rest": "https://api.selfchain.io", + "nodeProvider": { + "name": "Self Chain", + "email": "hello@frontier.xyz", + "website":"https://selfchain.xyz" + }, + "bip44": { + "coinType": 118 + }, + "bech32Config": { + "bech32PrefixAccAddr": "self", + "bech32PrefixAccPub": "selfpub", + "bech32PrefixValAddr": "selfvaloper", + "bech32PrefixValPub": "selfvaloperpub", + "bech32PrefixConsAddr": "selfvalcons", + "bech32PrefixConsPub": "selfvalconspub" + }, + "currencies": [ + { + "coinDenom": "SLF", + "coinMinimalDenom": "uslf", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/self/chain.png" + } + ], + "feeCurrencies": [ + { + "coinDenom": "SLF", + "coinMinimalDenom": "uslf", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/self/chain.png", + "gasPriceStep": { + "low": 0.005, + "average": 0.025, + "high": 0.03 + } + } + ], + "stakeCurrency": { + "coinDenom": "SLF", + "coinMinimalDenom": "uslf", + "coinDecimals": 6, + "coinImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/self/chain.png" + }, + "features": [] +} \ No newline at end of file diff --git a/cosmos/symphony-testnet.json b/cosmos/symphony-testnet.json index 6fc739e1c..0d6a3e1dc 100644 --- a/cosmos/symphony-testnet.json +++ b/cosmos/symphony-testnet.json @@ -2,8 +2,8 @@ "chainId": "symphony-testnet-1", "chainName": "Symphony Testnet", "chainSymbolImageUrl": "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/symphony-testnet/chain.png", - "rpc": "http://rpc.testnet.symphonychain.org", - "rest": "http://lcd.testnet.symphonychain.org", + "rpc": "https://rpc.testnet.symphonychain.org", + "rest": "https://lcd.testnet.symphonychain.org", "nodeProvider": { "name": "Orchestra Labs", "email": "dblackstone@orchestralabs.org", diff --git a/images/chihuahua/factory/chihuahua1hplyuj2hzxd75q8686g9vm3uzrrny9ggvt8aza2csupgdp98vg2sp0e3h0/uhuahua.ash.png b/images/chihuahua/factory/chihuahua1hplyuj2hzxd75q8686g9vm3uzrrny9ggvt8aza2csupgdp98vg2sp0e3h0/uhuahua.ash.png new file mode 100644 index 000000000..ea08415dd Binary files /dev/null and b/images/chihuahua/factory/chihuahua1hplyuj2hzxd75q8686g9vm3uzrrny9ggvt8aza2csupgdp98vg2sp0e3h0/uhuahua.ash.png differ diff --git a/images/coreum-testnet/chain.png b/images/coreum-testnet/chain.png new file mode 100644 index 000000000..1aa741c9a Binary files /dev/null and b/images/coreum-testnet/chain.png differ diff --git a/images/migaloo/factory/migaloo1nsskhvvh0msm7d5ke2kfg24a8d4jecsnxd28s27h0uz5kf9ap60shlqmcl/ampGASH.png b/images/migaloo/factory/migaloo1nsskhvvh0msm7d5ke2kfg24a8d4jecsnxd28s27h0uz5kf9ap60shlqmcl/ampGASH.png new file mode 100644 index 000000000..ef7aa94fe Binary files /dev/null and b/images/migaloo/factory/migaloo1nsskhvvh0msm7d5ke2kfg24a8d4jecsnxd28s27h0uz5kf9ap60shlqmcl/ampGASH.png differ diff --git a/images/nibiru-devnet/chain.png b/images/nibiru-devnet/chain.png new file mode 100644 index 000000000..ee75feab6 Binary files /dev/null and b/images/nibiru-devnet/chain.png differ diff --git a/images/nibiru/chain.png b/images/nibiru/chain.png new file mode 100644 index 000000000..ee75feab6 Binary files /dev/null and b/images/nibiru/chain.png differ diff --git a/images/self/chain.png b/images/self/chain.png new file mode 100644 index 000000000..8016ae25c Binary files /dev/null and b/images/self/chain.png differ diff --git a/src/validate.ts b/src/validate.ts index 654a289fa..668c907cb 100644 --- a/src/validate.ts +++ b/src/validate.ts @@ -81,6 +81,15 @@ export const validateChainInfo = async ( throw new Error("Should not set 'beta' field"); } + if ( + chainInfo.rpc.startsWith("http://") || + chainInfo.rest.startsWith("http://") + ) { + throw new Error( + "RPC, LCD endpoints cannot be set as HTTP, please set them as HTTPS", + ); + } + // check RPC alive await checkRPCConnectivity( chainInfo.chainId, @@ -161,7 +170,7 @@ export const checkCurrencies = (chainInfo: ChainInfo) => { chainInfo.stakeCurrency && !chainInfo.currencies.some( (currency) => - currency.coinMinimalDenom === chainInfo.stakeCurrency!.coinMinimalDenom, + currency.coinMinimalDenom === chainInfo.stakeCurrency?.coinMinimalDenom, ) ) { throw new Error(