From c6a2f341f3277f7c619512d8ba03f717fb39e1db Mon Sep 17 00:00:00 2001 From: philipstanislaus <6912756+philipstanislaus@users.noreply.github.com> Date: Tue, 11 Feb 2020 20:49:25 +0100 Subject: [PATCH] Add centrifuge chain types (#2268) --- .../src/overrides/spec/centrifuge-chain.ts | 26 +++++++++++++++++++ .../react-api/src/overrides/spec/index.ts | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 packages/react-api/src/overrides/spec/centrifuge-chain.ts diff --git a/packages/react-api/src/overrides/spec/centrifuge-chain.ts b/packages/react-api/src/overrides/spec/centrifuge-chain.ts new file mode 100644 index 0000000000..b4b851ce3d --- /dev/null +++ b/packages/react-api/src/overrides/spec/centrifuge-chain.ts @@ -0,0 +1,26 @@ +// Copyright 2017-2020 @polkadot/react-api authors & contributors +// This software may be modified and distributed under the terms +// of the Apache-2.0 license. See the LICENSE file for details. + +export default { + AnchorData: { + id: 'H256', + docRoot: 'H256', + anchoredBlock: 'u64' + }, + Fee: { + key: 'Hash', + price: 'Balance' + }, + PreCommitData: { + signingRoot: 'H256', + identity: 'H256', + expirationBlock: 'u64' + }, + Proof: { + leafHash: 'H256', + sortedHashes: 'H256' + }, + // Workarounds + BalanceLock: 'BalanceLockTo212' // workaround for balances not showing up, see https://github.com/polkadot-js/apps/issues/2236 +}; diff --git a/packages/react-api/src/overrides/spec/index.ts b/packages/react-api/src/overrides/spec/index.ts index 0cadd9916c..2309e42c89 100644 --- a/packages/react-api/src/overrides/spec/index.ts +++ b/packages/react-api/src/overrides/spec/index.ts @@ -2,10 +2,12 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. +import centrifugeChain from './centrifuge-chain'; import edgeware from './edgeware'; import kulupu from './kulupu'; export default { + 'centrifuge-chain': centrifugeChain, edgeware, kulupu };