-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathblockchain.ts
More file actions
82 lines (69 loc) · 1.74 KB
/
blockchain.ts
File metadata and controls
82 lines (69 loc) · 1.74 KB
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
// SBP-M1 review: create seed on device and store securely, then use PolkadotJS API to sign an extrinsic which can then be submitted to the node/api. The seed should never leave the device. Remove the seed from here.
export interface SeededResponse {
seed: string;
account: string;
}
export interface AccountExistsResponse {
account: string;
exists: boolean;
}
export interface PoolCreateResponse {
owner: string;
poolID: number;
}
export interface PoolJoinResponse {
account: string;
poolID: number;
}
export interface PoolCancelJoinResponse {
account: string;
poolID: number;
}
export interface PoolRequestsResponse {
poolRequests: PoolRequest[];
}
export interface PoolListResponse {
pools: Pool[];
}
export interface PoolVoteResponse {
account: string;
poolID: number;
}
export interface PoolLeaveResponse {
account: string;
poolID: number;
}
export interface ManifestUploadResponse {
uploader: string;
storage: string[];
manifestMetadata: ManifestMetadata;
poolID: number;
}
export interface PoolRequest {
poolID: number;
account: string;
voted: string[];
positiveVotes: number;
peerID: string;
}
export interface Pool {
poolID: number;
owner: string;
poolName: string;
parent: string;
participants: string[];
}
export interface ManifestMetadata {
job: ManifestJob;
}
export interface ManifestJob {
work: string;
engine: string;
uri: string;
}
export interface BloxFreeSpaceResponse {
size: number;
avail: number;
used: number;
used_percentage: number;
}