ghost-portal/packages/apps-config/src/api/spec/zero.ts
Jaco Greeff f84a55089b
Convert all specs to type bundles (#4646)
* Convert all specs to type bundles

* Additional

* s.specVersioned/spec/

* Fix paraApi typesSpec import

* Update

* small update

* comment on mapping
2021-02-11 11:54:27 +01:00

35 lines
797 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: 'AccountId',
LookupSource: 'AccountId',
Campaign: {
id: 'Hash',
manager: 'AccountId',
deposit: 'Balance',
expiry: 'BlockNumber',
cap: 'Balance',
name: 'Vec<u8>',
protocol: 'u8',
status: 'u8'
},
EventMessage: 'Vec<u8>',
Nonce: 'u64'
}
}
]
};
export default definitions;