Help us shape the future of Go! Take the 2026 Go Developer Survey

logemitter

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogemitterABI = LogemitterMetaData.ABI

LogemitterABI is the input ABI used to generate the binding from. Deprecated: Use LogemitterMetaData.ABI instead.

View Source
var LogemitterBin = LogemitterMetaData.Bin

LogemitterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use LogemitterMetaData.Bin instead.

View Source
var LogemitterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"bootMessage\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"topic\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"Data\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"Ping\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"counter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"topic\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"emitData\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"message\",\"type\":\"string\"}],\"name\":\"emitPing\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x6080604052346100e05761033b80380380610019816100fb565b9283398101602080838303126100e05782516001600160401b03938482116100e057019082601f830112156100e05781519384116100e557601f1993610065601f8201861683016100fb565b818152828101948383860101116100e0576000956100a960409387867f70b9fa9db7248779b82f3212f84983f03b8f0b0df01c3e83a8c642df6897002a9801610120565b6100c58351948593818552519788809286015285850190610120565b601f339601168101030190a36040516101f790816101448239f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b6040519190601f01601f191682016001600160401b038111838210176100e557604052565b60005b8381106101335750506000910152565b818101518382015260200161012356fe60808060405260048036101561001457600080fd5b600091823560e01c90816361bc221a14610153575080638b692c37146100c05763e85f05f21461004357600080fd5b346100bc5760403660031901126100bc5760243567ffffffffffffffff81116100b8577f5046ba6c1f270fb52212c8d175bba9a2f32035c54f076818682099b666acf9b26100976100b2923690850161016d565b929093604051918291602083523595339560208401916101a0565b0390a380f35b8280fd5b5080fd5b50346100bc5760403660031901126100bc5760243567ffffffffffffffff81116100b8576100f1903690830161016d565b9091835460018101809111610140577f70b9fa9db7248779b82f3212f84983f03b8f0b0df01c3e83a8c642df6897002a916100b2918655604051918291602083523595339560208401916101a0565b634e487b7160e01b855260118252602485fd5b8390346100bc57816003193601126100bc57602091548152f35b9181601f8401121561019b5782359167ffffffffffffffff831161019b576020838186019501011161019b57565b600080fd5b908060209392818452848401376000828201840152601f01601f191601019056fea26469706673582212200fe8d91d7cb5850d0d16712aa2af488fa7d2240ee843a08e90d8fc7ba83ddc3d64736f6c63430008120033",
}

LogemitterMetaData contains all meta data concerning the Logemitter contract.

Functions

This section is empty.

Types

type Logemitter

type Logemitter struct {
	LogemitterCaller     // Read-only binding to the contract
	LogemitterTransactor // Write-only binding to the contract
	LogemitterFilterer   // Log filterer for contract events
}

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

func DeployLogemitter

func DeployLogemitter(auth *bind.TransactOpts, backend bind.ContractBackend, bootMessage string) (common.Address, *types.Transaction, *Logemitter, error)

DeployLogemitter deploys a new Ethereum contract, binding an instance of Logemitter to it.

func NewLogemitter

func NewLogemitter(address common.Address, backend bind.ContractBackend) (*Logemitter, error)

NewLogemitter creates a new instance of Logemitter, bound to a specific deployed contract.

type LogemitterCaller

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

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

func NewLogemitterCaller

func NewLogemitterCaller(address common.Address, caller bind.ContractCaller) (*LogemitterCaller, error)

NewLogemitterCaller creates a new read-only instance of Logemitter, bound to a specific deployed contract.

func (*LogemitterCaller) Counter

func (_Logemitter *LogemitterCaller) Counter(opts *bind.CallOpts) (*big.Int, error)

Counter is a free data retrieval call binding the contract method 0x61bc221a.

Solidity: function counter() view returns(uint256)

type LogemitterCallerRaw

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

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

func (*LogemitterCallerRaw) Call

func (_Logemitter *LogemitterCallerRaw) 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 LogemitterCallerSession

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

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

func (*LogemitterCallerSession) Counter

func (_Logemitter *LogemitterCallerSession) Counter() (*big.Int, error)

Counter is a free data retrieval call binding the contract method 0x61bc221a.

Solidity: function counter() view returns(uint256)

type LogemitterData

type LogemitterData struct {
	From  common.Address
	Topic [32]byte
	Data  []byte
	Raw   types.Log // Blockchain specific contextual infos
}

LogemitterData represents a Data event raised by the Logemitter contract.

type LogemitterDataIterator

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

LogemitterDataIterator is returned from FilterData and is used to iterate over the raw logs and unpacked data for Data events raised by the Logemitter contract.

func (*LogemitterDataIterator) Close

func (it *LogemitterDataIterator) Close() error

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

func (*LogemitterDataIterator) Error

func (it *LogemitterDataIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LogemitterDataIterator) Next

func (it *LogemitterDataIterator) 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 LogemitterFilterer

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

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

func NewLogemitterFilterer

func NewLogemitterFilterer(address common.Address, filterer bind.ContractFilterer) (*LogemitterFilterer, error)

NewLogemitterFilterer creates a new log filterer instance of Logemitter, bound to a specific deployed contract.

func (*LogemitterFilterer) FilterData

func (_Logemitter *LogemitterFilterer) FilterData(opts *bind.FilterOpts, from []common.Address, topic [][32]byte) (*LogemitterDataIterator, error)

FilterData is a free log retrieval operation binding the contract event 0x5046ba6c1f270fb52212c8d175bba9a2f32035c54f076818682099b666acf9b2.

Solidity: event Data(address indexed from, bytes32 indexed topic, bytes data)

func (*LogemitterFilterer) FilterPing

func (_Logemitter *LogemitterFilterer) FilterPing(opts *bind.FilterOpts, from []common.Address, id []*big.Int) (*LogemitterPingIterator, error)

FilterPing is a free log retrieval operation binding the contract event 0x70b9fa9db7248779b82f3212f84983f03b8f0b0df01c3e83a8c642df6897002a.

Solidity: event Ping(address indexed from, uint256 indexed id, string message)

func (*LogemitterFilterer) ParseData

func (_Logemitter *LogemitterFilterer) ParseData(log types.Log) (*LogemitterData, error)

ParseData is a log parse operation binding the contract event 0x5046ba6c1f270fb52212c8d175bba9a2f32035c54f076818682099b666acf9b2.

Solidity: event Data(address indexed from, bytes32 indexed topic, bytes data)

func (*LogemitterFilterer) ParsePing

func (_Logemitter *LogemitterFilterer) ParsePing(log types.Log) (*LogemitterPing, error)

ParsePing is a log parse operation binding the contract event 0x70b9fa9db7248779b82f3212f84983f03b8f0b0df01c3e83a8c642df6897002a.

Solidity: event Ping(address indexed from, uint256 indexed id, string message)

func (*LogemitterFilterer) WatchData

func (_Logemitter *LogemitterFilterer) WatchData(opts *bind.WatchOpts, sink chan<- *LogemitterData, from []common.Address, topic [][32]byte) (event.Subscription, error)

WatchData is a free log subscription operation binding the contract event 0x5046ba6c1f270fb52212c8d175bba9a2f32035c54f076818682099b666acf9b2.

Solidity: event Data(address indexed from, bytes32 indexed topic, bytes data)

func (*LogemitterFilterer) WatchPing

func (_Logemitter *LogemitterFilterer) WatchPing(opts *bind.WatchOpts, sink chan<- *LogemitterPing, from []common.Address, id []*big.Int) (event.Subscription, error)

WatchPing is a free log subscription operation binding the contract event 0x70b9fa9db7248779b82f3212f84983f03b8f0b0df01c3e83a8c642df6897002a.

Solidity: event Ping(address indexed from, uint256 indexed id, string message)

type LogemitterPing

type LogemitterPing struct {
	From    common.Address
	Id      *big.Int
	Message string
	Raw     types.Log // Blockchain specific contextual infos
}

LogemitterPing represents a Ping event raised by the Logemitter contract.

type LogemitterPingIterator

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

LogemitterPingIterator is returned from FilterPing and is used to iterate over the raw logs and unpacked data for Ping events raised by the Logemitter contract.

func (*LogemitterPingIterator) Close

func (it *LogemitterPingIterator) Close() error

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

func (*LogemitterPingIterator) Error

func (it *LogemitterPingIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LogemitterPingIterator) Next

func (it *LogemitterPingIterator) 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 LogemitterRaw

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

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

func (*LogemitterRaw) Call

func (_Logemitter *LogemitterRaw) 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 (*LogemitterRaw) Transact

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

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

func (*LogemitterRaw) Transfer

func (_Logemitter *LogemitterRaw) 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 LogemitterSession

type LogemitterSession struct {
	Contract     *Logemitter       // 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
}

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

func (*LogemitterSession) Counter

func (_Logemitter *LogemitterSession) Counter() (*big.Int, error)

Counter is a free data retrieval call binding the contract method 0x61bc221a.

Solidity: function counter() view returns(uint256)

func (*LogemitterSession) EmitData

func (_Logemitter *LogemitterSession) EmitData(topic [32]byte, data []byte) (*types.Transaction, error)

EmitData is a paid mutator transaction binding the contract method 0xe85f05f2.

Solidity: function emitData(bytes32 topic, bytes data) returns()

func (*LogemitterSession) EmitPing

func (_Logemitter *LogemitterSession) EmitPing(id *big.Int, message string) (*types.Transaction, error)

EmitPing is a paid mutator transaction binding the contract method 0x8b692c37.

Solidity: function emitPing(uint256 id, string message) returns()

type LogemitterTransactor

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

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

func NewLogemitterTransactor

func NewLogemitterTransactor(address common.Address, transactor bind.ContractTransactor) (*LogemitterTransactor, error)

NewLogemitterTransactor creates a new write-only instance of Logemitter, bound to a specific deployed contract.

func (*LogemitterTransactor) EmitData

func (_Logemitter *LogemitterTransactor) EmitData(opts *bind.TransactOpts, topic [32]byte, data []byte) (*types.Transaction, error)

EmitData is a paid mutator transaction binding the contract method 0xe85f05f2.

Solidity: function emitData(bytes32 topic, bytes data) returns()

func (*LogemitterTransactor) EmitPing

func (_Logemitter *LogemitterTransactor) EmitPing(opts *bind.TransactOpts, id *big.Int, message string) (*types.Transaction, error)

EmitPing is a paid mutator transaction binding the contract method 0x8b692c37.

Solidity: function emitPing(uint256 id, string message) returns()

type LogemitterTransactorRaw

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

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

func (*LogemitterTransactorRaw) Transact

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

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

func (*LogemitterTransactorRaw) Transfer

func (_Logemitter *LogemitterTransactorRaw) 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 LogemitterTransactorSession

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

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

func (*LogemitterTransactorSession) EmitData

func (_Logemitter *LogemitterTransactorSession) EmitData(topic [32]byte, data []byte) (*types.Transaction, error)

EmitData is a paid mutator transaction binding the contract method 0xe85f05f2.

Solidity: function emitData(bytes32 topic, bytes data) returns()

func (*LogemitterTransactorSession) EmitPing

func (_Logemitter *LogemitterTransactorSession) EmitPing(id *big.Int, message string) (*types.Transaction, error)

EmitPing is a paid mutator transaction binding the contract method 0x8b692c37.

Solidity: function emitPing(uint256 id, string message) returns()

Jump to

Keyboard shortcuts

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