zetareceivermock

package
v1.0.2-athens3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ZetaReceiverMockABI = ZetaReceiverMockMetaData.ABI

ZetaReceiverMockABI is the input ABI used to generate the binding from. Deprecated: Use ZetaReceiverMockMetaData.ABI instead.

View Source
var ZetaReceiverMockBin = ZetaReceiverMockMetaData.Bin

ZetaReceiverMockBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ZetaReceiverMockMetaData.Bin instead.

View Source
var ZetaReceiverMockMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"}],\"name\":\"MockOnZetaMessage\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"}],\"name\":\"MockOnZetaRevert\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"zetaTxSenderAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"zetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaMessage\",\"name\":\"zetaMessage\",\"type\":\"tuple\"}],\"name\":\"onZetaMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"zetaTxSenderAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"sourceChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"destinationAddress\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"remainingZetaValue\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"structZetaInterfaces.ZetaRevert\",\"name\":\"zetaRevert\",\"type\":\"tuple\"}],\"name\":\"onZetaRevert\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506102d5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80633749c51a1461003b5780633ff0693c14610057575b600080fd5b6100556004803603810190610050919061018b565b610073565b005b610071600480360381019061006c91906101d4565b6100bf565b005b7f72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e8160400160208101906100a7919061015e565b6040516100b4919061022c565b60405180910390a150565b7f53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc48160000160208101906100f3919061015e565b604051610100919061022c565b60405180910390a150565b60008135905061011a81610288565b92915050565b600060a0828403121561013657610135610279565b5b81905092915050565b600060c0828403121561015557610154610279565b5b81905092915050565b60006020828403121561017457610173610283565b5b60006101828482850161010b565b91505092915050565b6000602082840312156101a1576101a0610283565b5b600082013567ffffffffffffffff8111156101bf576101be61027e565b5b6101cb84828501610120565b91505092915050565b6000602082840312156101ea576101e9610283565b5b600082013567ffffffffffffffff8111156102085761020761027e565b5b6102148482850161013f565b91505092915050565b61022681610247565b82525050565b6000602082019050610241600083018461021d565b92915050565b600061025282610259565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b600080fd5b600080fd5b61029181610247565b811461029c57600080fd5b5056fea264697066735822122008485e037d9a20d8e9f8d1e9456b89006367d84f7e0966e1d820fe73c0d706ea64736f6c63430008070033",
}

ZetaReceiverMockMetaData contains all meta data concerning the ZetaReceiverMock contract.

Functions

This section is empty.

Types

type ZetaInterfacesZetaMessage

type ZetaInterfacesZetaMessage struct {
	ZetaTxSenderAddress []byte
	SourceChainId       *big.Int
	DestinationAddress  common.Address
	ZetaValue           *big.Int
	Message             []byte
}

ZetaInterfacesZetaMessage is an auto generated low-level Go binding around an user-defined struct.

type ZetaInterfacesZetaRevert

type ZetaInterfacesZetaRevert struct {
	ZetaTxSenderAddress common.Address
	SourceChainId       *big.Int
	DestinationAddress  []byte
	DestinationChainId  *big.Int
	RemainingZetaValue  *big.Int
	Message             []byte
}

ZetaInterfacesZetaRevert is an auto generated low-level Go binding around an user-defined struct.

type ZetaReceiverMock

type ZetaReceiverMock struct {
	ZetaReceiverMockCaller     // Read-only binding to the contract
	ZetaReceiverMockTransactor // Write-only binding to the contract
	ZetaReceiverMockFilterer   // Log filterer for contract events
}

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

func DeployZetaReceiverMock

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

DeployZetaReceiverMock deploys a new Ethereum contract, binding an instance of ZetaReceiverMock to it.

func NewZetaReceiverMock

func NewZetaReceiverMock(address common.Address, backend bind.ContractBackend) (*ZetaReceiverMock, error)

NewZetaReceiverMock creates a new instance of ZetaReceiverMock, bound to a specific deployed contract.

type ZetaReceiverMockCaller

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

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

func NewZetaReceiverMockCaller

func NewZetaReceiverMockCaller(address common.Address, caller bind.ContractCaller) (*ZetaReceiverMockCaller, error)

NewZetaReceiverMockCaller creates a new read-only instance of ZetaReceiverMock, bound to a specific deployed contract.

type ZetaReceiverMockCallerRaw

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

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

func (*ZetaReceiverMockCallerRaw) Call

func (_ZetaReceiverMock *ZetaReceiverMockCallerRaw) 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 ZetaReceiverMockCallerSession

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

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

type ZetaReceiverMockFilterer

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

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

func NewZetaReceiverMockFilterer

func NewZetaReceiverMockFilterer(address common.Address, filterer bind.ContractFilterer) (*ZetaReceiverMockFilterer, error)

NewZetaReceiverMockFilterer creates a new log filterer instance of ZetaReceiverMock, bound to a specific deployed contract.

func (*ZetaReceiverMockFilterer) FilterMockOnZetaMessage

func (_ZetaReceiverMock *ZetaReceiverMockFilterer) FilterMockOnZetaMessage(opts *bind.FilterOpts) (*ZetaReceiverMockMockOnZetaMessageIterator, error)

FilterMockOnZetaMessage is a free log retrieval operation binding the contract event 0x72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e.

Solidity: event MockOnZetaMessage(address destinationAddress)

func (*ZetaReceiverMockFilterer) FilterMockOnZetaRevert

func (_ZetaReceiverMock *ZetaReceiverMockFilterer) FilterMockOnZetaRevert(opts *bind.FilterOpts) (*ZetaReceiverMockMockOnZetaRevertIterator, error)

FilterMockOnZetaRevert is a free log retrieval operation binding the contract event 0x53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc4.

Solidity: event MockOnZetaRevert(address zetaTxSenderAddress)

func (*ZetaReceiverMockFilterer) ParseMockOnZetaMessage

func (_ZetaReceiverMock *ZetaReceiverMockFilterer) ParseMockOnZetaMessage(log types.Log) (*ZetaReceiverMockMockOnZetaMessage, error)

ParseMockOnZetaMessage is a log parse operation binding the contract event 0x72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e.

Solidity: event MockOnZetaMessage(address destinationAddress)

func (*ZetaReceiverMockFilterer) ParseMockOnZetaRevert

func (_ZetaReceiverMock *ZetaReceiverMockFilterer) ParseMockOnZetaRevert(log types.Log) (*ZetaReceiverMockMockOnZetaRevert, error)

ParseMockOnZetaRevert is a log parse operation binding the contract event 0x53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc4.

Solidity: event MockOnZetaRevert(address zetaTxSenderAddress)

func (*ZetaReceiverMockFilterer) WatchMockOnZetaMessage

func (_ZetaReceiverMock *ZetaReceiverMockFilterer) WatchMockOnZetaMessage(opts *bind.WatchOpts, sink chan<- *ZetaReceiverMockMockOnZetaMessage) (event.Subscription, error)

WatchMockOnZetaMessage is a free log subscription operation binding the contract event 0x72a301dee3abcbe15615f3e253229bf4b4f508460603d674991c9a777b833c6e.

Solidity: event MockOnZetaMessage(address destinationAddress)

func (*ZetaReceiverMockFilterer) WatchMockOnZetaRevert

func (_ZetaReceiverMock *ZetaReceiverMockFilterer) WatchMockOnZetaRevert(opts *bind.WatchOpts, sink chan<- *ZetaReceiverMockMockOnZetaRevert) (event.Subscription, error)

WatchMockOnZetaRevert is a free log subscription operation binding the contract event 0x53bd04e26f94f13ff43da96839541821041c309c6f624712192cbe3a2d133cc4.

Solidity: event MockOnZetaRevert(address zetaTxSenderAddress)

type ZetaReceiverMockMockOnZetaMessage

type ZetaReceiverMockMockOnZetaMessage struct {
	DestinationAddress common.Address
	Raw                types.Log // Blockchain specific contextual infos
}

ZetaReceiverMockMockOnZetaMessage represents a MockOnZetaMessage event raised by the ZetaReceiverMock contract.

type ZetaReceiverMockMockOnZetaMessageIterator

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

ZetaReceiverMockMockOnZetaMessageIterator is returned from FilterMockOnZetaMessage and is used to iterate over the raw logs and unpacked data for MockOnZetaMessage events raised by the ZetaReceiverMock contract.

func (*ZetaReceiverMockMockOnZetaMessageIterator) Close

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

func (*ZetaReceiverMockMockOnZetaMessageIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZetaReceiverMockMockOnZetaMessageIterator) 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 ZetaReceiverMockMockOnZetaRevert

type ZetaReceiverMockMockOnZetaRevert struct {
	ZetaTxSenderAddress common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

ZetaReceiverMockMockOnZetaRevert represents a MockOnZetaRevert event raised by the ZetaReceiverMock contract.

type ZetaReceiverMockMockOnZetaRevertIterator

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

ZetaReceiverMockMockOnZetaRevertIterator is returned from FilterMockOnZetaRevert and is used to iterate over the raw logs and unpacked data for MockOnZetaRevert events raised by the ZetaReceiverMock contract.

func (*ZetaReceiverMockMockOnZetaRevertIterator) Close

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

func (*ZetaReceiverMockMockOnZetaRevertIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ZetaReceiverMockMockOnZetaRevertIterator) 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 ZetaReceiverMockRaw

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

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

func (*ZetaReceiverMockRaw) Call

func (_ZetaReceiverMock *ZetaReceiverMockRaw) 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 (*ZetaReceiverMockRaw) Transact

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

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

func (*ZetaReceiverMockRaw) Transfer

func (_ZetaReceiverMock *ZetaReceiverMockRaw) 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 ZetaReceiverMockSession

type ZetaReceiverMockSession struct {
	Contract     *ZetaReceiverMock // 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
}

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

func (*ZetaReceiverMockSession) OnZetaMessage

func (_ZetaReceiverMock *ZetaReceiverMockSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error)

OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a.

Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns()

func (*ZetaReceiverMockSession) OnZetaRevert

func (_ZetaReceiverMock *ZetaReceiverMockSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error)

OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c.

Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns()

type ZetaReceiverMockTransactor

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

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

func NewZetaReceiverMockTransactor

func NewZetaReceiverMockTransactor(address common.Address, transactor bind.ContractTransactor) (*ZetaReceiverMockTransactor, error)

NewZetaReceiverMockTransactor creates a new write-only instance of ZetaReceiverMock, bound to a specific deployed contract.

func (*ZetaReceiverMockTransactor) OnZetaMessage

func (_ZetaReceiverMock *ZetaReceiverMockTransactor) OnZetaMessage(opts *bind.TransactOpts, zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error)

OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a.

Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns()

func (*ZetaReceiverMockTransactor) OnZetaRevert

func (_ZetaReceiverMock *ZetaReceiverMockTransactor) OnZetaRevert(opts *bind.TransactOpts, zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error)

OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c.

Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns()

type ZetaReceiverMockTransactorRaw

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

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

func (*ZetaReceiverMockTransactorRaw) Transact

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

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

func (*ZetaReceiverMockTransactorRaw) Transfer

func (_ZetaReceiverMock *ZetaReceiverMockTransactorRaw) 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 ZetaReceiverMockTransactorSession

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

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

func (*ZetaReceiverMockTransactorSession) OnZetaMessage

func (_ZetaReceiverMock *ZetaReceiverMockTransactorSession) OnZetaMessage(zetaMessage ZetaInterfacesZetaMessage) (*types.Transaction, error)

OnZetaMessage is a paid mutator transaction binding the contract method 0x3749c51a.

Solidity: function onZetaMessage((bytes,uint256,address,uint256,bytes) zetaMessage) returns()

func (*ZetaReceiverMockTransactorSession) OnZetaRevert

func (_ZetaReceiverMock *ZetaReceiverMockTransactorSession) OnZetaRevert(zetaRevert ZetaInterfacesZetaRevert) (*types.Transaction, error)

OnZetaRevert is a paid mutator transaction binding the contract method 0x3ff0693c.

Solidity: function onZetaRevert((address,uint256,bytes,uint256,uint256,bytes) zetaRevert) returns()

Jump to

Keyboard shortcuts

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