mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 07:48:00 +00:00
70 lines
1.8 KiB
TypeScript
70 lines
1.8 KiB
TypeScript
// Copyright 2017-2026 @pezkuwi/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// structs need to be in order
|
|
/* eslint-disable sort-keys */
|
|
/* eslint-disable camelcase */
|
|
|
|
import type { OverrideBundleDefinition } from '@pezkuwi/types/types';
|
|
|
|
const definitions: OverrideBundleDefinition = {
|
|
types: [
|
|
{
|
|
// on all versions
|
|
minmax: [0, undefined],
|
|
types: {
|
|
Properties: 'u8',
|
|
NFTMetadata: 'Vec<u8>',
|
|
BlockNumber: 'u32',
|
|
BlockNumberOf: 'BlockNumber',
|
|
|
|
OrderData: {
|
|
currencyId: 'Compact<CurrencyIdOf>',
|
|
price: 'Compact<Balance>',
|
|
deposit: 'Compact<Balance>',
|
|
deadline: 'Compact<BlockNumberOf>',
|
|
categoryId: 'Compact<CategoryIdOf>'
|
|
},
|
|
|
|
CategoryId: 'u32',
|
|
CategoryIdOf: 'CategoryId',
|
|
CategoryData: {
|
|
metadata: 'NFTMetadata',
|
|
nftCount: 'Compact<Balance>'
|
|
},
|
|
|
|
CurrencyId: 'u32',
|
|
CurrencyIdOf: 'CurrencyId',
|
|
Amount: 'i128',
|
|
AmountOf: 'Amount',
|
|
|
|
ClassId: 'u32',
|
|
ClassIdOf: 'ClassId',
|
|
ClassInfoOf: {
|
|
metadata: 'NFTMetadata',
|
|
totalIssuance: 'TokenId',
|
|
owner: 'AccountId',
|
|
data: 'ClassData'
|
|
},
|
|
ClassData: {
|
|
deposit: 'Compact<Balance>',
|
|
properties: 'Properties',
|
|
name: 'Vec<u8>',
|
|
description: 'Vec<u8>',
|
|
createBlock: 'Compact<BlockNumberOf>'
|
|
},
|
|
|
|
TokenId: 'u64',
|
|
TokenIdOf: 'TokenId',
|
|
TokenInfoOf: { metadata: 'NFTMetadata', owner: 'AccountId', data: 'TokenData' },
|
|
TokenData: {
|
|
deposit: 'Compact<Balance>',
|
|
createBlock: 'Compact<BlockNumberOf>'
|
|
}
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
export default definitions;
|