Documentation ¶
Index ¶
- Constants
- type Tokenhub
- type TokenhubCaller
- func (_Tokenhub *TokenhubCaller) AlreadyInit(opts *bind.CallOpts) (bool, error)
- func (_Tokenhub *TokenhubCaller) BEP2TOKENDECIMALS(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) BEP2TOKENSYMBOLFORBNB(opts *bind.CallOpts) ([32]byte, error)
- func (_Tokenhub *TokenhubCaller) BINDCHANNELID(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) Bep20ContractDecimals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) BscChainID(opts *bind.CallOpts) (uint16, error)
- func (_Tokenhub *TokenhubCaller) CODEOK(opts *bind.CallOpts) (uint32, error)
- func (_Tokenhub *TokenhubCaller) CROSSCHAINCONTRACTADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) ERRORFAILDECODE(opts *bind.CallOpts) (uint32, error)
- func (_Tokenhub *TokenhubCaller) GOVCHANNELID(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) GOVHUBADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) GetBep2SymbolByContractAddr(opts *bind.CallOpts, contractAddr common.Address) ([32]byte, error)
- func (_Tokenhub *TokenhubCaller) GetBoundBep2Symbol(opts *bind.CallOpts, contractAddr common.Address) (string, error)
- func (_Tokenhub *TokenhubCaller) GetBoundContract(opts *bind.CallOpts, bep2Symbol string) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) GetContractAddrByBEP2Symbol(opts *bind.CallOpts, bep2Symbol [32]byte) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) GetMiniRelayFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) INCENTIVIZEADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) INITMINIMUMRELAYFEE(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) LIGHTCLIENTADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) MAXBEP2TOTALSUPPLY(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) MAXGASFORCALLINGBEP20(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) MAXGASFORTRANSFERBNB(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) MAXIMUMBEP20SYMBOLLEN(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) MINIMUMBEP20SYMBOLLEN(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) RELAYERHUBCONTRACTADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) REWARDUPPERLIMIT(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) RelayFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) SLASHCHANNELID(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) SLASHCONTRACTADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) STAKINGCHANNELID(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) SYSTEMREWARDADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) TENDECIMALS(opts *bind.CallOpts) (*big.Int, error)
- func (_Tokenhub *TokenhubCaller) TOKENHUBADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) TOKENMANAGERADDR(opts *bind.CallOpts) (common.Address, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINCHANNELID(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINFAILUREINSUFFICIENTBALANCE(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINFAILURENONPAYABLERECIPIENT(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINFAILURETIMEOUT(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINFAILUREUNBOUNDTOKEN(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINFAILUREUNKNOWN(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFERINSUCCESS(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) TRANSFEROUTCHANNELID(opts *bind.CallOpts) (uint8, error)
- func (_Tokenhub *TokenhubCaller) VALIDATORCONTRACTADDR(opts *bind.CallOpts) (common.Address, error)
- type TokenhubCallerRaw
- type TokenhubCallerSession
- func (_Tokenhub *TokenhubCallerSession) AlreadyInit() (bool, error)
- func (_Tokenhub *TokenhubCallerSession) BEP2TOKENDECIMALS() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) BEP2TOKENSYMBOLFORBNB() ([32]byte, error)
- func (_Tokenhub *TokenhubCallerSession) BINDCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) Bep20ContractDecimals(arg0 common.Address) (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) BscChainID() (uint16, error)
- func (_Tokenhub *TokenhubCallerSession) CODEOK() (uint32, error)
- func (_Tokenhub *TokenhubCallerSession) CROSSCHAINCONTRACTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) ERRORFAILDECODE() (uint32, error)
- func (_Tokenhub *TokenhubCallerSession) GOVCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) GOVHUBADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) GetBep2SymbolByContractAddr(contractAddr common.Address) ([32]byte, error)
- func (_Tokenhub *TokenhubCallerSession) GetBoundBep2Symbol(contractAddr common.Address) (string, error)
- func (_Tokenhub *TokenhubCallerSession) GetBoundContract(bep2Symbol string) (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) GetContractAddrByBEP2Symbol(bep2Symbol [32]byte) (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) GetMiniRelayFee() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) INCENTIVIZEADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) INITMINIMUMRELAYFEE() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) LIGHTCLIENTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) MAXBEP2TOTALSUPPLY() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) MAXGASFORCALLINGBEP20() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) MAXGASFORTRANSFERBNB() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) MAXIMUMBEP20SYMBOLLEN() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) MINIMUMBEP20SYMBOLLEN() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) RELAYERHUBCONTRACTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) REWARDUPPERLIMIT() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) RelayFee() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) SLASHCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) SLASHCONTRACTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) STAKINGCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) SYSTEMREWARDADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) TENDECIMALS() (*big.Int, error)
- func (_Tokenhub *TokenhubCallerSession) TOKENHUBADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) TOKENMANAGERADDR() (common.Address, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILUREINSUFFICIENTBALANCE() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILURENONPAYABLERECIPIENT() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILURETIMEOUT() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILUREUNBOUNDTOKEN() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILUREUNKNOWN() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFERINSUCCESS() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) TRANSFEROUTCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubCallerSession) VALIDATORCONTRACTADDR() (common.Address, error)
- type TokenhubFilterer
- func (_Tokenhub *TokenhubFilterer) FilterParamChange(opts *bind.FilterOpts) (*TokenhubParamChangeIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterReceiveDeposit(opts *bind.FilterOpts) (*TokenhubReceiveDepositIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterRefundFailure(opts *bind.FilterOpts) (*TokenhubRefundFailureIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterRefundSuccess(opts *bind.FilterOpts) (*TokenhubRefundSuccessIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterRewardTo(opts *bind.FilterOpts) (*TokenhubRewardToIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterTransferInSuccess(opts *bind.FilterOpts) (*TokenhubTransferInSuccessIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterTransferOutSuccess(opts *bind.FilterOpts) (*TokenhubTransferOutSuccessIterator, error)
- func (_Tokenhub *TokenhubFilterer) FilterUnexpectedPackage(opts *bind.FilterOpts) (*TokenhubUnexpectedPackageIterator, error)
- func (_Tokenhub *TokenhubFilterer) ParseParamChange(log types.Log) (*TokenhubParamChange, error)
- func (_Tokenhub *TokenhubFilterer) ParseReceiveDeposit(log types.Log) (*TokenhubReceiveDeposit, error)
- func (_Tokenhub *TokenhubFilterer) ParseRefundFailure(log types.Log) (*TokenhubRefundFailure, error)
- func (_Tokenhub *TokenhubFilterer) ParseRefundSuccess(log types.Log) (*TokenhubRefundSuccess, error)
- func (_Tokenhub *TokenhubFilterer) ParseRewardTo(log types.Log) (*TokenhubRewardTo, error)
- func (_Tokenhub *TokenhubFilterer) ParseTransferInSuccess(log types.Log) (*TokenhubTransferInSuccess, error)
- func (_Tokenhub *TokenhubFilterer) ParseTransferOutSuccess(log types.Log) (*TokenhubTransferOutSuccess, error)
- func (_Tokenhub *TokenhubFilterer) ParseUnexpectedPackage(log types.Log) (*TokenhubUnexpectedPackage, error)
- func (_Tokenhub *TokenhubFilterer) WatchParamChange(opts *bind.WatchOpts, sink chan<- *TokenhubParamChange) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchReceiveDeposit(opts *bind.WatchOpts, sink chan<- *TokenhubReceiveDeposit) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchRefundFailure(opts *bind.WatchOpts, sink chan<- *TokenhubRefundFailure) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchRefundSuccess(opts *bind.WatchOpts, sink chan<- *TokenhubRefundSuccess) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchRewardTo(opts *bind.WatchOpts, sink chan<- *TokenhubRewardTo) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchTransferInSuccess(opts *bind.WatchOpts, sink chan<- *TokenhubTransferInSuccess) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchTransferOutSuccess(opts *bind.WatchOpts, sink chan<- *TokenhubTransferOutSuccess) (event.Subscription, error)
- func (_Tokenhub *TokenhubFilterer) WatchUnexpectedPackage(opts *bind.WatchOpts, sink chan<- *TokenhubUnexpectedPackage) (event.Subscription, error)
- type TokenhubParamChange
- type TokenhubParamChangeIterator
- type TokenhubRaw
- func (_Tokenhub *TokenhubRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Tokenhub *TokenhubRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Tokenhub *TokenhubRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenhubReceiveDeposit
- type TokenhubReceiveDepositIterator
- type TokenhubRefundFailure
- type TokenhubRefundFailureIterator
- type TokenhubRefundSuccess
- type TokenhubRefundSuccessIterator
- type TokenhubRewardTo
- type TokenhubRewardToIterator
- type TokenhubSession
- func (_Tokenhub *TokenhubSession) AlreadyInit() (bool, error)
- func (_Tokenhub *TokenhubSession) BEP2TOKENDECIMALS() (uint8, error)
- func (_Tokenhub *TokenhubSession) BEP2TOKENSYMBOLFORBNB() ([32]byte, error)
- func (_Tokenhub *TokenhubSession) BINDCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubSession) BatchTransferOutBNB(recipientAddrs []common.Address, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) Bep20ContractDecimals(arg0 common.Address) (*big.Int, error)
- func (_Tokenhub *TokenhubSession) BindToken(bep2Symbol [32]byte, contractAddr common.Address, decimals *big.Int) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) BscChainID() (uint16, error)
- func (_Tokenhub *TokenhubSession) CODEOK() (uint32, error)
- func (_Tokenhub *TokenhubSession) CROSSCHAINCONTRACTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) ClaimRewards(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) ERRORFAILDECODE() (uint32, error)
- func (_Tokenhub *TokenhubSession) GOVCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubSession) GOVHUBADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) GetBep2SymbolByContractAddr(contractAddr common.Address) ([32]byte, error)
- func (_Tokenhub *TokenhubSession) GetBoundBep2Symbol(contractAddr common.Address) (string, error)
- func (_Tokenhub *TokenhubSession) GetBoundContract(bep2Symbol string) (common.Address, error)
- func (_Tokenhub *TokenhubSession) GetContractAddrByBEP2Symbol(bep2Symbol [32]byte) (common.Address, error)
- func (_Tokenhub *TokenhubSession) GetMiniRelayFee() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) HandleAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) HandleFailAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) HandleSynPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) INCENTIVIZEADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) INITMINIMUMRELAYFEE() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) Init() (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) LIGHTCLIENTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) MAXBEP2TOTALSUPPLY() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) MAXGASFORCALLINGBEP20() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) MAXGASFORTRANSFERBNB() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) MAXIMUMBEP20SYMBOLLEN() (uint8, error)
- func (_Tokenhub *TokenhubSession) MINIMUMBEP20SYMBOLLEN() (uint8, error)
- func (_Tokenhub *TokenhubSession) RELAYERHUBCONTRACTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) REWARDUPPERLIMIT() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) RelayFee() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) SLASHCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubSession) SLASHCONTRACTADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) STAKINGCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubSession) SYSTEMREWARDADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) TENDECIMALS() (*big.Int, error)
- func (_Tokenhub *TokenhubSession) TOKENHUBADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) TOKENMANAGERADDR() (common.Address, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINFAILUREINSUFFICIENTBALANCE() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINFAILURENONPAYABLERECIPIENT() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINFAILURETIMEOUT() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINFAILUREUNBOUNDTOKEN() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINFAILUREUNKNOWN() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFERINSUCCESS() (uint8, error)
- func (_Tokenhub *TokenhubSession) TRANSFEROUTCHANNELID() (uint8, error)
- func (_Tokenhub *TokenhubSession) TransferOut(contractAddr common.Address, recipient common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) UnbindToken(bep2Symbol [32]byte, contractAddr common.Address) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) UpdateParam(key string, value []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubSession) VALIDATORCONTRACTADDR() (common.Address, error)
- type TokenhubTransactor
- func (_Tokenhub *TokenhubTransactor) BatchTransferOutBNB(opts *bind.TransactOpts, recipientAddrs []common.Address, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) BindToken(opts *bind.TransactOpts, bep2Symbol [32]byte, contractAddr common.Address, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) ClaimRewards(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) HandleAckPackage(opts *bind.TransactOpts, channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) HandleFailAckPackage(opts *bind.TransactOpts, channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) HandleSynPackage(opts *bind.TransactOpts, channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) Init(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) TransferOut(opts *bind.TransactOpts, contractAddr common.Address, recipient common.Address, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) UnbindToken(opts *bind.TransactOpts, bep2Symbol [32]byte, contractAddr common.Address) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactor) UpdateParam(opts *bind.TransactOpts, key string, value []byte) (*types.Transaction, error)
- type TokenhubTransactorRaw
- type TokenhubTransactorSession
- func (_Tokenhub *TokenhubTransactorSession) BatchTransferOutBNB(recipientAddrs []common.Address, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) BindToken(bep2Symbol [32]byte, contractAddr common.Address, decimals *big.Int) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) ClaimRewards(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) HandleAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) HandleFailAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) HandleSynPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) Init() (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) TransferOut(contractAddr common.Address, recipient common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) UnbindToken(bep2Symbol [32]byte, contractAddr common.Address) (*types.Transaction, error)
- func (_Tokenhub *TokenhubTransactorSession) UpdateParam(key string, value []byte) (*types.Transaction, error)
- type TokenhubTransferInSuccess
- type TokenhubTransferInSuccessIterator
- type TokenhubTransferOutSuccess
- type TokenhubTransferOutSuccessIterator
- type TokenhubUnexpectedPackage
- type TokenhubUnexpectedPackageIterator
Constants ¶
const TokenhubABI = "" /* 15977-byte string literal not displayed */
TokenhubABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tokenhub ¶
type Tokenhub struct { TokenhubCaller // Read-only binding to the contract TokenhubTransactor // Write-only binding to the contract TokenhubFilterer // Log filterer for contract events }
Tokenhub is an auto generated Go binding around an Ethereum contract.
func NewTokenhub ¶
NewTokenhub creates a new instance of Tokenhub, bound to a specific deployed contract.
type TokenhubCaller ¶
type TokenhubCaller struct {
// contains filtered or unexported fields
}
TokenhubCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenhubCaller ¶
func NewTokenhubCaller(address common.Address, caller bind.ContractCaller) (*TokenhubCaller, error)
NewTokenhubCaller creates a new read-only instance of Tokenhub, bound to a specific deployed contract.
func (*TokenhubCaller) AlreadyInit ¶
func (_Tokenhub *TokenhubCaller) AlreadyInit(opts *bind.CallOpts) (bool, error)
AlreadyInit is a free data retrieval call binding the contract method 0xa78abc16.
Solidity: function alreadyInit() constant returns(bool)
func (*TokenhubCaller) BEP2TOKENDECIMALS ¶
func (_Tokenhub *TokenhubCaller) BEP2TOKENDECIMALS(opts *bind.CallOpts) (uint8, error)
BEP2TOKENDECIMALS is a free data retrieval call binding the contract method 0x61368475.
Solidity: function BEP2_TOKEN_DECIMALS() constant returns(uint8)
func (*TokenhubCaller) BEP2TOKENSYMBOLFORBNB ¶
func (_Tokenhub *TokenhubCaller) BEP2TOKENSYMBOLFORBNB(opts *bind.CallOpts) ([32]byte, error)
BEP2TOKENSYMBOLFORBNB is a free data retrieval call binding the contract method 0xb9fd21e3.
Solidity: function BEP2_TOKEN_SYMBOL_FOR_BNB() constant returns(bytes32)
func (*TokenhubCaller) BINDCHANNELID ¶
func (_Tokenhub *TokenhubCaller) BINDCHANNELID(opts *bind.CallOpts) (uint8, error)
BINDCHANNELID is a free data retrieval call binding the contract method 0x3dffc387.
Solidity: function BIND_CHANNELID() constant returns(uint8)
func (*TokenhubCaller) Bep20ContractDecimals ¶
func (_Tokenhub *TokenhubCaller) Bep20ContractDecimals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Bep20ContractDecimals is a free data retrieval call binding the contract method 0xbbface1f.
Solidity: function bep20ContractDecimals(address ) constant returns(uint256)
func (*TokenhubCaller) BscChainID ¶
func (_Tokenhub *TokenhubCaller) BscChainID(opts *bind.CallOpts) (uint16, error)
BscChainID is a free data retrieval call binding the contract method 0x493279b1.
Solidity: function bscChainID() constant returns(uint16)
func (*TokenhubCaller) CODEOK ¶
func (_Tokenhub *TokenhubCaller) CODEOK(opts *bind.CallOpts) (uint32, error)
CODEOK is a free data retrieval call binding the contract method 0xab51bb96.
Solidity: function CODE_OK() constant returns(uint32)
func (*TokenhubCaller) CROSSCHAINCONTRACTADDR ¶
func (_Tokenhub *TokenhubCaller) CROSSCHAINCONTRACTADDR(opts *bind.CallOpts) (common.Address, error)
CROSSCHAINCONTRACTADDR is a free data retrieval call binding the contract method 0x51e80672.
Solidity: function CROSS_CHAIN_CONTRACT_ADDR() constant returns(address)
func (*TokenhubCaller) ERRORFAILDECODE ¶
func (_Tokenhub *TokenhubCaller) ERRORFAILDECODE(opts *bind.CallOpts) (uint32, error)
ERRORFAILDECODE is a free data retrieval call binding the contract method 0x0bee7a67.
Solidity: function ERROR_FAIL_DECODE() constant returns(uint32)
func (*TokenhubCaller) GOVCHANNELID ¶
func (_Tokenhub *TokenhubCaller) GOVCHANNELID(opts *bind.CallOpts) (uint8, error)
GOVCHANNELID is a free data retrieval call binding the contract method 0x96713da9.
Solidity: function GOV_CHANNELID() constant returns(uint8)
func (*TokenhubCaller) GOVHUBADDR ¶
GOVHUBADDR is a free data retrieval call binding the contract method 0x9dc09262.
Solidity: function GOV_HUB_ADDR() constant returns(address)
func (*TokenhubCaller) GetBep2SymbolByContractAddr ¶
func (_Tokenhub *TokenhubCaller) GetBep2SymbolByContractAddr(opts *bind.CallOpts, contractAddr common.Address) ([32]byte, error)
GetBep2SymbolByContractAddr is a free data retrieval call binding the contract method 0xbd466461.
Solidity: function getBep2SymbolByContractAddr(address contractAddr) constant returns(bytes32)
func (*TokenhubCaller) GetBoundBep2Symbol ¶
func (_Tokenhub *TokenhubCaller) GetBoundBep2Symbol(opts *bind.CallOpts, contractAddr common.Address) (string, error)
GetBoundBep2Symbol is a free data retrieval call binding the contract method 0xfc1a598f.
Solidity: function getBoundBep2Symbol(address contractAddr) constant returns(string)
func (*TokenhubCaller) GetBoundContract ¶
func (_Tokenhub *TokenhubCaller) GetBoundContract(opts *bind.CallOpts, bep2Symbol string) (common.Address, error)
GetBoundContract is a free data retrieval call binding the contract method 0x3d713223.
Solidity: function getBoundContract(string bep2Symbol) constant returns(address)
func (*TokenhubCaller) GetContractAddrByBEP2Symbol ¶
func (_Tokenhub *TokenhubCaller) GetContractAddrByBEP2Symbol(opts *bind.CallOpts, bep2Symbol [32]byte) (common.Address, error)
GetContractAddrByBEP2Symbol is a free data retrieval call binding the contract method 0x59b92789.
Solidity: function getContractAddrByBEP2Symbol(bytes32 bep2Symbol) constant returns(address)
func (*TokenhubCaller) GetMiniRelayFee ¶
GetMiniRelayFee is a free data retrieval call binding the contract method 0x149d14d9.
Solidity: function getMiniRelayFee() constant returns(uint256)
func (*TokenhubCaller) INCENTIVIZEADDR ¶
INCENTIVIZEADDR is a free data retrieval call binding the contract method 0x6e47b482.
Solidity: function INCENTIVIZE_ADDR() constant returns(address)
func (*TokenhubCaller) INITMINIMUMRELAYFEE ¶
INITMINIMUMRELAYFEE is a free data retrieval call binding the contract method 0x50432d32.
Solidity: function INIT_MINIMUM_RELAY_FEE() constant returns(uint256)
func (*TokenhubCaller) LIGHTCLIENTADDR ¶
LIGHTCLIENTADDR is a free data retrieval call binding the contract method 0xdc927faf.
Solidity: function LIGHT_CLIENT_ADDR() constant returns(address)
func (*TokenhubCaller) MAXBEP2TOTALSUPPLY ¶
MAXBEP2TOTALSUPPLY is a free data retrieval call binding the contract method 0x9a854bbd.
Solidity: function MAX_BEP2_TOTAL_SUPPLY() constant returns(uint256)
func (*TokenhubCaller) MAXGASFORCALLINGBEP20 ¶
MAXGASFORCALLINGBEP20 is a free data retrieval call binding the contract method 0xba35ead6.
Solidity: function MAX_GAS_FOR_CALLING_BEP20() constant returns(uint256)
func (*TokenhubCaller) MAXGASFORTRANSFERBNB ¶
MAXGASFORTRANSFERBNB is a free data retrieval call binding the contract method 0xfa9e9159.
Solidity: function MAX_GAS_FOR_TRANSFER_BNB() constant returns(uint256)
func (*TokenhubCaller) MAXIMUMBEP20SYMBOLLEN ¶
func (_Tokenhub *TokenhubCaller) MAXIMUMBEP20SYMBOLLEN(opts *bind.CallOpts) (uint8, error)
MAXIMUMBEP20SYMBOLLEN is a free data retrieval call binding the contract method 0xd9e6dae9.
Solidity: function MAXIMUM_BEP20_SYMBOL_LEN() constant returns(uint8)
func (*TokenhubCaller) MINIMUMBEP20SYMBOLLEN ¶
func (_Tokenhub *TokenhubCaller) MINIMUMBEP20SYMBOLLEN(opts *bind.CallOpts) (uint8, error)
MINIMUMBEP20SYMBOLLEN is a free data retrieval call binding the contract method 0x66dea52a.
Solidity: function MINIMUM_BEP20_SYMBOL_LEN() constant returns(uint8)
func (*TokenhubCaller) RELAYERHUBCONTRACTADDR ¶
func (_Tokenhub *TokenhubCaller) RELAYERHUBCONTRACTADDR(opts *bind.CallOpts) (common.Address, error)
RELAYERHUBCONTRACTADDR is a free data retrieval call binding the contract method 0xa1a11bf5.
Solidity: function RELAYERHUB_CONTRACT_ADDR() constant returns(address)
func (*TokenhubCaller) REWARDUPPERLIMIT ¶
REWARDUPPERLIMIT is a free data retrieval call binding the contract method 0x43a368b9.
Solidity: function REWARD_UPPER_LIMIT() constant returns(uint256)
func (*TokenhubCaller) RelayFee ¶
RelayFee is a free data retrieval call binding the contract method 0x71d30863.
Solidity: function relayFee() constant returns(uint256)
func (*TokenhubCaller) SLASHCHANNELID ¶
func (_Tokenhub *TokenhubCaller) SLASHCHANNELID(opts *bind.CallOpts) (uint8, error)
SLASHCHANNELID is a free data retrieval call binding the contract method 0x7942fd05.
Solidity: function SLASH_CHANNELID() constant returns(uint8)
func (*TokenhubCaller) SLASHCONTRACTADDR ¶
SLASHCONTRACTADDR is a free data retrieval call binding the contract method 0x43756e5c.
Solidity: function SLASH_CONTRACT_ADDR() constant returns(address)
func (*TokenhubCaller) STAKINGCHANNELID ¶
func (_Tokenhub *TokenhubCaller) STAKINGCHANNELID(opts *bind.CallOpts) (uint8, error)
STAKINGCHANNELID is a free data retrieval call binding the contract method 0x4bf6c882.
Solidity: function STAKING_CHANNELID() constant returns(uint8)
func (*TokenhubCaller) SYSTEMREWARDADDR ¶
SYSTEMREWARDADDR is a free data retrieval call binding the contract method 0xc81b1662.
Solidity: function SYSTEM_REWARD_ADDR() constant returns(address)
func (*TokenhubCaller) TENDECIMALS ¶
TENDECIMALS is a free data retrieval call binding the contract method 0x5d499b1b.
Solidity: function TEN_DECIMALS() constant returns(uint256)
func (*TokenhubCaller) TOKENHUBADDR ¶
TOKENHUBADDR is a free data retrieval call binding the contract method 0xfd6a6879.
Solidity: function TOKEN_HUB_ADDR() constant returns(address)
func (*TokenhubCaller) TOKENMANAGERADDR ¶
TOKENMANAGERADDR is a free data retrieval call binding the contract method 0x75d47a0a.
Solidity: function TOKEN_MANAGER_ADDR() constant returns(address)
func (*TokenhubCaller) TRANSFERINCHANNELID ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINCHANNELID(opts *bind.CallOpts) (uint8, error)
TRANSFERINCHANNELID is a free data retrieval call binding the contract method 0x70fd5bad.
Solidity: function TRANSFER_IN_CHANNELID() constant returns(uint8)
func (*TokenhubCaller) TRANSFERINFAILUREINSUFFICIENTBALANCE ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINFAILUREINSUFFICIENTBALANCE(opts *bind.CallOpts) (uint8, error)
TRANSFERINFAILUREINSUFFICIENTBALANCE is a free data retrieval call binding the contract method 0xa7c9f02d.
Solidity: function TRANSFER_IN_FAILURE_INSUFFICIENT_BALANCE() constant returns(uint8)
func (*TokenhubCaller) TRANSFERINFAILURENONPAYABLERECIPIENT ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINFAILURENONPAYABLERECIPIENT(opts *bind.CallOpts) (uint8, error)
TRANSFERINFAILURENONPAYABLERECIPIENT is a free data retrieval call binding the contract method 0xebf71d53.
Solidity: function TRANSFER_IN_FAILURE_NON_PAYABLE_RECIPIENT() constant returns(uint8)
func (*TokenhubCaller) TRANSFERINFAILURETIMEOUT ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINFAILURETIMEOUT(opts *bind.CallOpts) (uint8, error)
TRANSFERINFAILURETIMEOUT is a free data retrieval call binding the contract method 0x8b87b21f.
Solidity: function TRANSFER_IN_FAILURE_TIMEOUT() constant returns(uint8)
func (*TokenhubCaller) TRANSFERINFAILUREUNBOUNDTOKEN ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINFAILUREUNBOUNDTOKEN(opts *bind.CallOpts) (uint8, error)
TRANSFERINFAILUREUNBOUNDTOKEN is a free data retrieval call binding the contract method 0xff9c0027.
Solidity: function TRANSFER_IN_FAILURE_UNBOUND_TOKEN() constant returns(uint8)
func (*TokenhubCaller) TRANSFERINFAILUREUNKNOWN ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINFAILUREUNKNOWN(opts *bind.CallOpts) (uint8, error)
TRANSFERINFAILUREUNKNOWN is a free data retrieval call binding the contract method 0xf0148472.
Solidity: function TRANSFER_IN_FAILURE_UNKNOWN() constant returns(uint8)
func (*TokenhubCaller) TRANSFERINSUCCESS ¶
func (_Tokenhub *TokenhubCaller) TRANSFERINSUCCESS(opts *bind.CallOpts) (uint8, error)
TRANSFERINSUCCESS is a free data retrieval call binding the contract method 0xa496fba2.
Solidity: function TRANSFER_IN_SUCCESS() constant returns(uint8)
func (*TokenhubCaller) TRANSFEROUTCHANNELID ¶
func (_Tokenhub *TokenhubCaller) TRANSFEROUTCHANNELID(opts *bind.CallOpts) (uint8, error)
TRANSFEROUTCHANNELID is a free data retrieval call binding the contract method 0xfc3e5908.
Solidity: function TRANSFER_OUT_CHANNELID() constant returns(uint8)
func (*TokenhubCaller) VALIDATORCONTRACTADDR ¶
VALIDATORCONTRACTADDR is a free data retrieval call binding the contract method 0xf9a2bbc7.
Solidity: function VALIDATOR_CONTRACT_ADDR() constant returns(address)
type TokenhubCallerRaw ¶
type TokenhubCallerRaw struct {
Contract *TokenhubCaller // Generic read-only contract binding to access the raw methods on
}
TokenhubCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenhubCallerRaw) Call ¶
func (_Tokenhub *TokenhubCallerRaw) 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 TokenhubCallerSession ¶
type TokenhubCallerSession struct { Contract *TokenhubCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenhubCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenhubCallerSession) AlreadyInit ¶
func (_Tokenhub *TokenhubCallerSession) AlreadyInit() (bool, error)
AlreadyInit is a free data retrieval call binding the contract method 0xa78abc16.
Solidity: function alreadyInit() constant returns(bool)
func (*TokenhubCallerSession) BEP2TOKENDECIMALS ¶
func (_Tokenhub *TokenhubCallerSession) BEP2TOKENDECIMALS() (uint8, error)
BEP2TOKENDECIMALS is a free data retrieval call binding the contract method 0x61368475.
Solidity: function BEP2_TOKEN_DECIMALS() constant returns(uint8)
func (*TokenhubCallerSession) BEP2TOKENSYMBOLFORBNB ¶
func (_Tokenhub *TokenhubCallerSession) BEP2TOKENSYMBOLFORBNB() ([32]byte, error)
BEP2TOKENSYMBOLFORBNB is a free data retrieval call binding the contract method 0xb9fd21e3.
Solidity: function BEP2_TOKEN_SYMBOL_FOR_BNB() constant returns(bytes32)
func (*TokenhubCallerSession) BINDCHANNELID ¶
func (_Tokenhub *TokenhubCallerSession) BINDCHANNELID() (uint8, error)
BINDCHANNELID is a free data retrieval call binding the contract method 0x3dffc387.
Solidity: function BIND_CHANNELID() constant returns(uint8)
func (*TokenhubCallerSession) Bep20ContractDecimals ¶
func (_Tokenhub *TokenhubCallerSession) Bep20ContractDecimals(arg0 common.Address) (*big.Int, error)
Bep20ContractDecimals is a free data retrieval call binding the contract method 0xbbface1f.
Solidity: function bep20ContractDecimals(address ) constant returns(uint256)
func (*TokenhubCallerSession) BscChainID ¶
func (_Tokenhub *TokenhubCallerSession) BscChainID() (uint16, error)
BscChainID is a free data retrieval call binding the contract method 0x493279b1.
Solidity: function bscChainID() constant returns(uint16)
func (*TokenhubCallerSession) CODEOK ¶
func (_Tokenhub *TokenhubCallerSession) CODEOK() (uint32, error)
CODEOK is a free data retrieval call binding the contract method 0xab51bb96.
Solidity: function CODE_OK() constant returns(uint32)
func (*TokenhubCallerSession) CROSSCHAINCONTRACTADDR ¶
func (_Tokenhub *TokenhubCallerSession) CROSSCHAINCONTRACTADDR() (common.Address, error)
CROSSCHAINCONTRACTADDR is a free data retrieval call binding the contract method 0x51e80672.
Solidity: function CROSS_CHAIN_CONTRACT_ADDR() constant returns(address)
func (*TokenhubCallerSession) ERRORFAILDECODE ¶
func (_Tokenhub *TokenhubCallerSession) ERRORFAILDECODE() (uint32, error)
ERRORFAILDECODE is a free data retrieval call binding the contract method 0x0bee7a67.
Solidity: function ERROR_FAIL_DECODE() constant returns(uint32)
func (*TokenhubCallerSession) GOVCHANNELID ¶
func (_Tokenhub *TokenhubCallerSession) GOVCHANNELID() (uint8, error)
GOVCHANNELID is a free data retrieval call binding the contract method 0x96713da9.
Solidity: function GOV_CHANNELID() constant returns(uint8)
func (*TokenhubCallerSession) GOVHUBADDR ¶
func (_Tokenhub *TokenhubCallerSession) GOVHUBADDR() (common.Address, error)
GOVHUBADDR is a free data retrieval call binding the contract method 0x9dc09262.
Solidity: function GOV_HUB_ADDR() constant returns(address)
func (*TokenhubCallerSession) GetBep2SymbolByContractAddr ¶
func (_Tokenhub *TokenhubCallerSession) GetBep2SymbolByContractAddr(contractAddr common.Address) ([32]byte, error)
GetBep2SymbolByContractAddr is a free data retrieval call binding the contract method 0xbd466461.
Solidity: function getBep2SymbolByContractAddr(address contractAddr) constant returns(bytes32)
func (*TokenhubCallerSession) GetBoundBep2Symbol ¶
func (_Tokenhub *TokenhubCallerSession) GetBoundBep2Symbol(contractAddr common.Address) (string, error)
GetBoundBep2Symbol is a free data retrieval call binding the contract method 0xfc1a598f.
Solidity: function getBoundBep2Symbol(address contractAddr) constant returns(string)
func (*TokenhubCallerSession) GetBoundContract ¶
func (_Tokenhub *TokenhubCallerSession) GetBoundContract(bep2Symbol string) (common.Address, error)
GetBoundContract is a free data retrieval call binding the contract method 0x3d713223.
Solidity: function getBoundContract(string bep2Symbol) constant returns(address)
func (*TokenhubCallerSession) GetContractAddrByBEP2Symbol ¶
func (_Tokenhub *TokenhubCallerSession) GetContractAddrByBEP2Symbol(bep2Symbol [32]byte) (common.Address, error)
GetContractAddrByBEP2Symbol is a free data retrieval call binding the contract method 0x59b92789.
Solidity: function getContractAddrByBEP2Symbol(bytes32 bep2Symbol) constant returns(address)
func (*TokenhubCallerSession) GetMiniRelayFee ¶
func (_Tokenhub *TokenhubCallerSession) GetMiniRelayFee() (*big.Int, error)
GetMiniRelayFee is a free data retrieval call binding the contract method 0x149d14d9.
Solidity: function getMiniRelayFee() constant returns(uint256)
func (*TokenhubCallerSession) INCENTIVIZEADDR ¶
func (_Tokenhub *TokenhubCallerSession) INCENTIVIZEADDR() (common.Address, error)
INCENTIVIZEADDR is a free data retrieval call binding the contract method 0x6e47b482.
Solidity: function INCENTIVIZE_ADDR() constant returns(address)
func (*TokenhubCallerSession) INITMINIMUMRELAYFEE ¶
func (_Tokenhub *TokenhubCallerSession) INITMINIMUMRELAYFEE() (*big.Int, error)
INITMINIMUMRELAYFEE is a free data retrieval call binding the contract method 0x50432d32.
Solidity: function INIT_MINIMUM_RELAY_FEE() constant returns(uint256)
func (*TokenhubCallerSession) LIGHTCLIENTADDR ¶
func (_Tokenhub *TokenhubCallerSession) LIGHTCLIENTADDR() (common.Address, error)
LIGHTCLIENTADDR is a free data retrieval call binding the contract method 0xdc927faf.
Solidity: function LIGHT_CLIENT_ADDR() constant returns(address)
func (*TokenhubCallerSession) MAXBEP2TOTALSUPPLY ¶
func (_Tokenhub *TokenhubCallerSession) MAXBEP2TOTALSUPPLY() (*big.Int, error)
MAXBEP2TOTALSUPPLY is a free data retrieval call binding the contract method 0x9a854bbd.
Solidity: function MAX_BEP2_TOTAL_SUPPLY() constant returns(uint256)
func (*TokenhubCallerSession) MAXGASFORCALLINGBEP20 ¶
func (_Tokenhub *TokenhubCallerSession) MAXGASFORCALLINGBEP20() (*big.Int, error)
MAXGASFORCALLINGBEP20 is a free data retrieval call binding the contract method 0xba35ead6.
Solidity: function MAX_GAS_FOR_CALLING_BEP20() constant returns(uint256)
func (*TokenhubCallerSession) MAXGASFORTRANSFERBNB ¶
func (_Tokenhub *TokenhubCallerSession) MAXGASFORTRANSFERBNB() (*big.Int, error)
MAXGASFORTRANSFERBNB is a free data retrieval call binding the contract method 0xfa9e9159.
Solidity: function MAX_GAS_FOR_TRANSFER_BNB() constant returns(uint256)
func (*TokenhubCallerSession) MAXIMUMBEP20SYMBOLLEN ¶
func (_Tokenhub *TokenhubCallerSession) MAXIMUMBEP20SYMBOLLEN() (uint8, error)
MAXIMUMBEP20SYMBOLLEN is a free data retrieval call binding the contract method 0xd9e6dae9.
Solidity: function MAXIMUM_BEP20_SYMBOL_LEN() constant returns(uint8)
func (*TokenhubCallerSession) MINIMUMBEP20SYMBOLLEN ¶
func (_Tokenhub *TokenhubCallerSession) MINIMUMBEP20SYMBOLLEN() (uint8, error)
MINIMUMBEP20SYMBOLLEN is a free data retrieval call binding the contract method 0x66dea52a.
Solidity: function MINIMUM_BEP20_SYMBOL_LEN() constant returns(uint8)
func (*TokenhubCallerSession) RELAYERHUBCONTRACTADDR ¶
func (_Tokenhub *TokenhubCallerSession) RELAYERHUBCONTRACTADDR() (common.Address, error)
RELAYERHUBCONTRACTADDR is a free data retrieval call binding the contract method 0xa1a11bf5.
Solidity: function RELAYERHUB_CONTRACT_ADDR() constant returns(address)
func (*TokenhubCallerSession) REWARDUPPERLIMIT ¶
func (_Tokenhub *TokenhubCallerSession) REWARDUPPERLIMIT() (*big.Int, error)
REWARDUPPERLIMIT is a free data retrieval call binding the contract method 0x43a368b9.
Solidity: function REWARD_UPPER_LIMIT() constant returns(uint256)
func (*TokenhubCallerSession) RelayFee ¶
func (_Tokenhub *TokenhubCallerSession) RelayFee() (*big.Int, error)
RelayFee is a free data retrieval call binding the contract method 0x71d30863.
Solidity: function relayFee() constant returns(uint256)
func (*TokenhubCallerSession) SLASHCHANNELID ¶
func (_Tokenhub *TokenhubCallerSession) SLASHCHANNELID() (uint8, error)
SLASHCHANNELID is a free data retrieval call binding the contract method 0x7942fd05.
Solidity: function SLASH_CHANNELID() constant returns(uint8)
func (*TokenhubCallerSession) SLASHCONTRACTADDR ¶
func (_Tokenhub *TokenhubCallerSession) SLASHCONTRACTADDR() (common.Address, error)
SLASHCONTRACTADDR is a free data retrieval call binding the contract method 0x43756e5c.
Solidity: function SLASH_CONTRACT_ADDR() constant returns(address)
func (*TokenhubCallerSession) STAKINGCHANNELID ¶
func (_Tokenhub *TokenhubCallerSession) STAKINGCHANNELID() (uint8, error)
STAKINGCHANNELID is a free data retrieval call binding the contract method 0x4bf6c882.
Solidity: function STAKING_CHANNELID() constant returns(uint8)
func (*TokenhubCallerSession) SYSTEMREWARDADDR ¶
func (_Tokenhub *TokenhubCallerSession) SYSTEMREWARDADDR() (common.Address, error)
SYSTEMREWARDADDR is a free data retrieval call binding the contract method 0xc81b1662.
Solidity: function SYSTEM_REWARD_ADDR() constant returns(address)
func (*TokenhubCallerSession) TENDECIMALS ¶
func (_Tokenhub *TokenhubCallerSession) TENDECIMALS() (*big.Int, error)
TENDECIMALS is a free data retrieval call binding the contract method 0x5d499b1b.
Solidity: function TEN_DECIMALS() constant returns(uint256)
func (*TokenhubCallerSession) TOKENHUBADDR ¶
func (_Tokenhub *TokenhubCallerSession) TOKENHUBADDR() (common.Address, error)
TOKENHUBADDR is a free data retrieval call binding the contract method 0xfd6a6879.
Solidity: function TOKEN_HUB_ADDR() constant returns(address)
func (*TokenhubCallerSession) TOKENMANAGERADDR ¶
func (_Tokenhub *TokenhubCallerSession) TOKENMANAGERADDR() (common.Address, error)
TOKENMANAGERADDR is a free data retrieval call binding the contract method 0x75d47a0a.
Solidity: function TOKEN_MANAGER_ADDR() constant returns(address)
func (*TokenhubCallerSession) TRANSFERINCHANNELID ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINCHANNELID() (uint8, error)
TRANSFERINCHANNELID is a free data retrieval call binding the contract method 0x70fd5bad.
Solidity: function TRANSFER_IN_CHANNELID() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFERINFAILUREINSUFFICIENTBALANCE ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILUREINSUFFICIENTBALANCE() (uint8, error)
TRANSFERINFAILUREINSUFFICIENTBALANCE is a free data retrieval call binding the contract method 0xa7c9f02d.
Solidity: function TRANSFER_IN_FAILURE_INSUFFICIENT_BALANCE() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFERINFAILURENONPAYABLERECIPIENT ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILURENONPAYABLERECIPIENT() (uint8, error)
TRANSFERINFAILURENONPAYABLERECIPIENT is a free data retrieval call binding the contract method 0xebf71d53.
Solidity: function TRANSFER_IN_FAILURE_NON_PAYABLE_RECIPIENT() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFERINFAILURETIMEOUT ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILURETIMEOUT() (uint8, error)
TRANSFERINFAILURETIMEOUT is a free data retrieval call binding the contract method 0x8b87b21f.
Solidity: function TRANSFER_IN_FAILURE_TIMEOUT() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFERINFAILUREUNBOUNDTOKEN ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILUREUNBOUNDTOKEN() (uint8, error)
TRANSFERINFAILUREUNBOUNDTOKEN is a free data retrieval call binding the contract method 0xff9c0027.
Solidity: function TRANSFER_IN_FAILURE_UNBOUND_TOKEN() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFERINFAILUREUNKNOWN ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINFAILUREUNKNOWN() (uint8, error)
TRANSFERINFAILUREUNKNOWN is a free data retrieval call binding the contract method 0xf0148472.
Solidity: function TRANSFER_IN_FAILURE_UNKNOWN() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFERINSUCCESS ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFERINSUCCESS() (uint8, error)
TRANSFERINSUCCESS is a free data retrieval call binding the contract method 0xa496fba2.
Solidity: function TRANSFER_IN_SUCCESS() constant returns(uint8)
func (*TokenhubCallerSession) TRANSFEROUTCHANNELID ¶
func (_Tokenhub *TokenhubCallerSession) TRANSFEROUTCHANNELID() (uint8, error)
TRANSFEROUTCHANNELID is a free data retrieval call binding the contract method 0xfc3e5908.
Solidity: function TRANSFER_OUT_CHANNELID() constant returns(uint8)
func (*TokenhubCallerSession) VALIDATORCONTRACTADDR ¶
func (_Tokenhub *TokenhubCallerSession) VALIDATORCONTRACTADDR() (common.Address, error)
VALIDATORCONTRACTADDR is a free data retrieval call binding the contract method 0xf9a2bbc7.
Solidity: function VALIDATOR_CONTRACT_ADDR() constant returns(address)
type TokenhubFilterer ¶
type TokenhubFilterer struct {
// contains filtered or unexported fields
}
TokenhubFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenhubFilterer ¶
func NewTokenhubFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenhubFilterer, error)
NewTokenhubFilterer creates a new log filterer instance of Tokenhub, bound to a specific deployed contract.
func (*TokenhubFilterer) FilterParamChange ¶
func (_Tokenhub *TokenhubFilterer) FilterParamChange(opts *bind.FilterOpts) (*TokenhubParamChangeIterator, error)
FilterParamChange is a free log retrieval operation binding the contract event 0x6cdb0ac70ab7f2e2d035cca5be60d89906f2dede7648ddbd7402189c1eeed17a.
Solidity: event paramChange(string key, bytes value)
func (*TokenhubFilterer) FilterReceiveDeposit ¶
func (_Tokenhub *TokenhubFilterer) FilterReceiveDeposit(opts *bind.FilterOpts) (*TokenhubReceiveDepositIterator, error)
FilterReceiveDeposit is a free log retrieval operation binding the contract event 0x6c98249d85d88c3753a04a22230f595e4dc8d3dc86c34af35deeeedc861b89db.
Solidity: event receiveDeposit(address from, uint256 amount)
func (*TokenhubFilterer) FilterRefundFailure ¶
func (_Tokenhub *TokenhubFilterer) FilterRefundFailure(opts *bind.FilterOpts) (*TokenhubRefundFailureIterator, error)
FilterRefundFailure is a free log retrieval operation binding the contract event 0x203f9f67a785f4f81be4d48b109aa0c498d1bc8097ecc2627063f480cc5fe73e.
Solidity: event refundFailure(address bep20Addr, address refundAddr, uint256 amount, uint32 status)
func (*TokenhubFilterer) FilterRefundSuccess ¶
func (_Tokenhub *TokenhubFilterer) FilterRefundSuccess(opts *bind.FilterOpts) (*TokenhubRefundSuccessIterator, error)
FilterRefundSuccess is a free log retrieval operation binding the contract event 0xd468d4fa5e8fb4adc119b29a983fd0785e04af5cb8b7a3a69a47270c54b6901a.
Solidity: event refundSuccess(address bep20Addr, address refundAddr, uint256 amount, uint32 status)
func (*TokenhubFilterer) FilterRewardTo ¶
func (_Tokenhub *TokenhubFilterer) FilterRewardTo(opts *bind.FilterOpts) (*TokenhubRewardToIterator, error)
FilterRewardTo is a free log retrieval operation binding the contract event 0xf8b71c64315fc33b2ead2adfa487955065152a8ac33d9d5193aafd7f45dc15a0.
Solidity: event rewardTo(address to, uint256 amount)
func (*TokenhubFilterer) FilterTransferInSuccess ¶
func (_Tokenhub *TokenhubFilterer) FilterTransferInSuccess(opts *bind.FilterOpts) (*TokenhubTransferInSuccessIterator, error)
FilterTransferInSuccess is a free log retrieval operation binding the contract event 0x471eb9cc1ffe55ffadf15b32595415eb9d80f22e761d24bd6dffc607e1284d59.
Solidity: event transferInSuccess(address bep20Addr, address refundAddr, uint256 amount)
func (*TokenhubFilterer) FilterTransferOutSuccess ¶
func (_Tokenhub *TokenhubFilterer) FilterTransferOutSuccess(opts *bind.FilterOpts) (*TokenhubTransferOutSuccessIterator, error)
FilterTransferOutSuccess is a free log retrieval operation binding the contract event 0x74eab09b0e53aefc23f2e1b16da593f95c2dd49c6f5a23720463d10d9c330b2a.
Solidity: event transferOutSuccess(address bep20Addr, address senderAddr, uint256 amount, uint256 relayFee)
func (*TokenhubFilterer) FilterUnexpectedPackage ¶
func (_Tokenhub *TokenhubFilterer) FilterUnexpectedPackage(opts *bind.FilterOpts) (*TokenhubUnexpectedPackageIterator, error)
FilterUnexpectedPackage is a free log retrieval operation binding the contract event 0x41ce201247b6ceb957dcdb217d0b8acb50b9ea0e12af9af4f5e7f38902101605.
Solidity: event unexpectedPackage(uint8 channelId, bytes msgBytes)
func (*TokenhubFilterer) ParseParamChange ¶
func (_Tokenhub *TokenhubFilterer) ParseParamChange(log types.Log) (*TokenhubParamChange, error)
ParseParamChange is a log parse operation binding the contract event 0x6cdb0ac70ab7f2e2d035cca5be60d89906f2dede7648ddbd7402189c1eeed17a.
Solidity: event paramChange(string key, bytes value)
func (*TokenhubFilterer) ParseReceiveDeposit ¶
func (_Tokenhub *TokenhubFilterer) ParseReceiveDeposit(log types.Log) (*TokenhubReceiveDeposit, error)
ParseReceiveDeposit is a log parse operation binding the contract event 0x6c98249d85d88c3753a04a22230f595e4dc8d3dc86c34af35deeeedc861b89db.
Solidity: event receiveDeposit(address from, uint256 amount)
func (*TokenhubFilterer) ParseRefundFailure ¶
func (_Tokenhub *TokenhubFilterer) ParseRefundFailure(log types.Log) (*TokenhubRefundFailure, error)
ParseRefundFailure is a log parse operation binding the contract event 0x203f9f67a785f4f81be4d48b109aa0c498d1bc8097ecc2627063f480cc5fe73e.
Solidity: event refundFailure(address bep20Addr, address refundAddr, uint256 amount, uint32 status)
func (*TokenhubFilterer) ParseRefundSuccess ¶
func (_Tokenhub *TokenhubFilterer) ParseRefundSuccess(log types.Log) (*TokenhubRefundSuccess, error)
ParseRefundSuccess is a log parse operation binding the contract event 0xd468d4fa5e8fb4adc119b29a983fd0785e04af5cb8b7a3a69a47270c54b6901a.
Solidity: event refundSuccess(address bep20Addr, address refundAddr, uint256 amount, uint32 status)
func (*TokenhubFilterer) ParseRewardTo ¶
func (_Tokenhub *TokenhubFilterer) ParseRewardTo(log types.Log) (*TokenhubRewardTo, error)
ParseRewardTo is a log parse operation binding the contract event 0xf8b71c64315fc33b2ead2adfa487955065152a8ac33d9d5193aafd7f45dc15a0.
Solidity: event rewardTo(address to, uint256 amount)
func (*TokenhubFilterer) ParseTransferInSuccess ¶
func (_Tokenhub *TokenhubFilterer) ParseTransferInSuccess(log types.Log) (*TokenhubTransferInSuccess, error)
ParseTransferInSuccess is a log parse operation binding the contract event 0x471eb9cc1ffe55ffadf15b32595415eb9d80f22e761d24bd6dffc607e1284d59.
Solidity: event transferInSuccess(address bep20Addr, address refundAddr, uint256 amount)
func (*TokenhubFilterer) ParseTransferOutSuccess ¶
func (_Tokenhub *TokenhubFilterer) ParseTransferOutSuccess(log types.Log) (*TokenhubTransferOutSuccess, error)
ParseTransferOutSuccess is a log parse operation binding the contract event 0x74eab09b0e53aefc23f2e1b16da593f95c2dd49c6f5a23720463d10d9c330b2a.
Solidity: event transferOutSuccess(address bep20Addr, address senderAddr, uint256 amount, uint256 relayFee)
func (*TokenhubFilterer) ParseUnexpectedPackage ¶
func (_Tokenhub *TokenhubFilterer) ParseUnexpectedPackage(log types.Log) (*TokenhubUnexpectedPackage, error)
ParseUnexpectedPackage is a log parse operation binding the contract event 0x41ce201247b6ceb957dcdb217d0b8acb50b9ea0e12af9af4f5e7f38902101605.
Solidity: event unexpectedPackage(uint8 channelId, bytes msgBytes)
func (*TokenhubFilterer) WatchParamChange ¶
func (_Tokenhub *TokenhubFilterer) WatchParamChange(opts *bind.WatchOpts, sink chan<- *TokenhubParamChange) (event.Subscription, error)
WatchParamChange is a free log subscription operation binding the contract event 0x6cdb0ac70ab7f2e2d035cca5be60d89906f2dede7648ddbd7402189c1eeed17a.
Solidity: event paramChange(string key, bytes value)
func (*TokenhubFilterer) WatchReceiveDeposit ¶
func (_Tokenhub *TokenhubFilterer) WatchReceiveDeposit(opts *bind.WatchOpts, sink chan<- *TokenhubReceiveDeposit) (event.Subscription, error)
WatchReceiveDeposit is a free log subscription operation binding the contract event 0x6c98249d85d88c3753a04a22230f595e4dc8d3dc86c34af35deeeedc861b89db.
Solidity: event receiveDeposit(address from, uint256 amount)
func (*TokenhubFilterer) WatchRefundFailure ¶
func (_Tokenhub *TokenhubFilterer) WatchRefundFailure(opts *bind.WatchOpts, sink chan<- *TokenhubRefundFailure) (event.Subscription, error)
WatchRefundFailure is a free log subscription operation binding the contract event 0x203f9f67a785f4f81be4d48b109aa0c498d1bc8097ecc2627063f480cc5fe73e.
Solidity: event refundFailure(address bep20Addr, address refundAddr, uint256 amount, uint32 status)
func (*TokenhubFilterer) WatchRefundSuccess ¶
func (_Tokenhub *TokenhubFilterer) WatchRefundSuccess(opts *bind.WatchOpts, sink chan<- *TokenhubRefundSuccess) (event.Subscription, error)
WatchRefundSuccess is a free log subscription operation binding the contract event 0xd468d4fa5e8fb4adc119b29a983fd0785e04af5cb8b7a3a69a47270c54b6901a.
Solidity: event refundSuccess(address bep20Addr, address refundAddr, uint256 amount, uint32 status)
func (*TokenhubFilterer) WatchRewardTo ¶
func (_Tokenhub *TokenhubFilterer) WatchRewardTo(opts *bind.WatchOpts, sink chan<- *TokenhubRewardTo) (event.Subscription, error)
WatchRewardTo is a free log subscription operation binding the contract event 0xf8b71c64315fc33b2ead2adfa487955065152a8ac33d9d5193aafd7f45dc15a0.
Solidity: event rewardTo(address to, uint256 amount)
func (*TokenhubFilterer) WatchTransferInSuccess ¶
func (_Tokenhub *TokenhubFilterer) WatchTransferInSuccess(opts *bind.WatchOpts, sink chan<- *TokenhubTransferInSuccess) (event.Subscription, error)
WatchTransferInSuccess is a free log subscription operation binding the contract event 0x471eb9cc1ffe55ffadf15b32595415eb9d80f22e761d24bd6dffc607e1284d59.
Solidity: event transferInSuccess(address bep20Addr, address refundAddr, uint256 amount)
func (*TokenhubFilterer) WatchTransferOutSuccess ¶
func (_Tokenhub *TokenhubFilterer) WatchTransferOutSuccess(opts *bind.WatchOpts, sink chan<- *TokenhubTransferOutSuccess) (event.Subscription, error)
WatchTransferOutSuccess is a free log subscription operation binding the contract event 0x74eab09b0e53aefc23f2e1b16da593f95c2dd49c6f5a23720463d10d9c330b2a.
Solidity: event transferOutSuccess(address bep20Addr, address senderAddr, uint256 amount, uint256 relayFee)
func (*TokenhubFilterer) WatchUnexpectedPackage ¶
func (_Tokenhub *TokenhubFilterer) WatchUnexpectedPackage(opts *bind.WatchOpts, sink chan<- *TokenhubUnexpectedPackage) (event.Subscription, error)
WatchUnexpectedPackage is a free log subscription operation binding the contract event 0x41ce201247b6ceb957dcdb217d0b8acb50b9ea0e12af9af4f5e7f38902101605.
Solidity: event unexpectedPackage(uint8 channelId, bytes msgBytes)
type TokenhubParamChange ¶
type TokenhubParamChange struct { Key string Value []byte Raw types.Log // Blockchain specific contextual infos }
TokenhubParamChange represents a ParamChange event raised by the Tokenhub contract.
type TokenhubParamChangeIterator ¶
type TokenhubParamChangeIterator struct { Event *TokenhubParamChange // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubParamChangeIterator is returned from FilterParamChange and is used to iterate over the raw logs and unpacked data for ParamChange events raised by the Tokenhub contract.
func (*TokenhubParamChangeIterator) Close ¶
func (it *TokenhubParamChangeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubParamChangeIterator) Error ¶
func (it *TokenhubParamChangeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubParamChangeIterator) Next ¶
func (it *TokenhubParamChangeIterator) 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 TokenhubRaw ¶
type TokenhubRaw struct {
Contract *Tokenhub // Generic contract binding to access the raw methods on
}
TokenhubRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenhubRaw) Call ¶
func (_Tokenhub *TokenhubRaw) 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 (*TokenhubRaw) Transact ¶
func (_Tokenhub *TokenhubRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenhubRaw) Transfer ¶
func (_Tokenhub *TokenhubRaw) 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 TokenhubReceiveDeposit ¶
type TokenhubReceiveDeposit struct { From common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenhubReceiveDeposit represents a ReceiveDeposit event raised by the Tokenhub contract.
type TokenhubReceiveDepositIterator ¶
type TokenhubReceiveDepositIterator struct { Event *TokenhubReceiveDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubReceiveDepositIterator is returned from FilterReceiveDeposit and is used to iterate over the raw logs and unpacked data for ReceiveDeposit events raised by the Tokenhub contract.
func (*TokenhubReceiveDepositIterator) Close ¶
func (it *TokenhubReceiveDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubReceiveDepositIterator) Error ¶
func (it *TokenhubReceiveDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubReceiveDepositIterator) Next ¶
func (it *TokenhubReceiveDepositIterator) 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 TokenhubRefundFailure ¶
type TokenhubRefundFailure struct { Bep20Addr common.Address RefundAddr common.Address Amount *big.Int Status uint32 Raw types.Log // Blockchain specific contextual infos }
TokenhubRefundFailure represents a RefundFailure event raised by the Tokenhub contract.
type TokenhubRefundFailureIterator ¶
type TokenhubRefundFailureIterator struct { Event *TokenhubRefundFailure // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubRefundFailureIterator is returned from FilterRefundFailure and is used to iterate over the raw logs and unpacked data for RefundFailure events raised by the Tokenhub contract.
func (*TokenhubRefundFailureIterator) Close ¶
func (it *TokenhubRefundFailureIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubRefundFailureIterator) Error ¶
func (it *TokenhubRefundFailureIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubRefundFailureIterator) Next ¶
func (it *TokenhubRefundFailureIterator) 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 TokenhubRefundSuccess ¶
type TokenhubRefundSuccess struct { Bep20Addr common.Address RefundAddr common.Address Amount *big.Int Status uint32 Raw types.Log // Blockchain specific contextual infos }
TokenhubRefundSuccess represents a RefundSuccess event raised by the Tokenhub contract.
type TokenhubRefundSuccessIterator ¶
type TokenhubRefundSuccessIterator struct { Event *TokenhubRefundSuccess // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubRefundSuccessIterator is returned from FilterRefundSuccess and is used to iterate over the raw logs and unpacked data for RefundSuccess events raised by the Tokenhub contract.
func (*TokenhubRefundSuccessIterator) Close ¶
func (it *TokenhubRefundSuccessIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubRefundSuccessIterator) Error ¶
func (it *TokenhubRefundSuccessIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubRefundSuccessIterator) Next ¶
func (it *TokenhubRefundSuccessIterator) 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 TokenhubRewardTo ¶
type TokenhubRewardTo struct { To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenhubRewardTo represents a RewardTo event raised by the Tokenhub contract.
type TokenhubRewardToIterator ¶
type TokenhubRewardToIterator struct { Event *TokenhubRewardTo // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubRewardToIterator is returned from FilterRewardTo and is used to iterate over the raw logs and unpacked data for RewardTo events raised by the Tokenhub contract.
func (*TokenhubRewardToIterator) Close ¶
func (it *TokenhubRewardToIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubRewardToIterator) Error ¶
func (it *TokenhubRewardToIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubRewardToIterator) Next ¶
func (it *TokenhubRewardToIterator) 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 TokenhubSession ¶
type TokenhubSession struct { Contract *Tokenhub // 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 }
TokenhubSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenhubSession) AlreadyInit ¶
func (_Tokenhub *TokenhubSession) AlreadyInit() (bool, error)
AlreadyInit is a free data retrieval call binding the contract method 0xa78abc16.
Solidity: function alreadyInit() constant returns(bool)
func (*TokenhubSession) BEP2TOKENDECIMALS ¶
func (_Tokenhub *TokenhubSession) BEP2TOKENDECIMALS() (uint8, error)
BEP2TOKENDECIMALS is a free data retrieval call binding the contract method 0x61368475.
Solidity: function BEP2_TOKEN_DECIMALS() constant returns(uint8)
func (*TokenhubSession) BEP2TOKENSYMBOLFORBNB ¶
func (_Tokenhub *TokenhubSession) BEP2TOKENSYMBOLFORBNB() ([32]byte, error)
BEP2TOKENSYMBOLFORBNB is a free data retrieval call binding the contract method 0xb9fd21e3.
Solidity: function BEP2_TOKEN_SYMBOL_FOR_BNB() constant returns(bytes32)
func (*TokenhubSession) BINDCHANNELID ¶
func (_Tokenhub *TokenhubSession) BINDCHANNELID() (uint8, error)
BINDCHANNELID is a free data retrieval call binding the contract method 0x3dffc387.
Solidity: function BIND_CHANNELID() constant returns(uint8)
func (*TokenhubSession) BatchTransferOutBNB ¶
func (_Tokenhub *TokenhubSession) BatchTransferOutBNB(recipientAddrs []common.Address, amounts []*big.Int, refundAddrs []common.Address, expireTime uint64) (*types.Transaction, error)
BatchTransferOutBNB is a paid mutator transaction binding the contract method 0x6e056520.
Solidity: function batchTransferOutBNB(address[] recipientAddrs, uint256[] amounts, address[] refundAddrs, uint64 expireTime) returns(bool)
func (*TokenhubSession) Bep20ContractDecimals ¶
Bep20ContractDecimals is a free data retrieval call binding the contract method 0xbbface1f.
Solidity: function bep20ContractDecimals(address ) constant returns(uint256)
func (*TokenhubSession) BindToken ¶
func (_Tokenhub *TokenhubSession) BindToken(bep2Symbol [32]byte, contractAddr common.Address, decimals *big.Int) (*types.Transaction, error)
BindToken is a paid mutator transaction binding the contract method 0x8eff336c.
Solidity: function bindToken(bytes32 bep2Symbol, address contractAddr, uint256 decimals) returns()
func (*TokenhubSession) BscChainID ¶
func (_Tokenhub *TokenhubSession) BscChainID() (uint16, error)
BscChainID is a free data retrieval call binding the contract method 0x493279b1.
Solidity: function bscChainID() constant returns(uint16)
func (*TokenhubSession) CODEOK ¶
func (_Tokenhub *TokenhubSession) CODEOK() (uint32, error)
CODEOK is a free data retrieval call binding the contract method 0xab51bb96.
Solidity: function CODE_OK() constant returns(uint32)
func (*TokenhubSession) CROSSCHAINCONTRACTADDR ¶
func (_Tokenhub *TokenhubSession) CROSSCHAINCONTRACTADDR() (common.Address, error)
CROSSCHAINCONTRACTADDR is a free data retrieval call binding the contract method 0x51e80672.
Solidity: function CROSS_CHAIN_CONTRACT_ADDR() constant returns(address)
func (*TokenhubSession) ClaimRewards ¶
func (_Tokenhub *TokenhubSession) ClaimRewards(to common.Address, amount *big.Int) (*types.Transaction, error)
ClaimRewards is a paid mutator transaction binding the contract method 0x9a99b4f0.
Solidity: function claimRewards(address to, uint256 amount) returns(uint256)
func (*TokenhubSession) ERRORFAILDECODE ¶
func (_Tokenhub *TokenhubSession) ERRORFAILDECODE() (uint32, error)
ERRORFAILDECODE is a free data retrieval call binding the contract method 0x0bee7a67.
Solidity: function ERROR_FAIL_DECODE() constant returns(uint32)
func (*TokenhubSession) GOVCHANNELID ¶
func (_Tokenhub *TokenhubSession) GOVCHANNELID() (uint8, error)
GOVCHANNELID is a free data retrieval call binding the contract method 0x96713da9.
Solidity: function GOV_CHANNELID() constant returns(uint8)
func (*TokenhubSession) GOVHUBADDR ¶
func (_Tokenhub *TokenhubSession) GOVHUBADDR() (common.Address, error)
GOVHUBADDR is a free data retrieval call binding the contract method 0x9dc09262.
Solidity: function GOV_HUB_ADDR() constant returns(address)
func (*TokenhubSession) GetBep2SymbolByContractAddr ¶
func (_Tokenhub *TokenhubSession) GetBep2SymbolByContractAddr(contractAddr common.Address) ([32]byte, error)
GetBep2SymbolByContractAddr is a free data retrieval call binding the contract method 0xbd466461.
Solidity: function getBep2SymbolByContractAddr(address contractAddr) constant returns(bytes32)
func (*TokenhubSession) GetBoundBep2Symbol ¶
func (_Tokenhub *TokenhubSession) GetBoundBep2Symbol(contractAddr common.Address) (string, error)
GetBoundBep2Symbol is a free data retrieval call binding the contract method 0xfc1a598f.
Solidity: function getBoundBep2Symbol(address contractAddr) constant returns(string)
func (*TokenhubSession) GetBoundContract ¶
func (_Tokenhub *TokenhubSession) GetBoundContract(bep2Symbol string) (common.Address, error)
GetBoundContract is a free data retrieval call binding the contract method 0x3d713223.
Solidity: function getBoundContract(string bep2Symbol) constant returns(address)
func (*TokenhubSession) GetContractAddrByBEP2Symbol ¶
func (_Tokenhub *TokenhubSession) GetContractAddrByBEP2Symbol(bep2Symbol [32]byte) (common.Address, error)
GetContractAddrByBEP2Symbol is a free data retrieval call binding the contract method 0x59b92789.
Solidity: function getContractAddrByBEP2Symbol(bytes32 bep2Symbol) constant returns(address)
func (*TokenhubSession) GetMiniRelayFee ¶
func (_Tokenhub *TokenhubSession) GetMiniRelayFee() (*big.Int, error)
GetMiniRelayFee is a free data retrieval call binding the contract method 0x149d14d9.
Solidity: function getMiniRelayFee() constant returns(uint256)
func (*TokenhubSession) HandleAckPackage ¶
func (_Tokenhub *TokenhubSession) HandleAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleAckPackage is a paid mutator transaction binding the contract method 0x831d65d1.
Solidity: function handleAckPackage(uint8 channelId, bytes msgBytes) returns()
func (*TokenhubSession) HandleFailAckPackage ¶
func (_Tokenhub *TokenhubSession) HandleFailAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleFailAckPackage is a paid mutator transaction binding the contract method 0xc8509d81.
Solidity: function handleFailAckPackage(uint8 channelId, bytes msgBytes) returns()
func (*TokenhubSession) HandleSynPackage ¶
func (_Tokenhub *TokenhubSession) HandleSynPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleSynPackage is a paid mutator transaction binding the contract method 0x1182b875.
Solidity: function handleSynPackage(uint8 channelId, bytes msgBytes) returns(bytes)
func (*TokenhubSession) INCENTIVIZEADDR ¶
func (_Tokenhub *TokenhubSession) INCENTIVIZEADDR() (common.Address, error)
INCENTIVIZEADDR is a free data retrieval call binding the contract method 0x6e47b482.
Solidity: function INCENTIVIZE_ADDR() constant returns(address)
func (*TokenhubSession) INITMINIMUMRELAYFEE ¶
func (_Tokenhub *TokenhubSession) INITMINIMUMRELAYFEE() (*big.Int, error)
INITMINIMUMRELAYFEE is a free data retrieval call binding the contract method 0x50432d32.
Solidity: function INIT_MINIMUM_RELAY_FEE() constant returns(uint256)
func (*TokenhubSession) Init ¶
func (_Tokenhub *TokenhubSession) Init() (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xe1c7392a.
Solidity: function init() returns()
func (*TokenhubSession) LIGHTCLIENTADDR ¶
func (_Tokenhub *TokenhubSession) LIGHTCLIENTADDR() (common.Address, error)
LIGHTCLIENTADDR is a free data retrieval call binding the contract method 0xdc927faf.
Solidity: function LIGHT_CLIENT_ADDR() constant returns(address)
func (*TokenhubSession) MAXBEP2TOTALSUPPLY ¶
func (_Tokenhub *TokenhubSession) MAXBEP2TOTALSUPPLY() (*big.Int, error)
MAXBEP2TOTALSUPPLY is a free data retrieval call binding the contract method 0x9a854bbd.
Solidity: function MAX_BEP2_TOTAL_SUPPLY() constant returns(uint256)
func (*TokenhubSession) MAXGASFORCALLINGBEP20 ¶
func (_Tokenhub *TokenhubSession) MAXGASFORCALLINGBEP20() (*big.Int, error)
MAXGASFORCALLINGBEP20 is a free data retrieval call binding the contract method 0xba35ead6.
Solidity: function MAX_GAS_FOR_CALLING_BEP20() constant returns(uint256)
func (*TokenhubSession) MAXGASFORTRANSFERBNB ¶
func (_Tokenhub *TokenhubSession) MAXGASFORTRANSFERBNB() (*big.Int, error)
MAXGASFORTRANSFERBNB is a free data retrieval call binding the contract method 0xfa9e9159.
Solidity: function MAX_GAS_FOR_TRANSFER_BNB() constant returns(uint256)
func (*TokenhubSession) MAXIMUMBEP20SYMBOLLEN ¶
func (_Tokenhub *TokenhubSession) MAXIMUMBEP20SYMBOLLEN() (uint8, error)
MAXIMUMBEP20SYMBOLLEN is a free data retrieval call binding the contract method 0xd9e6dae9.
Solidity: function MAXIMUM_BEP20_SYMBOL_LEN() constant returns(uint8)
func (*TokenhubSession) MINIMUMBEP20SYMBOLLEN ¶
func (_Tokenhub *TokenhubSession) MINIMUMBEP20SYMBOLLEN() (uint8, error)
MINIMUMBEP20SYMBOLLEN is a free data retrieval call binding the contract method 0x66dea52a.
Solidity: function MINIMUM_BEP20_SYMBOL_LEN() constant returns(uint8)
func (*TokenhubSession) RELAYERHUBCONTRACTADDR ¶
func (_Tokenhub *TokenhubSession) RELAYERHUBCONTRACTADDR() (common.Address, error)
RELAYERHUBCONTRACTADDR is a free data retrieval call binding the contract method 0xa1a11bf5.
Solidity: function RELAYERHUB_CONTRACT_ADDR() constant returns(address)
func (*TokenhubSession) REWARDUPPERLIMIT ¶
func (_Tokenhub *TokenhubSession) REWARDUPPERLIMIT() (*big.Int, error)
REWARDUPPERLIMIT is a free data retrieval call binding the contract method 0x43a368b9.
Solidity: function REWARD_UPPER_LIMIT() constant returns(uint256)
func (*TokenhubSession) RelayFee ¶
func (_Tokenhub *TokenhubSession) RelayFee() (*big.Int, error)
RelayFee is a free data retrieval call binding the contract method 0x71d30863.
Solidity: function relayFee() constant returns(uint256)
func (*TokenhubSession) SLASHCHANNELID ¶
func (_Tokenhub *TokenhubSession) SLASHCHANNELID() (uint8, error)
SLASHCHANNELID is a free data retrieval call binding the contract method 0x7942fd05.
Solidity: function SLASH_CHANNELID() constant returns(uint8)
func (*TokenhubSession) SLASHCONTRACTADDR ¶
func (_Tokenhub *TokenhubSession) SLASHCONTRACTADDR() (common.Address, error)
SLASHCONTRACTADDR is a free data retrieval call binding the contract method 0x43756e5c.
Solidity: function SLASH_CONTRACT_ADDR() constant returns(address)
func (*TokenhubSession) STAKINGCHANNELID ¶
func (_Tokenhub *TokenhubSession) STAKINGCHANNELID() (uint8, error)
STAKINGCHANNELID is a free data retrieval call binding the contract method 0x4bf6c882.
Solidity: function STAKING_CHANNELID() constant returns(uint8)
func (*TokenhubSession) SYSTEMREWARDADDR ¶
func (_Tokenhub *TokenhubSession) SYSTEMREWARDADDR() (common.Address, error)
SYSTEMREWARDADDR is a free data retrieval call binding the contract method 0xc81b1662.
Solidity: function SYSTEM_REWARD_ADDR() constant returns(address)
func (*TokenhubSession) TENDECIMALS ¶
func (_Tokenhub *TokenhubSession) TENDECIMALS() (*big.Int, error)
TENDECIMALS is a free data retrieval call binding the contract method 0x5d499b1b.
Solidity: function TEN_DECIMALS() constant returns(uint256)
func (*TokenhubSession) TOKENHUBADDR ¶
func (_Tokenhub *TokenhubSession) TOKENHUBADDR() (common.Address, error)
TOKENHUBADDR is a free data retrieval call binding the contract method 0xfd6a6879.
Solidity: function TOKEN_HUB_ADDR() constant returns(address)
func (*TokenhubSession) TOKENMANAGERADDR ¶
func (_Tokenhub *TokenhubSession) TOKENMANAGERADDR() (common.Address, error)
TOKENMANAGERADDR is a free data retrieval call binding the contract method 0x75d47a0a.
Solidity: function TOKEN_MANAGER_ADDR() constant returns(address)
func (*TokenhubSession) TRANSFERINCHANNELID ¶
func (_Tokenhub *TokenhubSession) TRANSFERINCHANNELID() (uint8, error)
TRANSFERINCHANNELID is a free data retrieval call binding the contract method 0x70fd5bad.
Solidity: function TRANSFER_IN_CHANNELID() constant returns(uint8)
func (*TokenhubSession) TRANSFERINFAILUREINSUFFICIENTBALANCE ¶
func (_Tokenhub *TokenhubSession) TRANSFERINFAILUREINSUFFICIENTBALANCE() (uint8, error)
TRANSFERINFAILUREINSUFFICIENTBALANCE is a free data retrieval call binding the contract method 0xa7c9f02d.
Solidity: function TRANSFER_IN_FAILURE_INSUFFICIENT_BALANCE() constant returns(uint8)
func (*TokenhubSession) TRANSFERINFAILURENONPAYABLERECIPIENT ¶
func (_Tokenhub *TokenhubSession) TRANSFERINFAILURENONPAYABLERECIPIENT() (uint8, error)
TRANSFERINFAILURENONPAYABLERECIPIENT is a free data retrieval call binding the contract method 0xebf71d53.
Solidity: function TRANSFER_IN_FAILURE_NON_PAYABLE_RECIPIENT() constant returns(uint8)
func (*TokenhubSession) TRANSFERINFAILURETIMEOUT ¶
func (_Tokenhub *TokenhubSession) TRANSFERINFAILURETIMEOUT() (uint8, error)
TRANSFERINFAILURETIMEOUT is a free data retrieval call binding the contract method 0x8b87b21f.
Solidity: function TRANSFER_IN_FAILURE_TIMEOUT() constant returns(uint8)
func (*TokenhubSession) TRANSFERINFAILUREUNBOUNDTOKEN ¶
func (_Tokenhub *TokenhubSession) TRANSFERINFAILUREUNBOUNDTOKEN() (uint8, error)
TRANSFERINFAILUREUNBOUNDTOKEN is a free data retrieval call binding the contract method 0xff9c0027.
Solidity: function TRANSFER_IN_FAILURE_UNBOUND_TOKEN() constant returns(uint8)
func (*TokenhubSession) TRANSFERINFAILUREUNKNOWN ¶
func (_Tokenhub *TokenhubSession) TRANSFERINFAILUREUNKNOWN() (uint8, error)
TRANSFERINFAILUREUNKNOWN is a free data retrieval call binding the contract method 0xf0148472.
Solidity: function TRANSFER_IN_FAILURE_UNKNOWN() constant returns(uint8)
func (*TokenhubSession) TRANSFERINSUCCESS ¶
func (_Tokenhub *TokenhubSession) TRANSFERINSUCCESS() (uint8, error)
TRANSFERINSUCCESS is a free data retrieval call binding the contract method 0xa496fba2.
Solidity: function TRANSFER_IN_SUCCESS() constant returns(uint8)
func (*TokenhubSession) TRANSFEROUTCHANNELID ¶
func (_Tokenhub *TokenhubSession) TRANSFEROUTCHANNELID() (uint8, error)
TRANSFEROUTCHANNELID is a free data retrieval call binding the contract method 0xfc3e5908.
Solidity: function TRANSFER_OUT_CHANNELID() constant returns(uint8)
func (*TokenhubSession) TransferOut ¶
func (_Tokenhub *TokenhubSession) TransferOut(contractAddr common.Address, recipient common.Address, amount *big.Int, expireTime uint64) (*types.Transaction, error)
TransferOut is a paid mutator transaction binding the contract method 0xaa7415f5.
Solidity: function transferOut(address contractAddr, address recipient, uint256 amount, uint64 expireTime) returns(bool)
func (*TokenhubSession) UnbindToken ¶
func (_Tokenhub *TokenhubSession) UnbindToken(bep2Symbol [32]byte, contractAddr common.Address) (*types.Transaction, error)
UnbindToken is a paid mutator transaction binding the contract method 0xb99328c5.
Solidity: function unbindToken(bytes32 bep2Symbol, address contractAddr) returns()
func (*TokenhubSession) UpdateParam ¶
func (_Tokenhub *TokenhubSession) UpdateParam(key string, value []byte) (*types.Transaction, error)
UpdateParam is a paid mutator transaction binding the contract method 0xac431751.
Solidity: function updateParam(string key, bytes value) returns()
func (*TokenhubSession) VALIDATORCONTRACTADDR ¶
func (_Tokenhub *TokenhubSession) VALIDATORCONTRACTADDR() (common.Address, error)
VALIDATORCONTRACTADDR is a free data retrieval call binding the contract method 0xf9a2bbc7.
Solidity: function VALIDATOR_CONTRACT_ADDR() constant returns(address)
type TokenhubTransactor ¶
type TokenhubTransactor struct {
// contains filtered or unexported fields
}
TokenhubTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenhubTransactor ¶
func NewTokenhubTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenhubTransactor, error)
NewTokenhubTransactor creates a new write-only instance of Tokenhub, bound to a specific deployed contract.
func (*TokenhubTransactor) BatchTransferOutBNB ¶
func (_Tokenhub *TokenhubTransactor) BatchTransferOutBNB(opts *bind.TransactOpts, recipientAddrs []common.Address, amounts []*big.Int, refundAddrs []common.Address, expireTime uint64) (*types.Transaction, error)
BatchTransferOutBNB is a paid mutator transaction binding the contract method 0x6e056520.
Solidity: function batchTransferOutBNB(address[] recipientAddrs, uint256[] amounts, address[] refundAddrs, uint64 expireTime) returns(bool)
func (*TokenhubTransactor) BindToken ¶
func (_Tokenhub *TokenhubTransactor) BindToken(opts *bind.TransactOpts, bep2Symbol [32]byte, contractAddr common.Address, decimals *big.Int) (*types.Transaction, error)
BindToken is a paid mutator transaction binding the contract method 0x8eff336c.
Solidity: function bindToken(bytes32 bep2Symbol, address contractAddr, uint256 decimals) returns()
func (*TokenhubTransactor) ClaimRewards ¶
func (_Tokenhub *TokenhubTransactor) ClaimRewards(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
ClaimRewards is a paid mutator transaction binding the contract method 0x9a99b4f0.
Solidity: function claimRewards(address to, uint256 amount) returns(uint256)
func (*TokenhubTransactor) HandleAckPackage ¶
func (_Tokenhub *TokenhubTransactor) HandleAckPackage(opts *bind.TransactOpts, channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleAckPackage is a paid mutator transaction binding the contract method 0x831d65d1.
Solidity: function handleAckPackage(uint8 channelId, bytes msgBytes) returns()
func (*TokenhubTransactor) HandleFailAckPackage ¶
func (_Tokenhub *TokenhubTransactor) HandleFailAckPackage(opts *bind.TransactOpts, channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleFailAckPackage is a paid mutator transaction binding the contract method 0xc8509d81.
Solidity: function handleFailAckPackage(uint8 channelId, bytes msgBytes) returns()
func (*TokenhubTransactor) HandleSynPackage ¶
func (_Tokenhub *TokenhubTransactor) HandleSynPackage(opts *bind.TransactOpts, channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleSynPackage is a paid mutator transaction binding the contract method 0x1182b875.
Solidity: function handleSynPackage(uint8 channelId, bytes msgBytes) returns(bytes)
func (*TokenhubTransactor) Init ¶
func (_Tokenhub *TokenhubTransactor) Init(opts *bind.TransactOpts) (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xe1c7392a.
Solidity: function init() returns()
func (*TokenhubTransactor) TransferOut ¶
func (_Tokenhub *TokenhubTransactor) TransferOut(opts *bind.TransactOpts, contractAddr common.Address, recipient common.Address, amount *big.Int, expireTime uint64) (*types.Transaction, error)
TransferOut is a paid mutator transaction binding the contract method 0xaa7415f5.
Solidity: function transferOut(address contractAddr, address recipient, uint256 amount, uint64 expireTime) returns(bool)
func (*TokenhubTransactor) UnbindToken ¶
func (_Tokenhub *TokenhubTransactor) UnbindToken(opts *bind.TransactOpts, bep2Symbol [32]byte, contractAddr common.Address) (*types.Transaction, error)
UnbindToken is a paid mutator transaction binding the contract method 0xb99328c5.
Solidity: function unbindToken(bytes32 bep2Symbol, address contractAddr) returns()
func (*TokenhubTransactor) UpdateParam ¶
func (_Tokenhub *TokenhubTransactor) UpdateParam(opts *bind.TransactOpts, key string, value []byte) (*types.Transaction, error)
UpdateParam is a paid mutator transaction binding the contract method 0xac431751.
Solidity: function updateParam(string key, bytes value) returns()
type TokenhubTransactorRaw ¶
type TokenhubTransactorRaw struct {
Contract *TokenhubTransactor // Generic write-only contract binding to access the raw methods on
}
TokenhubTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenhubTransactorRaw) Transact ¶
func (_Tokenhub *TokenhubTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenhubTransactorRaw) Transfer ¶
func (_Tokenhub *TokenhubTransactorRaw) 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 TokenhubTransactorSession ¶
type TokenhubTransactorSession struct { Contract *TokenhubTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenhubTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenhubTransactorSession) BatchTransferOutBNB ¶
func (_Tokenhub *TokenhubTransactorSession) BatchTransferOutBNB(recipientAddrs []common.Address, amounts []*big.Int, refundAddrs []common.Address, expireTime uint64) (*types.Transaction, error)
BatchTransferOutBNB is a paid mutator transaction binding the contract method 0x6e056520.
Solidity: function batchTransferOutBNB(address[] recipientAddrs, uint256[] amounts, address[] refundAddrs, uint64 expireTime) returns(bool)
func (*TokenhubTransactorSession) BindToken ¶
func (_Tokenhub *TokenhubTransactorSession) BindToken(bep2Symbol [32]byte, contractAddr common.Address, decimals *big.Int) (*types.Transaction, error)
BindToken is a paid mutator transaction binding the contract method 0x8eff336c.
Solidity: function bindToken(bytes32 bep2Symbol, address contractAddr, uint256 decimals) returns()
func (*TokenhubTransactorSession) ClaimRewards ¶
func (_Tokenhub *TokenhubTransactorSession) ClaimRewards(to common.Address, amount *big.Int) (*types.Transaction, error)
ClaimRewards is a paid mutator transaction binding the contract method 0x9a99b4f0.
Solidity: function claimRewards(address to, uint256 amount) returns(uint256)
func (*TokenhubTransactorSession) HandleAckPackage ¶
func (_Tokenhub *TokenhubTransactorSession) HandleAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleAckPackage is a paid mutator transaction binding the contract method 0x831d65d1.
Solidity: function handleAckPackage(uint8 channelId, bytes msgBytes) returns()
func (*TokenhubTransactorSession) HandleFailAckPackage ¶
func (_Tokenhub *TokenhubTransactorSession) HandleFailAckPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleFailAckPackage is a paid mutator transaction binding the contract method 0xc8509d81.
Solidity: function handleFailAckPackage(uint8 channelId, bytes msgBytes) returns()
func (*TokenhubTransactorSession) HandleSynPackage ¶
func (_Tokenhub *TokenhubTransactorSession) HandleSynPackage(channelId uint8, msgBytes []byte) (*types.Transaction, error)
HandleSynPackage is a paid mutator transaction binding the contract method 0x1182b875.
Solidity: function handleSynPackage(uint8 channelId, bytes msgBytes) returns(bytes)
func (*TokenhubTransactorSession) Init ¶
func (_Tokenhub *TokenhubTransactorSession) Init() (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xe1c7392a.
Solidity: function init() returns()
func (*TokenhubTransactorSession) TransferOut ¶
func (_Tokenhub *TokenhubTransactorSession) TransferOut(contractAddr common.Address, recipient common.Address, amount *big.Int, expireTime uint64) (*types.Transaction, error)
TransferOut is a paid mutator transaction binding the contract method 0xaa7415f5.
Solidity: function transferOut(address contractAddr, address recipient, uint256 amount, uint64 expireTime) returns(bool)
func (*TokenhubTransactorSession) UnbindToken ¶
func (_Tokenhub *TokenhubTransactorSession) UnbindToken(bep2Symbol [32]byte, contractAddr common.Address) (*types.Transaction, error)
UnbindToken is a paid mutator transaction binding the contract method 0xb99328c5.
Solidity: function unbindToken(bytes32 bep2Symbol, address contractAddr) returns()
func (*TokenhubTransactorSession) UpdateParam ¶
func (_Tokenhub *TokenhubTransactorSession) UpdateParam(key string, value []byte) (*types.Transaction, error)
UpdateParam is a paid mutator transaction binding the contract method 0xac431751.
Solidity: function updateParam(string key, bytes value) returns()
type TokenhubTransferInSuccess ¶
type TokenhubTransferInSuccess struct { Bep20Addr common.Address RefundAddr common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenhubTransferInSuccess represents a TransferInSuccess event raised by the Tokenhub contract.
type TokenhubTransferInSuccessIterator ¶
type TokenhubTransferInSuccessIterator struct { Event *TokenhubTransferInSuccess // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubTransferInSuccessIterator is returned from FilterTransferInSuccess and is used to iterate over the raw logs and unpacked data for TransferInSuccess events raised by the Tokenhub contract.
func (*TokenhubTransferInSuccessIterator) Close ¶
func (it *TokenhubTransferInSuccessIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubTransferInSuccessIterator) Error ¶
func (it *TokenhubTransferInSuccessIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubTransferInSuccessIterator) Next ¶
func (it *TokenhubTransferInSuccessIterator) 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 TokenhubTransferOutSuccess ¶
type TokenhubTransferOutSuccess struct { Bep20Addr common.Address SenderAddr common.Address Amount *big.Int RelayFee *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenhubTransferOutSuccess represents a TransferOutSuccess event raised by the Tokenhub contract.
type TokenhubTransferOutSuccessIterator ¶
type TokenhubTransferOutSuccessIterator struct { Event *TokenhubTransferOutSuccess // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubTransferOutSuccessIterator is returned from FilterTransferOutSuccess and is used to iterate over the raw logs and unpacked data for TransferOutSuccess events raised by the Tokenhub contract.
func (*TokenhubTransferOutSuccessIterator) Close ¶
func (it *TokenhubTransferOutSuccessIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubTransferOutSuccessIterator) Error ¶
func (it *TokenhubTransferOutSuccessIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubTransferOutSuccessIterator) Next ¶
func (it *TokenhubTransferOutSuccessIterator) 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 TokenhubUnexpectedPackage ¶
type TokenhubUnexpectedPackage struct { ChannelId uint8 MsgBytes []byte Raw types.Log // Blockchain specific contextual infos }
TokenhubUnexpectedPackage represents a UnexpectedPackage event raised by the Tokenhub contract.
type TokenhubUnexpectedPackageIterator ¶
type TokenhubUnexpectedPackageIterator struct { Event *TokenhubUnexpectedPackage // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenhubUnexpectedPackageIterator is returned from FilterUnexpectedPackage and is used to iterate over the raw logs and unpacked data for UnexpectedPackage events raised by the Tokenhub contract.
func (*TokenhubUnexpectedPackageIterator) Close ¶
func (it *TokenhubUnexpectedPackageIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenhubUnexpectedPackageIterator) Error ¶
func (it *TokenhubUnexpectedPackageIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenhubUnexpectedPackageIterator) Next ¶
func (it *TokenhubUnexpectedPackageIterator) 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.