-
Notifications
You must be signed in to change notification settings - Fork 400
/
Copy pathbase-types.yaml
49 lines (49 loc) · 1.05 KB
/
base-types.yaml
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
address:
title: hex encoded address
type: string
pattern: ^0x[0-9,a-f,A-F]{40}$
addresses:
title: hex encoded address
type: array
items:
$ref: '#/components/schemas/address'
byte:
title: hex encoded byte
type: string
pattern: ^0x([0-9,a-f,A-F]?){1,2}$
bytes:
title: hex encoded bytes
type: string
pattern: ^0x[0-9a-f]*$
bytes8:
title: 8 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{16}$
bytes32:
title: 32 hex encoded bytes
type: string
pattern: ^0x([0-9a-f][0-9a-f]){0,32}$
bytes256:
title: 256 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{512}$
bytes65:
title: 65 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{512}$
uint:
title: hex encoded unsigned integer
type: string
pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$
uint64:
title: hex encoded unsigned integer
type: string
pattern: ^0x([1-9a-f][0-9a-f]{0,31})|0$
uint256:
title: hex encoded unsigned integer
type: string
pattern: ^0x[0-9a-f]{0,64}$
hash32:
title: 32 byte hex value
type: string
pattern: ^0x([0-9a-f][0-9a-f]){0,32}$