Documentation ¶
Index ¶
- Constants
- type ACI
- type API
- type APIVersion
- type ByteCode
- type BytecodeCallResultInput
- type Calldata
- type CompileOpts
- type CompilerError
- type CompilerErrors
- type CompilerVersion
- type Contract
- type DecodeCalldataBytecode
- type DecodeCalldataSource
- type DecodedCalldata
- type DecodedCallresult
- type EncodedByteArray
- type Error
- type ErrorPos
- type FunctionCallInput
- type SophiaBinaryData
- type SophiaCallResult
- type SophiaCallResultInput
- type SophiaJSONData
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"` // interface // Required: true Interface *string `json:"interface"` }
ACI a c i swagger:model ACI
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 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
type ByteCode ¶
type ByteCode struct { // bytecode // Required: true Bytecode EncodedByteArray `json:"bytecode"` }
ByteCode byte code swagger:model ByteCode
func (*ByteCode) MarshalBinary ¶
MarshalBinary interface implementation
func (*ByteCode) UnmarshalBinary ¶
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 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
type Calldata ¶
type Calldata struct { // calldata // Required: true Calldata EncodedByteArray `json:"calldata"` }
Calldata calldata swagger:model Calldata
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 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
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
type CompilerErrors ¶
type CompilerErrors []*CompilerError
CompilerErrors compiler errors swagger:model CompilerErrors
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
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 ¶
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 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
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
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
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
type EncodedByteArray ¶
type EncodedByteArray string
EncodedByteArray Prefixed (cb_) Base64Check encoded byte array swagger:model EncodedByteArray
type Error ¶
type Error struct { // reason // Required: true Reason *string `json:"reason"` }
Error error swagger:model Error
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) MarshalBinary ¶
MarshalBinary interface implementation
func (*ErrorPos) UnmarshalBinary ¶
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 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
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
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
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
Source Files ¶
- a_c_i.go
- api.go
- api_version.go
- byte_code.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
- function_call_input.go
- sophia_binary_data.go
- sophia_call_result.go
- sophia_call_result_input.go
- sophia_json_data.go