-
Notifications
You must be signed in to change notification settings - Fork 37
/
contract.json
23 lines (23 loc) · 976 Bytes
/
contract.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/ethereum-lists/contracts/schemas/contract.json",
"title": "Contract",
"description": "A contract entry at a specific chain and address",
"type": "object",
"additionalProperties": false,
"required": ["project"],
"properties": {
"project": { "type": "string", "description": "Project name as found in the projects folder" },
"name": { "type": "string", "description": "User-friendly name of the contract" },
"contractName": { "type": "string", "description": "Name of the contract in the Solidity source code" },
"source": { "type": "string", "description": "Source of this entry" },
"tags": {
"type": "array",
"uniqueItems": true,
"items": { "enum": ["factory", "proxy"] }
},
"features": {
"factory": { "type": "string", "pattern": "^0x[a-fA-F0-9]{40}$", "description": "Factory that created this contract" }
}
}
}