Documentation ¶
Index ¶
- Constants
- Variables
- type BMC
- type BMCBTPEvent
- type BMCBTPEventIterator
- type BMCCaller
- func (_BMC *BMCCaller) GetBtpAddress(opts *bind.CallOpts) (string, error)
- func (_BMC *BMCCaller) GetFee(opts *bind.CallOpts, _to string, _response bool) (*big.Int, error)
- func (_BMC *BMCCaller) GetNetworkAddress(opts *bind.CallOpts) (string, error)
- func (_BMC *BMCCaller) GetNetworkSn(opts *bind.CallOpts) (*big.Int, error)
- func (_BMC *BMCCaller) GetReward(opts *bind.CallOpts, _network string, _addr common.Address) (*big.Int, error)
- func (_BMC *BMCCaller) GetStatus(opts *bind.CallOpts, _link string) (TypesLinkStatus, error)
- type BMCCallerRaw
- type BMCCallerSession
- func (_BMC *BMCCallerSession) GetBtpAddress() (string, error)
- func (_BMC *BMCCallerSession) GetFee(_to string, _response bool) (*big.Int, error)
- func (_BMC *BMCCallerSession) GetNetworkAddress() (string, error)
- func (_BMC *BMCCallerSession) GetNetworkSn() (*big.Int, error)
- func (_BMC *BMCCallerSession) GetReward(_network string, _addr common.Address) (*big.Int, error)
- func (_BMC *BMCCallerSession) GetStatus(_link string) (TypesLinkStatus, error)
- type BMCClaimReward
- type BMCClaimRewardIterator
- type BMCClaimRewardResult
- type BMCClaimRewardResultIterator
- type BMCClient
- type BMCFilterer
- func (_BMC *BMCFilterer) FilterBTPEvent(opts *bind.FilterOpts, _src []string, _nsn []*big.Int) (*BMCBTPEventIterator, error)
- func (_BMC *BMCFilterer) FilterClaimReward(opts *bind.FilterOpts, _sender []common.Address, _network []string) (*BMCClaimRewardIterator, error)
- func (_BMC *BMCFilterer) FilterClaimRewardResult(opts *bind.FilterOpts, _sender []common.Address, _network []string) (*BMCClaimRewardResultIterator, error)
- func (_BMC *BMCFilterer) FilterInitialized(opts *bind.FilterOpts) (*BMCInitializedIterator, error)
- func (_BMC *BMCFilterer) FilterMessage(opts *bind.FilterOpts, _next []string, _seq []*big.Int) (*BMCMessageIterator, error)
- func (_BMC *BMCFilterer) FilterMessageDropped(opts *bind.FilterOpts, _prev []string, _seq []*big.Int) (*BMCMessageDroppedIterator, error)
- func (_BMC *BMCFilterer) ParseBTPEvent(log types.Log) (*BMCBTPEvent, error)
- func (_BMC *BMCFilterer) ParseClaimReward(log types.Log) (*BMCClaimReward, error)
- func (_BMC *BMCFilterer) ParseClaimRewardResult(log types.Log) (*BMCClaimRewardResult, error)
- func (_BMC *BMCFilterer) ParseInitialized(log types.Log) (*BMCInitialized, error)
- func (_BMC *BMCFilterer) ParseMessage(log types.Log) (*BMCMessage, error)
- func (_BMC *BMCFilterer) ParseMessageDropped(log types.Log) (*BMCMessageDropped, error)
- func (_BMC *BMCFilterer) WatchBTPEvent(opts *bind.WatchOpts, sink chan<- *BMCBTPEvent, _src []string, _nsn []*big.Int) (event.Subscription, error)
- func (_BMC *BMCFilterer) WatchClaimReward(opts *bind.WatchOpts, sink chan<- *BMCClaimReward, _sender []common.Address, ...) (event.Subscription, error)
- func (_BMC *BMCFilterer) WatchClaimRewardResult(opts *bind.WatchOpts, sink chan<- *BMCClaimRewardResult, ...) (event.Subscription, error)
- func (_BMC *BMCFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BMCInitialized) (event.Subscription, error)
- func (_BMC *BMCFilterer) WatchMessage(opts *bind.WatchOpts, sink chan<- *BMCMessage, _next []string, _seq []*big.Int) (event.Subscription, error)
- func (_BMC *BMCFilterer) WatchMessageDropped(opts *bind.WatchOpts, sink chan<- *BMCMessageDropped, _prev []string, ...) (event.Subscription, error)
- type BMCInitialized
- type BMCInitializedIterator
- type BMCMessage
- type BMCMessageDropped
- type BMCMessageDroppedIterator
- type BMCMessageIterator
- type BMCRaw
- type BMCSession
- func (_BMC *BMCSession) ClaimReward(_network string, _receiver string) (*types.Transaction, error)
- func (_BMC *BMCSession) ClearSeq(_link string) (*types.Transaction, error)
- func (_BMC *BMCSession) DropMessage(_prev string, _seq *big.Int, _msg TypesBTPMessage) (*types.Transaction, error)
- func (_BMC *BMCSession) EmitClaimRewardResult(_sender common.Address, _network string, _nsn *big.Int, _result *big.Int) (*types.Transaction, error)
- func (_BMC *BMCSession) GetBtpAddress() (string, error)
- func (_BMC *BMCSession) GetFee(_to string, _response bool) (*big.Int, error)
- func (_BMC *BMCSession) GetNetworkAddress() (string, error)
- func (_BMC *BMCSession) GetNetworkSn() (*big.Int, error)
- func (_BMC *BMCSession) GetReward(_network string, _addr common.Address) (*big.Int, error)
- func (_BMC *BMCSession) GetStatus(_link string) (TypesLinkStatus, error)
- func (_BMC *BMCSession) HandleRelayMessage(_prev string, _msg []byte) (*types.Transaction, error)
- func (_BMC *BMCSession) Initialize(_network string, _bmcManagementAddr common.Address, ...) (*types.Transaction, error)
- func (_BMC *BMCSession) Receive() (*types.Transaction, error)
- func (_BMC *BMCSession) SendInternal(_next string, _msg []byte) (*types.Transaction, error)
- func (_BMC *BMCSession) SendMessage(_to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)
- type BMCTransactor
- func (_BMC *BMCTransactor) ClaimReward(opts *bind.TransactOpts, _network string, _receiver string) (*types.Transaction, error)
- func (_BMC *BMCTransactor) ClearSeq(opts *bind.TransactOpts, _link string) (*types.Transaction, error)
- func (_BMC *BMCTransactor) DropMessage(opts *bind.TransactOpts, _prev string, _seq *big.Int, _msg TypesBTPMessage) (*types.Transaction, error)
- func (_BMC *BMCTransactor) EmitClaimRewardResult(opts *bind.TransactOpts, _sender common.Address, _network string, ...) (*types.Transaction, error)
- func (_BMC *BMCTransactor) HandleRelayMessage(opts *bind.TransactOpts, _prev string, _msg []byte) (*types.Transaction, error)
- func (_BMC *BMCTransactor) Initialize(opts *bind.TransactOpts, _network string, _bmcManagementAddr common.Address, ...) (*types.Transaction, error)
- func (_BMC *BMCTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_BMC *BMCTransactor) SendInternal(opts *bind.TransactOpts, _next string, _msg []byte) (*types.Transaction, error)
- func (_BMC *BMCTransactor) SendMessage(opts *bind.TransactOpts, _to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)
- type BMCTransactorRaw
- type BMCTransactorSession
- func (_BMC *BMCTransactorSession) ClaimReward(_network string, _receiver string) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) ClearSeq(_link string) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) DropMessage(_prev string, _seq *big.Int, _msg TypesBTPMessage) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) EmitClaimRewardResult(_sender common.Address, _network string, _nsn *big.Int, _result *big.Int) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) HandleRelayMessage(_prev string, _msg []byte) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) Initialize(_network string, _bmcManagementAddr common.Address, ...) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) Receive() (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) SendInternal(_next string, _msg []byte) (*types.Transaction, error)
- func (_BMC *BMCTransactorSession) SendMessage(_to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)
- type ConsensusLayer
- func (c *ConsensusLayer) BeaconBlock(blockID string) (*spec.VersionedSignedBeaconBlock, error)
- func (c *ConsensusLayer) BeaconBlockHeader(blockID string) (*apiv1.BeaconBlockHeader, error)
- func (c *ConsensusLayer) BeaconBlockRoot(blockID string) (*phase0.Root, error)
- func (c *ConsensusLayer) Events(topics []string, handler eth2client.EventHandlerFunc) error
- func (c *ConsensusLayer) FinalityCheckpoints(stateID string) (*apiv1.Finality, error)
- func (c *ConsensusLayer) Genesis() (*apiv1.Genesis, error)
- func (c *ConsensusLayer) GetReceiptsRootProof(slot int64) ([]byte, error)
- func (c *ConsensusLayer) GetStateProofWithGIndex(stateId string, gindex uint64) ([]byte, error)
- func (c *ConsensusLayer) LightClientBootstrap(blockRoot phase0.Root) (*LightClientBootstrap, error)
- func (c *ConsensusLayer) LightClientFinalityUpdate() (*LightClientFinalityUpdate, error)
- func (c *ConsensusLayer) LightClientOptimisticUpdate() (*LightClientOptimisticUpdate, error)
- func (c *ConsensusLayer) LightClientUpdates(startPeriod, count uint64) ([]*LightClientUpdate, error)
- func (c *ConsensusLayer) SlotToBlockNumber(slot phase0.Slot) (uint64, error)
- func (c *ConsensusLayer) Term()
- type ExecutionLayer
- func (c *ExecutionLayer) BlockByNumber(num *big.Int) (*types.Block, error)
- func (c *ExecutionLayer) FeeHistory(blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)
- func (c *ExecutionLayer) FilterLogs(fq ethereum.FilterQuery) ([]types.Log, error)
- func (c *ExecutionLayer) GetBackend() bind.ContractBackend
- func (c *ExecutionLayer) GetChainID() (*big.Int, error)
- func (c *ExecutionLayer) GetRevertMessage(txHash common.Hash) (string, error)
- func (c *ExecutionLayer) NewTransactOpts(k *ecdsa.PrivateKey, gasLimit uint64) (*bind.TransactOpts, error)
- func (c *ExecutionLayer) TransactionByHash(hash common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (c *ExecutionLayer) TransactionReceipt(txHash common.Hash) (*types.Receipt, error)
- type IBMVVerifierStatus
- type LightClientBootstrap
- type LightClientFinalityUpdate
- type LightClientHeader
- type LightClientOptimisticUpdate
- type LightClientUpdate
- type TypesBTPMessage
- type TypesFeeInfo
- type TypesLinkStatus
Constants ¶
const ( TopicLCOptimisticUpdate = "light_client_optimistic_update" TopicLCFinalityUpdate = "light_client_finality_update" )
const (
DefaultTimeout = 10 * time.Second //
)
Variables ¶
var BMCABI = BMCMetaData.ABI
BMCABI is the input ABI used to generate the binding from. Deprecated: Use BMCMetaData.ABI instead.
var BMCMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"_src\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"int256\",\"name\":\"_nsn\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_next\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_event\",\"type\":\"string\"}],\"name\":\"BTPEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"_network\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_receiver\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"_nsn\",\"type\":\"int256\"}],\"name\":\"ClaimReward\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"_network\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"_nsn\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_result\",\"type\":\"uint256\"}],\"name\":\"ClaimRewardResult\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"_next\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_seq\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_msg\",\"type\":\"bytes\"}],\"name\":\"Message\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"_prev\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"_seq\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_msg\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_ecode\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"_emsg\",\"type\":\"string\"}],\"name\":\"MessageDropped\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_network\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_receiver\",\"type\":\"string\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_link\",\"type\":\"string\"}],\"name\":\"clearSeq\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_prev\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"_seq\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"src\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"dst\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"svc\",\"type\":\"string\"},{\"internalType\":\"int256\",\"name\":\"sn\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"},{\"internalType\":\"int256\",\"name\":\"nsn\",\"type\":\"int256\"},{\"components\":[{\"internalType\":\"string\",\"name\":\"network\",\"type\":\"string\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"internalType\":\"structTypes.FeeInfo\",\"name\":\"feeInfo\",\"type\":\"tuple\"}],\"internalType\":\"structTypes.BTPMessage\",\"name\":\"_msg\",\"type\":\"tuple\"}],\"name\":\"dropMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_network\",\"type\":\"string\"},{\"internalType\":\"int256\",\"name\":\"_nsn\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"_result\",\"type\":\"uint256\"}],\"name\":\"emitClaimRewardResult\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBtpAddress\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_to\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"_response\",\"type\":\"bool\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNetworkAddress\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNetworkSn\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_network\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"getReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_link\",\"type\":\"string\"}],\"name\":\"getStatus\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"rxSeq\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"txSeq\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"height\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"extra\",\"type\":\"bytes\"}],\"internalType\":\"structIBMV.VerifierStatus\",\"name\":\"verifier\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"currentHeight\",\"type\":\"uint256\"}],\"internalType\":\"structTypes.LinkStatus\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_prev\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"_msg\",\"type\":\"bytes\"}],\"name\":\"handleRelayMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_network\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_bmcManagementAddr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_bmcServiceAddr\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_next\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"_msg\",\"type\":\"bytes\"}],\"name\":\"sendInternal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_to\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_svc\",\"type\":\"string\"},{\"internalType\":\"int256\",\"name\":\"_sn\",\"type\":\"int256\"},{\"internalType\":\"bytes\",\"name\":\"_msg\",\"type\":\"bytes\"}],\"name\":\"sendMessage\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
BMCMetaData contains all meta data concerning the BMC contract.
Functions ¶
This section is empty.
Types ¶
type BMC ¶
type BMC struct { BMCCaller // Read-only binding to the contract BMCTransactor // Write-only binding to the contract BMCFilterer // Log filterer for contract events }
BMC is an auto generated Go binding around an Ethereum contract.
type BMCBTPEvent ¶
type BMCBTPEvent struct { Src common.Hash Nsn *big.Int Next string Event string Raw types.Log // Blockchain specific contextual infos }
BMCBTPEvent represents a BTPEvent event raised by the BMC contract.
type BMCBTPEventIterator ¶
type BMCBTPEventIterator struct { Event *BMCBTPEvent // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BMCBTPEventIterator is returned from FilterBTPEvent and is used to iterate over the raw logs and unpacked data for BTPEvent events raised by the BMC contract.
func (*BMCBTPEventIterator) Close ¶
func (it *BMCBTPEventIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BMCBTPEventIterator) Error ¶
func (it *BMCBTPEventIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BMCBTPEventIterator) Next ¶
func (it *BMCBTPEventIterator) 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 BMCCaller ¶
type BMCCaller struct {
// contains filtered or unexported fields
}
BMCCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBMCCaller ¶
NewBMCCaller creates a new read-only instance of BMC, bound to a specific deployed contract.
func (*BMCCaller) GetBtpAddress ¶
GetBtpAddress is a free data retrieval call binding the contract method 0x4f63a21d.
Solidity: function getBtpAddress() view returns(string)
func (*BMCCaller) GetFee ¶
GetFee is a free data retrieval call binding the contract method 0x7d4c4f4a.
Solidity: function getFee(string _to, bool _response) view returns(uint256)
func (*BMCCaller) GetNetworkAddress ¶
GetNetworkAddress is a free data retrieval call binding the contract method 0x6bf459cb.
Solidity: function getNetworkAddress() view returns(string)
func (*BMCCaller) GetNetworkSn ¶
GetNetworkSn is a free data retrieval call binding the contract method 0x676286ba.
Solidity: function getNetworkSn() view returns(int256)
func (*BMCCaller) GetReward ¶
func (_BMC *BMCCaller) GetReward(opts *bind.CallOpts, _network string, _addr common.Address) (*big.Int, error)
GetReward is a free data retrieval call binding the contract method 0x64cd3750.
Solidity: function getReward(string _network, address _addr) view returns(uint256)
type BMCCallerRaw ¶
type BMCCallerRaw struct {
Contract *BMCCaller // Generic read-only contract binding to access the raw methods on
}
BMCCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BMCCallerRaw) Call ¶
func (_BMC *BMCCallerRaw) 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 BMCCallerSession ¶
type BMCCallerSession struct { Contract *BMCCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BMCCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BMCCallerSession) GetBtpAddress ¶
func (_BMC *BMCCallerSession) GetBtpAddress() (string, error)
GetBtpAddress is a free data retrieval call binding the contract method 0x4f63a21d.
Solidity: function getBtpAddress() view returns(string)
func (*BMCCallerSession) GetFee ¶
GetFee is a free data retrieval call binding the contract method 0x7d4c4f4a.
Solidity: function getFee(string _to, bool _response) view returns(uint256)
func (*BMCCallerSession) GetNetworkAddress ¶
func (_BMC *BMCCallerSession) GetNetworkAddress() (string, error)
GetNetworkAddress is a free data retrieval call binding the contract method 0x6bf459cb.
Solidity: function getNetworkAddress() view returns(string)
func (*BMCCallerSession) GetNetworkSn ¶
func (_BMC *BMCCallerSession) GetNetworkSn() (*big.Int, error)
GetNetworkSn is a free data retrieval call binding the contract method 0x676286ba.
Solidity: function getNetworkSn() view returns(int256)
func (*BMCCallerSession) GetReward ¶
GetReward is a free data retrieval call binding the contract method 0x64cd3750.
Solidity: function getReward(string _network, address _addr) view returns(uint256)
func (*BMCCallerSession) GetStatus ¶
func (_BMC *BMCCallerSession) GetStatus(_link string) (TypesLinkStatus, error)
GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.
Solidity: function getStatus(string _link) view returns((uint256,uint256,(uint256,bytes),uint256))
type BMCClaimReward ¶
type BMCClaimReward struct { Sender common.Address Network common.Hash Receiver string Amount *big.Int Nsn *big.Int Raw types.Log // Blockchain specific contextual infos }
BMCClaimReward represents a ClaimReward event raised by the BMC contract.
type BMCClaimRewardIterator ¶
type BMCClaimRewardIterator struct { Event *BMCClaimReward // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BMCClaimRewardIterator is returned from FilterClaimReward and is used to iterate over the raw logs and unpacked data for ClaimReward events raised by the BMC contract.
func (*BMCClaimRewardIterator) Close ¶
func (it *BMCClaimRewardIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BMCClaimRewardIterator) Error ¶
func (it *BMCClaimRewardIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BMCClaimRewardIterator) Next ¶
func (it *BMCClaimRewardIterator) 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 BMCClaimRewardResult ¶
type BMCClaimRewardResult struct { Sender common.Address Network common.Hash Nsn *big.Int Result *big.Int Raw types.Log // Blockchain specific contextual infos }
BMCClaimRewardResult represents a ClaimRewardResult event raised by the BMC contract.
type BMCClaimRewardResultIterator ¶
type BMCClaimRewardResultIterator struct { Event *BMCClaimRewardResult // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BMCClaimRewardResultIterator is returned from FilterClaimRewardResult and is used to iterate over the raw logs and unpacked data for ClaimRewardResult events raised by the BMC contract.
func (*BMCClaimRewardResultIterator) Close ¶
func (it *BMCClaimRewardResultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BMCClaimRewardResultIterator) Error ¶
func (it *BMCClaimRewardResultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BMCClaimRewardResultIterator) Next ¶
func (it *BMCClaimRewardResultIterator) 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 BMCClient ¶ added in v0.3.0
type BMCClient struct {
// contains filtered or unexported fields
}
func NewBMCClient ¶ added in v0.3.0
func (*BMCClient) HandleRelayMessage ¶ added in v0.3.0
func (c *BMCClient) HandleRelayMessage(opts *bind.TransactOpts, _prev string, _msg []byte) (*etypes.Transaction, error)
type BMCFilterer ¶
type BMCFilterer struct {
// contains filtered or unexported fields
}
BMCFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBMCFilterer ¶
func NewBMCFilterer(address common.Address, filterer bind.ContractFilterer) (*BMCFilterer, error)
NewBMCFilterer creates a new log filterer instance of BMC, bound to a specific deployed contract.
func (*BMCFilterer) FilterBTPEvent ¶
func (_BMC *BMCFilterer) FilterBTPEvent(opts *bind.FilterOpts, _src []string, _nsn []*big.Int) (*BMCBTPEventIterator, error)
FilterBTPEvent is a free log retrieval operation binding the contract event 0x51f135d1c44e53689ca91af3b1bce4918d2b590d92bb76a854ab30e7de741828.
Solidity: event BTPEvent(string indexed _src, int256 indexed _nsn, string _next, string _event)
func (*BMCFilterer) FilterClaimReward ¶
func (_BMC *BMCFilterer) FilterClaimReward(opts *bind.FilterOpts, _sender []common.Address, _network []string) (*BMCClaimRewardIterator, error)
FilterClaimReward is a free log retrieval operation binding the contract event 0x92a1bf3ab6e4839bb58db5f99ae98936355e94c1223779807563d1a08a3bf449.
Solidity: event ClaimReward(address indexed _sender, string indexed _network, string _receiver, uint256 _amount, int256 _nsn)
func (*BMCFilterer) FilterClaimRewardResult ¶
func (_BMC *BMCFilterer) FilterClaimRewardResult(opts *bind.FilterOpts, _sender []common.Address, _network []string) (*BMCClaimRewardResultIterator, error)
FilterClaimRewardResult is a free log retrieval operation binding the contract event 0xe4a536fde1966a83411167748abc5fbd80e0247bffe941ca4ddb5079fd730636.
Solidity: event ClaimRewardResult(address indexed _sender, string indexed _network, int256 _nsn, uint256 _result)
func (*BMCFilterer) FilterInitialized ¶
func (_BMC *BMCFilterer) FilterInitialized(opts *bind.FilterOpts) (*BMCInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*BMCFilterer) FilterMessage ¶
func (_BMC *BMCFilterer) FilterMessage(opts *bind.FilterOpts, _next []string, _seq []*big.Int) (*BMCMessageIterator, error)
FilterMessage is a free log retrieval operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.
Solidity: event Message(string indexed _next, uint256 indexed _seq, bytes _msg)
func (*BMCFilterer) FilterMessageDropped ¶
func (_BMC *BMCFilterer) FilterMessageDropped(opts *bind.FilterOpts, _prev []string, _seq []*big.Int) (*BMCMessageDroppedIterator, error)
FilterMessageDropped is a free log retrieval operation binding the contract event 0x35348898083dc8da7eb4e604320d7cc250732cc1f584d2596f670b5d6bab8de5.
Solidity: event MessageDropped(string indexed _prev, uint256 indexed _seq, bytes _msg, uint256 _ecode, string _emsg)
func (*BMCFilterer) ParseBTPEvent ¶
func (_BMC *BMCFilterer) ParseBTPEvent(log types.Log) (*BMCBTPEvent, error)
ParseBTPEvent is a log parse operation binding the contract event 0x51f135d1c44e53689ca91af3b1bce4918d2b590d92bb76a854ab30e7de741828.
Solidity: event BTPEvent(string indexed _src, int256 indexed _nsn, string _next, string _event)
func (*BMCFilterer) ParseClaimReward ¶
func (_BMC *BMCFilterer) ParseClaimReward(log types.Log) (*BMCClaimReward, error)
ParseClaimReward is a log parse operation binding the contract event 0x92a1bf3ab6e4839bb58db5f99ae98936355e94c1223779807563d1a08a3bf449.
Solidity: event ClaimReward(address indexed _sender, string indexed _network, string _receiver, uint256 _amount, int256 _nsn)
func (*BMCFilterer) ParseClaimRewardResult ¶
func (_BMC *BMCFilterer) ParseClaimRewardResult(log types.Log) (*BMCClaimRewardResult, error)
ParseClaimRewardResult is a log parse operation binding the contract event 0xe4a536fde1966a83411167748abc5fbd80e0247bffe941ca4ddb5079fd730636.
Solidity: event ClaimRewardResult(address indexed _sender, string indexed _network, int256 _nsn, uint256 _result)
func (*BMCFilterer) ParseInitialized ¶
func (_BMC *BMCFilterer) ParseInitialized(log types.Log) (*BMCInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*BMCFilterer) ParseMessage ¶
func (_BMC *BMCFilterer) ParseMessage(log types.Log) (*BMCMessage, error)
ParseMessage is a log parse operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.
Solidity: event Message(string indexed _next, uint256 indexed _seq, bytes _msg)
func (*BMCFilterer) ParseMessageDropped ¶
func (_BMC *BMCFilterer) ParseMessageDropped(log types.Log) (*BMCMessageDropped, error)
ParseMessageDropped is a log parse operation binding the contract event 0x35348898083dc8da7eb4e604320d7cc250732cc1f584d2596f670b5d6bab8de5.
Solidity: event MessageDropped(string indexed _prev, uint256 indexed _seq, bytes _msg, uint256 _ecode, string _emsg)
func (*BMCFilterer) WatchBTPEvent ¶
func (_BMC *BMCFilterer) WatchBTPEvent(opts *bind.WatchOpts, sink chan<- *BMCBTPEvent, _src []string, _nsn []*big.Int) (event.Subscription, error)
WatchBTPEvent is a free log subscription operation binding the contract event 0x51f135d1c44e53689ca91af3b1bce4918d2b590d92bb76a854ab30e7de741828.
Solidity: event BTPEvent(string indexed _src, int256 indexed _nsn, string _next, string _event)
func (*BMCFilterer) WatchClaimReward ¶
func (_BMC *BMCFilterer) WatchClaimReward(opts *bind.WatchOpts, sink chan<- *BMCClaimReward, _sender []common.Address, _network []string) (event.Subscription, error)
WatchClaimReward is a free log subscription operation binding the contract event 0x92a1bf3ab6e4839bb58db5f99ae98936355e94c1223779807563d1a08a3bf449.
Solidity: event ClaimReward(address indexed _sender, string indexed _network, string _receiver, uint256 _amount, int256 _nsn)
func (*BMCFilterer) WatchClaimRewardResult ¶
func (_BMC *BMCFilterer) WatchClaimRewardResult(opts *bind.WatchOpts, sink chan<- *BMCClaimRewardResult, _sender []common.Address, _network []string) (event.Subscription, error)
WatchClaimRewardResult is a free log subscription operation binding the contract event 0xe4a536fde1966a83411167748abc5fbd80e0247bffe941ca4ddb5079fd730636.
Solidity: event ClaimRewardResult(address indexed _sender, string indexed _network, int256 _nsn, uint256 _result)
func (*BMCFilterer) WatchInitialized ¶
func (_BMC *BMCFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BMCInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*BMCFilterer) WatchMessage ¶
func (_BMC *BMCFilterer) WatchMessage(opts *bind.WatchOpts, sink chan<- *BMCMessage, _next []string, _seq []*big.Int) (event.Subscription, error)
WatchMessage is a free log subscription operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.
Solidity: event Message(string indexed _next, uint256 indexed _seq, bytes _msg)
func (*BMCFilterer) WatchMessageDropped ¶
func (_BMC *BMCFilterer) WatchMessageDropped(opts *bind.WatchOpts, sink chan<- *BMCMessageDropped, _prev []string, _seq []*big.Int) (event.Subscription, error)
WatchMessageDropped is a free log subscription operation binding the contract event 0x35348898083dc8da7eb4e604320d7cc250732cc1f584d2596f670b5d6bab8de5.
Solidity: event MessageDropped(string indexed _prev, uint256 indexed _seq, bytes _msg, uint256 _ecode, string _emsg)
type BMCInitialized ¶
BMCInitialized represents a Initialized event raised by the BMC contract.
type BMCInitializedIterator ¶
type BMCInitializedIterator struct { Event *BMCInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BMCInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the BMC contract.
func (*BMCInitializedIterator) Close ¶
func (it *BMCInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BMCInitializedIterator) Error ¶
func (it *BMCInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BMCInitializedIterator) Next ¶
func (it *BMCInitializedIterator) 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 BMCMessage ¶
type BMCMessage struct { Next common.Hash Seq *big.Int Msg []byte Raw types.Log // Blockchain specific contextual infos }
BMCMessage represents a Message event raised by the BMC contract.
type BMCMessageDropped ¶
type BMCMessageDropped struct { Prev common.Hash Seq *big.Int Msg []byte Ecode *big.Int Emsg string Raw types.Log // Blockchain specific contextual infos }
BMCMessageDropped represents a MessageDropped event raised by the BMC contract.
type BMCMessageDroppedIterator ¶
type BMCMessageDroppedIterator struct { Event *BMCMessageDropped // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BMCMessageDroppedIterator is returned from FilterMessageDropped and is used to iterate over the raw logs and unpacked data for MessageDropped events raised by the BMC contract.
func (*BMCMessageDroppedIterator) Close ¶
func (it *BMCMessageDroppedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BMCMessageDroppedIterator) Error ¶
func (it *BMCMessageDroppedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BMCMessageDroppedIterator) Next ¶
func (it *BMCMessageDroppedIterator) 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 BMCMessageIterator ¶
type BMCMessageIterator struct { Event *BMCMessage // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BMCMessageIterator is returned from FilterMessage and is used to iterate over the raw logs and unpacked data for Message events raised by the BMC contract.
func (*BMCMessageIterator) Close ¶
func (it *BMCMessageIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BMCMessageIterator) Error ¶
func (it *BMCMessageIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BMCMessageIterator) Next ¶
func (it *BMCMessageIterator) 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 BMCRaw ¶
type BMCRaw struct {
Contract *BMC // Generic contract binding to access the raw methods on
}
BMCRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BMCRaw) Call ¶
func (_BMC *BMCRaw) 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 (*BMCRaw) Transact ¶
func (_BMC *BMCRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BMCRaw) Transfer ¶
func (_BMC *BMCRaw) 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 BMCSession ¶
type BMCSession struct { Contract *BMC // 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 }
BMCSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BMCSession) ClaimReward ¶
func (_BMC *BMCSession) ClaimReward(_network string, _receiver string) (*types.Transaction, error)
ClaimReward is a paid mutator transaction binding the contract method 0xcb7477b5.
Solidity: function claimReward(string _network, string _receiver) payable returns()
func (*BMCSession) ClearSeq ¶
func (_BMC *BMCSession) ClearSeq(_link string) (*types.Transaction, error)
ClearSeq is a paid mutator transaction binding the contract method 0x019d2420.
Solidity: function clearSeq(string _link) returns()
func (*BMCSession) DropMessage ¶
func (_BMC *BMCSession) DropMessage(_prev string, _seq *big.Int, _msg TypesBTPMessage) (*types.Transaction, error)
DropMessage is a paid mutator transaction binding the contract method 0x39ff9dc1.
Solidity: function dropMessage(string _prev, uint256 _seq, (string,string,string,int256,bytes,int256,(string,uint256[])) _msg) returns()
func (*BMCSession) EmitClaimRewardResult ¶
func (_BMC *BMCSession) EmitClaimRewardResult(_sender common.Address, _network string, _nsn *big.Int, _result *big.Int) (*types.Transaction, error)
EmitClaimRewardResult is a paid mutator transaction binding the contract method 0x947dfac2.
Solidity: function emitClaimRewardResult(address _sender, string _network, int256 _nsn, uint256 _result) returns()
func (*BMCSession) GetBtpAddress ¶
func (_BMC *BMCSession) GetBtpAddress() (string, error)
GetBtpAddress is a free data retrieval call binding the contract method 0x4f63a21d.
Solidity: function getBtpAddress() view returns(string)
func (*BMCSession) GetFee ¶
GetFee is a free data retrieval call binding the contract method 0x7d4c4f4a.
Solidity: function getFee(string _to, bool _response) view returns(uint256)
func (*BMCSession) GetNetworkAddress ¶
func (_BMC *BMCSession) GetNetworkAddress() (string, error)
GetNetworkAddress is a free data retrieval call binding the contract method 0x6bf459cb.
Solidity: function getNetworkAddress() view returns(string)
func (*BMCSession) GetNetworkSn ¶
func (_BMC *BMCSession) GetNetworkSn() (*big.Int, error)
GetNetworkSn is a free data retrieval call binding the contract method 0x676286ba.
Solidity: function getNetworkSn() view returns(int256)
func (*BMCSession) GetReward ¶
GetReward is a free data retrieval call binding the contract method 0x64cd3750.
Solidity: function getReward(string _network, address _addr) view returns(uint256)
func (*BMCSession) GetStatus ¶
func (_BMC *BMCSession) GetStatus(_link string) (TypesLinkStatus, error)
GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.
Solidity: function getStatus(string _link) view returns((uint256,uint256,(uint256,bytes),uint256))
func (*BMCSession) HandleRelayMessage ¶
func (_BMC *BMCSession) HandleRelayMessage(_prev string, _msg []byte) (*types.Transaction, error)
HandleRelayMessage is a paid mutator transaction binding the contract method 0x21b1e9bb.
Solidity: function handleRelayMessage(string _prev, bytes _msg) returns()
func (*BMCSession) Initialize ¶
func (_BMC *BMCSession) Initialize(_network string, _bmcManagementAddr common.Address, _bmcServiceAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x463fd1af.
Solidity: function initialize(string _network, address _bmcManagementAddr, address _bmcServiceAddr) returns()
func (*BMCSession) Receive ¶
func (_BMC *BMCSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*BMCSession) SendInternal ¶
func (_BMC *BMCSession) SendInternal(_next string, _msg []byte) (*types.Transaction, error)
SendInternal is a paid mutator transaction binding the contract method 0xdf9ccb10.
Solidity: function sendInternal(string _next, bytes _msg) returns()
func (*BMCSession) SendMessage ¶
func (_BMC *BMCSession) SendMessage(_to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)
SendMessage is a paid mutator transaction binding the contract method 0x522a901e.
Solidity: function sendMessage(string _to, string _svc, int256 _sn, bytes _msg) payable returns(int256)
type BMCTransactor ¶
type BMCTransactor struct {
// contains filtered or unexported fields
}
BMCTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBMCTransactor ¶
func NewBMCTransactor(address common.Address, transactor bind.ContractTransactor) (*BMCTransactor, error)
NewBMCTransactor creates a new write-only instance of BMC, bound to a specific deployed contract.
func (*BMCTransactor) ClaimReward ¶
func (_BMC *BMCTransactor) ClaimReward(opts *bind.TransactOpts, _network string, _receiver string) (*types.Transaction, error)
ClaimReward is a paid mutator transaction binding the contract method 0xcb7477b5.
Solidity: function claimReward(string _network, string _receiver) payable returns()
func (*BMCTransactor) ClearSeq ¶
func (_BMC *BMCTransactor) ClearSeq(opts *bind.TransactOpts, _link string) (*types.Transaction, error)
ClearSeq is a paid mutator transaction binding the contract method 0x019d2420.
Solidity: function clearSeq(string _link) returns()
func (*BMCTransactor) DropMessage ¶
func (_BMC *BMCTransactor) DropMessage(opts *bind.TransactOpts, _prev string, _seq *big.Int, _msg TypesBTPMessage) (*types.Transaction, error)
DropMessage is a paid mutator transaction binding the contract method 0x39ff9dc1.
Solidity: function dropMessage(string _prev, uint256 _seq, (string,string,string,int256,bytes,int256,(string,uint256[])) _msg) returns()
func (*BMCTransactor) EmitClaimRewardResult ¶
func (_BMC *BMCTransactor) EmitClaimRewardResult(opts *bind.TransactOpts, _sender common.Address, _network string, _nsn *big.Int, _result *big.Int) (*types.Transaction, error)
EmitClaimRewardResult is a paid mutator transaction binding the contract method 0x947dfac2.
Solidity: function emitClaimRewardResult(address _sender, string _network, int256 _nsn, uint256 _result) returns()
func (*BMCTransactor) HandleRelayMessage ¶
func (_BMC *BMCTransactor) HandleRelayMessage(opts *bind.TransactOpts, _prev string, _msg []byte) (*types.Transaction, error)
HandleRelayMessage is a paid mutator transaction binding the contract method 0x21b1e9bb.
Solidity: function handleRelayMessage(string _prev, bytes _msg) returns()
func (*BMCTransactor) Initialize ¶
func (_BMC *BMCTransactor) Initialize(opts *bind.TransactOpts, _network string, _bmcManagementAddr common.Address, _bmcServiceAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x463fd1af.
Solidity: function initialize(string _network, address _bmcManagementAddr, address _bmcServiceAddr) returns()
func (*BMCTransactor) Receive ¶
func (_BMC *BMCTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*BMCTransactor) SendInternal ¶
func (_BMC *BMCTransactor) SendInternal(opts *bind.TransactOpts, _next string, _msg []byte) (*types.Transaction, error)
SendInternal is a paid mutator transaction binding the contract method 0xdf9ccb10.
Solidity: function sendInternal(string _next, bytes _msg) returns()
func (*BMCTransactor) SendMessage ¶
func (_BMC *BMCTransactor) SendMessage(opts *bind.TransactOpts, _to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)
SendMessage is a paid mutator transaction binding the contract method 0x522a901e.
Solidity: function sendMessage(string _to, string _svc, int256 _sn, bytes _msg) payable returns(int256)
type BMCTransactorRaw ¶
type BMCTransactorRaw struct {
Contract *BMCTransactor // Generic write-only contract binding to access the raw methods on
}
BMCTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BMCTransactorRaw) Transact ¶
func (_BMC *BMCTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BMCTransactorRaw) Transfer ¶
func (_BMC *BMCTransactorRaw) 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 BMCTransactorSession ¶
type BMCTransactorSession struct { Contract *BMCTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BMCTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BMCTransactorSession) ClaimReward ¶
func (_BMC *BMCTransactorSession) ClaimReward(_network string, _receiver string) (*types.Transaction, error)
ClaimReward is a paid mutator transaction binding the contract method 0xcb7477b5.
Solidity: function claimReward(string _network, string _receiver) payable returns()
func (*BMCTransactorSession) ClearSeq ¶
func (_BMC *BMCTransactorSession) ClearSeq(_link string) (*types.Transaction, error)
ClearSeq is a paid mutator transaction binding the contract method 0x019d2420.
Solidity: function clearSeq(string _link) returns()
func (*BMCTransactorSession) DropMessage ¶
func (_BMC *BMCTransactorSession) DropMessage(_prev string, _seq *big.Int, _msg TypesBTPMessage) (*types.Transaction, error)
DropMessage is a paid mutator transaction binding the contract method 0x39ff9dc1.
Solidity: function dropMessage(string _prev, uint256 _seq, (string,string,string,int256,bytes,int256,(string,uint256[])) _msg) returns()
func (*BMCTransactorSession) EmitClaimRewardResult ¶
func (_BMC *BMCTransactorSession) EmitClaimRewardResult(_sender common.Address, _network string, _nsn *big.Int, _result *big.Int) (*types.Transaction, error)
EmitClaimRewardResult is a paid mutator transaction binding the contract method 0x947dfac2.
Solidity: function emitClaimRewardResult(address _sender, string _network, int256 _nsn, uint256 _result) returns()
func (*BMCTransactorSession) HandleRelayMessage ¶
func (_BMC *BMCTransactorSession) HandleRelayMessage(_prev string, _msg []byte) (*types.Transaction, error)
HandleRelayMessage is a paid mutator transaction binding the contract method 0x21b1e9bb.
Solidity: function handleRelayMessage(string _prev, bytes _msg) returns()
func (*BMCTransactorSession) Initialize ¶
func (_BMC *BMCTransactorSession) Initialize(_network string, _bmcManagementAddr common.Address, _bmcServiceAddr common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x463fd1af.
Solidity: function initialize(string _network, address _bmcManagementAddr, address _bmcServiceAddr) returns()
func (*BMCTransactorSession) Receive ¶
func (_BMC *BMCTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*BMCTransactorSession) SendInternal ¶
func (_BMC *BMCTransactorSession) SendInternal(_next string, _msg []byte) (*types.Transaction, error)
SendInternal is a paid mutator transaction binding the contract method 0xdf9ccb10.
Solidity: function sendInternal(string _next, bytes _msg) returns()
func (*BMCTransactorSession) SendMessage ¶
func (_BMC *BMCTransactorSession) SendMessage(_to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)
SendMessage is a paid mutator transaction binding the contract method 0x522a901e.
Solidity: function sendMessage(string _to, string _svc, int256 _sn, bytes _msg) payable returns(int256)
type ConsensusLayer ¶
type ConsensusLayer struct {
// contains filtered or unexported fields
}
func NewConsensusLayer ¶
func NewConsensusLayer(uri string, log log.Logger) (*ConsensusLayer, error)
func (*ConsensusLayer) BeaconBlock ¶
func (c *ConsensusLayer) BeaconBlock(blockID string) (*spec.VersionedSignedBeaconBlock, error)
func (*ConsensusLayer) BeaconBlockHeader ¶
func (c *ConsensusLayer) BeaconBlockHeader(blockID string) (*apiv1.BeaconBlockHeader, error)
func (*ConsensusLayer) BeaconBlockRoot ¶
func (c *ConsensusLayer) BeaconBlockRoot(blockID string) (*phase0.Root, error)
func (*ConsensusLayer) Events ¶
func (c *ConsensusLayer) Events(topics []string, handler eth2client.EventHandlerFunc) error
func (*ConsensusLayer) FinalityCheckpoints ¶ added in v0.3.0
func (c *ConsensusLayer) FinalityCheckpoints(stateID string) (*apiv1.Finality, error)
func (*ConsensusLayer) GetReceiptsRootProof ¶
func (c *ConsensusLayer) GetReceiptsRootProof(slot int64) ([]byte, error)
func (*ConsensusLayer) GetStateProofWithGIndex ¶
func (c *ConsensusLayer) GetStateProofWithGIndex(stateId string, gindex uint64) ([]byte, error)
func (*ConsensusLayer) LightClientBootstrap ¶
func (c *ConsensusLayer) LightClientBootstrap(blockRoot phase0.Root) (*LightClientBootstrap, error)
func (*ConsensusLayer) LightClientFinalityUpdate ¶
func (c *ConsensusLayer) LightClientFinalityUpdate() (*LightClientFinalityUpdate, error)
func (*ConsensusLayer) LightClientOptimisticUpdate ¶
func (c *ConsensusLayer) LightClientOptimisticUpdate() (*LightClientOptimisticUpdate, error)
func (*ConsensusLayer) LightClientUpdates ¶
func (c *ConsensusLayer) LightClientUpdates(startPeriod, count uint64) ([]*LightClientUpdate, error)
func (*ConsensusLayer) SlotToBlockNumber ¶
func (c *ConsensusLayer) SlotToBlockNumber(slot phase0.Slot) (uint64, error)
SlotToBlockNumber returns execution block number for consensus slot If slot has no block, returns (0, nil).
func (*ConsensusLayer) Term ¶
func (c *ConsensusLayer) Term()
type ExecutionLayer ¶
type ExecutionLayer struct {
// contains filtered or unexported fields
}
func NewExecutionLayer ¶
func NewExecutionLayer(url string, log log.Logger) (*ExecutionLayer, error)
func (*ExecutionLayer) BlockByNumber ¶
func (*ExecutionLayer) FeeHistory ¶ added in v0.4.0
func (*ExecutionLayer) FilterLogs ¶
func (c *ExecutionLayer) FilterLogs(fq ethereum.FilterQuery) ([]types.Log, error)
func (*ExecutionLayer) GetBackend ¶
func (c *ExecutionLayer) GetBackend() bind.ContractBackend
func (*ExecutionLayer) GetChainID ¶
func (c *ExecutionLayer) GetChainID() (*big.Int, error)
func (*ExecutionLayer) GetRevertMessage ¶
func (c *ExecutionLayer) GetRevertMessage(txHash common.Hash) (string, error)
func (*ExecutionLayer) NewTransactOpts ¶
func (c *ExecutionLayer) NewTransactOpts(k *ecdsa.PrivateKey, gasLimit uint64) (*bind.TransactOpts, error)
func (*ExecutionLayer) TransactionByHash ¶
func (c *ExecutionLayer) TransactionByHash(hash common.Hash) (tx *types.Transaction, isPending bool, err error)
func (*ExecutionLayer) TransactionReceipt ¶
type IBMVVerifierStatus ¶
IBMVVerifierStatus is an auto generated low-level Go binding around an user-defined struct.
type LightClientBootstrap ¶ added in v0.9.0
type LightClientBootstrap struct { Header *altair.LightClientHeader CurrentSyncCommittee *altair.SyncCommittee CurrentSyncCommitteeBranch [][]byte `ssz-size:"5,32"` }
type LightClientFinalityUpdate ¶ added in v0.8.0
type LightClientFinalityUpdate struct { AttestedHeader *altair.LightClientHeader FinalizedHeader *altair.LightClientHeader FinalityBranch [][]byte SyncAggregate *altair.SyncAggregate SignatureSlot phase0.Slot FinalizedBlockNumber uint64 }
func ToLightClientFinalityUpdate ¶ added in v0.9.0
func ToLightClientFinalityUpdate(data *spec.VersionedLCFinalityUpdate) (*LightClientFinalityUpdate, error)
type LightClientHeader ¶ added in v0.9.0
type LightClientHeader interface { Slot() phase0.Slot BlockNumber() uint64 ToAltair() *altair.LightClientHeader }
func LightClientHeaderFromBeaconBlockHeader ¶ added in v0.9.0
func LightClientHeaderFromBeaconBlockHeader(bh *apiv1.BeaconBlockHeader) LightClientHeader
type LightClientOptimisticUpdate ¶ added in v0.9.0
type LightClientOptimisticUpdate struct { AttestedHeader *altair.LightClientHeader SyncAggregate *altair.SyncAggregate SignatureSlot phase0.Slot // contains filtered or unexported fields }
func ToLightClientOptimisticUpdate ¶ added in v0.9.0
func ToLightClientOptimisticUpdate(data *spec.VersionedLCOptimisticUpdate) (*LightClientOptimisticUpdate, error)
func (*LightClientOptimisticUpdate) BlockNumber ¶ added in v0.9.0
func (l *LightClientOptimisticUpdate) BlockNumber() uint64
func (*LightClientOptimisticUpdate) Slot ¶ added in v0.9.0
func (l *LightClientOptimisticUpdate) Slot() phase0.Slot
func (*LightClientOptimisticUpdate) ToAltair ¶ added in v0.9.0
func (l *LightClientOptimisticUpdate) ToAltair() *altair.LightClientHeader
type LightClientUpdate ¶ added in v0.9.0
type LightClientUpdate struct { AttestedHeader *altair.LightClientHeader NextSyncCommittee *altair.SyncCommittee NextSyncCommitteeBranch [][]byte FinalizedHeader *altair.LightClientHeader FinalityBranch [][]byte SyncAggregate *altair.SyncAggregate SignatureSlot phase0.Slot }
func (*LightClientUpdate) String ¶ added in v0.9.0
func (l *LightClientUpdate) String() string
type TypesBTPMessage ¶
type TypesBTPMessage struct { Src string Dst string Svc string Sn *big.Int Message []byte Nsn *big.Int FeeInfo TypesFeeInfo }
TypesBTPMessage is an auto generated low-level Go binding around an user-defined struct.
type TypesFeeInfo ¶
TypesFeeInfo is an auto generated low-level Go binding around an user-defined struct.
type TypesLinkStatus ¶
type TypesLinkStatus struct { RxSeq *big.Int TxSeq *big.Int Verifier IBMVVerifierStatus CurrentHeight *big.Int }
TypesLinkStatus is an auto generated low-level Go binding around an user-defined struct.