From f61f41be24561f486082103cb0a5428af0f4a030 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 20 Feb 2019 14:55:01 +0100 Subject: [PATCH] Dried Danta (#82) * Dried Danta * Remove (now-unused) chain config --- CHANGELOG.md | 8 ++++++ lerna.json | 2 +- packages/ui-assets/package.json | 2 +- packages/ui-identicon/package.json | 8 +++--- packages/ui-keyring/package.json | 8 +++--- packages/ui-settings/package.json | 2 +- packages/ui-settings/src/defaults.ts | 32 ++------------------- packages/ui-settings/src/index.ts | 8 ++---- packages/ui-settings/src/types.ts | 7 ----- packages/ui-util/package.json | 4 +-- yarn.lock | 42 ++++++++++++++-------------- 11 files changed, 46 insertions(+), 77 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f07452ef..4df13e06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# 0.27.1 + +Replace Charred Cherry with Dried Danta, remove old decimals and token name configs + +# 0.26.1 + +Add keyring support for sd25519 (schnorrkel) + # 0.25.1 Add `@polkadot/{keyring,util,util-crypto,types}` as peerDependencies for the various packages as used. Thie should allow less churn on this repo with version bumps, although it does add some extra effort onto the users of these libraries. (But the assumption is that they use these anyway) diff --git a/lerna.json b/lerna.json index 93bfa330..9338d0e1 100644 --- a/lerna.json +++ b/lerna.json @@ -10,5 +10,5 @@ "packages": [ "packages/*" ], - "version": "0.26.9" + "version": "0.27.0" } diff --git a/packages/ui-assets/package.json b/packages/ui-assets/package.json index d6c6ceba..354f2117 100644 --- a/packages/ui-assets/package.json +++ b/packages/ui-assets/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/ui-assets", - "version": "0.26.9", + "version": "0.27.0", "description": "Static assets shared accross projects", "main": "index.js", "author": "Jaco Greeff ", diff --git a/packages/ui-identicon/package.json b/packages/ui-identicon/package.json index dddae0e8..0e24f332 100644 --- a/packages/ui-identicon/package.json +++ b/packages/ui-identicon/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/ui-identicon", - "version": "0.26.9", + "version": "0.27.0", "description": "Renders an SVG picture representing an address", "main": "index.js", "author": "Jaco Greeff ", @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.3.1", - "@polkadot/ui-settings": "^0.26.9", + "@polkadot/ui-settings": "^0.27.0", "@types/color": "^3.0.0", "@types/react-copy-to-clipboard": "^4.2.6", "color": "^3.0.0", @@ -22,8 +22,8 @@ "react": "*" }, "devDependencies": { - "@polkadot/keyring": "^0.34.20", - "@polkadot/util-crypto": "^0.34.20", + "@polkadot/keyring": "^0.34.21", + "@polkadot/util-crypto": "^0.34.21", "xmlserializer": "^0.6.1" } } diff --git a/packages/ui-keyring/package.json b/packages/ui-keyring/package.json index e6afd822..3ffe2677 100644 --- a/packages/ui-keyring/package.json +++ b/packages/ui-keyring/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/ui-keyring", - "version": "0.26.9", + "version": "0.27.0", "main": "index.js", "repository": "https://github.com/polkadot-js/apps.git", "author": "Jaco Greeff ", @@ -16,9 +16,9 @@ "store": "^2.0.12" }, "devDependencies": { - "@polkadot/keyring": "^0.34.20", - "@polkadot/types": "^0.43.15", - "@polkadot/util": "^0.34.20" + "@polkadot/keyring": "^0.34.21", + "@polkadot/types": "^0.45.8", + "@polkadot/util": "^0.34.21" }, "peerDependencies": { "@polkadot/keyring": "*", diff --git a/packages/ui-settings/package.json b/packages/ui-settings/package.json index e7982d55..099bb153 100644 --- a/packages/ui-settings/package.json +++ b/packages/ui-settings/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/ui-settings", - "version": "0.26.9", + "version": "0.27.0", "description": "Manages app settings", "main": "index.js", "author": "Jaco Greeff ", diff --git a/packages/ui-settings/src/defaults.ts b/packages/ui-settings/src/defaults.ts index 60f5af42..093baee0 100644 --- a/packages/ui-settings/src/defaults.ts +++ b/packages/ui-settings/src/defaults.ts @@ -2,38 +2,11 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { ChainsInfo, Options } from './types'; - -const CHAINS: ChainsInfo = [ - { - name: 'Development', - networkId: 42, - tokenDecimals: 0, - tokenSymbol: 'Unit' - }, - { - name: 'Local Testnet', - networkId: 42, - tokenDecimals: 0, - tokenSymbol: 'Unit' - }, - { - name: 'Charred Cherry', - networkId: 42, - tokenDecimals: 15, - tokenSymbol: 'CHR' - }, - { - name: 'Alexander', - networkId: 42, - tokenDecimals: 15, - tokenSymbol: 'DOT' - } -]; +import { Options } from './types'; const ENDPOINTS: Options = [ { text: 'Alexander (Polkadot, hosted by Parity)', value: 'wss://poc3-rpc.polkadot.io/' }, - { text: 'Charred Cherry (Substrate, hosted by Parity)', value: 'wss://substrate-rpc.parity.io/' }, + { text: 'Dried Danta (Substrate, hosted by Parity)', value: 'wss://substrate-rpc.parity.io/' }, { text: 'Local Node (127.0.0.1:9944)', value: 'ws://127.0.0.1:9944/' } ]; @@ -52,7 +25,6 @@ const UITHEMES: Options = [ ]; export { - CHAINS, ENDPOINTS, LANGUAGES, UIMODES, diff --git a/packages/ui-settings/src/index.ts b/packages/ui-settings/src/index.ts index 24119ce2..d132b6ed 100644 --- a/packages/ui-settings/src/index.ts +++ b/packages/ui-settings/src/index.ts @@ -4,8 +4,8 @@ import store from 'store'; -import { CHAINS, ENDPOINTS, LANGUAGES, UIMODES, UITHEMES } from './defaults'; -import { ChainsInfo, Options, SettingsStruct } from './types'; +import { ENDPOINTS, LANGUAGES, UIMODES, UITHEMES } from './defaults'; +import { Options, SettingsStruct } from './types'; class Settings implements SettingsStruct { private _apiUrl: string; @@ -38,10 +38,6 @@ class Settings implements SettingsStruct { return this._uiTheme; } - get availableChains (): ChainsInfo { - return CHAINS; - } - get availableNodes (): Options { return ENDPOINTS; } diff --git a/packages/ui-settings/src/types.ts b/packages/ui-settings/src/types.ts index a930dcf4..077a623a 100644 --- a/packages/ui-settings/src/types.ts +++ b/packages/ui-settings/src/types.ts @@ -2,13 +2,6 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -export type ChainsInfo = Array<{ - name: string, - networkId: number, - tokenDecimals: number, - tokenSymbol: string -}>; - export type Options = Array<{ disabled?: boolean, text: string, diff --git a/packages/ui-util/package.json b/packages/ui-util/package.json index 376e249c..713b482e 100644 --- a/packages/ui-util/package.json +++ b/packages/ui-util/package.json @@ -1,6 +1,6 @@ { "name": "@polkadot/ui-util", - "version": "0.26.9", + "version": "0.27.0", "description": "Utility functions (non-React) that aid in display, formats and determination", "main": "index.js", "author": "Jaco Greeff ", @@ -12,7 +12,7 @@ "@babel/runtime": "^7.3.1" }, "devDependencies": { - "@polkadot/types": "^0.43.15" + "@polkadot/types": "^0.45.8" }, "peerDependencies": { "@polkadot/types": "*" diff --git a/yarn.lock b/yarn.lock index fff566b1..6a590d9a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1528,14 +1528,14 @@ typedoc-plugin-no-inherit "^1.1.6" typescript "^3.3.3" -"@polkadot/keyring@^0.34.20": - version "0.34.20" - resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.20.tgz#b6a9a36620b6ce668f568053870e7942175e551b" - integrity sha512-ZFhgPr2F+WqLuP3jfiReqSHaxYrxfS+tBtdsy4CdmShtRXZ115aoVhTaSXiCnNysdgZQryW6HJBlxGDgU7mSvg== +"@polkadot/keyring@^0.34.21": + version "0.34.21" + resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-0.34.21.tgz#1fa44bc90029443db960fc0edbf7a5fb251e2de0" + integrity sha512-9yIxAn51DY1/ZE6dH920MnQIzRlR+s3QKKk3rICChnzJBJFki0yfmvTZ/3Wi/p+bK7WjFMrzm03ZtAQBzOgUsQ== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/util" "^0.34.20" - "@polkadot/util-crypto" "^0.34.20" + "@polkadot/util" "^0.34.21" + "@polkadot/util-crypto" "^0.34.21" "@types/bs58" "^4.0.0" bs58 "^4.0.1" @@ -1549,24 +1549,24 @@ resolved "https://registry.yarnpkg.com/@polkadot/ts/-/ts-0.1.52.tgz#6fb09e494d244dad4b3a9ca581bfe13beec66565" integrity sha512-sij1O0x4CY51A394RYD4/aQwDPwIxIeTOpYI4AZgdF/vq5nvF14b4XFq9vAcSnblaIosf0sYKoz1f3dkN3QqLw== -"@polkadot/types@^0.43.15": - version "0.43.15" - resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.43.15.tgz#5d69e741167b185eb34ca3fc3153fb1b539dc64d" - integrity sha512-/TtRdTSxXnmJDkfJcBWs78c5CLd4FZ8C0H0CFaolX0HylDu9NJP49BRD3Ol7dLGWheWym2jY/PpCo7WS/rRCgQ== +"@polkadot/types@^0.45.8": + version "0.45.8" + resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-0.45.8.tgz#a1abe64ccfce503b6da8b1136ce484692df260be" + integrity sha512-xmpK+rsz8Y5kUI1p8nPc8tB1RLj1dU2+vyvu+448nHMtd02Lukjjukl6aqqaMKdL5th2eYSJfexGSzlyTTNBNg== dependencies: "@babel/runtime" "^7.3.1" - "@polkadot/keyring" "^0.34.20" - "@polkadot/util" "^0.34.20" + "@polkadot/keyring" "^0.34.21" + "@polkadot/util" "^0.34.21" core-js "^2.6.5" -"@polkadot/util-crypto@^0.34.20": - version "0.34.20" - resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.20.tgz#4b4776833b5a6a2ce4c1307be29694c3d47e24ea" - integrity sha512-FXQqI67vhmu6+ZJBQm5aMttW3AopZyT+xgOGYpCZzuYOj1ODHEvrCrLxjRsgiYQw1tr92OTjbKeN0MRGaG6QGA== +"@polkadot/util-crypto@^0.34.21": + version "0.34.21" + resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-0.34.21.tgz#b84cd47a03522f4dfaacca3e465771fcab4b283f" + integrity sha512-nDNQEbbCr9u6SfF1/Ts+EKUO4Nl70NqeLTirQagmiU58ju7rPX18vw3nCbA8/35LCCj8gliwkkFXrLtINQmRPg== dependencies: "@babel/runtime" "^7.3.1" "@polkadot/schnorrkel-js" "^0.1.2-1" - "@polkadot/util" "^0.34.20" + "@polkadot/util" "^0.34.21" "@types/bip39" "^2.4.2" "@types/webassembly-js-api" "^0.0.2" "@types/xxhashjs" "^0.2.0" @@ -1576,10 +1576,10 @@ tweetnacl "^1.0.1" xxhashjs "^0.2.2" -"@polkadot/util@^0.34.20": - version "0.34.20" - resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.20.tgz#3ebc10c8989c488220bece1b01028f740c5df5a7" - integrity sha512-MbMQw3qG9rfUpcCmcCEB1ZWqeXUocSnDng1CDF6n7jdqpt+KsTG4LghWXjdnvEIdKZMamfNaE4r8TZ+2iEQfJA== +"@polkadot/util@^0.34.21": + version "0.34.21" + resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-0.34.21.tgz#5cf793435b4db933deeda7aa6b4a7668e0652c34" + integrity sha512-tzSiEIdwht6cXZAw0cYtKJCeItV5THX0q6RfWItmEy/kYuPGrxBeEYY4HQHJqifok4rBay6E912zcelxXvmJ1w== dependencies: "@babel/runtime" "^7.3.1" "@types/bn.js" "^4.11.4"