forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ipse.ts
122 lines (118 loc) · 3.01 KB
/
ipse.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
// Copyright 2017-2023 @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: {
test: 'u64',
Address: 'IndicesLookupSource',
LookupSource: 'IndicesLookupSource',
GIB: 'u64',
Amount: 'u128',
Miner: {
account_id: 'AccountId',
nickname: 'Vec<u8>',
region: 'Vec<u8>',
url: 'Vec<u8>',
public_key: 'Vec<u8>',
stash_address: 'AccountId',
capacity: 'u128',
unit_price: 'Balance',
violation_times: 'u64',
total_staking: 'Balance',
create_ts: 'u64',
update_ts: 'u64'
},
Order: {
miner: 'AccountId',
label: 'Vec<u8>',
hash: '[u8; 46]',
size: 'u128',
user: 'AccountId',
orders: 'Vec<MinerOrder<AccountId, Balance>>',
status: 'OrderStatus',
create_ts: 'u64',
update_ts: 'u64',
duration: 'u64'
},
MinerOrder: {
miner: 'AccountId',
day_price: 'Balance',
total_price: 'Balance',
verify_result: 'bool',
verify_ts: 'u64',
confirm_ts: 'u64',
url: 'Option<Vec<u8>>'
},
OrderStatus: {
_enum: [
'Created',
'Confirmed',
'Expired',
'Deleted'
]
},
MiningInfo: {
miner: 'Option<AccountId>',
best_dl: 'u64',
block: 'u64'
},
Difficulty: {
base_target: 'u64',
net_difficulty: 'u64',
block: 'u64'
},
MachineInfo: {
plot_size: 'u64',
numeric_id: 'u128',
update_time: 'BlockNumber',
is_stop: 'bool',
reward_dest: 'AccountId'
},
StakingInfo: {
miner: 'AccountId',
miner_proportion: 'Percent',
total_staking: 'Balance',
others: 'Vec<(AccountId, Balance, Balance)>'
},
Oprate: {
_enum: [
'Add',
'Sub'
]
},
MiningHistory: {
total_num: 'u64',
history: 'Vec<(BlockNumber, Balance)>'
},
PostTxTransferData: {
verify_status: 'u64',
irreversible: 'bool',
is_post_transfer: 'bool',
contract_account: 'Vec<u8>',
from: 'Vec<u8>',
to: 'Vec<u8>',
quantity: 'u64',
memo: 'Vec<u8>'
},
AddressStatus: {
_enum: [
'active',
'inActive'
]
},
FetchFailedOf: {
block_num: 'BlockNumber',
tx: 'Vec<u8>',
err: 'Vec<u8>'
}
}
}
]
};
export default definitions;