-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: token and params display [web-nym] (#1312)
## Description Closes: #XXXX <!-- Add a description of the changes that this PR introduces and the files that are the most critical to review. --> --- ### Author Checklist _All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues._ I have... - [x] ran linting via `yarn lint` - [ ] wrote tests where necessary - [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title - [x] targeted the correct branch - [x] provided a link to the relevant issue or specification - [x] reviewed "Files changed" and left comments if necessary - [x] confirmed all CI checks have passed - [x] added a changeset via [`yarn && yarn changeset`](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md)
- Loading branch information
Showing
20 changed files
with
1,305 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'web-nym': patch | ||
'ui': patch | ||
--- | ||
|
||
fix: token and params display |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
"chainName": "nym", | ||
"title": "NYM Block Explorer", | ||
"extra": { | ||
"votingPowerExponent": 6, | ||
"profile": true, | ||
"graphqlWs": false | ||
}, | ||
|
@@ -205,7 +206,7 @@ | |
} | ||
} | ||
}, | ||
"keplr": "{\"chainId\":\"nyx\",\"chainName\":\"Nyx\",\"chainSymbolImageUrl\":\"https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nyx/chain.png\",\"rpc\":\"https://rpc.nyx.nodes.guru\",\"rest\":\"https://api.nyx.nodes.guru/\",\"nodeProvider\":{\"name\":\"NodesGuru\",\"email\":\"[email protected]\",\"website\":\"https://nodes.guru/\"},\"bip44\":{\"coinType\":118},\"bech32Config\":{\"bech32PrefixAccAddr\":\"n\",\"bech32PrefixAccPub\":\"npub\",\"bech32PrefixValAddr\":\"nvaloper\",\"bech32PrefixValPub\":\"nvaloperpub\",\"bech32PrefixConsAddr\":\"nvalcons\",\"bech32PrefixConsPub\":\"nvalconspub\"},\"stakeCurrency\":{\"coinDenom\":\"nyx\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6},\"currencies\":[{\"coinDenom\":\"NYM\",\"coinMinimalDenom\":\"unym\",\"coinDecimals\":6,\"coinGeckoId\":\"nym\"},{\"coinDenom\":\"NYX\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6,\"coinGeckoId\":\"nyx\"}],\"feeCurrencies\":[{\"coinDenom\":\"nym\",\"coinMinimalDenom\":\"unym\",\"coinDecimals\":6,\"coinGeckoId\":\"nym\"},{\"coinDenom\":\"nyx\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6,\"coinGeckoId\":\"nyx\"}],\"features\":[\"cosmwasm\"]}", | ||
"keplr": "{\"chainId\":\"nyx\",\"chainName\":\"Nyx\",\"chainSymbolImageUrl\":\"https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/nyx/chain.png\",\"rpc\":\"https://rpc.nyx.nodes.guru\",\"rest\":\"https://api.nyx.nodes.guru/\",\"nodeProvider\":{\"name\":\"NodesGuru\",\"email\":\"[email protected]\",\"website\":\"https://nodes.guru/\"},\"bip44\":{\"coinType\":118},\"bech32Config\":{\"bech32PrefixAccAddr\":\"n\",\"bech32PrefixAccPub\":\"npub\",\"bech32PrefixValAddr\":\"nvaloper\",\"bech32PrefixValPub\":\"nvaloperpub\",\"bech32PrefixConsAddr\":\"nvalcons\",\"bech32PrefixConsPub\":\"nvalconspub\"},\"stakeCurrency\":{\"coinDenom\":\"nyx\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6},\"currencies\":[{\"coinDenom\":\"NYX\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6,\"coinGeckoId\":\"nym\"},{\"coinDenom\":\"NYX\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6,\"coinGeckoId\":\"nyx\"}],\"feeCurrencies\":[{\"coinDenom\":\"nyx\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6,\"coinGeckoId\":\"nym\"},{\"coinDenom\":\"nyx\",\"coinMinimalDenom\":\"unyx\",\"coinDecimals\":6,\"coinGeckoId\":\"nyx\"}],\"features\":[\"cosmwasm\"]}", | ||
"chains": [ | ||
{ | ||
"network": "nyx", | ||
|
@@ -221,8 +222,13 @@ | |
}, | ||
"primaryTokenUnit": "unyx", | ||
"votingPowerTokenUnit": "unyx", | ||
"priceTokenUnit": "unym", | ||
"tokenUnits": { | ||
"unyx": { | ||
"display": "nyx", | ||
"exponent": 6 | ||
}, | ||
"unym": { | ||
"display": "nym", | ||
"exponent": 6 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
export interface ChainSettings { | ||
network: string; | ||
chainType: string; | ||
genesis: { | ||
time: string; | ||
height: number; | ||
}; | ||
prefix: { | ||
consensus: string; | ||
validator: string; | ||
account: string; | ||
}; | ||
primaryTokenUnit: string; | ||
priceTokenUnit: string; | ||
votingPowerTokenUnit: string; | ||
tokenUnits: { | ||
[token: string]: { | ||
display: string; | ||
exponent: number; | ||
}; | ||
}; | ||
endpoints: { | ||
graphql?: string; | ||
graphqlWebsocket?: string; | ||
publicRpcWebsocket?: string; | ||
}; | ||
marketing: { | ||
matomoURL?: string; | ||
matomoSiteID?: string; | ||
}; | ||
} | ||
|
||
export interface PaletteSettings { | ||
primary: { | ||
main?: string; | ||
contractText?: string; | ||
}; | ||
background: { | ||
default?: string; | ||
paper?: string; | ||
}; | ||
divider?: string; | ||
text: { | ||
primary?: string; | ||
secondary?: string; | ||
}; | ||
custom: { | ||
general: { | ||
background?: string; | ||
surfaceOne?: string; | ||
surfaceTwo?: string; | ||
surfaceThree?: string; | ||
icon?: string; | ||
}; | ||
fonts: { | ||
fontOne?: string; | ||
fontTwo?: string; | ||
fontThree?: string; | ||
fontFour?: string; | ||
fontFive?: string; | ||
highlight?: string; | ||
}; | ||
primaryData: { | ||
one?: string; | ||
two?: string; | ||
three?: string; | ||
four?: string; | ||
}; | ||
results: { | ||
pass?: string; | ||
fail?: string; | ||
}; | ||
tokenomics: { | ||
one?: string; | ||
two?: string; | ||
three?: string; | ||
}; | ||
conditions: { | ||
zero?: string; | ||
one?: string; | ||
two?: string; | ||
three?: string; | ||
}; | ||
charts: { | ||
zero?: string; | ||
one?: string; | ||
two?: string; | ||
three?: string; | ||
four?: string; | ||
five?: string; | ||
}; | ||
tags: { | ||
zero?: string; | ||
one?: string; | ||
two?: string; | ||
three?: string; | ||
four?: string; | ||
five?: string; | ||
six?: string; | ||
seven?: string; | ||
eight?: string; | ||
nine?: string; | ||
ten?: string; | ||
eleven?: string; | ||
twelve?: string; | ||
thirteen?: string; | ||
fourteen?: string; | ||
fifteen?: string; | ||
sixteen?: string; | ||
seventeen?: string; | ||
eighteen?: string; | ||
nineteen?: string; | ||
twenty?: string; | ||
}; | ||
wallet: { | ||
background?: string; | ||
backgroundTwo?: string; | ||
surfaceOne: string; | ||
surfaceTwo: string; | ||
surfaceThree: string; | ||
surfaceFour: string; | ||
surfaceFive: string; | ||
divider?: string; | ||
textPrimary?: string; | ||
textSecondary?: string; | ||
active?: string; | ||
inactive?: string; | ||
}; | ||
}; | ||
} | ||
|
||
export interface ChainConfig extends ChainSettings { | ||
chainName: string; | ||
title: string; | ||
extra: { | ||
profile: boolean; | ||
graphqlWs: boolean; | ||
votingPowerExponent?: number; | ||
}; | ||
basePath: string; | ||
previewImage?: string; | ||
themes: { | ||
default: string; | ||
themeList: Array<'dark' | 'light' | 'deuteranopia' | 'tritanopia'>; | ||
dark: PaletteSettings; | ||
light: PaletteSettings; | ||
}; | ||
keplr: string | undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c6ec239
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cosmos – ./
cosmos-git-main-bigdipper.vercel.app
bigdipper.vercel.app
cosmos-bigdipper.vercel.app