ghost-portal/packages/apps-config/src/api/spec/realis.ts
Jaco 4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00

56 lines
1.2 KiB
TypeScript

// Copyright 2017-2023 @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: {
Rarity: {
_enum: [
'Common',
'Uncommon',
'Rare',
'Epic',
'Legendary',
'Relic'
]
},
TokenId: 'U256',
Stackable: {
_enum: [
'Silver',
'Gold',
'Diamond'
]
},
String: 'Vec<u8>',
TokenType: {
_enum: {
Basic: '(Rarity, String, u32, String)'
}
},
Status: {
_enum: [
'OnSell',
'InDelegation',
'Free'
]
},
Token: {
token_id: 'TokenId',
token: 'TokenType'
}
}
}
]
};
export default definitions;