forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bittensor.ts
44 lines (40 loc) · 1.03 KB
/
bittensor.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
// 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: {
Balance: 'u64',
NeuronMetadata: {
version: 'u32',
ip: 'u128',
port: 'u16',
ipType: 'u8',
uid: 'u32',
netuid: 'u16',
modality: 'u8',
hotkey: 'AccountId',
coldkey: 'AccountId',
active: 'u32',
lastUpdate: 'u64',
priority: 'u64',
stake: 'u64',
rank: 'u64',
trust: 'u64',
consensus: 'u64',
incentive: 'u64',
dividends: 'u64',
emission: 'u64',
bonds: 'Vec<(u32, u64)>',
weights: 'Vec<(u32, u32)>'
}
}
}
]
};
export default definitions;