Documentation ¶
Index ¶
- Variables
- type CoprocessorContracts
- type CoprocessorContractsCaller
- func (_CoprocessorContracts *CoprocessorContractsCaller) ComputationSent(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_CoprocessorContracts *CoprocessorContractsCaller) Coprocessor(opts *bind.CallOpts) (common.Address, error)
- func (_CoprocessorContracts *CoprocessorContractsCaller) MachineHash(opts *bind.CallOpts) ([32]byte, error)
- type CoprocessorContractsCallerRaw
- type CoprocessorContractsCallerSession
- func (_CoprocessorContracts *CoprocessorContractsCallerSession) ComputationSent(arg0 [32]byte) (bool, error)
- func (_CoprocessorContracts *CoprocessorContractsCallerSession) Coprocessor() (common.Address, error)
- func (_CoprocessorContracts *CoprocessorContractsCallerSession) MachineHash() ([32]byte, error)
- type CoprocessorContractsFilterer
- type CoprocessorContractsRaw
- func (_CoprocessorContracts *CoprocessorContractsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_CoprocessorContracts *CoprocessorContractsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_CoprocessorContracts *CoprocessorContractsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CoprocessorContractsSession
- func (_CoprocessorContracts *CoprocessorContractsSession) CallCoprocessor(input []byte) (*types.Transaction, error)
- func (_CoprocessorContracts *CoprocessorContractsSession) ComputationSent(arg0 [32]byte) (bool, error)
- func (_CoprocessorContracts *CoprocessorContractsSession) Coprocessor() (common.Address, error)
- func (_CoprocessorContracts *CoprocessorContractsSession) CoprocessorCallbackOutputsOnly(_machineHash [32]byte, _payloadHash [32]byte, outputs [][]byte) (*types.Transaction, error)
- func (_CoprocessorContracts *CoprocessorContractsSession) MachineHash() ([32]byte, error)
- type CoprocessorContractsTransactor
- func (_CoprocessorContracts *CoprocessorContractsTransactor) CallCoprocessor(opts *bind.TransactOpts, input []byte) (*types.Transaction, error)
- func (_CoprocessorContracts *CoprocessorContractsTransactor) CoprocessorCallbackOutputsOnly(opts *bind.TransactOpts, _machineHash [32]byte, _payloadHash [32]byte, ...) (*types.Transaction, error)
- type CoprocessorContractsTransactorRaw
- type CoprocessorContractsTransactorSession
- func (_CoprocessorContracts *CoprocessorContractsTransactorSession) CallCoprocessor(input []byte) (*types.Transaction, error)
- func (_CoprocessorContracts *CoprocessorContractsTransactorSession) CoprocessorCallbackOutputsOnly(_machineHash [32]byte, _payloadHash [32]byte, outputs [][]byte) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var CoprocessorContractsABI = CoprocessorContractsMetaData.ABI
CoprocessorContractsABI is the input ABI used to generate the binding from. Deprecated: Use CoprocessorContractsMetaData.ABI instead.
var CoprocessorContractsMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"payloadHash\",\"type\":\"bytes32\"}],\"name\":\"ComputationNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"name\":\"InsufficientFunds\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"InvalidOutputLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"selector\",\"type\":\"bytes4\"},{\"internalType\":\"bytes4\",\"name\":\"expected\",\"type\":\"bytes4\"}],\"name\":\"InvalidOutputSelector\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"current\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"expected\",\"type\":\"bytes32\"}],\"name\":\"MachineHashMismatch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"caller\",\"type\":\"address\"}],\"name\":\"UnauthorizedCaller\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"input\",\"type\":\"bytes\"}],\"name\":\"callCoprocessor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"computationSent\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"coprocessor\",\"outputs\":[{\"internalType\":\"contractICoprocessor\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_machineHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_payloadHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes[]\",\"name\":\"outputs\",\"type\":\"bytes[]\"}],\"name\":\"coprocessorCallbackOutputsOnly\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"machineHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
CoprocessorContractsMetaData contains all meta data concerning the CoprocessorContracts contract.
Functions ¶
This section is empty.
Types ¶
type CoprocessorContracts ¶
type CoprocessorContracts struct { CoprocessorContractsCaller // Read-only binding to the contract CoprocessorContractsTransactor // Write-only binding to the contract CoprocessorContractsFilterer // Log filterer for contract events }
CoprocessorContracts is an auto generated Go binding around an Ethereum contract.
func NewCoprocessorContracts ¶
func NewCoprocessorContracts(address common.Address, backend bind.ContractBackend) (*CoprocessorContracts, error)
NewCoprocessorContracts creates a new instance of CoprocessorContracts, bound to a specific deployed contract.
type CoprocessorContractsCaller ¶
type CoprocessorContractsCaller struct {
// contains filtered or unexported fields
}
CoprocessorContractsCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCoprocessorContractsCaller ¶
func NewCoprocessorContractsCaller(address common.Address, caller bind.ContractCaller) (*CoprocessorContractsCaller, error)
NewCoprocessorContractsCaller creates a new read-only instance of CoprocessorContracts, bound to a specific deployed contract.
func (*CoprocessorContractsCaller) ComputationSent ¶
func (_CoprocessorContracts *CoprocessorContractsCaller) ComputationSent(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
ComputationSent is a free data retrieval call binding the contract method 0xdca588c1.
Solidity: function computationSent(bytes32 ) view returns(bool)
func (*CoprocessorContractsCaller) Coprocessor ¶
func (_CoprocessorContracts *CoprocessorContractsCaller) Coprocessor(opts *bind.CallOpts) (common.Address, error)
Coprocessor is a free data retrieval call binding the contract method 0x7382084a.
Solidity: function coprocessor() view returns(address)
func (*CoprocessorContractsCaller) MachineHash ¶
func (_CoprocessorContracts *CoprocessorContractsCaller) MachineHash(opts *bind.CallOpts) ([32]byte, error)
MachineHash is a free data retrieval call binding the contract method 0x25daa706.
Solidity: function machineHash() view returns(bytes32)
type CoprocessorContractsCallerRaw ¶
type CoprocessorContractsCallerRaw struct {
Contract *CoprocessorContractsCaller // Generic read-only contract binding to access the raw methods on
}
CoprocessorContractsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CoprocessorContractsCallerRaw) Call ¶
func (_CoprocessorContracts *CoprocessorContractsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type CoprocessorContractsCallerSession ¶
type CoprocessorContractsCallerSession struct { Contract *CoprocessorContractsCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CoprocessorContractsCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CoprocessorContractsCallerSession) ComputationSent ¶
func (_CoprocessorContracts *CoprocessorContractsCallerSession) ComputationSent(arg0 [32]byte) (bool, error)
ComputationSent is a free data retrieval call binding the contract method 0xdca588c1.
Solidity: function computationSent(bytes32 ) view returns(bool)
func (*CoprocessorContractsCallerSession) Coprocessor ¶
func (_CoprocessorContracts *CoprocessorContractsCallerSession) Coprocessor() (common.Address, error)
Coprocessor is a free data retrieval call binding the contract method 0x7382084a.
Solidity: function coprocessor() view returns(address)
func (*CoprocessorContractsCallerSession) MachineHash ¶
func (_CoprocessorContracts *CoprocessorContractsCallerSession) MachineHash() ([32]byte, error)
MachineHash is a free data retrieval call binding the contract method 0x25daa706.
Solidity: function machineHash() view returns(bytes32)
type CoprocessorContractsFilterer ¶
type CoprocessorContractsFilterer struct {
// contains filtered or unexported fields
}
CoprocessorContractsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCoprocessorContractsFilterer ¶
func NewCoprocessorContractsFilterer(address common.Address, filterer bind.ContractFilterer) (*CoprocessorContractsFilterer, error)
NewCoprocessorContractsFilterer creates a new log filterer instance of CoprocessorContracts, bound to a specific deployed contract.
type CoprocessorContractsRaw ¶
type CoprocessorContractsRaw struct {
Contract *CoprocessorContracts // Generic contract binding to access the raw methods on
}
CoprocessorContractsRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CoprocessorContractsRaw) Call ¶
func (_CoprocessorContracts *CoprocessorContractsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*CoprocessorContractsRaw) Transact ¶
func (_CoprocessorContracts *CoprocessorContractsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CoprocessorContractsRaw) Transfer ¶
func (_CoprocessorContracts *CoprocessorContractsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type CoprocessorContractsSession ¶
type CoprocessorContractsSession struct { Contract *CoprocessorContracts // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CoprocessorContractsSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CoprocessorContractsSession) CallCoprocessor ¶
func (_CoprocessorContracts *CoprocessorContractsSession) CallCoprocessor(input []byte) (*types.Transaction, error)
CallCoprocessor is a paid mutator transaction binding the contract method 0x127f92a3.
Solidity: function callCoprocessor(bytes input) returns()
func (*CoprocessorContractsSession) ComputationSent ¶
func (_CoprocessorContracts *CoprocessorContractsSession) ComputationSent(arg0 [32]byte) (bool, error)
ComputationSent is a free data retrieval call binding the contract method 0xdca588c1.
Solidity: function computationSent(bytes32 ) view returns(bool)
func (*CoprocessorContractsSession) Coprocessor ¶
func (_CoprocessorContracts *CoprocessorContractsSession) Coprocessor() (common.Address, error)
Coprocessor is a free data retrieval call binding the contract method 0x7382084a.
Solidity: function coprocessor() view returns(address)
func (*CoprocessorContractsSession) CoprocessorCallbackOutputsOnly ¶
func (_CoprocessorContracts *CoprocessorContractsSession) CoprocessorCallbackOutputsOnly(_machineHash [32]byte, _payloadHash [32]byte, outputs [][]byte) (*types.Transaction, error)
CoprocessorCallbackOutputsOnly is a paid mutator transaction binding the contract method 0x58f6e29f.
Solidity: function coprocessorCallbackOutputsOnly(bytes32 _machineHash, bytes32 _payloadHash, bytes[] outputs) returns()
func (*CoprocessorContractsSession) MachineHash ¶
func (_CoprocessorContracts *CoprocessorContractsSession) MachineHash() ([32]byte, error)
MachineHash is a free data retrieval call binding the contract method 0x25daa706.
Solidity: function machineHash() view returns(bytes32)
type CoprocessorContractsTransactor ¶
type CoprocessorContractsTransactor struct {
// contains filtered or unexported fields
}
CoprocessorContractsTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCoprocessorContractsTransactor ¶
func NewCoprocessorContractsTransactor(address common.Address, transactor bind.ContractTransactor) (*CoprocessorContractsTransactor, error)
NewCoprocessorContractsTransactor creates a new write-only instance of CoprocessorContracts, bound to a specific deployed contract.
func (*CoprocessorContractsTransactor) CallCoprocessor ¶
func (_CoprocessorContracts *CoprocessorContractsTransactor) CallCoprocessor(opts *bind.TransactOpts, input []byte) (*types.Transaction, error)
CallCoprocessor is a paid mutator transaction binding the contract method 0x127f92a3.
Solidity: function callCoprocessor(bytes input) returns()
func (*CoprocessorContractsTransactor) CoprocessorCallbackOutputsOnly ¶
func (_CoprocessorContracts *CoprocessorContractsTransactor) CoprocessorCallbackOutputsOnly(opts *bind.TransactOpts, _machineHash [32]byte, _payloadHash [32]byte, outputs [][]byte) (*types.Transaction, error)
CoprocessorCallbackOutputsOnly is a paid mutator transaction binding the contract method 0x58f6e29f.
Solidity: function coprocessorCallbackOutputsOnly(bytes32 _machineHash, bytes32 _payloadHash, bytes[] outputs) returns()
type CoprocessorContractsTransactorRaw ¶
type CoprocessorContractsTransactorRaw struct {
Contract *CoprocessorContractsTransactor // Generic write-only contract binding to access the raw methods on
}
CoprocessorContractsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CoprocessorContractsTransactorRaw) Transact ¶
func (_CoprocessorContracts *CoprocessorContractsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CoprocessorContractsTransactorRaw) Transfer ¶
func (_CoprocessorContracts *CoprocessorContractsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type CoprocessorContractsTransactorSession ¶
type CoprocessorContractsTransactorSession struct { Contract *CoprocessorContractsTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CoprocessorContractsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CoprocessorContractsTransactorSession) CallCoprocessor ¶
func (_CoprocessorContracts *CoprocessorContractsTransactorSession) CallCoprocessor(input []byte) (*types.Transaction, error)
CallCoprocessor is a paid mutator transaction binding the contract method 0x127f92a3.
Solidity: function callCoprocessor(bytes input) returns()
func (*CoprocessorContractsTransactorSession) CoprocessorCallbackOutputsOnly ¶
func (_CoprocessorContracts *CoprocessorContractsTransactorSession) CoprocessorCallbackOutputsOnly(_machineHash [32]byte, _payloadHash [32]byte, outputs [][]byte) (*types.Transaction, error)
CoprocessorCallbackOutputsOnly is a paid mutator transaction binding the contract method 0x58f6e29f.
Solidity: function coprocessorCallbackOutputsOnly(bytes32 _machineHash, bytes32 _payloadHash, bytes[] outputs) returns()