mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-07-23 14:15:45 +00:00
Support Charred Cherry (#25)
* Support Charred Cherry * Update endpoint to old version * chainId -> networkId, unit -> tokenSymbol * decimals -> tokenDecimals * Bump deps * Update PoC-3 network description * Bump deps
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-assets",
|
||||
"version": "0.23.4",
|
||||
"version": "0.24.0",
|
||||
"description": "Static assets shared accross projects",
|
||||
"main": "index.js",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-identicon",
|
||||
"version": "0.23.4",
|
||||
"version": "0.24.0",
|
||||
"description": "Renders an SVG picture representing an address",
|
||||
"main": "index.js",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -11,7 +11,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"@polkadot/keyring": "^0.33.19",
|
||||
"@polkadot/ui-settings": "^0.23.4",
|
||||
"@polkadot/ui-settings": "^0.24.0",
|
||||
"@polkadot/util-crypto": "^0.33.19",
|
||||
"@types/color": "^3.0.0",
|
||||
"@types/react-copy-to-clipboard": "^4.2.6",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-keyring",
|
||||
"version": "0.23.4",
|
||||
"version": "0.24.0",
|
||||
"main": "index.js",
|
||||
"repository": "https://github.com/polkadot-js/apps.git",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
@@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.2.0",
|
||||
"@polkadot/keyring": "^0.33.19",
|
||||
"@polkadot/types": "^0.34.3",
|
||||
"@polkadot/types": "^0.34.6",
|
||||
"@types/store": "^2.0.1",
|
||||
"store": "^2.0.12"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@polkadot/ui-settings",
|
||||
"version": "0.23.4",
|
||||
"version": "0.24.0",
|
||||
"description": "Manages app settings",
|
||||
"main": "index.js",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
|
||||
@@ -7,27 +7,27 @@ import { ChainsInfo, Options } from './types';
|
||||
const CHAINS: ChainsInfo = [
|
||||
{
|
||||
name: 'Development',
|
||||
chainId: 0,
|
||||
decimals: 0,
|
||||
unit: 'Unit'
|
||||
networkId: 0,
|
||||
tokenDecimals: 0,
|
||||
tokenSymbol: 'Unit'
|
||||
},
|
||||
{
|
||||
name: 'Local Testnet',
|
||||
chainId: 0,
|
||||
decimals: 0,
|
||||
unit: 'Unit'
|
||||
networkId: 0,
|
||||
tokenDecimals: 0,
|
||||
tokenSymbol: 'Unit'
|
||||
},
|
||||
{
|
||||
name: 'BBQ Birch',
|
||||
chainId: 68,
|
||||
decimals: 15,
|
||||
unit: 'BBQ'
|
||||
name: 'Charred Cherry',
|
||||
networkId: 68,
|
||||
tokenDecimals: 15,
|
||||
tokenSymbol: 'CHR'
|
||||
}
|
||||
];
|
||||
|
||||
const ENDPOINTS: Options = [
|
||||
{ text: 'BBQ Birch (hosted by Parity)', value: 'wss://substrate-rpc.parity.io/' },
|
||||
{ disabled: true, text: 'Polkadot PoC-3 (hosted by Parity)', value: 'wss://polkadot-rpc.polkadot.io/' },
|
||||
{ text: 'Charred Cherry (Substrate, hosted by Parity)', value: 'wss://substrate-rpc.parity.io/' },
|
||||
{ disabled: true, text: 'Alexander (Polkadot, hosted by Parity)', value: 'wss://polkadot-rpc.polkadot.io/' },
|
||||
{ text: 'Local Node (127.0.0.1:9944)', value: 'ws://127.0.0.1:9944/' }
|
||||
];
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class Settings implements SettingsStruct {
|
||||
constructor () {
|
||||
const settings = store.get('settings') || {};
|
||||
|
||||
// FIXME Here we have the defaults for BBQ, swap to Polkadot as soon as poc-3 is there
|
||||
// FIXME Here we have the defaults for Charred Cherry, swap to Polkadot as soon as poc-3 is there
|
||||
// FIXME WS_URL first, then substrate-rpc
|
||||
this._apiUrl = settings.apiUrl || ENDPOINTS[0].value || process.env.WS_URL;
|
||||
this._i18nLang = settings.i18nLang || LANGUAGES[0].value;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
export type ChainsInfo = Array<{
|
||||
name: string,
|
||||
chainId: number,
|
||||
decimals: number,
|
||||
unit: string
|
||||
networkId: number,
|
||||
tokenDecimals: number,
|
||||
tokenSymbol: string
|
||||
}>;
|
||||
|
||||
export type Options = Array<{
|
||||
|
||||
Reference in New Issue
Block a user