-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaddress-book.schema.json
More file actions
120 lines (120 loc) · 3.19 KB
/
Copy pathaddress-book.schema.json
File metadata and controls
120 lines (120 loc) · 3.19 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/6529-Collections/6529Stream/main/deployments/schema/address-book.schema.json",
"title": "6529Stream Address Book",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"generated_by",
"source",
"protocol_version",
"deployment_version",
"lifecycle_state",
"network",
"git",
"contracts"
],
"properties": {
"schema_version": {
"const": "6529stream.address-book.v1"
},
"generated_by": {
"type": "string",
"minLength": 1
},
"source": {
"type": "object",
"additionalProperties": false,
"required": [
"deployment_manifest",
"deployment_manifest_sha256",
"release_artifacts",
"abi_checksums",
"event_topic_catalog"
],
"properties": {
"deployment_manifest": { "type": "string", "minLength": 1 },
"deployment_manifest_sha256": { "$ref": "#/$defs/sha256" },
"release_artifacts": { "type": "string", "minLength": 1 },
"abi_checksums": { "type": "string", "minLength": 1 },
"event_topic_catalog": { "type": "string", "minLength": 1 }
}
},
"protocol_version": {
"type": "string",
"minLength": 1
},
"deployment_version": {
"type": "string",
"minLength": 1
},
"lifecycle_state": {
"enum": [
"Planned",
"Rehearsed",
"Active",
"Deprecated",
"EmergencySuperseded",
"Retired",
"Cancelled"
]
},
"network": {
"type": "object",
"additionalProperties": false,
"required": ["name", "chain_id"],
"properties": {
"name": { "type": "string", "minLength": 1 },
"chain_id": { "type": "integer", "minimum": 1 }
}
},
"git": {
"type": "object",
"additionalProperties": false,
"required": ["repository", "commit", "source_dirty"],
"properties": {
"repository": { "type": "string", "minLength": 1 },
"commit": { "type": "string", "pattern": "^[0-9a-fA-F]{40}$" },
"source_dirty": { "type": "boolean" }
}
},
"contracts": {
"type": "object",
"minProperties": 1,
"additionalProperties": { "$ref": "#/$defs/contract" }
}
},
"$defs": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-f]{40}$"
},
"contract": {
"type": "object",
"additionalProperties": false,
"required": [
"address",
"source",
"artifact_path",
"abi_hash",
"runtime_bytecode_hash",
"verification_status"
],
"properties": {
"address": { "$ref": "#/$defs/address" },
"source": { "type": "string", "minLength": 1 },
"artifact_path": { "type": "string", "minLength": 1 },
"abi_hash": { "$ref": "#/$defs/sha256" },
"runtime_bytecode_hash": { "$ref": "#/$defs/sha256" },
"verification_status": {
"enum": ["not_started", "submitted", "verified", "not_applicable"]
}
}
},
"sha256": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
}
}
}