logger

package
v0.0.0-...-ce8f8be Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerABI = "" /* 423-byte string literal not displayed */

LoggerABI is the input ABI used to generate the binding from.

Variables

View Source
var LoggerBin = "" /* 1518-byte string literal not displayed */

LoggerBin is the compiled bytecode used for deploying new contracts.

Functions

func TestDeployLogger

func TestDeployLogger(t *testing.T)

TestDeployLogger Test logger contract gets deployed correctly

Types

type Logger

type Logger struct {
	LoggerCaller     // Read-only binding to the contract
	LoggerTransactor // Write-only binding to the contract
	LoggerFilterer   // Log filterer for contract events
}

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

func DeployLogger

func DeployLogger(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Logger, error)

DeployLogger deploys a new Ethereum contract, binding an instance of Logger to it.

func NewLogger

func NewLogger(address common.Address, backend bind.ContractBackend) (*Logger, error)

NewLogger creates a new instance of Logger, bound to a specific deployed contract.

type LoggerCaller

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

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

func NewLoggerCaller

func NewLoggerCaller(address common.Address, caller bind.ContractCaller) (*LoggerCaller, error)

NewLoggerCaller creates a new read-only instance of Logger, bound to a specific deployed contract.

type LoggerCallerRaw

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

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

func (*LoggerCallerRaw) Call

func (_Logger *LoggerCallerRaw) 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 LoggerCallerSession

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

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

type LoggerFilterer

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

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

func NewLoggerFilterer

func NewLoggerFilterer(address common.Address, filterer bind.ContractFilterer) (*LoggerFilterer, error)

NewLoggerFilterer creates a new log filterer instance of Logger, bound to a specific deployed contract.

func (*LoggerFilterer) FilterLog

func (_Logger *LoggerFilterer) FilterLog(opts *bind.FilterOpts, sender []common.Address) (*LoggerLogIterator, error)

FilterLog is a free log retrieval operation binding the contract event 0x0738f4da267a110d810e6e89fc59e46be6de0c37b1d5cd559b267dc3688e74e0.

Solidity: event Log(address indexed sender, string data)

func (*LoggerFilterer) ParseLog

func (_Logger *LoggerFilterer) ParseLog(log types.Log) (*LoggerLog, error)

ParseLog is a log parse operation binding the contract event 0x0738f4da267a110d810e6e89fc59e46be6de0c37b1d5cd559b267dc3688e74e0.

Solidity: event Log(address indexed sender, string data)

func (*LoggerFilterer) WatchLog

func (_Logger *LoggerFilterer) WatchLog(opts *bind.WatchOpts, sink chan<- *LoggerLog, sender []common.Address) (event.Subscription, error)

WatchLog is a free log subscription operation binding the contract event 0x0738f4da267a110d810e6e89fc59e46be6de0c37b1d5cd559b267dc3688e74e0.

Solidity: event Log(address indexed sender, string data)

type LoggerLog

type LoggerLog struct {
	Sender common.Address
	Data   string
	Raw    types.Log // Blockchain specific contextual infos
}

LoggerLog represents a Log event raised by the Logger contract.

type LoggerLogIterator

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

LoggerLogIterator is returned from FilterLog and is used to iterate over the raw logs and unpacked data for Log events raised by the Logger contract.

func (*LoggerLogIterator) Close

func (it *LoggerLogIterator) Close() error

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

func (*LoggerLogIterator) Error

func (it *LoggerLogIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LoggerLogIterator) Next

func (it *LoggerLogIterator) 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 LoggerRaw

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

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

func (*LoggerRaw) Call

func (_Logger *LoggerRaw) 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 (*LoggerRaw) Transact

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

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

func (*LoggerRaw) Transfer

func (_Logger *LoggerRaw) 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 LoggerSession

type LoggerSession struct {
	Contract     *Logger           // 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
}

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

func (*LoggerSession) DataLog

func (_Logger *LoggerSession) DataLog(data string) (*types.Transaction, error)

DataLog is a paid mutator transaction binding the contract method 0x53f2b237.

Solidity: function dataLog(string data) returns()

type LoggerTransactor

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

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

func NewLoggerTransactor

func NewLoggerTransactor(address common.Address, transactor bind.ContractTransactor) (*LoggerTransactor, error)

NewLoggerTransactor creates a new write-only instance of Logger, bound to a specific deployed contract.

func (*LoggerTransactor) DataLog

func (_Logger *LoggerTransactor) DataLog(opts *bind.TransactOpts, data string) (*types.Transaction, error)

DataLog is a paid mutator transaction binding the contract method 0x53f2b237.

Solidity: function dataLog(string data) returns()

type LoggerTransactorRaw

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

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

func (*LoggerTransactorRaw) Transact

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

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

func (*LoggerTransactorRaw) Transfer

func (_Logger *LoggerTransactorRaw) 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 LoggerTransactorSession

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

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

func (*LoggerTransactorSession) DataLog

func (_Logger *LoggerTransactorSession) DataLog(data string) (*types.Transaction, error)

DataLog is a paid mutator transaction binding the contract method 0x53f2b237.

Solidity: function dataLog(string data) returns()

Jump to

Keyboard shortcuts

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