mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-10-26 12:49:49 +00:00
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { OverrideBundleDefinition } from '@pezkuwi/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;
|