models

package
v6.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// BytecodeCallResultInputBackendFate captures enum value "fate"
	BytecodeCallResultInputBackendFate string = "fate"

	// BytecodeCallResultInputBackendAevm captures enum value "aevm"
	BytecodeCallResultInputBackendAevm string = "aevm"
)
View Source
const (

	// CompileOptsBackendFate captures enum value "fate"
	CompileOptsBackendFate string = "fate"

	// CompileOptsBackendAevm captures enum value "aevm"
	CompileOptsBackendAevm string = "aevm"
)
View Source
const (

	// DecodeCalldataBytecodeBackendFate captures enum value "fate"
	DecodeCalldataBytecodeBackendFate string = "fate"

	// DecodeCalldataBytecodeBackendAevm captures enum value "aevm"
	DecodeCalldataBytecodeBackendAevm string = "aevm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ACI

type ACI struct {

	// encoded aci
	// Required: true
	EncodedAci interface{} `json:"encoded_aci"`

	// interface
	// Required: true
	Interface *string `json:"interface"`
}

ACI a c i swagger:model ACI

func (*ACI) MarshalBinary

func (m *ACI) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ACI) UnmarshalBinary

func (m *ACI) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ACI) Validate

func (m *ACI) Validate(formats strfmt.Registry) error

Validate validates this a c i

type API

type API interface{}

API Swagger API description swagger:model API

type APIVersion

type APIVersion struct {

	// API compiler version
	// Required: true
	APIVersion *string `json:"api-version"`
}

APIVersion API version swagger:model APIVersion

func (*APIVersion) MarshalBinary

func (m *APIVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIVersion) UnmarshalBinary

func (m *APIVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIVersion) Validate

func (m *APIVersion) Validate(formats strfmt.Registry) error

Validate validates this API version

type ByteCode

type ByteCode struct {

	// bytecode
	// Required: true
	Bytecode EncodedByteArray `json:"bytecode"`
}

ByteCode byte code swagger:model ByteCode

func (*ByteCode) MarshalBinary

func (m *ByteCode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ByteCode) UnmarshalBinary

func (m *ByteCode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ByteCode) Validate

func (m *ByteCode) Validate(formats strfmt.Registry) error

Validate validates this byte code

type BytecodeCallResultInput

type BytecodeCallResultInput struct {

	// Compiler backend; fate | aevm
	// Enum: [fate aevm]
	Backend string `json:"backend,omitempty"`

	// Compiled contract
	// Required: true
	Bytecode EncodedByteArray `json:"bytecode"`

	// Call result type (ok | revert | error)
	// Required: true
	CallResult *string `json:"call-result"`

	// Call result value (ABI encoded data or error string)
	// Required: true
	CallValue *string `json:"call-value"`

	// Name of the called function
	// Required: true
	Function *string `json:"function"`
}

BytecodeCallResultInput bytecode call result input swagger:model BytecodeCallResultInput

func (*BytecodeCallResultInput) MarshalBinary

func (m *BytecodeCallResultInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BytecodeCallResultInput) UnmarshalBinary

func (m *BytecodeCallResultInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BytecodeCallResultInput) Validate

func (m *BytecodeCallResultInput) Validate(formats strfmt.Registry) error

Validate validates this bytecode call result input

type Calldata

type Calldata struct {

	// calldata
	// Required: true
	Calldata EncodedByteArray `json:"calldata"`
}

Calldata calldata swagger:model Calldata

func (*Calldata) MarshalBinary

func (m *Calldata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Calldata) UnmarshalBinary

func (m *Calldata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Calldata) Validate

func (m *Calldata) Validate(formats strfmt.Registry) error

Validate validates this calldata

type CompileOpts

type CompileOpts struct {

	// Compiler backend; fate | aevm
	// Enum: [fate aevm]
	Backend string `json:"backend,omitempty"`

	// An explicit file system, mapping file names to file content
	FileSystem interface{} `json:"file_system,omitempty"`

	// Name of contract source file - only used in error messages
	SrcFile string `json:"src_file,omitempty"`
}

CompileOpts compile opts swagger:model CompileOpts

func (*CompileOpts) MarshalBinary

func (m *CompileOpts) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CompileOpts) UnmarshalBinary

func (m *CompileOpts) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CompileOpts) Validate

func (m *CompileOpts) Validate(formats strfmt.Registry) error

Validate validates this compile opts

type CompilerError

type CompilerError struct {

	// context
	Context string `json:"context,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`

	// pos
	// Required: true
	Pos *ErrorPos `json:"pos"`

	// type
	// Required: true
	Type *string `json:"type"`
}

CompilerError compiler error swagger:model CompilerError

func (*CompilerError) MarshalBinary

func (m *CompilerError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CompilerError) String

func (m *CompilerError) String() string

func (*CompilerError) UnmarshalBinary

func (m *CompilerError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CompilerError) Validate

func (m *CompilerError) Validate(formats strfmt.Registry) error

Validate validates this compiler error

type CompilerErrors

type CompilerErrors []*CompilerError

CompilerErrors compiler errors swagger:model CompilerErrors

func (CompilerErrors) Validate

func (m CompilerErrors) Validate(formats strfmt.Registry) error

Validate validates this compiler errors

type CompilerVersion

type CompilerVersion struct {

	// Sophia compiler version
	// Required: true
	Version *string `json:"version"`
}

CompilerVersion compiler version swagger:model CompilerVersion

func (*CompilerVersion) MarshalBinary

func (m *CompilerVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CompilerVersion) UnmarshalBinary

func (m *CompilerVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CompilerVersion) Validate

func (m *CompilerVersion) Validate(formats strfmt.Registry) error

Validate validates this compiler version

type Contract

type Contract struct {

	// code
	// Required: true
	Code *string `json:"code"`

	// options
	// Required: true
	Options *CompileOpts `json:"options"`
}

Contract contract swagger:model Contract

func (*Contract) MarshalBinary

func (m *Contract) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Contract) UnmarshalBinary

func (m *Contract) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Contract) Validate

func (m *Contract) Validate(formats strfmt.Registry) error

Validate validates this contract

type DecodeCalldataBytecode

type DecodeCalldataBytecode struct {

	// Compiler backend; fate | aevm
	// Enum: [fate aevm]
	Backend string `json:"backend,omitempty"`

	// Compiled contract
	// Required: true
	Bytecode EncodedByteArray `json:"bytecode"`

	// Calldata to dissect
	// Required: true
	Calldata EncodedByteArray `json:"calldata"`
}

DecodeCalldataBytecode decode calldata bytecode swagger:model DecodeCalldataBytecode

func (*DecodeCalldataBytecode) MarshalBinary

func (m *DecodeCalldataBytecode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DecodeCalldataBytecode) UnmarshalBinary

func (m *DecodeCalldataBytecode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DecodeCalldataBytecode) Validate

func (m *DecodeCalldataBytecode) Validate(formats strfmt.Registry) error

Validate validates this decode calldata bytecode

type DecodeCalldataSource

type DecodeCalldataSource struct {

	// Calldata to dissect
	// Required: true
	Calldata EncodedByteArray `json:"calldata"`

	// Name of the function to call
	// Required: true
	Function *string `json:"function"`

	// options
	Options *CompileOpts `json:"options,omitempty"`

	// (Possibly partial) Sophia contract code
	// Required: true
	Source *string `json:"source"`
}

DecodeCalldataSource decode calldata source swagger:model DecodeCalldataSource

func (*DecodeCalldataSource) MarshalBinary

func (m *DecodeCalldataSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DecodeCalldataSource) UnmarshalBinary

func (m *DecodeCalldataSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DecodeCalldataSource) Validate

func (m *DecodeCalldataSource) Validate(formats strfmt.Registry) error

Validate validates this decode calldata source

type DecodedCalldata

type DecodedCalldata struct {

	// arguments
	// Required: true
	Arguments []interface{} `json:"arguments"`

	// function
	// Required: true
	Function *string `json:"function"`
}

DecodedCalldata decoded calldata swagger:model DecodedCalldata

func (*DecodedCalldata) MarshalBinary

func (m *DecodedCalldata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DecodedCalldata) UnmarshalBinary

func (m *DecodedCalldata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DecodedCalldata) Validate

func (m *DecodedCalldata) Validate(formats strfmt.Registry) error

Validate validates this decoded calldata

type DecodedCallresult

type DecodedCallresult struct {

	// function
	// Required: true
	Function *string `json:"function"`

	// result
	// Required: true
	Result interface{} `json:"result"`
}

DecodedCallresult decoded callresult swagger:model DecodedCallresult

func (*DecodedCallresult) MarshalBinary

func (m *DecodedCallresult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DecodedCallresult) UnmarshalBinary

func (m *DecodedCallresult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DecodedCallresult) Validate

func (m *DecodedCallresult) Validate(formats strfmt.Registry) error

Validate validates this decoded callresult

type EncodedByteArray

type EncodedByteArray string

EncodedByteArray Prefixed (cb_) Base64Check encoded byte array swagger:model EncodedByteArray

func (EncodedByteArray) Validate

func (m EncodedByteArray) Validate(formats strfmt.Registry) error

Validate validates this encoded byte array

type Error

type Error struct {

	// reason
	// Required: true
	Reason *string `json:"reason"`
}

Error error swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) String

func (m *Error) String() string

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorPos

type ErrorPos struct {

	// col
	// Required: true
	Col *int64 `json:"col"`

	// file
	File string `json:"file,omitempty"`

	// line
	// Required: true
	Line *int64 `json:"line"`
}

ErrorPos error pos swagger:model ErrorPos

func (*ErrorPos) MarshalBinary

func (m *ErrorPos) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorPos) String

func (m *ErrorPos) String() string

func (*ErrorPos) UnmarshalBinary

func (m *ErrorPos) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorPos) Validate

func (m *ErrorPos) Validate(formats strfmt.Registry) error

Validate validates this error pos

type FunctionCallInput

type FunctionCallInput struct {

	// Array of function call arguments
	// Required: true
	Arguments []string `json:"arguments"`

	// Name of function to call
	// Required: true
	Function *string `json:"function"`

	// options
	Options *CompileOpts `json:"options,omitempty"`

	// (Possibly partial) Sophia contract code
	// Required: true
	Source *string `json:"source"`
}

FunctionCallInput function call input swagger:model FunctionCallInput

func (*FunctionCallInput) MarshalBinary

func (m *FunctionCallInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FunctionCallInput) UnmarshalBinary

func (m *FunctionCallInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FunctionCallInput) Validate

func (m *FunctionCallInput) Validate(formats strfmt.Registry) error

Validate validates this function call input

type SophiaBinaryData

type SophiaBinaryData struct {

	// data
	// Required: true
	Data *string `json:"data"`

	// sophia type
	// Required: true
	SophiaType *string `json:"sophia-type"`
}

SophiaBinaryData sophia binary data swagger:model SophiaBinaryData

func (*SophiaBinaryData) MarshalBinary

func (m *SophiaBinaryData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SophiaBinaryData) UnmarshalBinary

func (m *SophiaBinaryData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SophiaBinaryData) Validate

func (m *SophiaBinaryData) Validate(formats strfmt.Registry) error

Validate validates this sophia binary data

type SophiaCallResult

type SophiaCallResult interface{}

SophiaCallResult sophia call result swagger:model SophiaCallResult

type SophiaCallResultInput

type SophiaCallResultInput struct {

	// Call result type (ok | revert | error)
	// Required: true
	CallResult *string `json:"call-result"`

	// Call result value (ABI encoded data or error string)
	// Required: true
	CallValue *string `json:"call-value"`

	// Name of the called function
	// Required: true
	Function *string `json:"function"`

	// options
	Options *CompileOpts `json:"options,omitempty"`

	// (Possibly partial) Sophia contract code/interface
	// Required: true
	Source *string `json:"source"`
}

SophiaCallResultInput sophia call result input swagger:model SophiaCallResultInput

func (*SophiaCallResultInput) MarshalBinary

func (m *SophiaCallResultInput) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SophiaCallResultInput) UnmarshalBinary

func (m *SophiaCallResultInput) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SophiaCallResultInput) Validate

func (m *SophiaCallResultInput) Validate(formats strfmt.Registry) error

Validate validates this sophia call result input

type SophiaJSONData

type SophiaJSONData struct {

	// data
	// Required: true
	Data interface{} `json:"data"`
}

SophiaJSONData sophia Json data swagger:model SophiaJsonData

func (*SophiaJSONData) MarshalBinary

func (m *SophiaJSONData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SophiaJSONData) UnmarshalBinary

func (m *SophiaJSONData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SophiaJSONData) Validate

func (m *SophiaJSONData) Validate(formats strfmt.Registry) error

Validate validates this sophia Json data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL