-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtezos-snapshot-metadata.schema.json
143 lines (143 loc) · 4.67 KB
/
tezos-snapshot-metadata.schema.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"$schema": "http://json-schema.org/draft-04/schema",
"type": "object",
"title": "Tezos Snapshots",
"description": "List of all available Tezos Snapshots",
"required": ["data", "org", "date_generated"],
"properties": {
"org": {
"description": "Organization that published the metadata.",
"type": "string"
},
"date_generated": {
"description": "ISO 8601 UTC timestamp of when the metadata was generated.",
"type": "string"
},
"data": {
"type": "array",
"items": {
"required": [
"block_hash",
"block_height",
"block_timestamp",
"filename",
"url",
"history_mode",
"sha256",
"filesize_bytes",
"filesize",
"tezos_version",
"chain_name",
"artifact_type"
],
"type": "object",
"description": "The metadata of a single Tezos node storage artifact (snapshot or tarball).",
"properties": {
"block_hash": {
"type": "string",
"description": "A reference for a block in the Tezos blockchain.",
"examples": ["BMHv8Rmx2QQtN786bUCuAxxemTmdJxaonbmUALifMYtivT13Hxg"]
},
"block_height": {
"type": "integer",
"description": "The number of blocks preceding this one in the blockchain",
"examples": [23466334, 345667223]
},
"block_timestamp": {
"type": "string",
"description": "ISO 8601 timestamp of the current block UTC",
"examples": ["2023-01-02T08:17:20Z"]
},
"filename": {
"type": "string",
"examples": ["tezos-limanet-rolling-tarball-438782.lz4"]
},
"url": {
"type": "string",
"description": "Reference to this file on the web",
"examples": [
"https://limanet-v15.xtz-shots.io/tezos-limanet-rolling-tarball-438782.lz4"
]
},
"sha256": {
"type": "string",
"description": "Hash of the file contents for checking data integrity.",
"examples": [
"7961409dad2b8ff917551eea4a5178c1a6d95a21f807f1020a34e3acedaaad4c"
]
},
"filesize_bytes": {
"type": "integer",
"examples": [53963264, 234234]
},
"filesize": {
"type": "string",
"description": "Size of file in kilobytes (K), megabytes (M), gigabytes (G) or terabytes (T)",
"examples": ["6G", "51M"]
},
"tezos_version": {
"type": "object",
"description": "Tezos version running on the node this data is from",
"required": ["implementation", "version", "commit_info"],
"properties": {
"implementation": {
"type": "string",
"examples": ["octez", "tezedge"]
},
"version": {
"type": "object",
"required": ["major", "minor", "additional_info"],
"properties": {
"major": {
"type": "integer",
"minimum": 7,
"maximum": 99
},
"minor": {
"type": "integer",
"minimum": 0,
"maximum": 99
},
"additional_info": {
"type": ["string", "object"]
}
}
},
"commit_info": {
"required": ["commit_hash", "commit_date"],
"properties": {
"commit_hash": {
"type": "string"
},
"commit_date": {
"type": "string"
}
}
}
}
},
"chain_name": {
"type": "string",
"description": "Name of Tezos blockchain",
"examples": ["TEZOS_MAINNET", "TEZOS_LIMANET_2022-10-13T15:00:00Z"]
},
"history_mode": {
"type": "string",
"description": "Type of chain data contained in snapshot",
"enum": ["archive", "full", "rolling"]
},
"artifact_type": {
"type": "string",
"description": "Tarball or Tezos Snapshot",
"enum": ["tarball", "tezos-snapshot"]
},
"snapshot_version": {
"type": "integer",
"description": "Version of Octez snapshot format. Tarball will not have a snapshot_version.",
"examples": [5, 4]
}
}
}
}
}
}