Documentation ¶
Index ¶
- Variables
- type BaseExampleProcessor
- func (h *BaseExampleProcessor) Initialize(ctx context.Context, start uint64, tx *example.TestInput) error
- func (h *BaseExampleProcessor) ProcessElement(p interface{}) func(context.Context, types.Log, func(*example.TestInput)) error
- func (h *BaseExampleProcessor) ProcessExampleEvent(ctx context.Context, e *ExampleExampleEvent, cb func(tx *example.TestInput)) error
- func (h *BaseExampleProcessor) Setup(address common.Address, eth interface{ ... }) error
- func (h *BaseExampleProcessor) UnpackLog(out interface{}, event string, log types.Log) error
- type Example
- type ExampleCaller
- type ExampleCallerRaw
- type ExampleCallerSession
- type ExampleExampleEvent
- type ExampleExampleEventIterator
- type ExampleFilterer
- func (_Example *ExampleFilterer) FilterExampleEvent(opts *bind.FilterOpts) (*ExampleExampleEventIterator, error)
- func (_Example *ExampleFilterer) ParseExampleEvent(log types.Log) (*ExampleExampleEvent, error)
- func (_Example *ExampleFilterer) WatchExampleEvent(opts *bind.WatchOpts, sink chan<- *ExampleExampleEvent) (event.Subscription, error)
- type ExampleProcessor
- type ExampleRaw
- func (_Example *ExampleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Example *ExampleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Example *ExampleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ExampleSession
- type ExampleTransactor
- type ExampleTransactorRaw
- type ExampleTransactorSession
Constants ¶
This section is empty.
Variables ¶
var ExampleABI = ExampleMetaData.ABI
ExampleABI is the input ABI used to generate the binding from. Deprecated: Use ExampleMetaData.ABI instead.
var ExampleBin = ExampleMetaData.Bin
ExampleBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ExampleMetaData.Bin instead.
var ExampleMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"ExampleEvent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"exampleValue\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
Bin: "0x60c0604052600660808190526532ba3433b2b760d11b60a0908152610027916000919061003a565b5034801561003457600080fd5b5061010e565b828054610046906100d3565b90600052602060002090601f01602090048101928261006857600085556100ae565b82601f1061008157805160ff19168380011785556100ae565b828001600101855582156100ae579182015b828111156100ae578251825591602001919060010190610093565b506100ba9291506100be565b5090565b5b808211156100ba57600081556001016100bf565b600181811c908216806100e757607f821691505b6020821081141561010857634e487b7160e01b600052602260045260246000fd5b50919050565b6101a68061011d6000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063d8f7c4cf14610030575b600080fd5b61003861004e565b60405161004591906100e0565b60405180910390f35b60606000805461005d90610135565b80601f016020809104026020016040519081016040528092919081815260200182805461008990610135565b80156100d65780601f106100ab576101008083540402835291602001916100d6565b820191906000526020600020905b8154815290600101906020018083116100b957829003601f168201915b5050505050905090565b600060208083528351808285015260005b8181101561010d578581018301518582016040015282016100f1565b8181111561011f576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061014957607f821691505b6020821081141561016a57634e487b7160e01b600052602260045260246000fd5b5091905056fea2646970667358221220d432acfc601a55b38872c4482f4ff23a49d4b5ed1caa9f6ba25dbf74dff0072364736f6c634300080a0033",
}
ExampleMetaData contains all meta data concerning the Example contract.
Functions ¶
This section is empty.
Types ¶
type BaseExampleProcessor ¶ added in v0.0.7
type BaseExampleProcessor struct { Address common.Address ABI abi.ABI Contract *Example Eth interface { ethereum.ChainReader ethereum.ChainStateReader ethereum.TransactionReader bind.ContractBackend } }
func (*BaseExampleProcessor) Initialize ¶ added in v0.0.7
func (*BaseExampleProcessor) ProcessElement ¶ added in v0.0.7
func (*BaseExampleProcessor) ProcessExampleEvent ¶ added in v0.0.7
func (h *BaseExampleProcessor) ProcessExampleEvent(ctx context.Context, e *ExampleExampleEvent, cb func(tx *example.TestInput)) error
func (*BaseExampleProcessor) Setup ¶ added in v0.0.7
func (h *BaseExampleProcessor) Setup(address common.Address, eth interface { ethereum.ChainReader ethereum.ChainStateReader ethereum.TransactionReader bind.ContractBackend }) error
type Example ¶
type Example struct { ExampleCaller // Read-only binding to the contract ExampleTransactor // Write-only binding to the contract ExampleFilterer // Log filterer for contract events }
Example is an auto generated Go binding around an Ethereum contract.
func DeployExample ¶
func DeployExample(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Example, error)
DeployExample deploys a new Ethereum contract, binding an instance of Example to it.
func NewExample ¶
NewExample creates a new instance of Example, bound to a specific deployed contract.
type ExampleCaller ¶
type ExampleCaller struct {
// contains filtered or unexported fields
}
ExampleCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewExampleCaller ¶
func NewExampleCaller(address common.Address, caller bind.ContractCaller) (*ExampleCaller, error)
NewExampleCaller creates a new read-only instance of Example, bound to a specific deployed contract.
func (*ExampleCaller) ExampleValue ¶
func (_Example *ExampleCaller) ExampleValue(opts *bind.CallOpts) (string, error)
ExampleValue is a free data retrieval call binding the contract method 0xd8f7c4cf.
Solidity: function exampleValue() view returns(string)
type ExampleCallerRaw ¶
type ExampleCallerRaw struct {
Contract *ExampleCaller // Generic read-only contract binding to access the raw methods on
}
ExampleCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ExampleCallerRaw) Call ¶
func (_Example *ExampleCallerRaw) 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 ExampleCallerSession ¶
type ExampleCallerSession struct { Contract *ExampleCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ExampleCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ExampleCallerSession) ExampleValue ¶
func (_Example *ExampleCallerSession) ExampleValue() (string, error)
ExampleValue is a free data retrieval call binding the contract method 0xd8f7c4cf.
Solidity: function exampleValue() view returns(string)
type ExampleExampleEvent ¶
type ExampleExampleEvent struct { Value string Raw types.Log // Blockchain specific contextual infos }
ExampleExampleEvent represents a ExampleEvent event raised by the Example contract.
type ExampleExampleEventIterator ¶
type ExampleExampleEventIterator struct { Event *ExampleExampleEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ExampleExampleEventIterator is returned from FilterExampleEvent and is used to iterate over the raw logs and unpacked data for ExampleEvent events raised by the Example contract.
func (*ExampleExampleEventIterator) Close ¶
func (it *ExampleExampleEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ExampleExampleEventIterator) Error ¶
func (it *ExampleExampleEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ExampleExampleEventIterator) Next ¶
func (it *ExampleExampleEventIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type ExampleFilterer ¶
type ExampleFilterer struct {
// contains filtered or unexported fields
}
ExampleFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewExampleFilterer ¶
func NewExampleFilterer(address common.Address, filterer bind.ContractFilterer) (*ExampleFilterer, error)
NewExampleFilterer creates a new log filterer instance of Example, bound to a specific deployed contract.
func (*ExampleFilterer) FilterExampleEvent ¶
func (_Example *ExampleFilterer) FilterExampleEvent(opts *bind.FilterOpts) (*ExampleExampleEventIterator, error)
FilterExampleEvent is a free log retrieval operation binding the contract event 0xb74a38eb2ebca56512a2bb0283f335555a4a4dac46ab998d65fd76f9027dca70.
Solidity: event ExampleEvent(string value)
func (*ExampleFilterer) ParseExampleEvent ¶
func (_Example *ExampleFilterer) ParseExampleEvent(log types.Log) (*ExampleExampleEvent, error)
ParseExampleEvent is a log parse operation binding the contract event 0xb74a38eb2ebca56512a2bb0283f335555a4a4dac46ab998d65fd76f9027dca70.
Solidity: event ExampleEvent(string value)
func (*ExampleFilterer) WatchExampleEvent ¶
func (_Example *ExampleFilterer) WatchExampleEvent(opts *bind.WatchOpts, sink chan<- *ExampleExampleEvent) (event.Subscription, error)
WatchExampleEvent is a free log subscription operation binding the contract event 0xb74a38eb2ebca56512a2bb0283f335555a4a4dac46ab998d65fd76f9027dca70.
Solidity: event ExampleEvent(string value)
type ExampleProcessor ¶
type ExampleProcessor interface { Setup(address common.Address, eth interface { ethereum.ChainReader ethereum.ChainStateReader ethereum.TransactionReader bind.ContractBackend }) error Initialize(ctx context.Context, start uint64, tx *example.TestInput) error ProcessExampleEvent(ctx context.Context, e *ExampleExampleEvent, cb func(tx *example.TestInput)) error // contains filtered or unexported methods }
type ExampleRaw ¶
type ExampleRaw struct {
Contract *Example // Generic contract binding to access the raw methods on
}
ExampleRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ExampleRaw) Call ¶
func (_Example *ExampleRaw) 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 (*ExampleRaw) Transact ¶
func (_Example *ExampleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ExampleRaw) Transfer ¶
func (_Example *ExampleRaw) 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 ExampleSession ¶
type ExampleSession struct { Contract *Example // 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 }
ExampleSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ExampleSession) ExampleValue ¶
func (_Example *ExampleSession) ExampleValue() (string, error)
ExampleValue is a free data retrieval call binding the contract method 0xd8f7c4cf.
Solidity: function exampleValue() view returns(string)
type ExampleTransactor ¶
type ExampleTransactor struct {
// contains filtered or unexported fields
}
ExampleTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewExampleTransactor ¶
func NewExampleTransactor(address common.Address, transactor bind.ContractTransactor) (*ExampleTransactor, error)
NewExampleTransactor creates a new write-only instance of Example, bound to a specific deployed contract.
type ExampleTransactorRaw ¶
type ExampleTransactorRaw struct {
Contract *ExampleTransactor // Generic write-only contract binding to access the raw methods on
}
ExampleTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ExampleTransactorRaw) Transact ¶
func (_Example *ExampleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ExampleTransactorRaw) Transfer ¶
func (_Example *ExampleTransactorRaw) 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 ExampleTransactorSession ¶
type ExampleTransactorSession struct { Contract *ExampleTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ExampleTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.