UNPKG

910 BJSONView Raw
1{
2 "$id": "network-object.spec.json",
3 "$schema": "http://json-schema.org/schema#",
4 "title": "Network Object",
5
6 "type": "object",
7 "properties": {
8 "address": { "$ref": "#/definitions/Address" },
9 "transactionHash": { "$ref": "#/definitions/TransactionHash" },
10 "events": {
11 "type": "object",
12 "patternProperties": {
13 "^0x[a-fA-F0-9]{64}$": { "$ref": "abi.spec.json#/definitions/Event" }
14 },
15 "additionalProperties": false
16 },
17 "links": {
18 "type": "object",
19 "patternProperties": {
20 "^[a-zA-Z_][a-zA-Z0-9_]*$": { "$ref": "#/definitions/Address" }
21 },
22 "additionalProperties": false
23 }
24 },
25 "additionalProperties": false,
26
27 "definitions": {
28 "Address": {
29 "type": "string",
30 "pattern": "^0x[a-fA-F0-9]{40}$"
31 },
32
33 "TransactionHash": {
34 "type": "string",
35 "pattern": "^0x[a-fA-F0-9]{64}$"
36 }
37 }
38}