From 6712b3e0be648780130a6df5b9709f4b5f7aa79d Mon Sep 17 00:00:00 2001 From: brenzi Date: Thu, 21 May 2020 22:33:41 +0200 Subject: [PATCH] [encointer] add favicon and improved custom type definitions (#2790) * [encointer] add favicon and improved custom type definitions * Linting fixes Co-authored-by: Jaco Greeff --- .../src/api/spec/encointer-node.ts | 33 +- packages/apps-config/src/ui/logos/index.ts | 2 + .../src/ui/logos/nodes/encointer.svg | 341 ++++++++++++++++++ 3 files changed, 372 insertions(+), 4 deletions(-) create mode 100644 packages/apps-config/src/ui/logos/nodes/encointer.svg diff --git a/packages/apps-config/src/api/spec/encointer-node.ts b/packages/apps-config/src/api/spec/encointer-node.ts index 945d3f83c4..7ffc0647e4 100644 --- a/packages/apps-config/src/api/spec/encointer-node.ts +++ b/packages/apps-config/src/api/spec/encointer-node.ts @@ -22,8 +22,14 @@ export default { AttestationIndexType: 'u64', CurrencyIdentifier: 'Hash', BalanceType: 'i128', - BalanceEntry: '(BalanceType,Moment)', - CurrencyCeremony: '(CurrencyIdentifier,CeremonyIndexType)', + BalanceEntry: { + principal: 'i128', + last_update: 'BlockNumber' + }, + CurrencyCeremony: { + cid: 'CurrencyIdentifier', + cindex: 'CeremonyIndexType' + }, Location: { lat: 'i64', lon: 'i64' @@ -40,8 +46,27 @@ export default { name_utf8: 'Text', demurrage_per_block: 'i128' }, - Attestation: 'Vec', - ProofOfAttendance: 'Vec', + ClaimOfAttendance: { + claimant_public: 'AccountId', + ceremony_index: 'CeremonyIndexType', + currency_identifier: 'CurrencyIdentifier', + meetup_index: 'MeetupIndexType', + location: 'Location', + timestamp: 'Moment', + number_of_participants_confirmed: 'u32' + }, + Attestation: { + claim: 'ClaimOfAttendance', + signature: 'Signature', + public: 'AccountId' + }, + ProofOfAttendance: { + prover_public: 'AccountId', + ceremony_index: 'CeremonyIndexType', + currency_identifier: 'CurrencyIdentifier', + attendee_public: 'AccountId', + attendee_signature: 'Signature' + }, // substrate Weight: 'u32' }; diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index 9e13c39933..f0a00e4e38 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -8,6 +8,7 @@ import chainKusama from './chains/kusama-128.gif'; // defaults for the node type, assuming we don't have a specific chain, but rather match on the implementation import nodeCentrifuge from './nodes/centrifuge.png'; import nodeEdgeware from './nodes/edgeware-circle.svg'; +import nodeEncointer from './nodes/encointer.svg'; import nodeNodle from './nodes/nodle.svg'; import nodePolkadot from './nodes/polkadot-circle.svg'; import nodePolkadotJs from './nodes/polkadot-js.svg'; @@ -34,6 +35,7 @@ const chainLogos: Record = [ const nodeLogos: Record = [ ['centrifuge chain', nodeCentrifuge], ['Edgeware Node', nodeEdgeware], + ['Encointer Node', nodeEncointer], ['kulupu', nodeSubstrate], ['node-template', nodeSubstrate], ['Nodle Chain Node', nodeNodle], diff --git a/packages/apps-config/src/ui/logos/nodes/encointer.svg b/packages/apps-config/src/ui/logos/nodes/encointer.svg new file mode 100644 index 0000000000..8bacbf13fd --- /dev/null +++ b/packages/apps-config/src/ui/logos/nodes/encointer.svg @@ -0,0 +1,341 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +