-
Notifications
You must be signed in to change notification settings - Fork 146
Expand file tree
/
Copy pathdeployments.schema.json
More file actions
65 lines (65 loc) · 2.09 KB
/
Copy pathdeployments.schema.json
File metadata and controls
65 lines (65 loc) · 2.09 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Dongle Smart Contract Deployment Manifest",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"testnet": {
"type": "array",
"description": "List of deployments on Stellar Testnet",
"items": {
"$ref": "#/definitions/deploymentEntry"
}
},
"mainnet": {
"type": "array",
"description": "List of deployments on Stellar Mainnet",
"items": {
"$ref": "#/definitions/deploymentEntry"
}
}
},
"required": ["testnet", "mainnet"],
"additionalProperties": false,
"definitions": {
"deploymentEntry": {
"type": "object",
"properties": {
"contract_id": {
"type": "string",
"description": "Stellar Contract ID (starts with 'C', 56 characters)",
"pattern": "^C[A-Z2-7]{55}$"
},
"wasm_hash": {
"type": "string",
"description": "Hexadecimal hash of the built contract WASM (64 characters)",
"pattern": "^[a-fA-F0-9]{64}$"
},
"git_commit": {
"type": "string",
"description": "Git commit hash (SHA-1, 40 characters) or short commit hash (7+ characters) that produced this WASM",
"pattern": "^[a-f0-9]{7,40}$"
},
"git_tag": {
"type": "string",
"description": "Optional Git tag (e.g., v0.1.0) for release tracking",
"pattern": "^[a-zA-Z0-9._-]+$"
},
"deployer": {
"type": "string",
"description": "Stellar account public key or contract address that executed the deployment (starts with 'G' or 'C', 56 characters)",
"pattern": "^[GC][A-Z2-7]{55}$"
},
"timestamp": {
"type": "string",
"description": "Deployment ISO 8601 / RFC 3339 timestamp",
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:?\\d{2})$"
}
},
"required": ["contract_id", "wasm_hash", "git_commit", "deployer", "timestamp"],
"additionalProperties": false
}
}
}