Documentation
¶
Index ¶
- type ACI
- type API
- type APIVersion
- type ByteCode
- type Calldata
- type CompileOpts
- type CompilerVersion
- type Contract
- type DecodeCalldataBytecode
- type DecodeCalldataSource
- type DecodedCalldata
- type EncodedByteArray
- type Error
- type FunctionCallInput
- type SophiaBinaryData
- type SophiaCallResult
- type SophiaCallResultInput
- type SophiaJSONData
Constants ¶
This section is empty.
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 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 { // 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 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 { // 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 Calldata EncodedByteArray `json:"calldata,omitempty"` // (Possibly partial) Sophia contract code Source string `json:"source,omitempty"` }
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 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 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"` // (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"` // (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
- calldata.go
- compile_opts.go
- compiler_version.go
- contract.go
- decode_calldata_bytecode.go
- decode_calldata_source.go
- decoded_calldata.go
- encoded_byte_array.go
- error.go
- function_call_input.go
- sophia_binary_data.go
- sophia_call_result.go
- sophia_call_result_input.go
- sophia_json_data.go