-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunique.ts
125 lines (121 loc) · 3.36 KB
/
unique.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// 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: {
AccessMode: {
_enum: ['Normal', 'WhiteList']
},
DecimalPoints: 'u8',
CollectionMode: {
_enum: {
Invalid: null,
NFT: null,
Fungible: 'DecimalPoints',
ReFungible: null
}
},
Ownership: {
Owner: 'AccountId',
Fraction: 'u128'
},
FungibleItemType: {
Value: 'u128'
},
NftItemType: {
Owner: 'AccountId',
ConstData: 'Vec<u8>',
VariableData: 'Vec<u8>'
},
ReFungibleItemType: {
Owner: 'Vec<Ownership<AccountId>>',
ConstData: 'Vec<u8>',
VariableData: 'Vec<u8>'
},
SponsorshipState: {
_enum: {
Disabled: null,
Unconfirmed: 'AccountId',
Confirmed: 'AccountId'
}
},
Collection: {
Owner: 'AccountId',
Mode: 'CollectionMode',
Access: 'AccessMode',
DecimalPoints: 'DecimalPoints',
Name: 'Vec<u16>',
Description: 'Vec<u16>',
TokenPrefix: 'Vec<u8>',
MintMode: 'bool',
OffchainSchema: 'Vec<u8>',
SchemaVersion: 'SchemaVersion',
Sponsorship: 'SponsorshipState',
Limits: 'CollectionLimits',
VariableOnChainSchema: 'Vec<u8>',
ConstOnChainSchema: 'Vec<u8>'
},
RawData: 'Vec<u8>',
Address: 'AccountId',
LookupSource: 'AccountId',
Weight: 'u64',
CreateNftData: {
const_data: 'Vec<u8>',
variable_data: 'Vec<u8>'
},
CreateFungibleData: {
value: 'u128'
},
CreateReFungibleData: {
const_data: 'Vec<u8>',
variable_data: 'Vec<u8>',
pieces: 'u128'
},
CreateItemData: {
_enum: {
NFT: 'CreateNftData',
Fungible: 'CreateFungibleData',
ReFungible: 'CreateReFungibleData'
}
},
SchemaVersion: {
_enum: [
'ImageURL',
'Unique'
]
},
CollectionId: 'u32',
TokenId: 'u32',
ChainLimits: {
CollectionNumbersLimit: 'u32',
AccountTokenOwnershipLimit: 'u32',
CollectionAdminsLimit: 'u64',
CustomDataLimit: 'u32',
NftSponsorTimeout: 'u32',
FungibleSponsorTimeout: 'u32',
RefungibleSponsorTimeout: 'u32',
OffchainSchemaLimit: 'u32',
VariableOnChainSchemaLimit: 'u32',
ConstOnChainSchemaLimit: 'u32'
},
CollectionLimits: {
AccountTokenOwnershipLimit: 'u32',
SponsoredDataSize: 'u32',
SponsoredDataRateLimit: 'Option<BlockNumber>',
TokenLimit: 'u32',
SponsorTimeout: 'u32',
OwnerCanTransfer: 'bool',
OwnerCanDestroy: 'bool'
},
AccountInfo: 'AccountInfoWithDualRefCount'
}
}
]
};
export default definitions;