Skip to content

Commit

Permalink
Feat/add nibiru as a native chain (chainapsis#662)
Browse files Browse the repository at this point in the history
* feat: add nibiru as a native chain

* fix: generic names

* fix: most generic name

* Fix feedback

* Revert adding nibiru to native chain identifiers

---------

Co-authored-by: Rita <[email protected]>
  • Loading branch information
cgilbe27 and editaahn authored Jun 17, 2024
1 parent b251f39 commit ccf13c3
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 3 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",
};
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": "[email protected]",
"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": "[email protected]",
"website": "https://app.nibiru.fi"
"website": "https://nibiru.fi"
},
"bip44": {
"coinType": 118
Expand Down
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.
2 changes: 1 addition & 1 deletion src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,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 ccf13c3

Please sign in to comment.