bmcperiphery

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BmcperipheryABI = "" /* 4315-byte string literal not displayed */

BmcperipheryABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bmcperiphery

type Bmcperiphery struct {
	BmcperipheryCaller     // Read-only binding to the contract
	BmcperipheryTransactor // Write-only binding to the contract
	BmcperipheryFilterer   // Log filterer for contract events
}

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

func NewBmcperiphery

func NewBmcperiphery(address common.Address, backend bind.ContractBackend) (*Bmcperiphery, error)

NewBmcperiphery creates a new instance of Bmcperiphery, bound to a specific deployed contract.

type BmcperipheryCaller

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

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

func NewBmcperipheryCaller

func NewBmcperipheryCaller(address common.Address, caller bind.ContractCaller) (*BmcperipheryCaller, error)

NewBmcperipheryCaller creates a new read-only instance of Bmcperiphery, bound to a specific deployed contract.

func (*BmcperipheryCaller) GetBmcBtpAddress

func (_Bmcperiphery *BmcperipheryCaller) GetBmcBtpAddress(opts *bind.CallOpts) (string, error)

GetBmcBtpAddress is a free data retrieval call binding the contract method 0x2a4011e9.

Solidity: function getBmcBtpAddress() view returns(string)

func (*BmcperipheryCaller) GetStatus

func (_Bmcperiphery *BmcperipheryCaller) GetStatus(opts *bind.CallOpts, _link string) (TypesLinkStats, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(string _link) view returns((uint256,uint256,uint256,uint256) _linkStats)

func (*BmcperipheryCaller) TryDecodeBMCService

func (_Bmcperiphery *BmcperipheryCaller) TryDecodeBMCService(opts *bind.CallOpts, _msg []byte) (TypesBMCService, error)

TryDecodeBMCService is a free data retrieval call binding the contract method 0x2294c488.

Solidity: function tryDecodeBMCService(bytes _msg) pure returns((string,bytes))

func (*BmcperipheryCaller) TryDecodeBTPMessage

func (_Bmcperiphery *BmcperipheryCaller) TryDecodeBTPMessage(opts *bind.CallOpts, _rlp []byte) (TypesBMCMessage, error)

TryDecodeBTPMessage is a free data retrieval call binding the contract method 0x23c31a43.

Solidity: function tryDecodeBTPMessage(bytes _rlp) pure returns((string,string,string,int256,bytes))

func (*BmcperipheryCaller) TryDecodeGatherFeeMessage

func (_Bmcperiphery *BmcperipheryCaller) TryDecodeGatherFeeMessage(opts *bind.CallOpts, _msg []byte) (TypesGatherFeeMessage, error)

TryDecodeGatherFeeMessage is a free data retrieval call binding the contract method 0x9624379f.

Solidity: function tryDecodeGatherFeeMessage(bytes _msg) pure returns((string,string[]))

type BmcperipheryCallerRaw

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

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

func (*BmcperipheryCallerRaw) Call

func (_Bmcperiphery *BmcperipheryCallerRaw) 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 BmcperipheryCallerSession

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

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

func (*BmcperipheryCallerSession) GetBmcBtpAddress

func (_Bmcperiphery *BmcperipheryCallerSession) GetBmcBtpAddress() (string, error)

GetBmcBtpAddress is a free data retrieval call binding the contract method 0x2a4011e9.

Solidity: function getBmcBtpAddress() view returns(string)

func (*BmcperipheryCallerSession) GetStatus

func (_Bmcperiphery *BmcperipheryCallerSession) GetStatus(_link string) (TypesLinkStats, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(string _link) view returns((uint256,uint256,uint256,uint256) _linkStats)

func (*BmcperipheryCallerSession) TryDecodeBMCService

func (_Bmcperiphery *BmcperipheryCallerSession) TryDecodeBMCService(_msg []byte) (TypesBMCService, error)

TryDecodeBMCService is a free data retrieval call binding the contract method 0x2294c488.

Solidity: function tryDecodeBMCService(bytes _msg) pure returns((string,bytes))

func (*BmcperipheryCallerSession) TryDecodeBTPMessage

func (_Bmcperiphery *BmcperipheryCallerSession) TryDecodeBTPMessage(_rlp []byte) (TypesBMCMessage, error)

TryDecodeBTPMessage is a free data retrieval call binding the contract method 0x23c31a43.

Solidity: function tryDecodeBTPMessage(bytes _rlp) pure returns((string,string,string,int256,bytes))

func (*BmcperipheryCallerSession) TryDecodeGatherFeeMessage

func (_Bmcperiphery *BmcperipheryCallerSession) TryDecodeGatherFeeMessage(_msg []byte) (TypesGatherFeeMessage, error)

TryDecodeGatherFeeMessage is a free data retrieval call binding the contract method 0x9624379f.

Solidity: function tryDecodeGatherFeeMessage(bytes _msg) pure returns((string,string[]))

type BmcperipheryErrorOnBTPError

type BmcperipheryErrorOnBTPError struct {
	Svc        string
	Sn         *big.Int
	Code       *big.Int
	ErrMsg     string
	SvcErrCode *big.Int
	SvcErrMsg  string
	Raw        types.Log // Blockchain specific contextual infos
}

BmcperipheryErrorOnBTPError represents a ErrorOnBTPError event raised by the Bmcperiphery contract.

type BmcperipheryErrorOnBTPErrorIterator

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

BmcperipheryErrorOnBTPErrorIterator is returned from FilterErrorOnBTPError and is used to iterate over the raw logs and unpacked data for ErrorOnBTPError events raised by the Bmcperiphery contract.

func (*BmcperipheryErrorOnBTPErrorIterator) Close

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

func (*BmcperipheryErrorOnBTPErrorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BmcperipheryErrorOnBTPErrorIterator) 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 BmcperipheryFilterer

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

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

func NewBmcperipheryFilterer

func NewBmcperipheryFilterer(address common.Address, filterer bind.ContractFilterer) (*BmcperipheryFilterer, error)

NewBmcperipheryFilterer creates a new log filterer instance of Bmcperiphery, bound to a specific deployed contract.

func (*BmcperipheryFilterer) FilterErrorOnBTPError

func (_Bmcperiphery *BmcperipheryFilterer) FilterErrorOnBTPError(opts *bind.FilterOpts) (*BmcperipheryErrorOnBTPErrorIterator, error)

FilterErrorOnBTPError is a free log retrieval operation binding the contract event 0x45eab163faa71c8b113fcbc0dcc77bd39e7e3365be446895b5169bd97fc5522a.

Solidity: event ErrorOnBTPError(string _svc, int256 _sn, uint256 _code, string _errMsg, uint256 _svcErrCode, string _svcErrMsg)

func (*BmcperipheryFilterer) FilterInitialized

func (_Bmcperiphery *BmcperipheryFilterer) FilterInitialized(opts *bind.FilterOpts) (*BmcperipheryInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*BmcperipheryFilterer) FilterMessage

func (_Bmcperiphery *BmcperipheryFilterer) FilterMessage(opts *bind.FilterOpts) (*BmcperipheryMessageIterator, error)

FilterMessage is a free log retrieval operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.

Solidity: event Message(string _next, uint256 _seq, bytes _msg)

func (*BmcperipheryFilterer) ParseErrorOnBTPError

func (_Bmcperiphery *BmcperipheryFilterer) ParseErrorOnBTPError(log types.Log) (*BmcperipheryErrorOnBTPError, error)

ParseErrorOnBTPError is a log parse operation binding the contract event 0x45eab163faa71c8b113fcbc0dcc77bd39e7e3365be446895b5169bd97fc5522a.

Solidity: event ErrorOnBTPError(string _svc, int256 _sn, uint256 _code, string _errMsg, uint256 _svcErrCode, string _svcErrMsg)

func (*BmcperipheryFilterer) ParseInitialized

func (_Bmcperiphery *BmcperipheryFilterer) ParseInitialized(log types.Log) (*BmcperipheryInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*BmcperipheryFilterer) ParseMessage

func (_Bmcperiphery *BmcperipheryFilterer) ParseMessage(log types.Log) (*BmcperipheryMessage, error)

ParseMessage is a log parse operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.

Solidity: event Message(string _next, uint256 _seq, bytes _msg)

func (*BmcperipheryFilterer) WatchErrorOnBTPError

func (_Bmcperiphery *BmcperipheryFilterer) WatchErrorOnBTPError(opts *bind.WatchOpts, sink chan<- *BmcperipheryErrorOnBTPError) (event.Subscription, error)

WatchErrorOnBTPError is a free log subscription operation binding the contract event 0x45eab163faa71c8b113fcbc0dcc77bd39e7e3365be446895b5169bd97fc5522a.

Solidity: event ErrorOnBTPError(string _svc, int256 _sn, uint256 _code, string _errMsg, uint256 _svcErrCode, string _svcErrMsg)

func (*BmcperipheryFilterer) WatchInitialized

func (_Bmcperiphery *BmcperipheryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BmcperipheryInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*BmcperipheryFilterer) WatchMessage

func (_Bmcperiphery *BmcperipheryFilterer) WatchMessage(opts *bind.WatchOpts, sink chan<- *BmcperipheryMessage) (event.Subscription, error)

WatchMessage is a free log subscription operation binding the contract event 0x37be353f216cf7e33639101fd610c542e6a0c0109173fa1c1d8b04d34edb7c1b.

Solidity: event Message(string _next, uint256 _seq, bytes _msg)

type BmcperipheryInitialized

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

BmcperipheryInitialized represents a Initialized event raised by the Bmcperiphery contract.

type BmcperipheryInitializedIterator

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

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

func (*BmcperipheryInitializedIterator) Close

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

func (*BmcperipheryInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BmcperipheryInitializedIterator) 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 BmcperipheryMessage

type BmcperipheryMessage struct {
	Next string
	Seq  *big.Int
	Msg  []byte
	Raw  types.Log // Blockchain specific contextual infos
}

BmcperipheryMessage represents a Message event raised by the Bmcperiphery contract.

type BmcperipheryMessageIterator

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

BmcperipheryMessageIterator is returned from FilterMessage and is used to iterate over the raw logs and unpacked data for Message events raised by the Bmcperiphery contract.

func (*BmcperipheryMessageIterator) Close

func (it *BmcperipheryMessageIterator) Close() error

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

func (*BmcperipheryMessageIterator) Error

func (it *BmcperipheryMessageIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BmcperipheryMessageIterator) Next

func (it *BmcperipheryMessageIterator) 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 BmcperipheryRaw

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

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

func (*BmcperipheryRaw) Call

func (_Bmcperiphery *BmcperipheryRaw) 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 (*BmcperipheryRaw) Transact

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

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

func (*BmcperipheryRaw) Transfer

func (_Bmcperiphery *BmcperipheryRaw) 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 BmcperipherySession

type BmcperipherySession struct {
	Contract     *Bmcperiphery     // 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
}

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

func (*BmcperipherySession) GetBmcBtpAddress

func (_Bmcperiphery *BmcperipherySession) GetBmcBtpAddress() (string, error)

GetBmcBtpAddress is a free data retrieval call binding the contract method 0x2a4011e9.

Solidity: function getBmcBtpAddress() view returns(string)

func (*BmcperipherySession) GetStatus

func (_Bmcperiphery *BmcperipherySession) GetStatus(_link string) (TypesLinkStats, error)

GetStatus is a free data retrieval call binding the contract method 0x22b05ed2.

Solidity: function getStatus(string _link) view returns((uint256,uint256,uint256,uint256) _linkStats)

func (*BmcperipherySession) HandleRelayMessage

func (_Bmcperiphery *BmcperipherySession) 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 (*BmcperipherySession) Initialize

func (_Bmcperiphery *BmcperipherySession) Initialize(_network string, _bmcManagementAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(string _network, address _bmcManagementAddr) returns()

func (*BmcperipherySession) SendMessage

func (_Bmcperiphery *BmcperipherySession) SendMessage(_to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0xbf6c1d9a.

Solidity: function sendMessage(string _to, string _svc, uint256 _sn, bytes _msg) returns()

func (*BmcperipherySession) TryDecodeBMCService

func (_Bmcperiphery *BmcperipherySession) TryDecodeBMCService(_msg []byte) (TypesBMCService, error)

TryDecodeBMCService is a free data retrieval call binding the contract method 0x2294c488.

Solidity: function tryDecodeBMCService(bytes _msg) pure returns((string,bytes))

func (*BmcperipherySession) TryDecodeBTPMessage

func (_Bmcperiphery *BmcperipherySession) TryDecodeBTPMessage(_rlp []byte) (TypesBMCMessage, error)

TryDecodeBTPMessage is a free data retrieval call binding the contract method 0x23c31a43.

Solidity: function tryDecodeBTPMessage(bytes _rlp) pure returns((string,string,string,int256,bytes))

func (*BmcperipherySession) TryDecodeGatherFeeMessage

func (_Bmcperiphery *BmcperipherySession) TryDecodeGatherFeeMessage(_msg []byte) (TypesGatherFeeMessage, error)

TryDecodeGatherFeeMessage is a free data retrieval call binding the contract method 0x9624379f.

Solidity: function tryDecodeGatherFeeMessage(bytes _msg) pure returns((string,string[]))

type BmcperipheryTransactor

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

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

func NewBmcperipheryTransactor

func NewBmcperipheryTransactor(address common.Address, transactor bind.ContractTransactor) (*BmcperipheryTransactor, error)

NewBmcperipheryTransactor creates a new write-only instance of Bmcperiphery, bound to a specific deployed contract.

func (*BmcperipheryTransactor) HandleRelayMessage

func (_Bmcperiphery *BmcperipheryTransactor) 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 (*BmcperipheryTransactor) Initialize

func (_Bmcperiphery *BmcperipheryTransactor) Initialize(opts *bind.TransactOpts, _network string, _bmcManagementAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(string _network, address _bmcManagementAddr) returns()

func (*BmcperipheryTransactor) SendMessage

func (_Bmcperiphery *BmcperipheryTransactor) 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 0xbf6c1d9a.

Solidity: function sendMessage(string _to, string _svc, uint256 _sn, bytes _msg) returns()

type BmcperipheryTransactorRaw

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

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

func (*BmcperipheryTransactorRaw) Transact

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

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

func (*BmcperipheryTransactorRaw) Transfer

func (_Bmcperiphery *BmcperipheryTransactorRaw) 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 BmcperipheryTransactorSession

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

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

func (*BmcperipheryTransactorSession) HandleRelayMessage

func (_Bmcperiphery *BmcperipheryTransactorSession) 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 (*BmcperipheryTransactorSession) Initialize

func (_Bmcperiphery *BmcperipheryTransactorSession) Initialize(_network string, _bmcManagementAddr common.Address) (*types.Transaction, error)

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

Solidity: function initialize(string _network, address _bmcManagementAddr) returns()

func (*BmcperipheryTransactorSession) SendMessage

func (_Bmcperiphery *BmcperipheryTransactorSession) SendMessage(_to string, _svc string, _sn *big.Int, _msg []byte) (*types.Transaction, error)

SendMessage is a paid mutator transaction binding the contract method 0xbf6c1d9a.

Solidity: function sendMessage(string _to, string _svc, uint256 _sn, bytes _msg) returns()

type TypesBMCMessage

type TypesBMCMessage struct {
	Src     string
	Dst     string
	Svc     string
	Sn      *big.Int
	Message []byte
}

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

type TypesBMCService

type TypesBMCService struct {
	ServiceType string
	Payload     []byte
}

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

type TypesGatherFeeMessage

type TypesGatherFeeMessage struct {
	Fa   string
	Svcs []string
}

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

type TypesLinkStats

type TypesLinkStats struct {
	RxSeq         *big.Int
	TxSeq         *big.Int
	RxHeight      *big.Int
	CurrentHeight *big.Int
}

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

Jump to

Keyboard shortcuts

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