totoro

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

README

eth-totoro

eth-tororo is a simple polling library that is used to subscribe events on EVM-like chains which not support wss well, such as Arbitrum :)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventTestABI = EventTestMetaData.ABI

EventTestABI is the input ABI used to generate the binding from. Deprecated: Use EventTestMetaData.ABI instead.

View Source
var EventTestMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"Event\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"triggerEvt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

EventTestMetaData contains all meta data concerning the EventTest contract.

Functions

This section is empty.

Types

type EventTest

type EventTest struct {
	EventTestCaller     // Read-only binding to the contract
	EventTestTransactor // Write-only binding to the contract
	EventTestFilterer   // Log filterer for contract events
}

EventTest is an auto generated Go binding around an Ethereum contract.

func NewEventTest

func NewEventTest(address common.Address, backend bind.ContractBackend) (*EventTest, error)

NewEventTest creates a new instance of EventTest, bound to a specific deployed contract.

type EventTestCaller

type EventTestCaller struct {
	// contains filtered or unexported fields
}

EventTestCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewEventTestCaller

func NewEventTestCaller(address common.Address, caller bind.ContractCaller) (*EventTestCaller, error)

NewEventTestCaller creates a new read-only instance of EventTest, bound to a specific deployed contract.

type EventTestCallerRaw

type EventTestCallerRaw struct {
	Contract *EventTestCaller // Generic read-only contract binding to access the raw methods on
}

EventTestCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*EventTestCallerRaw) Call

func (_EventTest *EventTestCallerRaw) 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 EventTestCallerSession

type EventTestCallerSession struct {
	Contract *EventTestCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts    // Call options to use throughout this session
}

EventTestCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type EventTestEvent

type EventTestEvent struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

EventTestEvent represents a Event event raised by the EventTest contract.

type EventTestEventIterator

type EventTestEventIterator struct {
	Event *EventTestEvent // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

EventTestEventIterator is returned from FilterEvent and is used to iterate over the raw logs and unpacked data for Event events raised by the EventTest contract.

func (*EventTestEventIterator) Close

func (it *EventTestEventIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*EventTestEventIterator) Error

func (it *EventTestEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*EventTestEventIterator) Next

func (it *EventTestEventIterator) 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 EventTestFilterer

type EventTestFilterer struct {
	// contains filtered or unexported fields
}

EventTestFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewEventTestFilterer

func NewEventTestFilterer(address common.Address, filterer bind.ContractFilterer) (*EventTestFilterer, error)

NewEventTestFilterer creates a new log filterer instance of EventTest, bound to a specific deployed contract.

func (*EventTestFilterer) FilterEvent

func (_EventTest *EventTestFilterer) FilterEvent(opts *bind.FilterOpts) (*EventTestEventIterator, error)

FilterEvent is a free log retrieval operation binding the contract event 0x510e730eb6600b4c67d51768c6996795863364461fee983d92d5e461f209c7cf.

Solidity: event Event(uint256 arg0)

func (*EventTestFilterer) ParseEvent

func (_EventTest *EventTestFilterer) ParseEvent(log types.Log) (*EventTestEvent, error)

ParseEvent is a log parse operation binding the contract event 0x510e730eb6600b4c67d51768c6996795863364461fee983d92d5e461f209c7cf.

Solidity: event Event(uint256 arg0)

func (*EventTestFilterer) WatchEvent

func (_EventTest *EventTestFilterer) WatchEvent(opts *bind.WatchOpts, sink chan<- *EventTestEvent) (event.Subscription, error)

WatchEvent is a free log subscription operation binding the contract event 0x510e730eb6600b4c67d51768c6996795863364461fee983d92d5e461f209c7cf.

Solidity: event Event(uint256 arg0)

type EventTestRaw

type EventTestRaw struct {
	Contract *EventTest // Generic contract binding to access the raw methods on
}

EventTestRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*EventTestRaw) Call

func (_EventTest *EventTestRaw) 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 (*EventTestRaw) Transact

func (_EventTest *EventTestRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*EventTestRaw) Transfer

func (_EventTest *EventTestRaw) 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 EventTestSession

type EventTestSession struct {
	Contract     *EventTest        // 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
}

EventTestSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*EventTestSession) TriggerEvt

func (_EventTest *EventTestSession) TriggerEvt() (*types.Transaction, error)

TriggerEvt is a paid mutator transaction binding the contract method 0xc18998b1.

Solidity: function triggerEvt() returns()

type EventTestTransactor

type EventTestTransactor struct {
	// contains filtered or unexported fields
}

EventTestTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewEventTestTransactor

func NewEventTestTransactor(address common.Address, transactor bind.ContractTransactor) (*EventTestTransactor, error)

NewEventTestTransactor creates a new write-only instance of EventTest, bound to a specific deployed contract.

func (*EventTestTransactor) TriggerEvt

func (_EventTest *EventTestTransactor) TriggerEvt(opts *bind.TransactOpts) (*types.Transaction, error)

TriggerEvt is a paid mutator transaction binding the contract method 0xc18998b1.

Solidity: function triggerEvt() returns()

type EventTestTransactorRaw

type EventTestTransactorRaw struct {
	Contract *EventTestTransactor // Generic write-only contract binding to access the raw methods on
}

EventTestTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*EventTestTransactorRaw) Transact

func (_EventTest *EventTestTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*EventTestTransactorRaw) Transfer

func (_EventTest *EventTestTransactorRaw) 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 EventTestTransactorSession

type EventTestTransactorSession struct {
	Contract     *EventTestTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts    // Transaction auth options to use throughout this session
}

EventTestTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*EventTestTransactorSession) TriggerEvt

func (_EventTest *EventTestTransactorSession) TriggerEvt() (*types.Transaction, error)

TriggerEvt is a paid mutator transaction binding the contract method 0xc18998b1.

Solidity: function triggerEvt() returns()

type Subscriber

type Subscriber struct {
	// contains filtered or unexported fields
}

func NewSubscriber

func NewSubscriber(
	ctx context.Context,
	ethCli *ethclient.Client,
	q ethereum.FilterQuery,
	ch chan types.Log,
) *Subscriber

func (*Subscriber) Err

func (scrb *Subscriber) Err() <-chan error

func (*Subscriber) SetPollingInternal

func (scrb *Subscriber) SetPollingInternal(duration time.Duration)

func (*Subscriber) Unsubscribe

func (scrb *Subscriber) Unsubscribe()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL