examples

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PingPongABI = PingPongMetaData.ABI

PingPongABI is the input ABI used to generate the binding from. Deprecated: Use PingPongMetaData.ABI instead.

View Source
var PingPongBin = PingPongMetaData.Bin

PingPongBin is the compiled bytecode used for deploying new contracts. Deprecated: Use PingPongMetaData.Bin instead.

View Source
var PingPongMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[{\"name\":\"portal\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"GAS_LIMIT\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"defaultConfLevel\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"omni\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIOmniPortal\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"pingpong\",\"inputs\":[{\"name\":\"id\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"conf\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"times\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"n\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"start\",\"inputs\":[{\"name\":\"id\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"destChainID\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"conf\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"times\",\"type\":\"uint64\",\"internalType\":\"uint64\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"DefaultConfLevelSet\",\"inputs\":[{\"name\":\"conf\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Done\",\"inputs\":[{\"name\":\"id\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"destChainID\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"times\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"OmniPortalSet\",\"inputs\":[{\"name\":\"omni\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Ping\",\"inputs\":[{\"name\":\"id\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"},{\"name\":\"srcChainID\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"},{\"name\":\"from\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"n\",\"type\":\"uint64\",\"indexed\":false,\"internalType\":\"uint64\"}],\"anonymous\":false}]",
	Bin: "0x608060405234801561001057600080fd5b50604051610c6d380380610c6d83398101604081905261002f916101b4565b80600161003b8261004c565b610044816100f1565b5050506101e4565b6001600160a01b03811661009c5760405162461bcd60e51b8152602060048201526012602482015271584170703a206e6f207a65726f206f6d6e6960701b60448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0383169081179091556040519081527f79162c8d053a07e70cdc1ccc536f0440b571f8508377d2bef51094fadab98f47906020015b60405180910390a150565b6100fa81610194565b6101465760405162461bcd60e51b815260206004820152601860248201527f584170703a20696e76616c696420636f6e66206c6576656c00000000000000006044820152606401610093565b6000805460ff60a01b1916600160a01b60ff8416908102919091179091556040519081527f8de08a798b4e50b4f351c1eaa91a11530043802be3ffac2df87db0c45a2e8483906020016100e6565b6000600160ff8316108015906101ae5750600460ff831611155b92915050565b6000602082840312156101c657600080fd5b81516001600160a01b03811681146101dd57600080fd5b9392505050565b610a7a806101f36000396000f3fe60806040526004361061004e5760003560e01c8063091d27881461005a57806339acf9f11461008e57806374eeb847146100c6578063a36d4241146100f9578063b81ce3761461011b57600080fd5b3661005557005b600080fd5b34801561006657600080fd5b5061007162030d4081565b6040516001600160401b0390911681526020015b60405180910390f35b34801561009a57600080fd5b506000546100ae906001600160a01b031681565b6040516001600160a01b039091168152602001610085565b3480156100d257600080fd5b506000546100e790600160a01b900460ff1681565b60405160ff9091168152602001610085565b34801561010557600080fd5b506101196101143660046106af565b61013b565b005b34801561012757600080fd5b5061011961013636600461073a565b6101c6565b6000816001600160401b0316116101995760405162461bcd60e51b815260206004820152601b60248201527f50696e67506f6e673a2074696d6573206d757374206265203e2030000000000060448201526064015b60405180910390fd5b6101be86868686868660016101af8260026107cb565b6101b991906107f6565b6103db565b505050505050565b60005460408051631799380760e11b815281516001600160a01b0390931692632f32700e926004808401939192918290030181865afa15801561020d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610231919061081d565b8051600180546020909301516001600160a01b0316600160401b026001600160e01b03199093166001600160401b0390921691909117919091179055610275610447565b6102c15760405162461bcd60e51b815260206004820152601b60248201527f50696e67506f6e673a206e6f7420616e206f6d6e69207863616c6c00000000006044820152606401610190565b6001546040517f47768d18c1bf0d890e19b6f020bd996b385273187be95e2b6a58feccf3bd75669161031491889188916001600160401b03821691600160401b90046001600160a01b03169087906108b2565b60405180910390a1806001600160401b031660000361038d576001546040517f5335290c57b37808bcd506c1e858915c89a2c9adaa76dc0319044eab5b9d18c29161038091889188916001600160401b03821691600160401b90046001600160a01b03169088906108b2565b60405180910390a16103c4565b600180546103c491879187916001600160401b038216918891600160401b9091046001600160a01b03169088906101b990896107f6565b5050600180546001600160e01b0319169055505050565b61043d85858563b81ce37660e01b8b8b8a89896040516024016104029594939291906108f9565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262030d406104da565b5050505050505050565b60008060009054906101000a90046001600160a01b03166001600160a01b03166355e2448e6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561049b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bf9190610937565b80156104d557506000546001600160a01b031633145b905090565b60008054604051632376548f60e21b815282916001600160a01b031690638dd9523c9061050f908a90889088906004016109a6565b602060405180830381865afa15801561052c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055091906109dc565b905080471015806105615750803410155b6105ad5760405162461bcd60e51b815260206004820152601860248201527f584170703a20696e73756666696369656e742066756e647300000000000000006044820152606401610190565b60005460405163c21dda4f60e01b81526001600160a01b039091169063c21dda4f9083906105e7908b908b908b908b908b906004016109f5565b6000604051808303818588803b15801561060057600080fd5b505af1158015610614573d6000803e3d6000fd5b50939a9950505050505050505050565b60008083601f84011261063657600080fd5b5081356001600160401b0381111561064d57600080fd5b60208301915083602082850101111561066557600080fd5b9250929050565b6001600160401b038116811461068157600080fd5b50565b803560ff8116811461069557600080fd5b919050565b6001600160a01b038116811461068157600080fd5b60008060008060008060a087890312156106c857600080fd5b86356001600160401b038111156106de57600080fd5b6106ea89828a01610624565b90975095505060208701356106fe8161066c565b935061070c60408801610684565b9250606087013561071c8161069a565b9150608087013561072c8161066c565b809150509295509295509295565b60008060008060006080868803121561075257600080fd5b85356001600160401b0381111561076857600080fd5b61077488828901610624565b9096509450610787905060208701610684565b925060408601356107978161066c565b915060608601356107a78161066c565b809150509295509295909350565b634e487b7160e01b600052601160045260246000fd5b6001600160401b038181168382160280821691908281146107ee576107ee6107b5565b505092915050565b6001600160401b03828116828216039080821115610816576108166107b5565b5092915050565b60006040828403121561082f57600080fd5b604051604081018181106001600160401b038211171561085f57634e487b7160e01b600052604160045260246000fd5b604052825161086d8161066c565b8152602083015161087d8161069a565b60208201529392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6080815260006108c6608083018789610889565b6001600160401b0395861660208401526001600160a01b0394909416604083015250921660609092019190915292915050565b60808152600061090d608083018789610889565b60ff959095166020830152506001600160401b039283166040820152911660609091015292915050565b60006020828403121561094957600080fd5b8151801515811461095957600080fd5b9392505050565b6000815180845260005b818110156109865760208185018101518683018201520161096a565b506000602082860101526020601f19601f83011685010191505092915050565b60006001600160401b038086168352606060208401526109c96060840186610960565b9150808416604084015250949350505050565b6000602082840312156109ee57600080fd5b5051919050565b60006001600160401b03808816835260ff8716602084015260018060a01b038616604084015260a06060840152610a2f60a0840186610960565b9150808416608084015250969550505050505056fea2646970667358221220835d1bed16fd5542152002d10e6907d16f24061dbd77b581c685efa61072df1964736f6c63430008180033",
}

PingPongMetaData contains all meta data concerning the PingPong contract.

Functions

This section is empty.

Types

type PingPong

type PingPong struct {
	PingPongCaller     // Read-only binding to the contract
	PingPongTransactor // Write-only binding to the contract
	PingPongFilterer   // Log filterer for contract events
}

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

func DeployPingPong

func DeployPingPong(auth *bind.TransactOpts, backend bind.ContractBackend, portal common.Address) (common.Address, *types.Transaction, *PingPong, error)

DeployPingPong deploys a new Ethereum contract, binding an instance of PingPong to it.

func NewPingPong

func NewPingPong(address common.Address, backend bind.ContractBackend) (*PingPong, error)

NewPingPong creates a new instance of PingPong, bound to a specific deployed contract.

type PingPongCaller

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

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

func NewPingPongCaller

func NewPingPongCaller(address common.Address, caller bind.ContractCaller) (*PingPongCaller, error)

NewPingPongCaller creates a new read-only instance of PingPong, bound to a specific deployed contract.

func (*PingPongCaller) DefaultConfLevel added in v0.1.9

func (_PingPong *PingPongCaller) DefaultConfLevel(opts *bind.CallOpts) (uint8, error)

DefaultConfLevel is a free data retrieval call binding the contract method 0x74eeb847.

Solidity: function defaultConfLevel() view returns(uint8)

func (*PingPongCaller) GASLIMIT

func (_PingPong *PingPongCaller) GASLIMIT(opts *bind.CallOpts) (uint64, error)

GASLIMIT is a free data retrieval call binding the contract method 0x091d2788.

Solidity: function GAS_LIMIT() view returns(uint64)

func (*PingPongCaller) Omni added in v0.1.9

func (_PingPong *PingPongCaller) Omni(opts *bind.CallOpts) (common.Address, error)

Omni is a free data retrieval call binding the contract method 0x39acf9f1.

Solidity: function omni() view returns(address)

type PingPongCallerRaw

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

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

func (*PingPongCallerRaw) Call

func (_PingPong *PingPongCallerRaw) 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 PingPongCallerSession

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

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

func (*PingPongCallerSession) DefaultConfLevel added in v0.1.9

func (_PingPong *PingPongCallerSession) DefaultConfLevel() (uint8, error)

DefaultConfLevel is a free data retrieval call binding the contract method 0x74eeb847.

Solidity: function defaultConfLevel() view returns(uint8)

func (*PingPongCallerSession) GASLIMIT

func (_PingPong *PingPongCallerSession) GASLIMIT() (uint64, error)

GASLIMIT is a free data retrieval call binding the contract method 0x091d2788.

Solidity: function GAS_LIMIT() view returns(uint64)

func (*PingPongCallerSession) Omni added in v0.1.9

func (_PingPong *PingPongCallerSession) Omni() (common.Address, error)

Omni is a free data retrieval call binding the contract method 0x39acf9f1.

Solidity: function omni() view returns(address)

type PingPongDefaultConfLevelSet added in v0.1.9

type PingPongDefaultConfLevelSet struct {
	Conf uint8
	Raw  types.Log // Blockchain specific contextual infos
}

PingPongDefaultConfLevelSet represents a DefaultConfLevelSet event raised by the PingPong contract.

type PingPongDefaultConfLevelSetIterator added in v0.1.9

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

PingPongDefaultConfLevelSetIterator is returned from FilterDefaultConfLevelSet and is used to iterate over the raw logs and unpacked data for DefaultConfLevelSet events raised by the PingPong contract.

func (*PingPongDefaultConfLevelSetIterator) Close added in v0.1.9

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

func (*PingPongDefaultConfLevelSetIterator) Error added in v0.1.9

Error returns any retrieval or parsing error occurred during filtering.

func (*PingPongDefaultConfLevelSetIterator) Next added in v0.1.9

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 PingPongDone

type PingPongDone struct {
	Id          string
	DestChainID uint64
	To          common.Address
	Times       uint64
	Raw         types.Log // Blockchain specific contextual infos
}

PingPongDone represents a Done event raised by the PingPong contract.

type PingPongDoneIterator

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

PingPongDoneIterator is returned from FilterDone and is used to iterate over the raw logs and unpacked data for Done events raised by the PingPong contract.

func (*PingPongDoneIterator) Close

func (it *PingPongDoneIterator) Close() error

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

func (*PingPongDoneIterator) Error

func (it *PingPongDoneIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PingPongDoneIterator) Next

func (it *PingPongDoneIterator) 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 PingPongFilterer

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

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

func NewPingPongFilterer

func NewPingPongFilterer(address common.Address, filterer bind.ContractFilterer) (*PingPongFilterer, error)

NewPingPongFilterer creates a new log filterer instance of PingPong, bound to a specific deployed contract.

func (*PingPongFilterer) FilterDefaultConfLevelSet added in v0.1.9

func (_PingPong *PingPongFilterer) FilterDefaultConfLevelSet(opts *bind.FilterOpts) (*PingPongDefaultConfLevelSetIterator, error)

FilterDefaultConfLevelSet is a free log retrieval operation binding the contract event 0x8de08a798b4e50b4f351c1eaa91a11530043802be3ffac2df87db0c45a2e8483.

Solidity: event DefaultConfLevelSet(uint8 conf)

func (*PingPongFilterer) FilterDone

func (_PingPong *PingPongFilterer) FilterDone(opts *bind.FilterOpts) (*PingPongDoneIterator, error)

FilterDone is a free log retrieval operation binding the contract event 0x5335290c57b37808bcd506c1e858915c89a2c9adaa76dc0319044eab5b9d18c2.

Solidity: event Done(string id, uint64 destChainID, address to, uint64 times)

func (*PingPongFilterer) FilterOmniPortalSet added in v0.1.9

func (_PingPong *PingPongFilterer) FilterOmniPortalSet(opts *bind.FilterOpts) (*PingPongOmniPortalSetIterator, error)

FilterOmniPortalSet is a free log retrieval operation binding the contract event 0x79162c8d053a07e70cdc1ccc536f0440b571f8508377d2bef51094fadab98f47.

Solidity: event OmniPortalSet(address omni)

func (*PingPongFilterer) FilterPing added in v0.1.9

func (_PingPong *PingPongFilterer) FilterPing(opts *bind.FilterOpts) (*PingPongPingIterator, error)

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

Solidity: event Ping(string id, uint64 srcChainID, address from, uint64 n)

func (*PingPongFilterer) ParseDefaultConfLevelSet added in v0.1.9

func (_PingPong *PingPongFilterer) ParseDefaultConfLevelSet(log types.Log) (*PingPongDefaultConfLevelSet, error)

ParseDefaultConfLevelSet is a log parse operation binding the contract event 0x8de08a798b4e50b4f351c1eaa91a11530043802be3ffac2df87db0c45a2e8483.

Solidity: event DefaultConfLevelSet(uint8 conf)

func (*PingPongFilterer) ParseDone

func (_PingPong *PingPongFilterer) ParseDone(log types.Log) (*PingPongDone, error)

ParseDone is a log parse operation binding the contract event 0x5335290c57b37808bcd506c1e858915c89a2c9adaa76dc0319044eab5b9d18c2.

Solidity: event Done(string id, uint64 destChainID, address to, uint64 times)

func (*PingPongFilterer) ParseOmniPortalSet added in v0.1.9

func (_PingPong *PingPongFilterer) ParseOmniPortalSet(log types.Log) (*PingPongOmniPortalSet, error)

ParseOmniPortalSet is a log parse operation binding the contract event 0x79162c8d053a07e70cdc1ccc536f0440b571f8508377d2bef51094fadab98f47.

Solidity: event OmniPortalSet(address omni)

func (*PingPongFilterer) ParsePing added in v0.1.9

func (_PingPong *PingPongFilterer) ParsePing(log types.Log) (*PingPongPing, error)

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

Solidity: event Ping(string id, uint64 srcChainID, address from, uint64 n)

func (*PingPongFilterer) WatchDefaultConfLevelSet added in v0.1.9

func (_PingPong *PingPongFilterer) WatchDefaultConfLevelSet(opts *bind.WatchOpts, sink chan<- *PingPongDefaultConfLevelSet) (event.Subscription, error)

WatchDefaultConfLevelSet is a free log subscription operation binding the contract event 0x8de08a798b4e50b4f351c1eaa91a11530043802be3ffac2df87db0c45a2e8483.

Solidity: event DefaultConfLevelSet(uint8 conf)

func (*PingPongFilterer) WatchDone

func (_PingPong *PingPongFilterer) WatchDone(opts *bind.WatchOpts, sink chan<- *PingPongDone) (event.Subscription, error)

WatchDone is a free log subscription operation binding the contract event 0x5335290c57b37808bcd506c1e858915c89a2c9adaa76dc0319044eab5b9d18c2.

Solidity: event Done(string id, uint64 destChainID, address to, uint64 times)

func (*PingPongFilterer) WatchOmniPortalSet added in v0.1.9

func (_PingPong *PingPongFilterer) WatchOmniPortalSet(opts *bind.WatchOpts, sink chan<- *PingPongOmniPortalSet) (event.Subscription, error)

WatchOmniPortalSet is a free log subscription operation binding the contract event 0x79162c8d053a07e70cdc1ccc536f0440b571f8508377d2bef51094fadab98f47.

Solidity: event OmniPortalSet(address omni)

func (*PingPongFilterer) WatchPing added in v0.1.9

func (_PingPong *PingPongFilterer) WatchPing(opts *bind.WatchOpts, sink chan<- *PingPongPing) (event.Subscription, error)

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

Solidity: event Ping(string id, uint64 srcChainID, address from, uint64 n)

type PingPongOmniPortalSet added in v0.1.9

type PingPongOmniPortalSet struct {
	Omni common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

PingPongOmniPortalSet represents a OmniPortalSet event raised by the PingPong contract.

type PingPongOmniPortalSetIterator added in v0.1.9

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

PingPongOmniPortalSetIterator is returned from FilterOmniPortalSet and is used to iterate over the raw logs and unpacked data for OmniPortalSet events raised by the PingPong contract.

func (*PingPongOmniPortalSetIterator) Close added in v0.1.9

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

func (*PingPongOmniPortalSetIterator) Error added in v0.1.9

Error returns any retrieval or parsing error occurred during filtering.

func (*PingPongOmniPortalSetIterator) Next added in v0.1.9

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 PingPongPing added in v0.1.9

type PingPongPing struct {
	Id         string
	SrcChainID uint64
	From       common.Address
	N          uint64
	Raw        types.Log // Blockchain specific contextual infos
}

PingPongPing represents a Ping event raised by the PingPong contract.

type PingPongPingIterator added in v0.1.9

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

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

func (*PingPongPingIterator) Close added in v0.1.9

func (it *PingPongPingIterator) Close() error

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

func (*PingPongPingIterator) Error added in v0.1.9

func (it *PingPongPingIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*PingPongPingIterator) Next added in v0.1.9

func (it *PingPongPingIterator) 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 PingPongRaw

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

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

func (*PingPongRaw) Call

func (_PingPong *PingPongRaw) 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 (*PingPongRaw) Transact

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

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

func (*PingPongRaw) Transfer

func (_PingPong *PingPongRaw) 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 PingPongSession

type PingPongSession struct {
	Contract     *PingPong         // 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
}

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

func (*PingPongSession) DefaultConfLevel added in v0.1.9

func (_PingPong *PingPongSession) DefaultConfLevel() (uint8, error)

DefaultConfLevel is a free data retrieval call binding the contract method 0x74eeb847.

Solidity: function defaultConfLevel() view returns(uint8)

func (*PingPongSession) GASLIMIT

func (_PingPong *PingPongSession) GASLIMIT() (uint64, error)

GASLIMIT is a free data retrieval call binding the contract method 0x091d2788.

Solidity: function GAS_LIMIT() view returns(uint64)

func (*PingPongSession) Omni added in v0.1.9

func (_PingPong *PingPongSession) Omni() (common.Address, error)

Omni is a free data retrieval call binding the contract method 0x39acf9f1.

Solidity: function omni() view returns(address)

func (*PingPongSession) Pingpong

func (_PingPong *PingPongSession) Pingpong(id string, conf uint8, times uint64, n uint64) (*types.Transaction, error)

Pingpong is a paid mutator transaction binding the contract method 0xb81ce376.

Solidity: function pingpong(string id, uint8 conf, uint64 times, uint64 n) returns()

func (*PingPongSession) Receive

func (_PingPong *PingPongSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*PingPongSession) Start

func (_PingPong *PingPongSession) Start(id string, destChainID uint64, conf uint8, to common.Address, times uint64) (*types.Transaction, error)

Start is a paid mutator transaction binding the contract method 0xa36d4241.

Solidity: function start(string id, uint64 destChainID, uint8 conf, address to, uint64 times) returns()

type PingPongTransactor

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

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

func NewPingPongTransactor

func NewPingPongTransactor(address common.Address, transactor bind.ContractTransactor) (*PingPongTransactor, error)

NewPingPongTransactor creates a new write-only instance of PingPong, bound to a specific deployed contract.

func (*PingPongTransactor) Pingpong

func (_PingPong *PingPongTransactor) Pingpong(opts *bind.TransactOpts, id string, conf uint8, times uint64, n uint64) (*types.Transaction, error)

Pingpong is a paid mutator transaction binding the contract method 0xb81ce376.

Solidity: function pingpong(string id, uint8 conf, uint64 times, uint64 n) returns()

func (*PingPongTransactor) Receive

func (_PingPong *PingPongTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*PingPongTransactor) Start

func (_PingPong *PingPongTransactor) Start(opts *bind.TransactOpts, id string, destChainID uint64, conf uint8, to common.Address, times uint64) (*types.Transaction, error)

Start is a paid mutator transaction binding the contract method 0xa36d4241.

Solidity: function start(string id, uint64 destChainID, uint8 conf, address to, uint64 times) returns()

type PingPongTransactorRaw

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

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

func (*PingPongTransactorRaw) Transact

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

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

func (*PingPongTransactorRaw) Transfer

func (_PingPong *PingPongTransactorRaw) 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 PingPongTransactorSession

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

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

func (*PingPongTransactorSession) Pingpong

func (_PingPong *PingPongTransactorSession) Pingpong(id string, conf uint8, times uint64, n uint64) (*types.Transaction, error)

Pingpong is a paid mutator transaction binding the contract method 0xb81ce376.

Solidity: function pingpong(string id, uint8 conf, uint64 times, uint64 n) returns()

func (*PingPongTransactorSession) Receive

func (_PingPong *PingPongTransactorSession) Receive() (*types.Transaction, error)

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

Solidity: receive() payable returns()

func (*PingPongTransactorSession) Start

func (_PingPong *PingPongTransactorSession) Start(id string, destChainID uint64, conf uint8, to common.Address, times uint64) (*types.Transaction, error)

Start is a paid mutator transaction binding the contract method 0xa36d4241.

Solidity: function start(string id, uint64 destChainID, uint8 conf, address to, uint64 times) returns()

Jump to

Keyboard shortcuts

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