From 22615f449dc41329b502a3986f5072e1d1ba7602 Mon Sep 17 00:00:00 2001 From: brenzi Date: Sun, 20 Dec 2020 20:34:05 +0100 Subject: [PATCH] update encointer types, add encointer testnets to dropdown (#4253) * update encointer types, add encointer testnets to dropdown * strict alphabetical order... * yarn lint --- .../src/api/spec/encointer-node-notee.ts | 9 +- .../src/api/spec/encointer-node-teeproxy.ts | 9 +- packages/apps-config/src/endpoints/testing.ts | 12 ++ packages/apps-config/src/ui/colors.ts | 5 + packages/apps-config/src/ui/logos/index.ts | 2 + .../src/ui/logos/nodes/encointer-notee.svg | 111 +++++++++--------- .../src/ui/logos/nodes/encointer-teeproxy.svg | 106 ++++++++--------- .../apps/public/locales/en/apps-config.json | 2 + 8 files changed, 137 insertions(+), 119 deletions(-) diff --git a/packages/apps-config/src/api/spec/encointer-node-notee.ts b/packages/apps-config/src/api/spec/encointer-node-notee.ts index 1ea9a358e0..3268f6af69 100644 --- a/packages/apps-config/src/api/spec/encointer-node-notee.ts +++ b/packages/apps-config/src/api/spec/encointer-node-notee.ts @@ -6,9 +6,8 @@ /* eslint-disable camelcase */ export default { - Address: 'AccountId', - LookupSource: 'AccountId', - RefCount: 'u8', + Address: 'MultiAddress', + LookupSource: 'MultiAddress', CeremonyPhaseType: { _enum: [ 'Registering', @@ -67,6 +66,6 @@ export default { attendee_public: 'AccountId', attendee_signature: 'Signature' }, - // weight changed to u64 since 2.0.0-rc1 (commit 2051ecbf79e April 16th 2020 - Weight: 'u64' + ShopIdentifier: 'Text', + ArticleIdentifier: 'Text' }; diff --git a/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts b/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts index 36b81de857..3ab664d230 100644 --- a/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts +++ b/packages/apps-config/src/api/spec/encointer-node-teeproxy.ts @@ -6,9 +6,8 @@ /* eslint-disable camelcase */ export default { - Address: 'AccountId', - LookupSource: 'AccountId', - RefCount: 'u8', + Address: 'MultiAddress', + LookupSource: 'MultiAddress', CeremonyPhaseType: { _enum: [ 'Registering', @@ -40,7 +39,5 @@ export default { mrenclave: 'Hash', timestamp: 'u64', url: 'Text' - }, - // weight changed to u64 since 2.0.0-rc1 (commit 2051ecbf79e April 16th 2020 - Weight: 'u64' + } }; diff --git a/packages/apps-config/src/endpoints/testing.ts b/packages/apps-config/src/endpoints/testing.ts index c7c9bdd0dd..279fd51c93 100644 --- a/packages/apps-config/src/endpoints/testing.ts +++ b/packages/apps-config/src/endpoints/testing.ts @@ -72,6 +72,18 @@ export function createTesting (t: TFunction): LinkOption[] { textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Stake Technologies' } }), value: 'wss://rpc.dusty.plasmnet.io/' }, + { + info: 'encointer_cantillon', + text: t('rpc.encointer.cantillon', 'Encointer Cantillon', { ns: 'apps-config' }), + textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Encointer Association' } }), + value: 'wss://cantillon.encointer.org' + }, + { + info: 'encointer_gesell', + text: t('rpc.encointer.gesell', 'Encointer Gesell', { ns: 'apps-config' }), + textBy: t('rpc.hosted.by', 'hosted by {{host}}', { ns: 'apps-config', replace: { host: 'Encointer Association' } }), + value: 'wss://gesell.encointer.org' + }, { info: 'equilibrium', text: t('rpc.equilibriumtestnet', 'Equilibrium Testnet', { ns: 'apps-config' }), diff --git a/packages/apps-config/src/ui/colors.ts b/packages/apps-config/src/ui/colors.ts index be83237e5a..4086f0c02d 100644 --- a/packages/apps-config/src/ui/colors.ts +++ b/packages/apps-config/src/ui/colors.ts @@ -35,6 +35,8 @@ const nodeBifrost = '#002cc3'; const nodeCanvas = '#c77cff'; const nodeCentrifuge = '#fcc367'; const nodeEdgeware = '#0a95df'; +const nodeEncointerNotee = '#cc0000'; +const nodeEncointerTeeproxy = '#0000cc'; const nodeEquilibrium = '#1792ff'; const nodeMoonbeam = '#53cbc9'; const nodeNodle = '#1ab394'; @@ -86,6 +88,9 @@ export const nodeColors: Record = [ ['centrifuge chain', nodeCentrifuge], ['Centrifuge Chain Node', nodeCentrifuge], ['edgeware node', nodeEdgeware], + ['Encointer Node', nodeEncointerNotee], + ['Encointer Node noTEE', nodeEncointerNotee], + ['Encointer Node TEE proxy', nodeEncointerTeeproxy], ['Equilibrium node', nodeEquilibrium], ['kilt node', nodeKilt], ['nodle chain node', nodeNodle], diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 58078938e4..798b2180a5 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -131,6 +131,8 @@ export const namedLogos: Record = { dusty: chainDusty, edgeware: nodeEdgeware, empty: emptyLogo, + encointer_cantillon: nodeEncointerTeeproxy, + encointer_gesell: nodeEncointerNotee, equilibrium: nodeEquilibrium, galois: nodeMath, hanonycash: nodeHanonycash, diff --git a/packages/apps-config/src/ui/logos/nodes/encointer-notee.svg b/packages/apps-config/src/ui/logos/nodes/encointer-notee.svg index 174e8d60ab..c4aadcc355 100644 --- a/packages/apps-config/src/ui/logos/nodes/encointer-notee.svg +++ b/packages/apps-config/src/ui/logos/nodes/encointer-notee.svg @@ -9,13 +9,13 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="33.513325mm" - height="33.513321mm" - viewBox="0 0 33.513325 33.513321" + width="36.513321mm" + height="36.513321mm" + viewBox="0 0 36.513321 36.513321" version="1.1" id="svg8" inkscape:version="0.92.3 (2405546, 2018-03-11)" - sodipodi:docname="encointer.svg"> + sodipodi:docname="encointer-notee.svg"> + inkscape:window-maximized="1" + inkscape:pagecheckerboard="true" /> @@ -137,7 +138,7 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(-66.349684,-31.202942)"> + transform="translate(-66.349684,-28.202943)"> @@ -149,108 +150,108 @@ transform="matrix(0.35277777,0,0,-0.35277777,33.313599,111.30868)" /> + transform="translate(1.4999977,-4.6750668)" + style="fill:#2b0000;stroke:#ffffff;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> @@ -259,103 +260,103 @@ + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> + style="fill:#2b0000;stroke:#ffffff;stroke-width:1.41732287;stroke-miterlimit:4;stroke-dasharray:none"> diff --git a/packages/apps-config/src/ui/logos/nodes/encointer-teeproxy.svg b/packages/apps-config/src/ui/logos/nodes/encointer-teeproxy.svg index 8c0001d06b..f1a04725e5 100644 --- a/packages/apps-config/src/ui/logos/nodes/encointer-teeproxy.svg +++ b/packages/apps-config/src/ui/logos/nodes/encointer-teeproxy.svg @@ -9,9 +9,9 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="33.513325mm" - height="33.513321mm" - viewBox="0 0 33.513325 33.513321" + width="36.513321mm" + height="36.513321mm" + viewBox="0 0 36.513321 36.513321" version="1.1" id="svg8" inkscape:version="0.92.3 (2405546, 2018-03-11)" @@ -106,9 +106,9 @@ borderopacity="1.0" inkscape:pageopacity="0" inkscape:pageshadow="2" - inkscape:zoom="3.959798" - inkscape:cx="-32.751741" - inkscape:cy="68.462665" + inkscape:zoom="1.4" + inkscape:cx="-41.544824" + inkscape:cy="50.195772" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="false" @@ -116,8 +116,8 @@ fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" - inkscape:window-width="1920" - inkscape:window-height="1110" + inkscape:window-width="1280" + inkscape:window-height="934" inkscape:window-x="0" inkscape:window-y="31" inkscape:window-maximized="1" /> @@ -137,7 +137,7 @@ inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" - transform="translate(-66.349684,-31.202942)"> + transform="translate(-66.349684,-28.202943)"> @@ -149,108 +149,108 @@ transform="matrix(0.35277777,0,0,-0.35277777,33.313599,111.30868)" /> + transform="translate(1.4999977,-4.6750668)" + style="fill:#0022cb;stroke:#4a5fff;stroke-width:0.7;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> @@ -259,103 +259,103 @@ + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> + style="fill:#0022cb;stroke:#4a5fff;stroke-width:1.98425201;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.99134201;fill-opacity:1"> diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index 18517aedad..677f16ba6b 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -16,6 +16,8 @@ "rpc.dock-testnet": "Dock Testnet", "rpc.dusty": "Dusty", "rpc.edgeware": "Edgeware", + "rpc.encointer.cantillon": "Encointer Cantillon", + "rpc.encointer.gesell": "Encointer Gesell", "rpc.equilibrium": "Equilibrium Mainnet", "rpc.equilibriumr": "Equilibrium", "rpc.equilibriumtestnet": "Equilibrium Testnet",