-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtypes.json
81 lines (81 loc) · 1.57 KB
/
types.json
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
{
"Address": "AccountId",
"LookupSource": "AccountId",
"RoleValue": "Option<u32>",
"Public": "[u8; 32]",
"ChunkIndex": "u64",
"FeedId": "u32",
"UserId": "u32",
"ContractId": "u32",
"ChallengeId": "u32",
"PlanId": "u32",
"AttestationId": "u32",
"NoiseKey": "Public",
"FeedKey": "Public",
"Proof": "Public",
"Ranges": "Vec<(ChunkIndex, ChunkIndex)>",
"Nonce": "u64",
"Role": {
"_enum": [
"Encoder",
"Hoster",
"Attestor"
]
},
"User": {
"id": "UserId",
"address": "AccountId",
"noise_key": "Option<NoiseKey>"
},
"Feed": {
"id": "FeedId",
"publickey": "FeedKey",
"meta": "TreeRoot"
},
"ParentHashInRoot": {
"hash": "H256",
"hash_number": "u64",
"total_length": "u64"
},
"TreeRoot": {
"signature": "H512",
"hash_type": "u8",
"children": "Vec<ParentHashInRoot>"
},
"TreeHashPayload": {
"hash_type": "u8",
"children": "Vec<ParentHashInRoot>"
},
"Plan": {
"id": "PlanId",
"feed": "FeedId",
"publisher": "UserId",
"ranges": "Ranges<ChunkIndex>"
},
"Contract": {
"id": "ContractId",
"plan": "PlanId",
"ranges": "Ranges<ChunkIndex>",
"encoder": "UserId",
"hoster": "UserId"
},
"Challenge": {
"id": "ChallengeId",
"contract": "ContractId",
"chunks": "Vec<ChunkIndex>"
},
"Node": {
"index": "u64",
"hash": "H256",
"size": "u64"
},
"Attestation": {
"id": "AttestationId",
"attestor": "UserId",
"contract": "ContractId"
},
"Report": {
"location": "u8",
"latency": "Option<u8>"
}
}