ghost-portal/packages/apps-config/src/api/spec/realis.ts
Nikita 4a160cdae2
Update types for Realis.Network (#6148)
* Update logo for Realis.Network

* Update spec for Realis.Network

* Update spec for Realis.Network

* Update types for Realis.Network

Co-authored-by: Daelon02 <Daelon02@github.com>
2021-09-18 16:10:40 +03:00

55 lines
1.1 KiB
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: {
Rarity: {
_enum: [
'Common',
'Uncommon',
'Rare',
'Mythical',
'Legendary'
]
},
Basic: 'u8',
TokenId: 'U256',
Stackable: {
_enum: [
'Silver',
'Gold',
'Diamond'
]
},
TokenType: {
_enum: {
Basic: '(Basic, Rarity)'
}
},
Status: {
_enum: [
'OnSell',
'InDelegation',
'Free'
]
},
Token: {
token_id: 'TokenId',
token: 'TokenType'
}
}
}
]
};
export default definitions;