contract
- Explore
- View source
- Playground
Loading ....
- YAML
- JSON
ethdebug/format/type/elementary/contract
$schema: "https://json-schema.org/draft/2020-12/schema"
$id: "schema:ethdebug/format/type/elementary/contract"
title: ethdebug/format/type/elementary/contract
description:
Schema describing the representation of a contract type
type: object
properties:
class:
const: elementary
kind:
const: contract
payable:
type: boolean
description:
If this field is omitted, this type represents an address whose
payability is not known.
definition:
$ref: "schema:ethdebug/format/type/definition"
oneOf:
- title: Normal contract type
properties:
library:
const: false
interface:
const: false
- title: Contract library type
properties:
library:
const: true
description:
Indicates that this is a type representing a library
required:
- library
- title: Contract interface type
properties:
interface:
const: true
description:
Indicates that this is a type representing an interface
required:
- interface
required:
- kind
examples:
- kind: contract
- kind: contract
library: false
interface: false
payable: true
ethdebug/format/type/elementary/contract
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "schema:ethdebug/format/type/elementary/contract",
"title": "ethdebug/format/type/elementary/contract",
"description": "Schema describing the representation of a contract type",
"type": "object",
"properties": {
"class": {
"const": "elementary"
},
"kind": {
"const": "contract"
},
"payable": {
"type": "boolean",
"description": "If this field is omitted, this type represents an address whose payability is not known."
},
"definition": {
"$ref": "schema:ethdebug/format/type/definition"
}
},
"oneOf": [
{
"title": "Normal contract type",
"properties": {
"library": {
"const": false
},
"interface": {
"const": false
}
}
},
{
"title": "Contract library type",
"properties": {
"library": {
"const": true,
"description": "Indicates that this is a type representing a library"
}
},
"required": [
"library"
]
},
{
"title": "Contract interface type",
"properties": {
"interface": {
"const": true,
"description": "Indicates that this is a type representing an interface"
}
},
"required": [
"interface"
]
}
],
"required": [
"kind"
],
"examples": [
{
"kind": "contract"
},
{
"kind": "contract",
"library": false,
"interface": false,
"payable": true
}
]
}
Loading...