diff --git a/packages/apps-config/src/api/spec/encointer-para.ts b/packages/apps-config/src/api/spec/encointer-para.ts new file mode 100644 index 0000000000..16bafa4bc7 --- /dev/null +++ b/packages/apps-config/src/api/spec/encointer-para.ts @@ -0,0 +1,71 @@ +// Copyright 2017-2021 @polkadot/apps-config authors & contributors +// SPDX-License-Identifier: Apache-2.0 + +// structs need to be in order +/* eslint-disable sort-keys */ +/* eslint-disable camelcase */ + +export default { + Address: 'AccountId', + LookupSource: 'AccountId', + CeremonyPhaseType: { + _enum: [ + 'Registering', + 'Assigning', + 'Attesting' + ] + }, + CeremonyIndexType: 'u32', + ParticipantIndexType: 'u64', + MeetupIndexType: 'u64', + AttestationIndexType: 'u64', + CurrencyIdentifier: 'Hash', + BalanceType: 'i128', + BalanceEntry: { + principal: 'i128', + last_update: 'BlockNumber' + }, + CurrencyCeremony: { + cid: 'CurrencyIdentifier', + cindex: 'CeremonyIndexType' + }, + Location: { + lat: 'i64', + lon: 'i64' + }, + Reputation: { + _enum: [ + 'Unverified', + 'UnverifiedReputable', + 'VerifiedUnlinked', + 'VerifiedLinked' + ] + }, + CurrencyPropertiesType: { + name_utf8: 'Text', + demurrage_per_block: 'i128' + }, + 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' + }, + ShopIdentifier: 'Text', + ArticleIdentifier: 'Text' +}; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index b722606f85..e74c2ab976 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -13,6 +13,7 @@ import dock from './dock'; import dusty from './dusty'; import encointerNodeNotee from './encointer-node-notee'; import encointerNodeTeeproxy from './encointer-node-teeproxy'; +import encointerPara from './encointer-para'; import equilibrium from './equilibrium'; import galois from './galois'; import hanonycash from './hanonycash'; @@ -43,9 +44,9 @@ export default { 'dock-main-runtime': dock, 'dock-testnet': dock, dusty3: dusty, - 'encointer-node': encointerNodeNotee, 'encointer-node-notee': encointerNodeNotee, 'encointer-node-teeproxy': encointerNodeTeeproxy, + 'encointer-parachain': encointerPara, galois: galois, hanonycash, jupiter,