Skip to content

Commit

Permalink
Merge branch 'chainapsis:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sintayew4 committed Jun 20, 2024
2 parents a562b94 + 4aab040 commit 0a5b9d7
Show file tree
Hide file tree
Showing 17 changed files with 195 additions and 12 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
trailingComma: "all",
tabWidth: 2,
endOfLine: "auto",
};
6 changes: 6 additions & 0 deletions cosmos/chihuahua.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
54 changes: 54 additions & 0 deletions cosmos/coreum-testnet.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

10 changes: 5 additions & 5 deletions cosmos/furya.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
}
10 changes: 8 additions & 2 deletions cosmos/migaloo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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":[
Expand Down
51 changes: 51 additions & 0 deletions cosmos/nibiru-devnet.json
Original file line number Diff line number Diff line change
@@ -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"]
}
4 changes: 2 additions & 2 deletions cosmos/nibiru-testnet.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions cosmos/pion.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
51 changes: 51 additions & 0 deletions cosmos/self.json
Original file line number Diff line number Diff line change
@@ -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": []
}
4 changes: 2 additions & 2 deletions cosmos/symphony-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/coreum-testnet/chain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/nibiru-devnet/chain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/nibiru/chain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/self/chain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 0a5b9d7

Please sign in to comment.