-
Notifications
You must be signed in to change notification settings - Fork 1
/
root.json
40 lines (35 loc) · 1.17 KB
/
root.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "type/base.json",
"definitions": {
"DATA": {
"type": "string",
"minLength": 2,
"pattern": "^0x([0-9a-fA-F][0-9a-fA-F])*$",
"description": "When encoding unformatted DATA (byte arrays, account addresses, hashes, bytecode arrays): encode as hex, prefix with \"0x\", two hex digits per byte.",
"examples": [
"0x41",
"0x004200",
"0x"
]
},
"QUANTITY": {
"type": "string",
"minLength": 2,
"pattern": "^0x[0-9a-fA-F][0-9a-fA-F]*$",
"description": "When encoding a QUANTITY (integers, numbers): encode as hex, prefix with \"0x\", the most compact representation (slight exception: zero should be represented as \"0x0\").",
"examples": [
"0x41",
"0x400"
]
},
"BOOLEAN": {
"type": "boolean",
"$comment": "Not a type intended to be used directly by users of RPC framework, but used internally by the framework"
},
"OBJECT": {
"type": "object",
"$comment": "Not a type intended to be used directly by users of RPC framework, but used internally by the framework"
}
}
}