relayerhub

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RelayerhubABI = RelayerhubMetaData.ABI

RelayerhubABI is the input ABI used to generate the binding from. Deprecated: Use RelayerhubMetaData.ABI instead.

View Source
var RelayerhubMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ClaimedReward\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardToRelayer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BUCKET_CHANNEL_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BUCKET_HUB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CROSS_CHAIN\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ConfigSlots\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GOV_CHANNEL_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GOV_HUB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GROUP_CHANNEL_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GROUP_HUB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LIGHT_CLIENT\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OBJECT_CHANNEL_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OBJECT_HUB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROXY_ADMIN\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"RELAYER_HUB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"REWARD_RATIO_SCALE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOKEN_HUB\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSFER_IN_CHANNEL_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TRANSFER_OUT_CHANNEL_ID\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_reward\",\"type\":\"uint256\"}],\"name\":\"addReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_relayer\",\"type\":\"address\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"rewardMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"versionInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"version\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}

RelayerhubMetaData contains all meta data concerning the Relayerhub contract.

Functions

This section is empty.

Types

type Relayerhub

type Relayerhub struct {
	RelayerhubCaller     // Read-only binding to the contract
	RelayerhubTransactor // Write-only binding to the contract
	RelayerhubFilterer   // Log filterer for contract events
}

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

func NewRelayerhub

func NewRelayerhub(address common.Address, backend bind.ContractBackend) (*Relayerhub, error)

NewRelayerhub creates a new instance of Relayerhub, bound to a specific deployed contract.

type RelayerhubCaller

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

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

func NewRelayerhubCaller

func NewRelayerhubCaller(address common.Address, caller bind.ContractCaller) (*RelayerhubCaller, error)

NewRelayerhubCaller creates a new read-only instance of Relayerhub, bound to a specific deployed contract.

func (*RelayerhubCaller) BUCKETCHANNELID

func (_Relayerhub *RelayerhubCaller) BUCKETCHANNELID(opts *bind.CallOpts) (uint8, error)

BUCKETCHANNELID is a free data retrieval call binding the contract method 0x73f1e3c3.

Solidity: function BUCKET_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCaller) BUCKETHUB

func (_Relayerhub *RelayerhubCaller) BUCKETHUB(opts *bind.CallOpts) (common.Address, error)

BUCKETHUB is a free data retrieval call binding the contract method 0x7afffdd2.

Solidity: function BUCKET_HUB() view returns(address)

func (*RelayerhubCaller) CROSSCHAIN

func (_Relayerhub *RelayerhubCaller) CROSSCHAIN(opts *bind.CallOpts) (common.Address, error)

CROSSCHAIN is a free data retrieval call binding the contract method 0x557cf477.

Solidity: function CROSS_CHAIN() view returns(address)

func (*RelayerhubCaller) ConfigSlots

func (_Relayerhub *RelayerhubCaller) ConfigSlots(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ConfigSlots is a free data retrieval call binding the contract method 0xb76e4aca.

Solidity: function ConfigSlots(uint256 ) view returns(uint256)

func (*RelayerhubCaller) GOVCHANNELID

func (_Relayerhub *RelayerhubCaller) GOVCHANNELID(opts *bind.CallOpts) (uint8, error)

GOVCHANNELID is a free data retrieval call binding the contract method 0x81d91480.

Solidity: function GOV_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCaller) GOVHUB

func (_Relayerhub *RelayerhubCaller) GOVHUB(opts *bind.CallOpts) (common.Address, error)

GOVHUB is a free data retrieval call binding the contract method 0xa9dae71c.

Solidity: function GOV_HUB() view returns(address)

func (*RelayerhubCaller) GROUPCHANNELID

func (_Relayerhub *RelayerhubCaller) GROUPCHANNELID(opts *bind.CallOpts) (uint8, error)

GROUPCHANNELID is a free data retrieval call binding the contract method 0xe02e86b0.

Solidity: function GROUP_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCaller) GROUPHUB

func (_Relayerhub *RelayerhubCaller) GROUPHUB(opts *bind.CallOpts) (common.Address, error)

GROUPHUB is a free data retrieval call binding the contract method 0x46934fc8.

Solidity: function GROUP_HUB() view returns(address)

func (*RelayerhubCaller) LIGHTCLIENT

func (_Relayerhub *RelayerhubCaller) LIGHTCLIENT(opts *bind.CallOpts) (common.Address, error)

LIGHTCLIENT is a free data retrieval call binding the contract method 0xe613ae00.

Solidity: function LIGHT_CLIENT() view returns(address)

func (*RelayerhubCaller) OBJECTCHANNELID

func (_Relayerhub *RelayerhubCaller) OBJECTCHANNELID(opts *bind.CallOpts) (uint8, error)

OBJECTCHANNELID is a free data retrieval call binding the contract method 0xeac78b33.

Solidity: function OBJECT_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCaller) OBJECTHUB

func (_Relayerhub *RelayerhubCaller) OBJECTHUB(opts *bind.CallOpts) (common.Address, error)

OBJECTHUB is a free data retrieval call binding the contract method 0x7d2e3084.

Solidity: function OBJECT_HUB() view returns(address)

func (*RelayerhubCaller) PROXYADMIN

func (_Relayerhub *RelayerhubCaller) PROXYADMIN(opts *bind.CallOpts) (common.Address, error)

PROXYADMIN is a free data retrieval call binding the contract method 0xed9bc82a.

Solidity: function PROXY_ADMIN() view returns(address)

func (*RelayerhubCaller) RELAYERHUB

func (_Relayerhub *RelayerhubCaller) RELAYERHUB(opts *bind.CallOpts) (common.Address, error)

RELAYERHUB is a free data retrieval call binding the contract method 0xb9d86913.

Solidity: function RELAYER_HUB() view returns(address)

func (*RelayerhubCaller) REWARDRATIOSCALE

func (_Relayerhub *RelayerhubCaller) REWARDRATIOSCALE(opts *bind.CallOpts) (*big.Int, error)

REWARDRATIOSCALE is a free data retrieval call binding the contract method 0x132f2adb.

Solidity: function REWARD_RATIO_SCALE() view returns(uint256)

func (*RelayerhubCaller) RewardMap

func (_Relayerhub *RelayerhubCaller) RewardMap(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

RewardMap is a free data retrieval call binding the contract method 0x83d44339.

Solidity: function rewardMap(address ) view returns(uint256)

func (*RelayerhubCaller) TOKENHUB

func (_Relayerhub *RelayerhubCaller) TOKENHUB(opts *bind.CallOpts) (common.Address, error)

TOKENHUB is a free data retrieval call binding the contract method 0x6d3358a1.

Solidity: function TOKEN_HUB() view returns(address)

func (*RelayerhubCaller) TRANSFERINCHANNELID

func (_Relayerhub *RelayerhubCaller) TRANSFERINCHANNELID(opts *bind.CallOpts) (uint8, error)

TRANSFERINCHANNELID is a free data retrieval call binding the contract method 0xcc12eabc.

Solidity: function TRANSFER_IN_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCaller) TRANSFEROUTCHANNELID

func (_Relayerhub *RelayerhubCaller) TRANSFEROUTCHANNELID(opts *bind.CallOpts) (uint8, error)

TRANSFEROUTCHANNELID is a free data retrieval call binding the contract method 0x618d569c.

Solidity: function TRANSFER_OUT_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCaller) VersionInfo

func (_Relayerhub *RelayerhubCaller) VersionInfo(opts *bind.CallOpts) (struct {
	Version     *big.Int
	Name        string
	Description string
}, error)

VersionInfo is a free data retrieval call binding the contract method 0xa21d1354.

Solidity: function versionInfo() pure returns(uint256 version, string name, string description)

type RelayerhubCallerRaw

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

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

func (*RelayerhubCallerRaw) Call

func (_Relayerhub *RelayerhubCallerRaw) 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 RelayerhubCallerSession

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

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

func (*RelayerhubCallerSession) BUCKETCHANNELID

func (_Relayerhub *RelayerhubCallerSession) BUCKETCHANNELID() (uint8, error)

BUCKETCHANNELID is a free data retrieval call binding the contract method 0x73f1e3c3.

Solidity: function BUCKET_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCallerSession) BUCKETHUB

func (_Relayerhub *RelayerhubCallerSession) BUCKETHUB() (common.Address, error)

BUCKETHUB is a free data retrieval call binding the contract method 0x7afffdd2.

Solidity: function BUCKET_HUB() view returns(address)

func (*RelayerhubCallerSession) CROSSCHAIN

func (_Relayerhub *RelayerhubCallerSession) CROSSCHAIN() (common.Address, error)

CROSSCHAIN is a free data retrieval call binding the contract method 0x557cf477.

Solidity: function CROSS_CHAIN() view returns(address)

func (*RelayerhubCallerSession) ConfigSlots

func (_Relayerhub *RelayerhubCallerSession) ConfigSlots(arg0 *big.Int) (*big.Int, error)

ConfigSlots is a free data retrieval call binding the contract method 0xb76e4aca.

Solidity: function ConfigSlots(uint256 ) view returns(uint256)

func (*RelayerhubCallerSession) GOVCHANNELID

func (_Relayerhub *RelayerhubCallerSession) GOVCHANNELID() (uint8, error)

GOVCHANNELID is a free data retrieval call binding the contract method 0x81d91480.

Solidity: function GOV_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCallerSession) GOVHUB

func (_Relayerhub *RelayerhubCallerSession) GOVHUB() (common.Address, error)

GOVHUB is a free data retrieval call binding the contract method 0xa9dae71c.

Solidity: function GOV_HUB() view returns(address)

func (*RelayerhubCallerSession) GROUPCHANNELID

func (_Relayerhub *RelayerhubCallerSession) GROUPCHANNELID() (uint8, error)

GROUPCHANNELID is a free data retrieval call binding the contract method 0xe02e86b0.

Solidity: function GROUP_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCallerSession) GROUPHUB

func (_Relayerhub *RelayerhubCallerSession) GROUPHUB() (common.Address, error)

GROUPHUB is a free data retrieval call binding the contract method 0x46934fc8.

Solidity: function GROUP_HUB() view returns(address)

func (*RelayerhubCallerSession) LIGHTCLIENT

func (_Relayerhub *RelayerhubCallerSession) LIGHTCLIENT() (common.Address, error)

LIGHTCLIENT is a free data retrieval call binding the contract method 0xe613ae00.

Solidity: function LIGHT_CLIENT() view returns(address)

func (*RelayerhubCallerSession) OBJECTCHANNELID

func (_Relayerhub *RelayerhubCallerSession) OBJECTCHANNELID() (uint8, error)

OBJECTCHANNELID is a free data retrieval call binding the contract method 0xeac78b33.

Solidity: function OBJECT_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCallerSession) OBJECTHUB

func (_Relayerhub *RelayerhubCallerSession) OBJECTHUB() (common.Address, error)

OBJECTHUB is a free data retrieval call binding the contract method 0x7d2e3084.

Solidity: function OBJECT_HUB() view returns(address)

func (*RelayerhubCallerSession) PROXYADMIN

func (_Relayerhub *RelayerhubCallerSession) PROXYADMIN() (common.Address, error)

PROXYADMIN is a free data retrieval call binding the contract method 0xed9bc82a.

Solidity: function PROXY_ADMIN() view returns(address)

func (*RelayerhubCallerSession) RELAYERHUB

func (_Relayerhub *RelayerhubCallerSession) RELAYERHUB() (common.Address, error)

RELAYERHUB is a free data retrieval call binding the contract method 0xb9d86913.

Solidity: function RELAYER_HUB() view returns(address)

func (*RelayerhubCallerSession) REWARDRATIOSCALE

func (_Relayerhub *RelayerhubCallerSession) REWARDRATIOSCALE() (*big.Int, error)

REWARDRATIOSCALE is a free data retrieval call binding the contract method 0x132f2adb.

Solidity: function REWARD_RATIO_SCALE() view returns(uint256)

func (*RelayerhubCallerSession) RewardMap

func (_Relayerhub *RelayerhubCallerSession) RewardMap(arg0 common.Address) (*big.Int, error)

RewardMap is a free data retrieval call binding the contract method 0x83d44339.

Solidity: function rewardMap(address ) view returns(uint256)

func (*RelayerhubCallerSession) TOKENHUB

func (_Relayerhub *RelayerhubCallerSession) TOKENHUB() (common.Address, error)

TOKENHUB is a free data retrieval call binding the contract method 0x6d3358a1.

Solidity: function TOKEN_HUB() view returns(address)

func (*RelayerhubCallerSession) TRANSFERINCHANNELID

func (_Relayerhub *RelayerhubCallerSession) TRANSFERINCHANNELID() (uint8, error)

TRANSFERINCHANNELID is a free data retrieval call binding the contract method 0xcc12eabc.

Solidity: function TRANSFER_IN_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCallerSession) TRANSFEROUTCHANNELID

func (_Relayerhub *RelayerhubCallerSession) TRANSFEROUTCHANNELID() (uint8, error)

TRANSFEROUTCHANNELID is a free data retrieval call binding the contract method 0x618d569c.

Solidity: function TRANSFER_OUT_CHANNEL_ID() view returns(uint8)

func (*RelayerhubCallerSession) VersionInfo

func (_Relayerhub *RelayerhubCallerSession) VersionInfo() (struct {
	Version     *big.Int
	Name        string
	Description string
}, error)

VersionInfo is a free data retrieval call binding the contract method 0xa21d1354.

Solidity: function versionInfo() pure returns(uint256 version, string name, string description)

type RelayerhubClaimedReward

type RelayerhubClaimedReward struct {
	Relayer common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RelayerhubClaimedReward represents a ClaimedReward event raised by the Relayerhub contract.

type RelayerhubClaimedRewardIterator

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

RelayerhubClaimedRewardIterator is returned from FilterClaimedReward and is used to iterate over the raw logs and unpacked data for ClaimedReward events raised by the Relayerhub contract.

func (*RelayerhubClaimedRewardIterator) Close

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

func (*RelayerhubClaimedRewardIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RelayerhubClaimedRewardIterator) 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 RelayerhubFilterer

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

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

func NewRelayerhubFilterer

func NewRelayerhubFilterer(address common.Address, filterer bind.ContractFilterer) (*RelayerhubFilterer, error)

NewRelayerhubFilterer creates a new log filterer instance of Relayerhub, bound to a specific deployed contract.

func (*RelayerhubFilterer) FilterClaimedReward

func (_Relayerhub *RelayerhubFilterer) FilterClaimedReward(opts *bind.FilterOpts) (*RelayerhubClaimedRewardIterator, error)

FilterClaimedReward is a free log retrieval operation binding the contract event 0xd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba3.

Solidity: event ClaimedReward(address relayer, uint256 amount)

func (*RelayerhubFilterer) FilterInitialized

func (_Relayerhub *RelayerhubFilterer) FilterInitialized(opts *bind.FilterOpts) (*RelayerhubInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RelayerhubFilterer) FilterRewardToRelayer

func (_Relayerhub *RelayerhubFilterer) FilterRewardToRelayer(opts *bind.FilterOpts) (*RelayerhubRewardToRelayerIterator, error)

FilterRewardToRelayer is a free log retrieval operation binding the contract event 0xcc3341048e8fd1ed288bcd99bd6231605849b6301fe5ae9170850a29d9b1c2dd.

Solidity: event RewardToRelayer(address relayer, uint256 amount)

func (*RelayerhubFilterer) ParseClaimedReward

func (_Relayerhub *RelayerhubFilterer) ParseClaimedReward(log types.Log) (*RelayerhubClaimedReward, error)

ParseClaimedReward is a log parse operation binding the contract event 0xd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba3.

Solidity: event ClaimedReward(address relayer, uint256 amount)

func (*RelayerhubFilterer) ParseInitialized

func (_Relayerhub *RelayerhubFilterer) ParseInitialized(log types.Log) (*RelayerhubInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RelayerhubFilterer) ParseRewardToRelayer

func (_Relayerhub *RelayerhubFilterer) ParseRewardToRelayer(log types.Log) (*RelayerhubRewardToRelayer, error)

ParseRewardToRelayer is a log parse operation binding the contract event 0xcc3341048e8fd1ed288bcd99bd6231605849b6301fe5ae9170850a29d9b1c2dd.

Solidity: event RewardToRelayer(address relayer, uint256 amount)

func (*RelayerhubFilterer) WatchClaimedReward

func (_Relayerhub *RelayerhubFilterer) WatchClaimedReward(opts *bind.WatchOpts, sink chan<- *RelayerhubClaimedReward) (event.Subscription, error)

WatchClaimedReward is a free log subscription operation binding the contract event 0xd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba3.

Solidity: event ClaimedReward(address relayer, uint256 amount)

func (*RelayerhubFilterer) WatchInitialized

func (_Relayerhub *RelayerhubFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *RelayerhubInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RelayerhubFilterer) WatchRewardToRelayer

func (_Relayerhub *RelayerhubFilterer) WatchRewardToRelayer(opts *bind.WatchOpts, sink chan<- *RelayerhubRewardToRelayer) (event.Subscription, error)

WatchRewardToRelayer is a free log subscription operation binding the contract event 0xcc3341048e8fd1ed288bcd99bd6231605849b6301fe5ae9170850a29d9b1c2dd.

Solidity: event RewardToRelayer(address relayer, uint256 amount)

type RelayerhubInitialized

type RelayerhubInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

RelayerhubInitialized represents a Initialized event raised by the Relayerhub contract.

type RelayerhubInitializedIterator

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

RelayerhubInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Relayerhub contract.

func (*RelayerhubInitializedIterator) Close

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

func (*RelayerhubInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RelayerhubInitializedIterator) 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 RelayerhubRaw

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

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

func (*RelayerhubRaw) Call

func (_Relayerhub *RelayerhubRaw) 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 (*RelayerhubRaw) Transact

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

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

func (*RelayerhubRaw) Transfer

func (_Relayerhub *RelayerhubRaw) 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 RelayerhubRewardToRelayer

type RelayerhubRewardToRelayer struct {
	Relayer common.Address
	Amount  *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

RelayerhubRewardToRelayer represents a RewardToRelayer event raised by the Relayerhub contract.

type RelayerhubRewardToRelayerIterator

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

RelayerhubRewardToRelayerIterator is returned from FilterRewardToRelayer and is used to iterate over the raw logs and unpacked data for RewardToRelayer events raised by the Relayerhub contract.

func (*RelayerhubRewardToRelayerIterator) Close

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

func (*RelayerhubRewardToRelayerIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RelayerhubRewardToRelayerIterator) 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 RelayerhubSession

type RelayerhubSession struct {
	Contract     *Relayerhub       // 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
}

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

func (*RelayerhubSession) AddReward

func (_Relayerhub *RelayerhubSession) AddReward(_relayer common.Address, _reward *big.Int) (*types.Transaction, error)

AddReward is a paid mutator transaction binding the contract method 0x9feb8f50.

Solidity: function addReward(address _relayer, uint256 _reward) returns()

func (*RelayerhubSession) BUCKETCHANNELID

func (_Relayerhub *RelayerhubSession) BUCKETCHANNELID() (uint8, error)

BUCKETCHANNELID is a free data retrieval call binding the contract method 0x73f1e3c3.

Solidity: function BUCKET_CHANNEL_ID() view returns(uint8)

func (*RelayerhubSession) BUCKETHUB

func (_Relayerhub *RelayerhubSession) BUCKETHUB() (common.Address, error)

BUCKETHUB is a free data retrieval call binding the contract method 0x7afffdd2.

Solidity: function BUCKET_HUB() view returns(address)

func (*RelayerhubSession) CROSSCHAIN

func (_Relayerhub *RelayerhubSession) CROSSCHAIN() (common.Address, error)

CROSSCHAIN is a free data retrieval call binding the contract method 0x557cf477.

Solidity: function CROSS_CHAIN() view returns(address)

func (*RelayerhubSession) ClaimReward

func (_Relayerhub *RelayerhubSession) ClaimReward(_relayer common.Address) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0xd279c191.

Solidity: function claimReward(address _relayer) returns()

func (*RelayerhubSession) ConfigSlots

func (_Relayerhub *RelayerhubSession) ConfigSlots(arg0 *big.Int) (*big.Int, error)

ConfigSlots is a free data retrieval call binding the contract method 0xb76e4aca.

Solidity: function ConfigSlots(uint256 ) view returns(uint256)

func (*RelayerhubSession) GOVCHANNELID

func (_Relayerhub *RelayerhubSession) GOVCHANNELID() (uint8, error)

GOVCHANNELID is a free data retrieval call binding the contract method 0x81d91480.

Solidity: function GOV_CHANNEL_ID() view returns(uint8)

func (*RelayerhubSession) GOVHUB

func (_Relayerhub *RelayerhubSession) GOVHUB() (common.Address, error)

GOVHUB is a free data retrieval call binding the contract method 0xa9dae71c.

Solidity: function GOV_HUB() view returns(address)

func (*RelayerhubSession) GROUPCHANNELID

func (_Relayerhub *RelayerhubSession) GROUPCHANNELID() (uint8, error)

GROUPCHANNELID is a free data retrieval call binding the contract method 0xe02e86b0.

Solidity: function GROUP_CHANNEL_ID() view returns(uint8)

func (*RelayerhubSession) GROUPHUB

func (_Relayerhub *RelayerhubSession) GROUPHUB() (common.Address, error)

GROUPHUB is a free data retrieval call binding the contract method 0x46934fc8.

Solidity: function GROUP_HUB() view returns(address)

func (*RelayerhubSession) Initialize

func (_Relayerhub *RelayerhubSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*RelayerhubSession) LIGHTCLIENT

func (_Relayerhub *RelayerhubSession) LIGHTCLIENT() (common.Address, error)

LIGHTCLIENT is a free data retrieval call binding the contract method 0xe613ae00.

Solidity: function LIGHT_CLIENT() view returns(address)

func (*RelayerhubSession) OBJECTCHANNELID

func (_Relayerhub *RelayerhubSession) OBJECTCHANNELID() (uint8, error)

OBJECTCHANNELID is a free data retrieval call binding the contract method 0xeac78b33.

Solidity: function OBJECT_CHANNEL_ID() view returns(uint8)

func (*RelayerhubSession) OBJECTHUB

func (_Relayerhub *RelayerhubSession) OBJECTHUB() (common.Address, error)

OBJECTHUB is a free data retrieval call binding the contract method 0x7d2e3084.

Solidity: function OBJECT_HUB() view returns(address)

func (*RelayerhubSession) PROXYADMIN

func (_Relayerhub *RelayerhubSession) PROXYADMIN() (common.Address, error)

PROXYADMIN is a free data retrieval call binding the contract method 0xed9bc82a.

Solidity: function PROXY_ADMIN() view returns(address)

func (*RelayerhubSession) RELAYERHUB

func (_Relayerhub *RelayerhubSession) RELAYERHUB() (common.Address, error)

RELAYERHUB is a free data retrieval call binding the contract method 0xb9d86913.

Solidity: function RELAYER_HUB() view returns(address)

func (*RelayerhubSession) REWARDRATIOSCALE

func (_Relayerhub *RelayerhubSession) REWARDRATIOSCALE() (*big.Int, error)

REWARDRATIOSCALE is a free data retrieval call binding the contract method 0x132f2adb.

Solidity: function REWARD_RATIO_SCALE() view returns(uint256)

func (*RelayerhubSession) Receive

func (_Relayerhub *RelayerhubSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*RelayerhubSession) RewardMap

func (_Relayerhub *RelayerhubSession) RewardMap(arg0 common.Address) (*big.Int, error)

RewardMap is a free data retrieval call binding the contract method 0x83d44339.

Solidity: function rewardMap(address ) view returns(uint256)

func (*RelayerhubSession) TOKENHUB

func (_Relayerhub *RelayerhubSession) TOKENHUB() (common.Address, error)

TOKENHUB is a free data retrieval call binding the contract method 0x6d3358a1.

Solidity: function TOKEN_HUB() view returns(address)

func (*RelayerhubSession) TRANSFERINCHANNELID

func (_Relayerhub *RelayerhubSession) TRANSFERINCHANNELID() (uint8, error)

TRANSFERINCHANNELID is a free data retrieval call binding the contract method 0xcc12eabc.

Solidity: function TRANSFER_IN_CHANNEL_ID() view returns(uint8)

func (*RelayerhubSession) TRANSFEROUTCHANNELID

func (_Relayerhub *RelayerhubSession) TRANSFEROUTCHANNELID() (uint8, error)

TRANSFEROUTCHANNELID is a free data retrieval call binding the contract method 0x618d569c.

Solidity: function TRANSFER_OUT_CHANNEL_ID() view returns(uint8)

func (*RelayerhubSession) VersionInfo

func (_Relayerhub *RelayerhubSession) VersionInfo() (struct {
	Version     *big.Int
	Name        string
	Description string
}, error)

VersionInfo is a free data retrieval call binding the contract method 0xa21d1354.

Solidity: function versionInfo() pure returns(uint256 version, string name, string description)

type RelayerhubTransactor

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

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

func NewRelayerhubTransactor

func NewRelayerhubTransactor(address common.Address, transactor bind.ContractTransactor) (*RelayerhubTransactor, error)

NewRelayerhubTransactor creates a new write-only instance of Relayerhub, bound to a specific deployed contract.

func (*RelayerhubTransactor) AddReward

func (_Relayerhub *RelayerhubTransactor) AddReward(opts *bind.TransactOpts, _relayer common.Address, _reward *big.Int) (*types.Transaction, error)

AddReward is a paid mutator transaction binding the contract method 0x9feb8f50.

Solidity: function addReward(address _relayer, uint256 _reward) returns()

func (*RelayerhubTransactor) ClaimReward

func (_Relayerhub *RelayerhubTransactor) ClaimReward(opts *bind.TransactOpts, _relayer common.Address) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0xd279c191.

Solidity: function claimReward(address _relayer) returns()

func (*RelayerhubTransactor) Initialize

func (_Relayerhub *RelayerhubTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*RelayerhubTransactor) Receive

func (_Relayerhub *RelayerhubTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type RelayerhubTransactorRaw

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

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

func (*RelayerhubTransactorRaw) Transact

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

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

func (*RelayerhubTransactorRaw) Transfer

func (_Relayerhub *RelayerhubTransactorRaw) 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 RelayerhubTransactorSession

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

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

func (*RelayerhubTransactorSession) AddReward

func (_Relayerhub *RelayerhubTransactorSession) AddReward(_relayer common.Address, _reward *big.Int) (*types.Transaction, error)

AddReward is a paid mutator transaction binding the contract method 0x9feb8f50.

Solidity: function addReward(address _relayer, uint256 _reward) returns()

func (*RelayerhubTransactorSession) ClaimReward

func (_Relayerhub *RelayerhubTransactorSession) ClaimReward(_relayer common.Address) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0xd279c191.

Solidity: function claimReward(address _relayer) returns()

func (*RelayerhubTransactorSession) Initialize

func (_Relayerhub *RelayerhubTransactorSession) Initialize() (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.

Solidity: function initialize() returns()

func (*RelayerhubTransactorSession) Receive

func (_Relayerhub *RelayerhubTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

Jump to

Keyboard shortcuts

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