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 };