aboutsummaryrefslogtreecommitdiffstats
path: root/JSONSchema/vm-filler-schema.json
blob: fe61ae86a2b91471c81fd7aaf3cc35b8eaae439b (plain) (blame)
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
    "definitions": {
        "ExpectStateAccount": {
            "additionalproperties": true,
            "properties": {
                "balance": {
                    "$ref": "#/definitions/IntegerOrConfusedHex"
                },
                "code": {
                    "$ref": "#/definitions/HexMaybePrefixOrEmpty"
                },
                "nonce": {
                    "$ref": "#/definitions/IntegerOrConfusedHex"
                },
                "storage": {
                    "additionalProperties": false,
                    "patternProperties": {
                        "^(0x)?[0-9a-f]+": {
                            "$ref": "#/definitions/HexData",
                            "description": "storage key with 0x. data is HexData"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        },
        "PreStateAccount": {
            "additionalproperties": true,
            "properties": {
                "balance": {
                    "$ref": "#/definitions/IntegerOrConfusedHex"
                },
                "code": {
                    "$ref": "#/definitions/LLLCode"
                },
                "nonce": {
                    "$ref": "#/definitions/IntegerOrConfusedHex"
                },
                "storage": {
                    "additionalProperties": false,
                    "patternProperties": {
                        "^(0x)?[0-9a-f]+": {
                            "$ref": "#/definitions/HexData",
                            "description": "storage key with 0x. data is HexData"
                        }
                    },
                    "type": "object"
                }
            },
            "required": [
                "balance",
                "code",
                "nonce"
            ],
            "type": "object"
        }
    },
    "patternProperties": {
        "^.*$": {
            "properties": {
                "env": {
                    "additionalproperties": false,
                    "properties": {
                        "currentCoinbase": {
                            "$ref": "#/definitions/HexMaybePrefix"
                        },
                        "currentDifficulty": {
                            "$ref": "#/definitions/IntegerOrConfusedHex"
                        },
                        "currentGasLimit": {
                            "$ref": "#/definitions/IntegerOrConfusedHex"
                        },
                        "currentNumber": {
                            "$ref": "#/definitions/IntegerOrConfusedHex"
                        },
                        "currentTimestamp": {
                            "$ref": "#/definitions/IntegerOrNumberOrConfusedHex"
                        }
                    },
                    "required": [
                        "currentCoinbase",
                        "currentDifficulty",
                        "currentGasLimit",
                        "currentNumber",
                        "currentTimestamp"
                    ],
                    "type": "object"
                },
                "exec": {
                    "additionalproperties": false,
                    "properties": {
                        "address": {
                            "$ref": "#/definitions/AddressMaybePrefixOrEmpty"
                        },
                        "caller": {
                            "$ref": "#/definitions/AddressMaybePrefixOrEmpty"
                        },
                        "code": {
                            "$ref": "#/definitions/LLLCode"
                        },
                        "data": {
                            "$ref": "#/definitions/HexDataOrEmpty"
                        },
                        "gas": {
                            "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
                        },
                        "gasPrice": {
                            "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
                        },
                        "origin": {
                            "$ref": "#/definitions/AddressMaybePrefixOrEmpty"
                        },
                        "value": {
                            "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
                        }
                    },
                    "required": [
                        "address",
                        "caller",
                        "data",
                        "gas",
                        "gasPrice",
                        "origin",
                        "value"
                    ]
                },
                "expect": {
                    "additionalProperties": false,
                    "patternProperties": {
                        "^[0-9a-f]*": {
                            "$ref": "#/definitions/ExpectStateAccount",
                            "description": "expectstate account address with 0x prefix"
                        }
                    },
                    "type": "object"
                },
                "gas": {
                    "$ref": "#/definitions/IntegerOrEmptyOrConfusedHex"
                },
                "logs": {
                    "$ref": "#/definitions/HexDataOrEmpty"
                },
                "out": {
                    "$ref": "#/definitions/HexDataOrEmpty"
                },
                "pre": {
                    "additionalProperties": false,
                    "patternProperties": {
                        "^(0x)?[0-9a-f]*": {
                            "$ref": "#/definitions/PreStateAccount",
                            "description": "prestate account address with 0x prefix"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        }
    },
    "type": "object"
}