Documentation
¶
Index ¶
- Constants
- type ACI
- type API
- type APIVersion
- type ByteCode
- type ByteCodeInput
- type BytecodeCallResultInput
- func (m *BytecodeCallResultInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *BytecodeCallResultInput) MarshalBinary() ([]byte, error)
- func (m *BytecodeCallResultInput) UnmarshalBinary(b []byte) error
- func (m *BytecodeCallResultInput) Validate(formats strfmt.Registry) error
- type Calldata
- type CompileOpts
- type CompilerError
- func (m *CompilerError) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CompilerError) MarshalBinary() ([]byte, error)
- func (m *CompilerError) String() string
- func (m *CompilerError) UnmarshalBinary(b []byte) error
- func (m *CompilerError) Validate(formats strfmt.Registry) error
- type CompilerErrors
- type CompilerVersion
- type Contract
- type DecodeCalldataBytecode
- func (m *DecodeCalldataBytecode) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DecodeCalldataBytecode) MarshalBinary() ([]byte, error)
- func (m *DecodeCalldataBytecode) UnmarshalBinary(b []byte) error
- func (m *DecodeCalldataBytecode) Validate(formats strfmt.Registry) error
- type DecodeCalldataSource
- type DecodedCalldata
- type DecodedCallresult
- type EncodedByteArray
- type Error
- type ErrorPos
- type FateAssembler
- type FunctionCallInput
- type SophiaBinaryData
- type SophiaCallResult
- type SophiaCallResultInput
- type SophiaJSONData
- type ValidateByteCodeInput
Constants ¶
const ( // BytecodeCallResultInputBackendFate captures enum value "fate" BytecodeCallResultInputBackendFate string = "fate" // BytecodeCallResultInputBackendAevm captures enum value "aevm" BytecodeCallResultInputBackendAevm string = "aevm" )
const ( // CompileOptsBackendFate captures enum value "fate" CompileOptsBackendFate string = "fate" // CompileOptsBackendAevm captures enum value "aevm" CompileOptsBackendAevm string = "aevm" )
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"` // external encoded aci ExternalEncodedAci []interface{} `json:"external_encoded_aci"` // interface // Required: true Interface *string `json:"interface"` }
ACI a c i Example: {"encoded_aci":"{}","external_encoded_aci":"","interface":"interface"}
swagger:model ACI
func (*ACI) ContextValidate ¶
ContextValidate validates this a c i based on context it is used
func (*ACI) MarshalBinary ¶
MarshalBinary interface implementation
func (*ACI) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type APIVersion ¶
type APIVersion struct { // API compiler version // Required: true APIVersion *string `json:"api-version"` }
APIVersion API version Example: {"api-version":"api-version"}
swagger:model APIVersion
func (*APIVersion) ContextValidate ¶
ContextValidate validates this API version based on context it is used
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
type ByteCode ¶
type ByteCode struct { // bytecode // Required: true Bytecode *EncodedByteArray `json:"bytecode"` }
ByteCode byte code Example: {"bytecode":{}}
swagger:model ByteCode
func (*ByteCode) ContextValidate ¶
ContextValidate validate this byte code based on the context it is used
func (*ByteCode) MarshalBinary ¶
MarshalBinary interface implementation
func (*ByteCode) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ByteCodeInput ¶
type ByteCodeInput struct { // Compiled contract // Required: true Bytecode *EncodedByteArray `json:"bytecode"` }
ByteCodeInput byte code input Example: {"bytecode":{}}
swagger:model ByteCodeInput
func (*ByteCodeInput) ContextValidate ¶
ContextValidate validate this byte code input based on the context it is used
func (*ByteCodeInput) MarshalBinary ¶
func (m *ByteCodeInput) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ByteCodeInput) UnmarshalBinary ¶
func (m *ByteCodeInput) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 Example: {"backend":"fate","bytecode":{},"call-result":"call-result","call-value":"call-value","function":"function"}
swagger:model BytecodeCallResultInput
func (*BytecodeCallResultInput) ContextValidate ¶
func (m *BytecodeCallResultInput) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this bytecode call result input based on the context it is used
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
type Calldata ¶
type Calldata struct { // calldata // Required: true Calldata *EncodedByteArray `json:"calldata"` }
Calldata calldata Example: {"calldata":{}}
swagger:model Calldata
func (*Calldata) ContextValidate ¶
ContextValidate validate this calldata based on the context it is used
func (*Calldata) MarshalBinary ¶
MarshalBinary interface implementation
func (*Calldata) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 Example: {"backend":"fate","file_system":"{}","src_file":"src_file"}
swagger:model CompileOpts
func (*CompileOpts) ContextValidate ¶
ContextValidate validates this compile opts based on context it is used
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
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) ContextValidate ¶
ContextValidate validate this compiler error based on the context it is used
func (*CompilerError) MarshalBinary ¶
func (m *CompilerError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CompilerError) String ¶
func (m *CompilerError) String() string
TODO: This is not auto generated, it should be avoided
func (*CompilerError) UnmarshalBinary ¶
func (m *CompilerError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CompilerErrors ¶
type CompilerErrors []*CompilerError
CompilerErrors compiler errors
swagger:model CompilerErrors
func (CompilerErrors) ContextValidate ¶
ContextValidate validate this compiler errors based on the context it is used
type CompilerVersion ¶
type CompilerVersion struct { // Sophia compiler version // Required: true Version *string `json:"version"` }
CompilerVersion compiler version Example: {"version":"version"}
swagger:model CompilerVersion
func (*CompilerVersion) ContextValidate ¶
ContextValidate validates this compiler version based on context it is used
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
type Contract ¶
type Contract struct { // code // Required: true Code *string `json:"code"` // options // Required: true Options *CompileOpts `json:"options"` }
Contract contract Example: {"code":"code","options":{"backend":"fate","file_system":"{}","src_file":"src_file"}}
swagger:model Contract
func (*Contract) ContextValidate ¶
ContextValidate validate this contract based on the context it is used
func (*Contract) MarshalBinary ¶
MarshalBinary interface implementation
func (*Contract) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 Example: {"backend":"fate","bytecode":null,"calldata":{}}
swagger:model DecodeCalldataBytecode
func (*DecodeCalldataBytecode) ContextValidate ¶
func (m *DecodeCalldataBytecode) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this decode calldata bytecode based on the context it is used
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
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 Example: {"calldata":{},"function":"function","options":{"backend":"fate","file_system":"{}","src_file":"src_file"},"source":"source"}
swagger:model DecodeCalldataSource
func (*DecodeCalldataSource) ContextValidate ¶
ContextValidate validate this decode calldata source based on the context it is used
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
type DecodedCalldata ¶
type DecodedCalldata struct { // arguments // Required: true Arguments []interface{} `json:"arguments"` // function // Required: true Function *string `json:"function"` }
DecodedCalldata decoded calldata Example: {"arguments":["{}","{}"],"function":"function"}
swagger:model DecodedCalldata
func (*DecodedCalldata) ContextValidate ¶
ContextValidate validates this decoded calldata based on context it is used
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
type DecodedCallresult ¶
type DecodedCallresult struct { // function // Required: true Function *string `json:"function"` // result // Required: true Result interface{} `json:"result"` }
DecodedCallresult decoded callresult Example: {"function":"function","result":"{}"}
swagger:model DecodedCallresult
func (*DecodedCallresult) ContextValidate ¶
ContextValidate validates this decoded callresult based on context it is used
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
type EncodedByteArray ¶
type EncodedByteArray string
EncodedByteArray Prefixed (cb_) Base64Check encoded byte array
swagger:model EncodedByteArray
func (EncodedByteArray) ContextValidate ¶
ContextValidate validates this encoded byte array based on context it is used
type Error ¶
type Error struct { // reason // Required: true Reason *string `json:"reason"` }
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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) ContextValidate ¶
ContextValidate validates this error pos based on context it is used
func (*ErrorPos) MarshalBinary ¶
MarshalBinary interface implementation
func (*ErrorPos) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FateAssembler ¶
type FateAssembler struct { // Fate assembler code // Required: true FateAssembler *string `json:"fate-assembler"` }
FateAssembler fate assembler Example: {"fate-assembler":"fate-assembler"}
swagger:model FateAssembler
func (*FateAssembler) ContextValidate ¶
ContextValidate validates this fate assembler based on context it is used
func (*FateAssembler) MarshalBinary ¶
func (m *FateAssembler) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FateAssembler) UnmarshalBinary ¶
func (m *FateAssembler) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 Example: {"arguments":["arguments","arguments"],"function":"function","options":{"backend":"fate","file_system":"{}","src_file":"src_file"},"source":"source"}
swagger:model FunctionCallInput
func (*FunctionCallInput) ContextValidate ¶
ContextValidate validate this function call input based on the context it is used
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
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 Example: {"data":"data","sophia-type":"sophia-type"}
swagger:model SophiaBinaryData
func (*SophiaBinaryData) ContextValidate ¶
ContextValidate validates this sophia binary data based on context it is used
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
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 Example: {"call-result":"call-result","call-value":"call-value","function":"function","options":{"backend":"fate","file_system":"{}","src_file":"src_file"},"source":"source"}
swagger:model SophiaCallResultInput
func (*SophiaCallResultInput) ContextValidate ¶
ContextValidate validate this sophia call result input based on the context it is used
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
type SophiaJSONData ¶
type SophiaJSONData struct { // data // Required: true Data interface{} `json:"data"` }
SophiaJSONData sophia Json data Example: {"data":"{}"}
swagger:model SophiaJsonData
func (*SophiaJSONData) ContextValidate ¶
ContextValidate validates this sophia Json data based on context it is used
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
type ValidateByteCodeInput ¶
type ValidateByteCodeInput struct { // Compiled contract // Required: true Bytecode *EncodedByteArray `json:"bytecode"` // options // Required: true Options *CompileOpts `json:"options"` // Sophia contract source code // Required: true Source *string `json:"source"` }
ValidateByteCodeInput validate byte code input Example: {"bytecode":{},"options":{"backend":"fate","file_system":"{}","src_file":"src_file"},"source":"source"}
swagger:model ValidateByteCodeInput
func (*ValidateByteCodeInput) ContextValidate ¶
ContextValidate validate this validate byte code input based on the context it is used
func (*ValidateByteCodeInput) MarshalBinary ¶
func (m *ValidateByteCodeInput) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ValidateByteCodeInput) UnmarshalBinary ¶
func (m *ValidateByteCodeInput) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- a_c_i.go
- api.go
- api_version.go
- byte_code.go
- byte_code_input.go
- bytecode_call_result_input.go
- calldata.go
- compile_opts.go
- compiler_error.go
- compiler_errors.go
- compiler_version.go
- contract.go
- decode_calldata_bytecode.go
- decode_calldata_source.go
- decoded_calldata.go
- decoded_callresult.go
- encoded_byte_array.go
- error.go
- error_pos.go
- fate_assembler.go
- function_call_input.go
- sophia_binary_data.go
- sophia_call_result.go
- sophia_call_result_input.go
- sophia_json_data.go
- validate_byte_code_input.go