56 lines
1.2 KiB
TypeScript
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;
|