-
Notifications
You must be signed in to change notification settings - Fork 401
/
Copy pathbase-types.yaml
69 lines (69 loc) · 1.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
address:
title: hex encoded address
type: string
pattern: ^0x[0-9a-fA-F]{40}$
addresses:
title: hex encoded address
type: array
items:
$ref: '#/components/schemas/address'
byte:
title: hex encoded byte
type: string
pattern: ^0x([0-9a-fA-F]?){1,2}$
bytes:
title: hex encoded bytes
type: string
pattern: ^0x[0-9a-f]*$
bytesMax32:
title: 32 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{0,64}$
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]{64}$
bytes48:
title: 48 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{96}$
bytes96:
title: 96 hex encoded bytes
type: string
pattern: ^0x[0-9a-f]{192}$
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]{130}$
ratio:
title: normalized ratio
type: number
minimum: 0
maximum: 1
uint:
title: hex encoded unsigned integer
type: string
pattern: ^0x(0|[1-9a-f][0-9a-f]*)$
uint64:
title: hex encoded 64 bit unsigned integer
type: string
pattern: ^0x(0|[1-9a-f][0-9a-f]{0,15})$
uint256:
title: hex encoded 256 bit unsigned integer
type: string
pattern: ^0x(0|[1-9a-f][0-9a-f]{0,63})$
hash32:
title: 32 byte hex value
type: string
pattern: ^0x[0-9a-f]{64}$
notFound:
title: 'Not Found (null)'
type: 'null'