statesender

package
v1.0.7-beta Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StateSyncedEventID is the topic ID of StateSynced event
	StateSyncedEventID = "0x103fed9db65eac19c4d870f49ab7520fe03b99f1838e5996caf47e9e43308392"
)

Variables

View Source
var StatesenderABI = StatesenderMetaData.ABI

StatesenderABI is the input ABI used to generate the binding from. Deprecated: Use StatesenderMetaData.ABI instead.

View Source
var StatesenderMetaData = &bind.MetaData{
	ABI: "[{\"constant\":false,\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"syncState\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"counter\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"registrations\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"sender\",\"type\":\"address\"},{\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"register\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"NewRegistration\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"contractAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"StateSynced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"}]",
}

StatesenderMetaData contains all meta data concerning the Statesender contract.

Functions

func GetStateSyncedEventID added in v0.3.2

func GetStateSyncedEventID() common.Hash

GetStateSyncedEventID returns the hash of StateSynced event ID

Types

type Statesender

type Statesender struct {
	StatesenderCaller     // Read-only binding to the contract
	StatesenderTransactor // Write-only binding to the contract
	StatesenderFilterer   // Log filterer for contract events
}

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

func NewStatesender

func NewStatesender(address common.Address, backend bind.ContractBackend) (*Statesender, error)

NewStatesender creates a new instance of Statesender, bound to a specific deployed contract.

type StatesenderCaller

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

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

func NewStatesenderCaller

func NewStatesenderCaller(address common.Address, caller bind.ContractCaller) (*StatesenderCaller, error)

NewStatesenderCaller creates a new read-only instance of Statesender, bound to a specific deployed contract.

func (*StatesenderCaller) Counter

func (_Statesender *StatesenderCaller) 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)

func (*StatesenderCaller) IsOwner

func (_Statesender *StatesenderCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*StatesenderCaller) Owner

func (_Statesender *StatesenderCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*StatesenderCaller) Registrations

func (_Statesender *StatesenderCaller) Registrations(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

Registrations is a free data retrieval call binding the contract method 0x942e6bcf.

Solidity: function registrations(address ) view returns(address)

type StatesenderCallerRaw

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

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

func (*StatesenderCallerRaw) Call

func (_Statesender *StatesenderCallerRaw) 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 StatesenderCallerSession

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

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

func (*StatesenderCallerSession) Counter

func (_Statesender *StatesenderCallerSession) Counter() (*big.Int, error)

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

Solidity: function counter() view returns(uint256)

func (*StatesenderCallerSession) IsOwner

func (_Statesender *StatesenderCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*StatesenderCallerSession) Owner

func (_Statesender *StatesenderCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*StatesenderCallerSession) Registrations

func (_Statesender *StatesenderCallerSession) Registrations(arg0 common.Address) (common.Address, error)

Registrations is a free data retrieval call binding the contract method 0x942e6bcf.

Solidity: function registrations(address ) view returns(address)

type StatesenderFilterer

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

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

func NewStatesenderFilterer

func NewStatesenderFilterer(address common.Address, filterer bind.ContractFilterer) (*StatesenderFilterer, error)

NewStatesenderFilterer creates a new log filterer instance of Statesender, bound to a specific deployed contract.

func (*StatesenderFilterer) FilterNewRegistration

func (_Statesender *StatesenderFilterer) FilterNewRegistration(opts *bind.FilterOpts, user []common.Address, sender []common.Address, receiver []common.Address) (*StatesenderNewRegistrationIterator, error)

FilterNewRegistration is a free log retrieval operation binding the contract event 0x3f4512aacd7a664fdb321a48e8340120d63253a91c6367a143abd19ecf68aedd.

Solidity: event NewRegistration(address indexed user, address indexed sender, address indexed receiver)

func (*StatesenderFilterer) FilterOwnershipTransferred

func (_Statesender *StatesenderFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*StatesenderOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*StatesenderFilterer) FilterStateSynced

func (_Statesender *StatesenderFilterer) FilterStateSynced(opts *bind.FilterOpts, id []*big.Int, contractAddress []common.Address) (*StatesenderStateSyncedIterator, error)

FilterStateSynced is a free log retrieval operation binding the contract event 0x103fed9db65eac19c4d870f49ab7520fe03b99f1838e5996caf47e9e43308392.

Solidity: event StateSynced(uint256 indexed id, address indexed contractAddress, bytes data)

func (*StatesenderFilterer) ParseNewRegistration

func (_Statesender *StatesenderFilterer) ParseNewRegistration(log types.Log) (*StatesenderNewRegistration, error)

ParseNewRegistration is a log parse operation binding the contract event 0x3f4512aacd7a664fdb321a48e8340120d63253a91c6367a143abd19ecf68aedd.

Solidity: event NewRegistration(address indexed user, address indexed sender, address indexed receiver)

func (*StatesenderFilterer) ParseOwnershipTransferred

func (_Statesender *StatesenderFilterer) ParseOwnershipTransferred(log types.Log) (*StatesenderOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*StatesenderFilterer) ParseStateSynced

func (_Statesender *StatesenderFilterer) ParseStateSynced(log types.Log) (*StatesenderStateSynced, error)

ParseStateSynced is a log parse operation binding the contract event 0x103fed9db65eac19c4d870f49ab7520fe03b99f1838e5996caf47e9e43308392.

Solidity: event StateSynced(uint256 indexed id, address indexed contractAddress, bytes data)

func (*StatesenderFilterer) WatchNewRegistration

func (_Statesender *StatesenderFilterer) WatchNewRegistration(opts *bind.WatchOpts, sink chan<- *StatesenderNewRegistration, user []common.Address, sender []common.Address, receiver []common.Address) (event.Subscription, error)

WatchNewRegistration is a free log subscription operation binding the contract event 0x3f4512aacd7a664fdb321a48e8340120d63253a91c6367a143abd19ecf68aedd.

Solidity: event NewRegistration(address indexed user, address indexed sender, address indexed receiver)

func (*StatesenderFilterer) WatchOwnershipTransferred

func (_Statesender *StatesenderFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StatesenderOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*StatesenderFilterer) WatchStateSynced

func (_Statesender *StatesenderFilterer) WatchStateSynced(opts *bind.WatchOpts, sink chan<- *StatesenderStateSynced, id []*big.Int, contractAddress []common.Address) (event.Subscription, error)

WatchStateSynced is a free log subscription operation binding the contract event 0x103fed9db65eac19c4d870f49ab7520fe03b99f1838e5996caf47e9e43308392.

Solidity: event StateSynced(uint256 indexed id, address indexed contractAddress, bytes data)

type StatesenderNewRegistration

type StatesenderNewRegistration struct {
	User     common.Address
	Sender   common.Address
	Receiver common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StatesenderNewRegistration represents a NewRegistration event raised by the Statesender contract.

type StatesenderNewRegistrationIterator

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

StatesenderNewRegistrationIterator is returned from FilterNewRegistration and is used to iterate over the raw logs and unpacked data for NewRegistration events raised by the Statesender contract.

func (*StatesenderNewRegistrationIterator) Close

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

func (*StatesenderNewRegistrationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StatesenderNewRegistrationIterator) Next

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 StatesenderOwnershipTransferred

type StatesenderOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

StatesenderOwnershipTransferred represents a OwnershipTransferred event raised by the Statesender contract.

type StatesenderOwnershipTransferredIterator

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

StatesenderOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Statesender contract.

func (*StatesenderOwnershipTransferredIterator) Close

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

func (*StatesenderOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StatesenderOwnershipTransferredIterator) Next

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 StatesenderRaw

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

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

func (*StatesenderRaw) Call

func (_Statesender *StatesenderRaw) 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 (*StatesenderRaw) Transact

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

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

func (*StatesenderRaw) Transfer

func (_Statesender *StatesenderRaw) 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 StatesenderSession

type StatesenderSession struct {
	Contract     *Statesender      // 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
}

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

func (*StatesenderSession) Counter

func (_Statesender *StatesenderSession) Counter() (*big.Int, error)

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

Solidity: function counter() view returns(uint256)

func (*StatesenderSession) IsOwner

func (_Statesender *StatesenderSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*StatesenderSession) Owner

func (_Statesender *StatesenderSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*StatesenderSession) Register

func (_Statesender *StatesenderSession) Register(sender common.Address, receiver common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xaa677354.

Solidity: function register(address sender, address receiver) returns()

func (*StatesenderSession) Registrations

func (_Statesender *StatesenderSession) Registrations(arg0 common.Address) (common.Address, error)

Registrations is a free data retrieval call binding the contract method 0x942e6bcf.

Solidity: function registrations(address ) view returns(address)

func (*StatesenderSession) RenounceOwnership

func (_Statesender *StatesenderSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*StatesenderSession) SyncState

func (_Statesender *StatesenderSession) SyncState(receiver common.Address, data []byte) (*types.Transaction, error)

SyncState is a paid mutator transaction binding the contract method 0x16f19831.

Solidity: function syncState(address receiver, bytes data) returns()

func (*StatesenderSession) TransferOwnership

func (_Statesender *StatesenderSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type StatesenderStateSynced

type StatesenderStateSynced struct {
	Id              *big.Int
	ContractAddress common.Address
	Data            []byte
	Raw             types.Log // Blockchain specific contextual infos
}

StatesenderStateSynced represents a StateSynced event raised by the Statesender contract.

type StatesenderStateSyncedIterator

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

StatesenderStateSyncedIterator is returned from FilterStateSynced and is used to iterate over the raw logs and unpacked data for StateSynced events raised by the Statesender contract.

func (*StatesenderStateSyncedIterator) Close

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

func (*StatesenderStateSyncedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StatesenderStateSyncedIterator) Next

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 StatesenderTransactor

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

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

func NewStatesenderTransactor

func NewStatesenderTransactor(address common.Address, transactor bind.ContractTransactor) (*StatesenderTransactor, error)

NewStatesenderTransactor creates a new write-only instance of Statesender, bound to a specific deployed contract.

func (*StatesenderTransactor) Register

func (_Statesender *StatesenderTransactor) Register(opts *bind.TransactOpts, sender common.Address, receiver common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xaa677354.

Solidity: function register(address sender, address receiver) returns()

func (*StatesenderTransactor) RenounceOwnership

func (_Statesender *StatesenderTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*StatesenderTransactor) SyncState

func (_Statesender *StatesenderTransactor) SyncState(opts *bind.TransactOpts, receiver common.Address, data []byte) (*types.Transaction, error)

SyncState is a paid mutator transaction binding the contract method 0x16f19831.

Solidity: function syncState(address receiver, bytes data) returns()

func (*StatesenderTransactor) TransferOwnership

func (_Statesender *StatesenderTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type StatesenderTransactorRaw

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

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

func (*StatesenderTransactorRaw) Transact

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

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

func (*StatesenderTransactorRaw) Transfer

func (_Statesender *StatesenderTransactorRaw) 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 StatesenderTransactorSession

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

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

func (*StatesenderTransactorSession) Register

func (_Statesender *StatesenderTransactorSession) Register(sender common.Address, receiver common.Address) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0xaa677354.

Solidity: function register(address sender, address receiver) returns()

func (*StatesenderTransactorSession) RenounceOwnership

func (_Statesender *StatesenderTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*StatesenderTransactorSession) SyncState

func (_Statesender *StatesenderTransactorSession) SyncState(receiver common.Address, data []byte) (*types.Transaction, error)

SyncState is a paid mutator transaction binding the contract method 0x16f19831.

Solidity: function syncState(address receiver, bytes data) returns()

func (*StatesenderTransactorSession) TransferOwnership

func (_Statesender *StatesenderTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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