diff --git a/packages/apps-config/src/api/spec/encointer-node.ts b/packages/apps-config/src/api/spec/encointer-node.ts new file mode 100644 index 0000000000..0e2e4ddd01 --- /dev/null +++ b/packages/apps-config/src/api/spec/encointer-node.ts @@ -0,0 +1,44 @@ +// Copyright 2017-2020 @polkadot/apps-config authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +// structs need to be in order +/* eslint-disable sort-keys */ + +export default { + Address: 'AccountId', + LookupSource: 'AccountId', + CeremonyPhaseType: { + _enum: [ + 'Registering', + 'Assigning', + 'Attesting' + ] + }, + CeremonyIndexType: 'u32', + ParticipantIndexType: 'u64', + MeetupIndexType: 'u64', + AttestationIndexType: 'u64', + CurrencyIdentifier: 'Hash', + BalanceType: 'i128', + BalanceEntry: '(BalanceType,Moment)', + CurrencyCeremony: '(CurrencyIdentifier,CeremonyIndexType)', + Location: { + lat: 'i64', + lon: 'i64' + }, + Reputation: { + _enum: [ + 'Unverified', + 'UnverifiedReputable', + 'VerifiedUnlinked', + 'VerifiedLinked' + ] + }, + CurrencyPropertiesType: { + name_utf8: 'Text', + demurrage_per_block: 'i128' + }, + Attestation: 'Vec', + ProofOfAttendance: 'Vec' +}; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index c6139fec15..c9a96887a2 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -2,6 +2,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import encointerNode from './encointer-node'; import centrifugeChain from './centrifuge-chain'; import edgeware from './edgeware'; import kulupu from './kulupu'; @@ -9,6 +10,7 @@ import kusama from './kusama'; import nodeTemplate from './node-template'; export default { + 'encointer-node': encointerNode, 'centrifuge-chain': centrifugeChain, edgeware, kulupu,