adding encointer spec (#2552)

This commit is contained in:
brenzi 2020-04-11 18:54:35 +02:00 committed by GitHub
parent 1c61c63b00
commit 1f2bfa0822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View File

@ -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<u8>',
ProofOfAttendance: 'Vec<u8>'
};

View File

@ -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,