adding encointer spec (#2552)
This commit is contained in:
parent
1c61c63b00
commit
1f2bfa0822
44
packages/apps-config/src/api/spec/encointer-node.ts
Normal file
44
packages/apps-config/src/api/spec/encointer-node.ts
Normal 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>'
|
||||
};
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user