* Convert all specs to type bundles * Additional * s.specVersioned/spec/ * Fix paraApi typesSpec import * Update * small update * comment on mapping
34 lines
769 B
TypeScript
34 lines
769 B
TypeScript
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
|
|
|
// structs need to be in order
|
|
/* eslint-disable sort-keys */
|
|
|
|
const definitions: OverrideBundleDefinition = {
|
|
types: [
|
|
{
|
|
// on all versions
|
|
minmax: [0, undefined],
|
|
types: {
|
|
Address: 'MultiAddress',
|
|
Enclave: {
|
|
mrenclave: 'Hash',
|
|
pubkey: 'AccountId',
|
|
timestamp: 'u64',
|
|
url: 'Text'
|
|
},
|
|
LookupSource: 'MultiAddress',
|
|
Request: {
|
|
cyphertext: 'Vec<u8>',
|
|
shard: 'ShardIdentifier'
|
|
},
|
|
ShardIdentifier: 'Hash'
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
export default definitions;
|