mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-09 20:11:04 +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
-1
@@ -10,5 +10,5 @@
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "0.23.4"
|
||||
"version": "0.24.0"
|
||||
}
|
||||
|
||||
@@ -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<{
|
||||
|
||||
@@ -1441,10 +1441,10 @@
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.43.tgz#e59d86cf6bed833010315c5b301bfea6c05fd4a8"
|
||||
integrity sha512-B7mSH+yrc7PBHMWUfpTFAK0OLgOesWlzkhse0/O8Itu2Rf6YrixEnhUYKEDp7mDO3h2SlBwn6BfVkvY4qvtwgg==
|
||||
|
||||
"@polkadot/types@^0.34.3":
|
||||
version "0.34.3"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.34.3.tgz#c72118d3d016a6143dd5da5b8483eefaf5ca06ef"
|
||||
integrity sha512-/HrVOwQjH66OqVmELBLB/0tKXoxRew8T5npfntnq1zBKKmv8RTV4BddfW1okXmLfld2uu9qEpMQ06QGUc+OyTQ==
|
||||
"@polkadot/types@^0.34.6":
|
||||
version "0.34.6"
|
||||
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.34.6.tgz#8230ae4448f3ff17deba9f5ffd8a1916dfdd7d6c"
|
||||
integrity sha512-Ge0uMEdojpZ+pRbDAOcvI0k/YRoVL6ZMa/iMAuQ1pvwTX7B2eHe5NdfDa4Qyw/M6g4+FHc7tMNWR8rpj6Jublw==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.2.0"
|
||||
"@polkadot/keyring" "^0.33.19"
|
||||
|
||||
Reference in New Issue
Block a user