ghost-portal/packages/apps-config/src/api/spec/ternoa.ts
2021-02-25 14:56:54 +01:00

34 lines
751 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',
NFTId: 'u32',
NFTIdOf: 'NFTId',
NFTData: {
owner: 'AccountId',
details: 'NFTDetails',
sealed: 'bool',
locked: 'bool'
},
NFTDetails: {
offchain_uri: 'Vec<u8>'
},
LookupSource: 'AccountId'
}
}
]
};
export default definitions;