forked from reef-chain/console-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zero.ts
78 lines (74 loc) · 1.88 KB
/
zero.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
// 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: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
AccountInfo: 'AccountInfoWithDualRefCount',
AccountInfoWithDualRefCount: {
nonce: 'Index',
consumers: 'RefCount',
providers: 'RefCount',
data: 'AccountData'
},
Campaign: {
id: 'Hash',
owner: 'AccountId',
admin: 'AccountId',
deposit: 'Balance',
expiry: 'BlockNumber',
cap: 'Balance',
name: 'Vec<u8>',
protocol: 'u8',
governance: 'u8',
cid: 'Vec<u8>',
created: 'Timestamp'
},
Proposal: {
proposal_id: 'Hash',
campaign_id: 'Hash',
purpose: 'Vec<u8>',
cid: 'Vec<u8>',
amount: 'Balance',
expiry: 'BlockNumber',
status: 'u8'
},
EventMessage: 'Vec<u8>',
Nonce: 'u64',
Entity: {
account: 'AccountId',
index: 'u128',
cid: 'Vec<u8>',
created: 'BlockNumber',
mutated: 'BlockNumber'
},
EntityProperty: {
value: 'u64',
mutated: 'BlockNumber'
},
Item: {
ItemId: 'ItemId',
ItemInfo: 'ItemInfo'
},
ItemId: 'Hash',
ItemInfo: {
dob: 'u64',
dna: 'Hash'
},
CID: 'Vec<u8>',
HypaspaceInfo: 'Hash',
HypaspaceMetadata: {
name: 'Vec<u8>'
}
}
}
]
};
export default definitions;