ghost-portal/packages/apps-config/src/api/spec/pangoro.ts
sxlwar 1ea206fe96
chore: add pangoro test chain (#6084)
* chore: add pangoro test chain

* chore: update pangoro color and logo

* chore: run install to fix lock issue
2021-09-07 13:30:59 +02:00

84 lines
2.3 KiB
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { OverrideBundleDefinition } from '@polkadot/types/types';
export const definitions: OverrideBundleDefinition = {
types: [{
// on all versions
minmax: [0, undefined],
types: {
// common types
Address: 'MultiAddress',
AuthorityId: '[u8;32]',
AuthoritySignature: '[u8;64]',
BlockHash: 'PangoroBlockHash',
BridgedBlockHash: 'RialtoBlockHash',
BridgedBlockNumber: 'RialtoBlockNumber',
BridgedHeader: 'RialtoHeader',
Fee: 'PangoroBalance',
KtonBalance: 'Balance',
LookupSource: 'Address',
// Pangoro types
PangoroBalance: 'Balance',
PangoroBlockHash: 'Hash',
PangoroBlockNumber: 'BlockNumber',
PangoroDigest: {
logs: 'Vec<PangoroDigestItem>'
},
PangoroDigestItem: {
_enum: {
AuthoritiesChange: 'Vec<AuthorityId>',
ChangesTrieRoot: 'PangoroBlockHash',
Consensus: 'Consensus',
Other: 'Vec<u8>',
PreRuntime: 'PreRuntime',
Seal: 'Seal',
SealV0: 'SealV0'
}
},
PangoroHeader: {
digest: 'PangoroDigest',
extrinsics_root: 'PangoroBlockHash',
number: 'Compact<PangoroBlockNumber>',
parent_Hash: 'PangoroBlockHash',
state_root: 'PangoroBlockHash'
},
Parameter: {
_enum: {
PangoroToRialtoConversionRate: 'u128'
}
},
Power: 'u32',
// Rialto types
RialtoBalance: 'u128',
RialtoBlockHash: 'H256',
RialtoBlockNumber: 'u32',
RialtoDigest: {
logs: 'Vec<RialtoDigestItem>'
},
RialtoDigestItem: {
_enum: {
AuthoritiesChange: 'Vec<AuthorityId>',
ChangesTrieRoot: 'RialtoBlockHash',
Consensus: 'Consensus',
Other: 'Vec<u8>',
PreRuntime: 'PreRuntime',
Seal: 'Seal',
SealV0: 'SealV0'
}
},
RialtoHeader: {
digest: 'RialtoDigest',
extrinsics_root: 'RialtoBlockHash',
number: 'Compact<RialtoBlockNumber>',
parent_Hash: 'RialtoBlockHash',
state_root: 'RialtoBlockHash'
},
RingBalance: 'Balance'
}
}]
};
export default definitions;