mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-21 23:47:56 +00:00
1295c36241
- Fixed TypeScript type assertion issues - Updated imports from api-augment/substrate to api-augment/bizinikiwi - Fixed imgConvert.mjs header and imports - Added @ts-expect-error for runtime-converted types - Fixed all @polkadot copyright headers to @pezkuwi
82 lines
1.8 KiB
TypeScript
82 lines
1.8 KiB
TypeScript
// Copyright 2017-2025 @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: {
|
|
Address: 'MultiAddress',
|
|
LookupSource: 'MultiAddress',
|
|
MogwaiStruct: {
|
|
id: 'Hash',
|
|
dna: 'Hash',
|
|
genesis: 'BlockNumber',
|
|
price: 'Balance',
|
|
gen: 'u32',
|
|
rarity: 'RarityType'
|
|
},
|
|
MogwaiBios: {
|
|
mogwai_id: 'Hash',
|
|
state: 'u32',
|
|
metaxy: 'Vec<[u8;16]>',
|
|
intrinsic: 'Balance',
|
|
level: 'u8',
|
|
phases: 'Vec<BlockNumber>',
|
|
adaptations: 'Vec<Hash>'
|
|
},
|
|
GameEvent: {
|
|
id: 'Hash',
|
|
begin: 'BlockNumber',
|
|
duration: 'u16',
|
|
event_type: 'GameEventType',
|
|
hashes: 'Vec<Hash>',
|
|
value: 'u64'
|
|
},
|
|
GameEventType: {
|
|
_enum: [
|
|
'Default',
|
|
'Hatch'
|
|
]
|
|
},
|
|
RarityType: {
|
|
_enum: [
|
|
'Minor',
|
|
'Normal',
|
|
'Rare',
|
|
'Epic',
|
|
'Legendary'
|
|
]
|
|
},
|
|
MogwaicoinAddress: {
|
|
address: 'Vec<u8>',
|
|
account: 'AccountId',
|
|
signature: 'Vec<u8>',
|
|
state: 'ClaimState',
|
|
balance: 'Balance'
|
|
},
|
|
ClaimState: {
|
|
_enum: [
|
|
'None',
|
|
'Registred',
|
|
'Verified',
|
|
'Secured',
|
|
'Processed',
|
|
'Holded',
|
|
'Failed',
|
|
'Cancelled'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
export default definitions;
|