Documentation ¶
Index ¶
- Constants
- Variables
- type BridgeBank
- type BridgeBankCaller
- func (_BridgeBank *BridgeBankCaller) BRIDGEBANKREVISION(opts *bind.CallOpts) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) BandOracleInterface(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) BridgeRegistry(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) CheckUnlockable(opts *bind.CallOpts, _token common.Address, _amount *big.Int) (bool, error)
- func (_BridgeBank *BridgeBankCaller) ETHAddress(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) FeeDenominator(opts *bind.CallOpts) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) FeeNumerator(opts *bind.CallOpts) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) GetLockedFund(opts *bind.CallOpts, _ethereumToken common.Address) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) GetTokenMappedAddress(opts *bind.CallOpts, _ethereumToken common.Address) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) GetTotalERC20Balance(opts *bind.CallOpts, _ethereumToken common.Address) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) GetTotalETHBalance(opts *bind.CallOpts) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) HarmonyBridge(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) IsActiveToken(opts *bind.CallOpts, _ethereumToken common.Address) (bool, error)
- func (_BridgeBank *BridgeBankCaller) LendingPool(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) LockNonce(opts *bind.CallOpts) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) ONEAddress(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) Operator(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) Oracle(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) SAFENUMBER(opts *bind.CallOpts) (*big.Int, error)
- func (_BridgeBank *BridgeBankCaller) TokensData(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_BridgeBank *BridgeBankCaller) WETH(opts *bind.CallOpts) (common.Address, error)
- func (_BridgeBank *BridgeBankCaller) WethGateway(opts *bind.CallOpts) (common.Address, error)
- type BridgeBankCallerRaw
- type BridgeBankCallerSession
- func (_BridgeBank *BridgeBankCallerSession) BRIDGEBANKREVISION() (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) BandOracleInterface() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) BridgeRegistry() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) CheckUnlockable(_token common.Address, _amount *big.Int) (bool, error)
- func (_BridgeBank *BridgeBankCallerSession) ETHAddress() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) FeeDenominator() (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) FeeNumerator() (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) GetLockedFund(_ethereumToken common.Address) (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) GetTokenMappedAddress(_ethereumToken common.Address) (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) GetTotalERC20Balance(_ethereumToken common.Address) (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) GetTotalETHBalance() (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) HarmonyBridge() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) IsActiveToken(_ethereumToken common.Address) (bool, error)
- func (_BridgeBank *BridgeBankCallerSession) LendingPool() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) LockNonce() (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) ONEAddress() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) Operator() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) Oracle() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) SAFENUMBER() (*big.Int, error)
- func (_BridgeBank *BridgeBankCallerSession) TokensData(arg0 common.Address) (struct{ ... }, error)
- func (_BridgeBank *BridgeBankCallerSession) WETH() (common.Address, error)
- func (_BridgeBank *BridgeBankCallerSession) WethGateway() (common.Address, error)
- type BridgeBankEthLogLock
- type BridgeBankEthLogLockIterator
- type BridgeBankEthLogUnlock
- type BridgeBankEthLogUnlockIterator
- type BridgeBankEthUpdateFee
- type BridgeBankEthUpdateFeeIterator
- type BridgeBankEthUpdateHarmonyBridge
- type BridgeBankEthUpdateHarmonyBridgeIterator
- type BridgeBankEthUpdateOracle
- type BridgeBankEthUpdateOracleIterator
- type BridgeBankEthWithdrawERC20
- type BridgeBankEthWithdrawERC20Iterator
- type BridgeBankEthWithdrawETH
- type BridgeBankEthWithdrawETHIterator
- type BridgeBankFilterer
- func (_BridgeBank *BridgeBankFilterer) FilterEthLogLock(opts *bind.FilterOpts) (*BridgeBankEthLogLockIterator, error)
- func (_BridgeBank *BridgeBankFilterer) FilterEthLogUnlock(opts *bind.FilterOpts) (*BridgeBankEthLogUnlockIterator, error)
- func (_BridgeBank *BridgeBankFilterer) FilterEthUpdateFee(opts *bind.FilterOpts) (*BridgeBankEthUpdateFeeIterator, error)
- func (_BridgeBank *BridgeBankFilterer) FilterEthUpdateHarmonyBridge(opts *bind.FilterOpts) (*BridgeBankEthUpdateHarmonyBridgeIterator, error)
- func (_BridgeBank *BridgeBankFilterer) FilterEthUpdateOracle(opts *bind.FilterOpts) (*BridgeBankEthUpdateOracleIterator, error)
- func (_BridgeBank *BridgeBankFilterer) FilterEthWithdrawERC20(opts *bind.FilterOpts) (*BridgeBankEthWithdrawERC20Iterator, error)
- func (_BridgeBank *BridgeBankFilterer) FilterEthWithdrawETH(opts *bind.FilterOpts) (*BridgeBankEthWithdrawETHIterator, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthLogLock(log types.Log) (*BridgeBankEthLogLock, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthLogUnlock(log types.Log) (*BridgeBankEthLogUnlock, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthUpdateFee(log types.Log) (*BridgeBankEthUpdateFee, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthUpdateHarmonyBridge(log types.Log) (*BridgeBankEthUpdateHarmonyBridge, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthUpdateOracle(log types.Log) (*BridgeBankEthUpdateOracle, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthWithdrawERC20(log types.Log) (*BridgeBankEthWithdrawERC20, error)
- func (_BridgeBank *BridgeBankFilterer) ParseEthWithdrawETH(log types.Log) (*BridgeBankEthWithdrawETH, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthLogLock(opts *bind.WatchOpts, sink chan<- *BridgeBankEthLogLock) (event.Subscription, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthLogUnlock(opts *bind.WatchOpts, sink chan<- *BridgeBankEthLogUnlock) (event.Subscription, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthUpdateFee(opts *bind.WatchOpts, sink chan<- *BridgeBankEthUpdateFee) (event.Subscription, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthUpdateHarmonyBridge(opts *bind.WatchOpts, sink chan<- *BridgeBankEthUpdateHarmonyBridge) (event.Subscription, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthUpdateOracle(opts *bind.WatchOpts, sink chan<- *BridgeBankEthUpdateOracle) (event.Subscription, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthWithdrawERC20(opts *bind.WatchOpts, sink chan<- *BridgeBankEthWithdrawERC20) (event.Subscription, error)
- func (_BridgeBank *BridgeBankFilterer) WatchEthWithdrawETH(opts *bind.WatchOpts, sink chan<- *BridgeBankEthWithdrawETH) (event.Subscription, error)
- type BridgeBankRaw
- func (_BridgeBank *BridgeBankRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_BridgeBank *BridgeBankRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BridgeBankSession
- func (_BridgeBank *BridgeBankSession) ActivateToken(_ethereumToken common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) AddToken(_ethereumToken common.Address, _ethereumTokenAmount *big.Int, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) BRIDGEBANKREVISION() (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) BandOracleInterface() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) BridgeRegistry() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) CheckUnlockable(_token common.Address, _amount *big.Int) (bool, error)
- func (_BridgeBank *BridgeBankSession) DeactivateToken(_ethereumToken common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) ETHAddress() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) FeeDenominator() (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) FeeNumerator() (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) GetLockedFund(_ethereumToken common.Address) (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) GetTokenMappedAddress(_ethereumToken common.Address) (common.Address, error)
- func (_BridgeBank *BridgeBankSession) GetTotalERC20Balance(_ethereumToken common.Address) (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) GetTotalETHBalance() (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) HarmonyBridge() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) Initialize(_bridgeRegistry common.Address, _bandOracleAddress common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) IsActiveToken(_ethereumToken common.Address) (bool, error)
- func (_BridgeBank *BridgeBankSession) LendingPool() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) LockNonce() (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) ONEAddress() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) Operator() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) Oracle() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) SAFENUMBER() (*big.Int, error)
- func (_BridgeBank *BridgeBankSession) SwapETHForONE(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) SwapETHForToken(_harmonyReceiver common.Address, _amountETH *big.Int, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) SwapETHForWrappedETH(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) SwapToken11(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) SwapTokenForONE(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) SwapTokenForToken(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) SwapTokenForWrappedETH(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) TokensData(arg0 common.Address) (struct{ ... }, error)
- func (_BridgeBank *BridgeBankSession) UnlockERC20(_ethereumReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) UnlockETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) UpdateFee(_feeNumerator *big.Int, _feeDenominator *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) UpdateHmyBridge(_harmonyBridge common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) UpdateOracle(_oracleAddress common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) WETH() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) WethGateway() (common.Address, error)
- func (_BridgeBank *BridgeBankSession) WithdrawERC20(_ethereumToken common.Address, _ethereumReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankSession) WithdrawETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- type BridgeBankTransactor
- func (_BridgeBank *BridgeBankTransactor) ActivateToken(opts *bind.TransactOpts, _ethereumToken common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) AddToken(opts *bind.TransactOpts, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) DeactivateToken(opts *bind.TransactOpts, _ethereumToken common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) Initialize(opts *bind.TransactOpts, _bridgeRegistry common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapETHForONE(opts *bind.TransactOpts, _harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapETHForToken(opts *bind.TransactOpts, _harmonyReceiver common.Address, _amountETH *big.Int, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapETHForWrappedETH(opts *bind.TransactOpts, _harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapToken11(opts *bind.TransactOpts, _harmonyReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapTokenForONE(opts *bind.TransactOpts, _harmonyReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapTokenForToken(opts *bind.TransactOpts, _harmonyReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) SwapTokenForWrappedETH(opts *bind.TransactOpts, _harmonyReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) UnlockERC20(opts *bind.TransactOpts, _ethereumReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) UnlockETH(opts *bind.TransactOpts, _ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) UpdateFee(opts *bind.TransactOpts, _feeNumerator *big.Int, _feeDenominator *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) UpdateHmyBridge(opts *bind.TransactOpts, _harmonyBridge common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) UpdateOracle(opts *bind.TransactOpts, _oracleAddress common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) WithdrawERC20(opts *bind.TransactOpts, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactor) WithdrawETH(opts *bind.TransactOpts, _ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- type BridgeBankTransactorRaw
- type BridgeBankTransactorSession
- func (_BridgeBank *BridgeBankTransactorSession) ActivateToken(_ethereumToken common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) AddToken(_ethereumToken common.Address, _ethereumTokenAmount *big.Int, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) DeactivateToken(_ethereumToken common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) Initialize(_bridgeRegistry common.Address, _bandOracleAddress common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapETHForONE(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapETHForToken(_harmonyReceiver common.Address, _amountETH *big.Int, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapETHForWrappedETH(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapToken11(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapTokenForONE(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapTokenForToken(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) SwapTokenForWrappedETH(_harmonyReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) UnlockERC20(_ethereumReceiver common.Address, _ethereumToken common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) UnlockETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) UpdateFee(_feeNumerator *big.Int, _feeDenominator *big.Int) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) UpdateHmyBridge(_harmonyBridge common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) UpdateOracle(_oracleAddress common.Address) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) WithdrawERC20(_ethereumToken common.Address, _ethereumReceiver common.Address, ...) (*types.Transaction, error)
- func (_BridgeBank *BridgeBankTransactorSession) WithdrawETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
Constants ¶
const BridgeBankABI = "" /* 14188-byte string literal not displayed */
BridgeBankABI is the input ABI used to generate the binding from.
Variables ¶
var BridgeBankBin = "" /* 65066-byte string literal not displayed */
BridgeBankBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type BridgeBank ¶
type BridgeBank struct { BridgeBankCaller // Read-only binding to the contract BridgeBankTransactor // Write-only binding to the contract BridgeBankFilterer // Log filterer for contract events }
BridgeBank is an auto generated Go binding around an Ethereum contract.
func DeployBridgeBank ¶
func DeployBridgeBank(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *BridgeBank, error)
DeployBridgeBank deploys a new Ethereum contract, binding an instance of BridgeBank to it.
func NewBridgeBank ¶
func NewBridgeBank(address common.Address, backend bind.ContractBackend) (*BridgeBank, error)
NewBridgeBank creates a new instance of BridgeBank, bound to a specific deployed contract.
type BridgeBankCaller ¶
type BridgeBankCaller struct {
// contains filtered or unexported fields
}
BridgeBankCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBridgeBankCaller ¶
func NewBridgeBankCaller(address common.Address, caller bind.ContractCaller) (*BridgeBankCaller, error)
NewBridgeBankCaller creates a new read-only instance of BridgeBank, bound to a specific deployed contract.
func (*BridgeBankCaller) BRIDGEBANKREVISION ¶
BRIDGEBANKREVISION is a free data retrieval call binding the contract method 0xf126be26.
Solidity: function BRIDGEBANK_REVISION() view returns(uint256)
func (*BridgeBankCaller) BandOracleInterface ¶
func (_BridgeBank *BridgeBankCaller) BandOracleInterface(opts *bind.CallOpts) (common.Address, error)
BandOracleInterface is a free data retrieval call binding the contract method 0xa1c1d3e2.
Solidity: function bandOracleInterface() view returns(address)
func (*BridgeBankCaller) BridgeRegistry ¶
BridgeRegistry is a free data retrieval call binding the contract method 0x316be171.
Solidity: function bridgeRegistry() view returns(address)
func (*BridgeBankCaller) CheckUnlockable ¶
func (_BridgeBank *BridgeBankCaller) CheckUnlockable(opts *bind.CallOpts, _token common.Address, _amount *big.Int) (bool, error)
CheckUnlockable is a free data retrieval call binding the contract method 0xb4bfd9a7.
Solidity: function checkUnlockable(address _token, uint256 _amount) view returns(bool)
func (*BridgeBankCaller) ETHAddress ¶
ETHAddress is a free data retrieval call binding the contract method 0xda228a9b.
Solidity: function ETHAddress() view returns(address)
func (*BridgeBankCaller) FeeDenominator ¶
FeeDenominator is a free data retrieval call binding the contract method 0x180b0d7e.
Solidity: function feeDenominator() view returns(uint256)
func (*BridgeBankCaller) FeeNumerator ¶
FeeNumerator is a free data retrieval call binding the contract method 0xe86dea4a.
Solidity: function feeNumerator() view returns(uint256)
func (*BridgeBankCaller) GetLockedFund ¶
func (_BridgeBank *BridgeBankCaller) GetLockedFund(opts *bind.CallOpts, _ethereumToken common.Address) (*big.Int, error)
GetLockedFund is a free data retrieval call binding the contract method 0xfd930c7d.
Solidity: function getLockedFund(address _ethereumToken) view returns(uint256)
func (*BridgeBankCaller) GetTokenMappedAddress ¶
func (_BridgeBank *BridgeBankCaller) GetTokenMappedAddress(opts *bind.CallOpts, _ethereumToken common.Address) (common.Address, error)
GetTokenMappedAddress is a free data retrieval call binding the contract method 0x722b1d23.
Solidity: function getTokenMappedAddress(address _ethereumToken) view returns(address)
func (*BridgeBankCaller) GetTotalERC20Balance ¶
func (_BridgeBank *BridgeBankCaller) GetTotalERC20Balance(opts *bind.CallOpts, _ethereumToken common.Address) (*big.Int, error)
GetTotalERC20Balance is a free data retrieval call binding the contract method 0xac4a875c.
Solidity: function getTotalERC20Balance(address _ethereumToken) view returns(uint256)
func (*BridgeBankCaller) GetTotalETHBalance ¶
GetTotalETHBalance is a free data retrieval call binding the contract method 0x964d042c.
Solidity: function getTotalETHBalance() view returns(uint256)
func (*BridgeBankCaller) HarmonyBridge ¶
HarmonyBridge is a free data retrieval call binding the contract method 0x972ded09.
Solidity: function harmonyBridge() view returns(address)
func (*BridgeBankCaller) IsActiveToken ¶
func (_BridgeBank *BridgeBankCaller) IsActiveToken(opts *bind.CallOpts, _ethereumToken common.Address) (bool, error)
IsActiveToken is a free data retrieval call binding the contract method 0x575c51c2.
Solidity: function isActiveToken(address _ethereumToken) view returns(bool)
func (*BridgeBankCaller) LendingPool ¶
LendingPool is a free data retrieval call binding the contract method 0xa59a9973.
Solidity: function lendingPool() view returns(address)
func (*BridgeBankCaller) LockNonce ¶
LockNonce is a free data retrieval call binding the contract method 0xb5a9096e.
Solidity: function lockNonce() view returns(uint256)
func (*BridgeBankCaller) ONEAddress ¶
ONEAddress is a free data retrieval call binding the contract method 0x9d05974b.
Solidity: function ONEAddress() view returns(address)
func (*BridgeBankCaller) Operator ¶
Operator is a free data retrieval call binding the contract method 0x570ca735.
Solidity: function operator() view returns(address)
func (*BridgeBankCaller) Oracle ¶
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*BridgeBankCaller) SAFENUMBER ¶
SAFENUMBER is a free data retrieval call binding the contract method 0x204897ff.
Solidity: function SAFE_NUMBER() view returns(uint256)
func (*BridgeBankCaller) TokensData ¶
func (_BridgeBank *BridgeBankCaller) TokensData(opts *bind.CallOpts, arg0 common.Address) (struct { LockedFund *big.Int HarmonyMappedToken common.Address IsActive bool }, error)
TokensData is a free data retrieval call binding the contract method 0xac66c6e0.
Solidity: function tokensData(address ) view returns(uint256 lockedFund, address harmonyMappedToken, bool isActive)
func (*BridgeBankCaller) WETH ¶
WETH is a free data retrieval call binding the contract method 0xad5c4648.
Solidity: function WETH() view returns(address)
func (*BridgeBankCaller) WethGateway ¶
WethGateway is a free data retrieval call binding the contract method 0xc5e10eef.
Solidity: function wethGateway() view returns(address)
type BridgeBankCallerRaw ¶
type BridgeBankCallerRaw struct {
Contract *BridgeBankCaller // Generic read-only contract binding to access the raw methods on
}
BridgeBankCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BridgeBankCallerRaw) Call ¶
func (_BridgeBank *BridgeBankCallerRaw) 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 BridgeBankCallerSession ¶
type BridgeBankCallerSession struct { Contract *BridgeBankCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BridgeBankCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BridgeBankCallerSession) BRIDGEBANKREVISION ¶
func (_BridgeBank *BridgeBankCallerSession) BRIDGEBANKREVISION() (*big.Int, error)
BRIDGEBANKREVISION is a free data retrieval call binding the contract method 0xf126be26.
Solidity: function BRIDGEBANK_REVISION() view returns(uint256)
func (*BridgeBankCallerSession) BandOracleInterface ¶
func (_BridgeBank *BridgeBankCallerSession) BandOracleInterface() (common.Address, error)
BandOracleInterface is a free data retrieval call binding the contract method 0xa1c1d3e2.
Solidity: function bandOracleInterface() view returns(address)
func (*BridgeBankCallerSession) BridgeRegistry ¶
func (_BridgeBank *BridgeBankCallerSession) BridgeRegistry() (common.Address, error)
BridgeRegistry is a free data retrieval call binding the contract method 0x316be171.
Solidity: function bridgeRegistry() view returns(address)
func (*BridgeBankCallerSession) CheckUnlockable ¶
func (_BridgeBank *BridgeBankCallerSession) CheckUnlockable(_token common.Address, _amount *big.Int) (bool, error)
CheckUnlockable is a free data retrieval call binding the contract method 0xb4bfd9a7.
Solidity: function checkUnlockable(address _token, uint256 _amount) view returns(bool)
func (*BridgeBankCallerSession) ETHAddress ¶
func (_BridgeBank *BridgeBankCallerSession) ETHAddress() (common.Address, error)
ETHAddress is a free data retrieval call binding the contract method 0xda228a9b.
Solidity: function ETHAddress() view returns(address)
func (*BridgeBankCallerSession) FeeDenominator ¶
func (_BridgeBank *BridgeBankCallerSession) FeeDenominator() (*big.Int, error)
FeeDenominator is a free data retrieval call binding the contract method 0x180b0d7e.
Solidity: function feeDenominator() view returns(uint256)
func (*BridgeBankCallerSession) FeeNumerator ¶
func (_BridgeBank *BridgeBankCallerSession) FeeNumerator() (*big.Int, error)
FeeNumerator is a free data retrieval call binding the contract method 0xe86dea4a.
Solidity: function feeNumerator() view returns(uint256)
func (*BridgeBankCallerSession) GetLockedFund ¶
func (_BridgeBank *BridgeBankCallerSession) GetLockedFund(_ethereumToken common.Address) (*big.Int, error)
GetLockedFund is a free data retrieval call binding the contract method 0xfd930c7d.
Solidity: function getLockedFund(address _ethereumToken) view returns(uint256)
func (*BridgeBankCallerSession) GetTokenMappedAddress ¶
func (_BridgeBank *BridgeBankCallerSession) GetTokenMappedAddress(_ethereumToken common.Address) (common.Address, error)
GetTokenMappedAddress is a free data retrieval call binding the contract method 0x722b1d23.
Solidity: function getTokenMappedAddress(address _ethereumToken) view returns(address)
func (*BridgeBankCallerSession) GetTotalERC20Balance ¶
func (_BridgeBank *BridgeBankCallerSession) GetTotalERC20Balance(_ethereumToken common.Address) (*big.Int, error)
GetTotalERC20Balance is a free data retrieval call binding the contract method 0xac4a875c.
Solidity: function getTotalERC20Balance(address _ethereumToken) view returns(uint256)
func (*BridgeBankCallerSession) GetTotalETHBalance ¶
func (_BridgeBank *BridgeBankCallerSession) GetTotalETHBalance() (*big.Int, error)
GetTotalETHBalance is a free data retrieval call binding the contract method 0x964d042c.
Solidity: function getTotalETHBalance() view returns(uint256)
func (*BridgeBankCallerSession) HarmonyBridge ¶
func (_BridgeBank *BridgeBankCallerSession) HarmonyBridge() (common.Address, error)
HarmonyBridge is a free data retrieval call binding the contract method 0x972ded09.
Solidity: function harmonyBridge() view returns(address)
func (*BridgeBankCallerSession) IsActiveToken ¶
func (_BridgeBank *BridgeBankCallerSession) IsActiveToken(_ethereumToken common.Address) (bool, error)
IsActiveToken is a free data retrieval call binding the contract method 0x575c51c2.
Solidity: function isActiveToken(address _ethereumToken) view returns(bool)
func (*BridgeBankCallerSession) LendingPool ¶
func (_BridgeBank *BridgeBankCallerSession) LendingPool() (common.Address, error)
LendingPool is a free data retrieval call binding the contract method 0xa59a9973.
Solidity: function lendingPool() view returns(address)
func (*BridgeBankCallerSession) LockNonce ¶
func (_BridgeBank *BridgeBankCallerSession) LockNonce() (*big.Int, error)
LockNonce is a free data retrieval call binding the contract method 0xb5a9096e.
Solidity: function lockNonce() view returns(uint256)
func (*BridgeBankCallerSession) ONEAddress ¶
func (_BridgeBank *BridgeBankCallerSession) ONEAddress() (common.Address, error)
ONEAddress is a free data retrieval call binding the contract method 0x9d05974b.
Solidity: function ONEAddress() view returns(address)
func (*BridgeBankCallerSession) Operator ¶
func (_BridgeBank *BridgeBankCallerSession) Operator() (common.Address, error)
Operator is a free data retrieval call binding the contract method 0x570ca735.
Solidity: function operator() view returns(address)
func (*BridgeBankCallerSession) Oracle ¶
func (_BridgeBank *BridgeBankCallerSession) Oracle() (common.Address, error)
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*BridgeBankCallerSession) SAFENUMBER ¶
func (_BridgeBank *BridgeBankCallerSession) SAFENUMBER() (*big.Int, error)
SAFENUMBER is a free data retrieval call binding the contract method 0x204897ff.
Solidity: function SAFE_NUMBER() view returns(uint256)
func (*BridgeBankCallerSession) TokensData ¶
func (_BridgeBank *BridgeBankCallerSession) TokensData(arg0 common.Address) (struct { LockedFund *big.Int HarmonyMappedToken common.Address IsActive bool }, error)
TokensData is a free data retrieval call binding the contract method 0xac66c6e0.
Solidity: function tokensData(address ) view returns(uint256 lockedFund, address harmonyMappedToken, bool isActive)
func (*BridgeBankCallerSession) WETH ¶
func (_BridgeBank *BridgeBankCallerSession) WETH() (common.Address, error)
WETH is a free data retrieval call binding the contract method 0xad5c4648.
Solidity: function WETH() view returns(address)
func (*BridgeBankCallerSession) WethGateway ¶
func (_BridgeBank *BridgeBankCallerSession) WethGateway() (common.Address, error)
WethGateway is a free data retrieval call binding the contract method 0xc5e10eef.
Solidity: function wethGateway() view returns(address)
type BridgeBankEthLogLock ¶
type BridgeBankEthLogLock struct { EthereumSender common.Address HarmonyReceiver common.Address EthereumToken common.Address HarmonyToken common.Address EthereumTokenAmount *big.Int HarmonyTokenAmount *big.Int Nonce *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthLogLock represents a EthLogLock event raised by the BridgeBank contract.
type BridgeBankEthLogLockIterator ¶
type BridgeBankEthLogLockIterator struct { Event *BridgeBankEthLogLock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthLogLockIterator is returned from FilterEthLogLock and is used to iterate over the raw logs and unpacked data for EthLogLock events raised by the BridgeBank contract.
func (*BridgeBankEthLogLockIterator) Close ¶
func (it *BridgeBankEthLogLockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthLogLockIterator) Error ¶
func (it *BridgeBankEthLogLockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthLogLockIterator) Next ¶
func (it *BridgeBankEthLogLockIterator) 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 BridgeBankEthLogUnlock ¶
type BridgeBankEthLogUnlock struct { To common.Address Token common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthLogUnlock represents a EthLogUnlock event raised by the BridgeBank contract.
type BridgeBankEthLogUnlockIterator ¶
type BridgeBankEthLogUnlockIterator struct { Event *BridgeBankEthLogUnlock // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthLogUnlockIterator is returned from FilterEthLogUnlock and is used to iterate over the raw logs and unpacked data for EthLogUnlock events raised by the BridgeBank contract.
func (*BridgeBankEthLogUnlockIterator) Close ¶
func (it *BridgeBankEthLogUnlockIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthLogUnlockIterator) Error ¶
func (it *BridgeBankEthLogUnlockIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthLogUnlockIterator) Next ¶
func (it *BridgeBankEthLogUnlockIterator) 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 BridgeBankEthUpdateFee ¶
type BridgeBankEthUpdateFee struct { FeeNumerator *big.Int FeeDenominator *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthUpdateFee represents a EthUpdateFee event raised by the BridgeBank contract.
type BridgeBankEthUpdateFeeIterator ¶
type BridgeBankEthUpdateFeeIterator struct { Event *BridgeBankEthUpdateFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthUpdateFeeIterator is returned from FilterEthUpdateFee and is used to iterate over the raw logs and unpacked data for EthUpdateFee events raised by the BridgeBank contract.
func (*BridgeBankEthUpdateFeeIterator) Close ¶
func (it *BridgeBankEthUpdateFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthUpdateFeeIterator) Error ¶
func (it *BridgeBankEthUpdateFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthUpdateFeeIterator) Next ¶
func (it *BridgeBankEthUpdateFeeIterator) 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 BridgeBankEthUpdateHarmonyBridge ¶
type BridgeBankEthUpdateHarmonyBridge struct { NewHarmonyBridge common.Address Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthUpdateHarmonyBridge represents a EthUpdateHarmonyBridge event raised by the BridgeBank contract.
type BridgeBankEthUpdateHarmonyBridgeIterator ¶
type BridgeBankEthUpdateHarmonyBridgeIterator struct { Event *BridgeBankEthUpdateHarmonyBridge // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthUpdateHarmonyBridgeIterator is returned from FilterEthUpdateHarmonyBridge and is used to iterate over the raw logs and unpacked data for EthUpdateHarmonyBridge events raised by the BridgeBank contract.
func (*BridgeBankEthUpdateHarmonyBridgeIterator) Close ¶
func (it *BridgeBankEthUpdateHarmonyBridgeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthUpdateHarmonyBridgeIterator) Error ¶
func (it *BridgeBankEthUpdateHarmonyBridgeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthUpdateHarmonyBridgeIterator) Next ¶
func (it *BridgeBankEthUpdateHarmonyBridgeIterator) 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 BridgeBankEthUpdateOracle ¶
type BridgeBankEthUpdateOracle struct { NewOracle common.Address Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthUpdateOracle represents a EthUpdateOracle event raised by the BridgeBank contract.
type BridgeBankEthUpdateOracleIterator ¶
type BridgeBankEthUpdateOracleIterator struct { Event *BridgeBankEthUpdateOracle // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthUpdateOracleIterator is returned from FilterEthUpdateOracle and is used to iterate over the raw logs and unpacked data for EthUpdateOracle events raised by the BridgeBank contract.
func (*BridgeBankEthUpdateOracleIterator) Close ¶
func (it *BridgeBankEthUpdateOracleIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthUpdateOracleIterator) Error ¶
func (it *BridgeBankEthUpdateOracleIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthUpdateOracleIterator) Next ¶
func (it *BridgeBankEthUpdateOracleIterator) 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 BridgeBankEthWithdrawERC20 ¶
type BridgeBankEthWithdrawERC20 struct { Token common.Address Receiver common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthWithdrawERC20 represents a EthWithdrawERC20 event raised by the BridgeBank contract.
type BridgeBankEthWithdrawERC20Iterator ¶
type BridgeBankEthWithdrawERC20Iterator struct { Event *BridgeBankEthWithdrawERC20 // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthWithdrawERC20Iterator is returned from FilterEthWithdrawERC20 and is used to iterate over the raw logs and unpacked data for EthWithdrawERC20 events raised by the BridgeBank contract.
func (*BridgeBankEthWithdrawERC20Iterator) Close ¶
func (it *BridgeBankEthWithdrawERC20Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthWithdrawERC20Iterator) Error ¶
func (it *BridgeBankEthWithdrawERC20Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthWithdrawERC20Iterator) Next ¶
func (it *BridgeBankEthWithdrawERC20Iterator) 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 BridgeBankEthWithdrawETH ¶
type BridgeBankEthWithdrawETH struct { Receiver common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeBankEthWithdrawETH represents a EthWithdrawETH event raised by the BridgeBank contract.
type BridgeBankEthWithdrawETHIterator ¶
type BridgeBankEthWithdrawETHIterator struct { Event *BridgeBankEthWithdrawETH // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeBankEthWithdrawETHIterator is returned from FilterEthWithdrawETH and is used to iterate over the raw logs and unpacked data for EthWithdrawETH events raised by the BridgeBank contract.
func (*BridgeBankEthWithdrawETHIterator) Close ¶
func (it *BridgeBankEthWithdrawETHIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeBankEthWithdrawETHIterator) Error ¶
func (it *BridgeBankEthWithdrawETHIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeBankEthWithdrawETHIterator) Next ¶
func (it *BridgeBankEthWithdrawETHIterator) 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 BridgeBankFilterer ¶
type BridgeBankFilterer struct {
// contains filtered or unexported fields
}
BridgeBankFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBridgeBankFilterer ¶
func NewBridgeBankFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeBankFilterer, error)
NewBridgeBankFilterer creates a new log filterer instance of BridgeBank, bound to a specific deployed contract.
func (*BridgeBankFilterer) FilterEthLogLock ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthLogLock(opts *bind.FilterOpts) (*BridgeBankEthLogLockIterator, error)
FilterEthLogLock is a free log retrieval operation binding the contract event 0x15bb5885b6550f0baf0cf174b9618b2d0c83f6ab83ea0de29b03cb6c9461afd5.
Solidity: event EthLogLock(address _ethereumSender, address _harmonyReceiver, address _ethereumToken, address _harmonyToken, uint256 _ethereumTokenAmount, uint256 _harmonyTokenAmount, uint256 _nonce)
func (*BridgeBankFilterer) FilterEthLogUnlock ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthLogUnlock(opts *bind.FilterOpts) (*BridgeBankEthLogUnlockIterator, error)
FilterEthLogUnlock is a free log retrieval operation binding the contract event 0x4445dabfef575721ee82c521f0725ef2cab18153d75cadda8115c2e31efc5508.
Solidity: event EthLogUnlock(address _to, address _token, uint256 _value)
func (*BridgeBankFilterer) FilterEthUpdateFee ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthUpdateFee(opts *bind.FilterOpts) (*BridgeBankEthUpdateFeeIterator, error)
FilterEthUpdateFee is a free log retrieval operation binding the contract event 0x87018147d45d73a403e53a1dae7a7e95ad1bf96326b915560c0fad22373a3521.
Solidity: event EthUpdateFee(uint256 _feeNumerator, uint256 _feeDenominator)
func (*BridgeBankFilterer) FilterEthUpdateHarmonyBridge ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthUpdateHarmonyBridge(opts *bind.FilterOpts) (*BridgeBankEthUpdateHarmonyBridgeIterator, error)
FilterEthUpdateHarmonyBridge is a free log retrieval operation binding the contract event 0x2ee0580b26ac9d813eb02bff2dc08fbf08346dafcc883f3c21c44d014b8a2e85.
Solidity: event EthUpdateHarmonyBridge(address _newHarmonyBridge)
func (*BridgeBankFilterer) FilterEthUpdateOracle ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthUpdateOracle(opts *bind.FilterOpts) (*BridgeBankEthUpdateOracleIterator, error)
FilterEthUpdateOracle is a free log retrieval operation binding the contract event 0xe0dec806007e306f472d1bb9e8dcf714fbb3da18e34206ea34f2d2c4bba89659.
Solidity: event EthUpdateOracle(address _newOracle)
func (*BridgeBankFilterer) FilterEthWithdrawERC20 ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthWithdrawERC20(opts *bind.FilterOpts) (*BridgeBankEthWithdrawERC20Iterator, error)
FilterEthWithdrawERC20 is a free log retrieval operation binding the contract event 0x378ae7e321aef491da8299462610eb48bb07e3b93619adfb2cdbe332b6aad7ce.
Solidity: event EthWithdrawERC20(address _token, address _receiver, uint256 _amount)
func (*BridgeBankFilterer) FilterEthWithdrawETH ¶
func (_BridgeBank *BridgeBankFilterer) FilterEthWithdrawETH(opts *bind.FilterOpts) (*BridgeBankEthWithdrawETHIterator, error)
FilterEthWithdrawETH is a free log retrieval operation binding the contract event 0xc7d71dfdba3c33b60061c39022c106fd785ed1edda60862045a0b684ca1f0e5d.
Solidity: event EthWithdrawETH(address _receiver, uint256 _amount)
func (*BridgeBankFilterer) ParseEthLogLock ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthLogLock(log types.Log) (*BridgeBankEthLogLock, error)
ParseEthLogLock is a log parse operation binding the contract event 0x15bb5885b6550f0baf0cf174b9618b2d0c83f6ab83ea0de29b03cb6c9461afd5.
Solidity: event EthLogLock(address _ethereumSender, address _harmonyReceiver, address _ethereumToken, address _harmonyToken, uint256 _ethereumTokenAmount, uint256 _harmonyTokenAmount, uint256 _nonce)
func (*BridgeBankFilterer) ParseEthLogUnlock ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthLogUnlock(log types.Log) (*BridgeBankEthLogUnlock, error)
ParseEthLogUnlock is a log parse operation binding the contract event 0x4445dabfef575721ee82c521f0725ef2cab18153d75cadda8115c2e31efc5508.
Solidity: event EthLogUnlock(address _to, address _token, uint256 _value)
func (*BridgeBankFilterer) ParseEthUpdateFee ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthUpdateFee(log types.Log) (*BridgeBankEthUpdateFee, error)
ParseEthUpdateFee is a log parse operation binding the contract event 0x87018147d45d73a403e53a1dae7a7e95ad1bf96326b915560c0fad22373a3521.
Solidity: event EthUpdateFee(uint256 _feeNumerator, uint256 _feeDenominator)
func (*BridgeBankFilterer) ParseEthUpdateHarmonyBridge ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthUpdateHarmonyBridge(log types.Log) (*BridgeBankEthUpdateHarmonyBridge, error)
ParseEthUpdateHarmonyBridge is a log parse operation binding the contract event 0x2ee0580b26ac9d813eb02bff2dc08fbf08346dafcc883f3c21c44d014b8a2e85.
Solidity: event EthUpdateHarmonyBridge(address _newHarmonyBridge)
func (*BridgeBankFilterer) ParseEthUpdateOracle ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthUpdateOracle(log types.Log) (*BridgeBankEthUpdateOracle, error)
ParseEthUpdateOracle is a log parse operation binding the contract event 0xe0dec806007e306f472d1bb9e8dcf714fbb3da18e34206ea34f2d2c4bba89659.
Solidity: event EthUpdateOracle(address _newOracle)
func (*BridgeBankFilterer) ParseEthWithdrawERC20 ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthWithdrawERC20(log types.Log) (*BridgeBankEthWithdrawERC20, error)
ParseEthWithdrawERC20 is a log parse operation binding the contract event 0x378ae7e321aef491da8299462610eb48bb07e3b93619adfb2cdbe332b6aad7ce.
Solidity: event EthWithdrawERC20(address _token, address _receiver, uint256 _amount)
func (*BridgeBankFilterer) ParseEthWithdrawETH ¶
func (_BridgeBank *BridgeBankFilterer) ParseEthWithdrawETH(log types.Log) (*BridgeBankEthWithdrawETH, error)
ParseEthWithdrawETH is a log parse operation binding the contract event 0xc7d71dfdba3c33b60061c39022c106fd785ed1edda60862045a0b684ca1f0e5d.
Solidity: event EthWithdrawETH(address _receiver, uint256 _amount)
func (*BridgeBankFilterer) WatchEthLogLock ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthLogLock(opts *bind.WatchOpts, sink chan<- *BridgeBankEthLogLock) (event.Subscription, error)
WatchEthLogLock is a free log subscription operation binding the contract event 0x15bb5885b6550f0baf0cf174b9618b2d0c83f6ab83ea0de29b03cb6c9461afd5.
Solidity: event EthLogLock(address _ethereumSender, address _harmonyReceiver, address _ethereumToken, address _harmonyToken, uint256 _ethereumTokenAmount, uint256 _harmonyTokenAmount, uint256 _nonce)
func (*BridgeBankFilterer) WatchEthLogUnlock ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthLogUnlock(opts *bind.WatchOpts, sink chan<- *BridgeBankEthLogUnlock) (event.Subscription, error)
WatchEthLogUnlock is a free log subscription operation binding the contract event 0x4445dabfef575721ee82c521f0725ef2cab18153d75cadda8115c2e31efc5508.
Solidity: event EthLogUnlock(address _to, address _token, uint256 _value)
func (*BridgeBankFilterer) WatchEthUpdateFee ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthUpdateFee(opts *bind.WatchOpts, sink chan<- *BridgeBankEthUpdateFee) (event.Subscription, error)
WatchEthUpdateFee is a free log subscription operation binding the contract event 0x87018147d45d73a403e53a1dae7a7e95ad1bf96326b915560c0fad22373a3521.
Solidity: event EthUpdateFee(uint256 _feeNumerator, uint256 _feeDenominator)
func (*BridgeBankFilterer) WatchEthUpdateHarmonyBridge ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthUpdateHarmonyBridge(opts *bind.WatchOpts, sink chan<- *BridgeBankEthUpdateHarmonyBridge) (event.Subscription, error)
WatchEthUpdateHarmonyBridge is a free log subscription operation binding the contract event 0x2ee0580b26ac9d813eb02bff2dc08fbf08346dafcc883f3c21c44d014b8a2e85.
Solidity: event EthUpdateHarmonyBridge(address _newHarmonyBridge)
func (*BridgeBankFilterer) WatchEthUpdateOracle ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthUpdateOracle(opts *bind.WatchOpts, sink chan<- *BridgeBankEthUpdateOracle) (event.Subscription, error)
WatchEthUpdateOracle is a free log subscription operation binding the contract event 0xe0dec806007e306f472d1bb9e8dcf714fbb3da18e34206ea34f2d2c4bba89659.
Solidity: event EthUpdateOracle(address _newOracle)
func (*BridgeBankFilterer) WatchEthWithdrawERC20 ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthWithdrawERC20(opts *bind.WatchOpts, sink chan<- *BridgeBankEthWithdrawERC20) (event.Subscription, error)
WatchEthWithdrawERC20 is a free log subscription operation binding the contract event 0x378ae7e321aef491da8299462610eb48bb07e3b93619adfb2cdbe332b6aad7ce.
Solidity: event EthWithdrawERC20(address _token, address _receiver, uint256 _amount)
func (*BridgeBankFilterer) WatchEthWithdrawETH ¶
func (_BridgeBank *BridgeBankFilterer) WatchEthWithdrawETH(opts *bind.WatchOpts, sink chan<- *BridgeBankEthWithdrawETH) (event.Subscription, error)
WatchEthWithdrawETH is a free log subscription operation binding the contract event 0xc7d71dfdba3c33b60061c39022c106fd785ed1edda60862045a0b684ca1f0e5d.
Solidity: event EthWithdrawETH(address _receiver, uint256 _amount)
type BridgeBankRaw ¶
type BridgeBankRaw struct {
Contract *BridgeBank // Generic contract binding to access the raw methods on
}
BridgeBankRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BridgeBankRaw) Call ¶
func (_BridgeBank *BridgeBankRaw) 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 (*BridgeBankRaw) Transact ¶
func (_BridgeBank *BridgeBankRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeBankRaw) Transfer ¶
func (_BridgeBank *BridgeBankRaw) 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 BridgeBankSession ¶
type BridgeBankSession struct { Contract *BridgeBank // 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 }
BridgeBankSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BridgeBankSession) ActivateToken ¶
func (_BridgeBank *BridgeBankSession) ActivateToken(_ethereumToken common.Address) (*types.Transaction, error)
ActivateToken is a paid mutator transaction binding the contract method 0x0d1ce2d2.
Solidity: function activateToken(address _ethereumToken) returns()
func (*BridgeBankSession) AddToken ¶
func (_BridgeBank *BridgeBankSession) AddToken(_ethereumToken common.Address, _ethereumTokenAmount *big.Int, _harmonyToken common.Address) (*types.Transaction, error)
AddToken is a paid mutator transaction binding the contract method 0xa766a392.
Solidity: function addToken(address _ethereumToken, uint256 _ethereumTokenAmount, address _harmonyToken) returns()
func (*BridgeBankSession) BRIDGEBANKREVISION ¶
func (_BridgeBank *BridgeBankSession) BRIDGEBANKREVISION() (*big.Int, error)
BRIDGEBANKREVISION is a free data retrieval call binding the contract method 0xf126be26.
Solidity: function BRIDGEBANK_REVISION() view returns(uint256)
func (*BridgeBankSession) BandOracleInterface ¶
func (_BridgeBank *BridgeBankSession) BandOracleInterface() (common.Address, error)
BandOracleInterface is a free data retrieval call binding the contract method 0xa1c1d3e2.
Solidity: function bandOracleInterface() view returns(address)
func (*BridgeBankSession) BridgeRegistry ¶
func (_BridgeBank *BridgeBankSession) BridgeRegistry() (common.Address, error)
BridgeRegistry is a free data retrieval call binding the contract method 0x316be171.
Solidity: function bridgeRegistry() view returns(address)
func (*BridgeBankSession) CheckUnlockable ¶
func (_BridgeBank *BridgeBankSession) CheckUnlockable(_token common.Address, _amount *big.Int) (bool, error)
CheckUnlockable is a free data retrieval call binding the contract method 0xb4bfd9a7.
Solidity: function checkUnlockable(address _token, uint256 _amount) view returns(bool)
func (*BridgeBankSession) DeactivateToken ¶
func (_BridgeBank *BridgeBankSession) DeactivateToken(_ethereumToken common.Address) (*types.Transaction, error)
DeactivateToken is a paid mutator transaction binding the contract method 0x68173bcf.
Solidity: function deactivateToken(address _ethereumToken) returns()
func (*BridgeBankSession) ETHAddress ¶
func (_BridgeBank *BridgeBankSession) ETHAddress() (common.Address, error)
ETHAddress is a free data retrieval call binding the contract method 0xda228a9b.
Solidity: function ETHAddress() view returns(address)
func (*BridgeBankSession) Fallback ¶
func (_BridgeBank *BridgeBankSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*BridgeBankSession) FeeDenominator ¶
func (_BridgeBank *BridgeBankSession) FeeDenominator() (*big.Int, error)
FeeDenominator is a free data retrieval call binding the contract method 0x180b0d7e.
Solidity: function feeDenominator() view returns(uint256)
func (*BridgeBankSession) FeeNumerator ¶
func (_BridgeBank *BridgeBankSession) FeeNumerator() (*big.Int, error)
FeeNumerator is a free data retrieval call binding the contract method 0xe86dea4a.
Solidity: function feeNumerator() view returns(uint256)
func (*BridgeBankSession) GetLockedFund ¶
func (_BridgeBank *BridgeBankSession) GetLockedFund(_ethereumToken common.Address) (*big.Int, error)
GetLockedFund is a free data retrieval call binding the contract method 0xfd930c7d.
Solidity: function getLockedFund(address _ethereumToken) view returns(uint256)
func (*BridgeBankSession) GetTokenMappedAddress ¶
func (_BridgeBank *BridgeBankSession) GetTokenMappedAddress(_ethereumToken common.Address) (common.Address, error)
GetTokenMappedAddress is a free data retrieval call binding the contract method 0x722b1d23.
Solidity: function getTokenMappedAddress(address _ethereumToken) view returns(address)
func (*BridgeBankSession) GetTotalERC20Balance ¶
func (_BridgeBank *BridgeBankSession) GetTotalERC20Balance(_ethereumToken common.Address) (*big.Int, error)
GetTotalERC20Balance is a free data retrieval call binding the contract method 0xac4a875c.
Solidity: function getTotalERC20Balance(address _ethereumToken) view returns(uint256)
func (*BridgeBankSession) GetTotalETHBalance ¶
func (_BridgeBank *BridgeBankSession) GetTotalETHBalance() (*big.Int, error)
GetTotalETHBalance is a free data retrieval call binding the contract method 0x964d042c.
Solidity: function getTotalETHBalance() view returns(uint256)
func (*BridgeBankSession) HarmonyBridge ¶
func (_BridgeBank *BridgeBankSession) HarmonyBridge() (common.Address, error)
HarmonyBridge is a free data retrieval call binding the contract method 0x972ded09.
Solidity: function harmonyBridge() view returns(address)
func (*BridgeBankSession) Initialize ¶
func (_BridgeBank *BridgeBankSession) Initialize(_bridgeRegistry common.Address, _bandOracleAddress common.Address, _lendingPool common.Address, _wethGateway common.Address, _weth common.Address, _harmonyETH common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcc2a9a5b.
Solidity: function initialize(address _bridgeRegistry, address _bandOracleAddress, address _lendingPool, address _wethGateway, address _weth, address _harmonyETH) payable returns()
func (*BridgeBankSession) IsActiveToken ¶
func (_BridgeBank *BridgeBankSession) IsActiveToken(_ethereumToken common.Address) (bool, error)
IsActiveToken is a free data retrieval call binding the contract method 0x575c51c2.
Solidity: function isActiveToken(address _ethereumToken) view returns(bool)
func (*BridgeBankSession) LendingPool ¶
func (_BridgeBank *BridgeBankSession) LendingPool() (common.Address, error)
LendingPool is a free data retrieval call binding the contract method 0xa59a9973.
Solidity: function lendingPool() view returns(address)
func (*BridgeBankSession) LockNonce ¶
func (_BridgeBank *BridgeBankSession) LockNonce() (*big.Int, error)
LockNonce is a free data retrieval call binding the contract method 0xb5a9096e.
Solidity: function lockNonce() view returns(uint256)
func (*BridgeBankSession) ONEAddress ¶
func (_BridgeBank *BridgeBankSession) ONEAddress() (common.Address, error)
ONEAddress is a free data retrieval call binding the contract method 0x9d05974b.
Solidity: function ONEAddress() view returns(address)
func (*BridgeBankSession) Operator ¶
func (_BridgeBank *BridgeBankSession) Operator() (common.Address, error)
Operator is a free data retrieval call binding the contract method 0x570ca735.
Solidity: function operator() view returns(address)
func (*BridgeBankSession) Oracle ¶
func (_BridgeBank *BridgeBankSession) Oracle() (common.Address, error)
Oracle is a free data retrieval call binding the contract method 0x7dc0d1d0.
Solidity: function oracle() view returns(address)
func (*BridgeBankSession) SAFENUMBER ¶
func (_BridgeBank *BridgeBankSession) SAFENUMBER() (*big.Int, error)
SAFENUMBER is a free data retrieval call binding the contract method 0x204897ff.
Solidity: function SAFE_NUMBER() view returns(uint256)
func (*BridgeBankSession) SwapETHForONE ¶
func (_BridgeBank *BridgeBankSession) SwapETHForONE(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
SwapETHForONE is a paid mutator transaction binding the contract method 0x5e01297d.
Solidity: function swapETHForONE(address _harmonyReceiver, uint256 _amountETH) payable returns()
func (*BridgeBankSession) SwapETHForToken ¶
func (_BridgeBank *BridgeBankSession) SwapETHForToken(_harmonyReceiver common.Address, _amountETH *big.Int, _destToken common.Address) (*types.Transaction, error)
SwapETHForToken is a paid mutator transaction binding the contract method 0x903e10ba.
Solidity: function swapETHForToken(address _harmonyReceiver, uint256 _amountETH, address _destToken) payable returns()
func (*BridgeBankSession) SwapETHForWrappedETH ¶
func (_BridgeBank *BridgeBankSession) SwapETHForWrappedETH(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
SwapETHForWrappedETH is a paid mutator transaction binding the contract method 0x7fabc432.
Solidity: function swapETHForWrappedETH(address _harmonyReceiver, uint256 _amountETH) payable returns()
func (*BridgeBankSession) SwapToken11 ¶
func (_BridgeBank *BridgeBankSession) SwapToken11(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapToken11 is a paid mutator transaction binding the contract method 0xbb0a64db.
Solidity: function swapToken_1_1(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankSession) SwapTokenForONE ¶
func (_BridgeBank *BridgeBankSession) SwapTokenForONE(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapTokenForONE is a paid mutator transaction binding the contract method 0xba1adba4.
Solidity: function swapTokenForONE(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankSession) SwapTokenForToken ¶
func (_BridgeBank *BridgeBankSession) SwapTokenForToken(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int, _destToken common.Address) (*types.Transaction, error)
SwapTokenForToken is a paid mutator transaction binding the contract method 0x9b92910c.
Solidity: function swapTokenForToken(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount, address _destToken) returns()
func (*BridgeBankSession) SwapTokenForWrappedETH ¶
func (_BridgeBank *BridgeBankSession) SwapTokenForWrappedETH(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapTokenForWrappedETH is a paid mutator transaction binding the contract method 0x49b1af93.
Solidity: function swapTokenForWrappedETH(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankSession) TokensData ¶
func (_BridgeBank *BridgeBankSession) TokensData(arg0 common.Address) (struct { LockedFund *big.Int HarmonyMappedToken common.Address IsActive bool }, error)
TokensData is a free data retrieval call binding the contract method 0xac66c6e0.
Solidity: function tokensData(address ) view returns(uint256 lockedFund, address harmonyMappedToken, bool isActive)
func (*BridgeBankSession) UnlockERC20 ¶
func (_BridgeBank *BridgeBankSession) UnlockERC20(_ethereumReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
UnlockERC20 is a paid mutator transaction binding the contract method 0x3c298e78.
Solidity: function unlockERC20(address _ethereumReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankSession) UnlockETH ¶
func (_BridgeBank *BridgeBankSession) UnlockETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
UnlockETH is a paid mutator transaction binding the contract method 0xed581fd3.
Solidity: function unlockETH(address _ethereumReceiver, uint256 _amountETH) returns()
func (*BridgeBankSession) UpdateFee ¶
func (_BridgeBank *BridgeBankSession) UpdateFee(_feeNumerator *big.Int, _feeDenominator *big.Int) (*types.Transaction, error)
UpdateFee is a paid mutator transaction binding the contract method 0x2740c197.
Solidity: function updateFee(uint256 _feeNumerator, uint256 _feeDenominator) returns()
func (*BridgeBankSession) UpdateHmyBridge ¶
func (_BridgeBank *BridgeBankSession) UpdateHmyBridge(_harmonyBridge common.Address) (*types.Transaction, error)
UpdateHmyBridge is a paid mutator transaction binding the contract method 0x17877820.
Solidity: function updateHmyBridge(address _harmonyBridge) returns()
func (*BridgeBankSession) UpdateOracle ¶
func (_BridgeBank *BridgeBankSession) UpdateOracle(_oracleAddress common.Address) (*types.Transaction, error)
UpdateOracle is a paid mutator transaction binding the contract method 0x1cb44dfc.
Solidity: function updateOracle(address _oracleAddress) returns()
func (*BridgeBankSession) WETH ¶
func (_BridgeBank *BridgeBankSession) WETH() (common.Address, error)
WETH is a free data retrieval call binding the contract method 0xad5c4648.
Solidity: function WETH() view returns(address)
func (*BridgeBankSession) WethGateway ¶
func (_BridgeBank *BridgeBankSession) WethGateway() (common.Address, error)
WethGateway is a free data retrieval call binding the contract method 0xc5e10eef.
Solidity: function wethGateway() view returns(address)
func (*BridgeBankSession) WithdrawERC20 ¶
func (_BridgeBank *BridgeBankSession) WithdrawERC20(_ethereumToken common.Address, _ethereumReceiver common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.
Solidity: function withdrawERC20(address _ethereumToken, address _ethereumReceiver, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankSession) WithdrawETH ¶
func (_BridgeBank *BridgeBankSession) WithdrawETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address _ethereumReceiver, uint256 _amountETH) returns()
type BridgeBankTransactor ¶
type BridgeBankTransactor struct {
// contains filtered or unexported fields
}
BridgeBankTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBridgeBankTransactor ¶
func NewBridgeBankTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeBankTransactor, error)
NewBridgeBankTransactor creates a new write-only instance of BridgeBank, bound to a specific deployed contract.
func (*BridgeBankTransactor) ActivateToken ¶
func (_BridgeBank *BridgeBankTransactor) ActivateToken(opts *bind.TransactOpts, _ethereumToken common.Address) (*types.Transaction, error)
ActivateToken is a paid mutator transaction binding the contract method 0x0d1ce2d2.
Solidity: function activateToken(address _ethereumToken) returns()
func (*BridgeBankTransactor) AddToken ¶
func (_BridgeBank *BridgeBankTransactor) AddToken(opts *bind.TransactOpts, _ethereumToken common.Address, _ethereumTokenAmount *big.Int, _harmonyToken common.Address) (*types.Transaction, error)
AddToken is a paid mutator transaction binding the contract method 0xa766a392.
Solidity: function addToken(address _ethereumToken, uint256 _ethereumTokenAmount, address _harmonyToken) returns()
func (*BridgeBankTransactor) DeactivateToken ¶
func (_BridgeBank *BridgeBankTransactor) DeactivateToken(opts *bind.TransactOpts, _ethereumToken common.Address) (*types.Transaction, error)
DeactivateToken is a paid mutator transaction binding the contract method 0x68173bcf.
Solidity: function deactivateToken(address _ethereumToken) returns()
func (*BridgeBankTransactor) Fallback ¶
func (_BridgeBank *BridgeBankTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*BridgeBankTransactor) Initialize ¶
func (_BridgeBank *BridgeBankTransactor) Initialize(opts *bind.TransactOpts, _bridgeRegistry common.Address, _bandOracleAddress common.Address, _lendingPool common.Address, _wethGateway common.Address, _weth common.Address, _harmonyETH common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcc2a9a5b.
Solidity: function initialize(address _bridgeRegistry, address _bandOracleAddress, address _lendingPool, address _wethGateway, address _weth, address _harmonyETH) payable returns()
func (*BridgeBankTransactor) SwapETHForONE ¶
func (_BridgeBank *BridgeBankTransactor) SwapETHForONE(opts *bind.TransactOpts, _harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
SwapETHForONE is a paid mutator transaction binding the contract method 0x5e01297d.
Solidity: function swapETHForONE(address _harmonyReceiver, uint256 _amountETH) payable returns()
func (*BridgeBankTransactor) SwapETHForToken ¶
func (_BridgeBank *BridgeBankTransactor) SwapETHForToken(opts *bind.TransactOpts, _harmonyReceiver common.Address, _amountETH *big.Int, _destToken common.Address) (*types.Transaction, error)
SwapETHForToken is a paid mutator transaction binding the contract method 0x903e10ba.
Solidity: function swapETHForToken(address _harmonyReceiver, uint256 _amountETH, address _destToken) payable returns()
func (*BridgeBankTransactor) SwapETHForWrappedETH ¶
func (_BridgeBank *BridgeBankTransactor) SwapETHForWrappedETH(opts *bind.TransactOpts, _harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
SwapETHForWrappedETH is a paid mutator transaction binding the contract method 0x7fabc432.
Solidity: function swapETHForWrappedETH(address _harmonyReceiver, uint256 _amountETH) payable returns()
func (*BridgeBankTransactor) SwapToken11 ¶
func (_BridgeBank *BridgeBankTransactor) SwapToken11(opts *bind.TransactOpts, _harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapToken11 is a paid mutator transaction binding the contract method 0xbb0a64db.
Solidity: function swapToken_1_1(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactor) SwapTokenForONE ¶
func (_BridgeBank *BridgeBankTransactor) SwapTokenForONE(opts *bind.TransactOpts, _harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapTokenForONE is a paid mutator transaction binding the contract method 0xba1adba4.
Solidity: function swapTokenForONE(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactor) SwapTokenForToken ¶
func (_BridgeBank *BridgeBankTransactor) SwapTokenForToken(opts *bind.TransactOpts, _harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int, _destToken common.Address) (*types.Transaction, error)
SwapTokenForToken is a paid mutator transaction binding the contract method 0x9b92910c.
Solidity: function swapTokenForToken(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount, address _destToken) returns()
func (*BridgeBankTransactor) SwapTokenForWrappedETH ¶
func (_BridgeBank *BridgeBankTransactor) SwapTokenForWrappedETH(opts *bind.TransactOpts, _harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapTokenForWrappedETH is a paid mutator transaction binding the contract method 0x49b1af93.
Solidity: function swapTokenForWrappedETH(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactor) UnlockERC20 ¶
func (_BridgeBank *BridgeBankTransactor) UnlockERC20(opts *bind.TransactOpts, _ethereumReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
UnlockERC20 is a paid mutator transaction binding the contract method 0x3c298e78.
Solidity: function unlockERC20(address _ethereumReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactor) UnlockETH ¶
func (_BridgeBank *BridgeBankTransactor) UnlockETH(opts *bind.TransactOpts, _ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
UnlockETH is a paid mutator transaction binding the contract method 0xed581fd3.
Solidity: function unlockETH(address _ethereumReceiver, uint256 _amountETH) returns()
func (*BridgeBankTransactor) UpdateFee ¶
func (_BridgeBank *BridgeBankTransactor) UpdateFee(opts *bind.TransactOpts, _feeNumerator *big.Int, _feeDenominator *big.Int) (*types.Transaction, error)
UpdateFee is a paid mutator transaction binding the contract method 0x2740c197.
Solidity: function updateFee(uint256 _feeNumerator, uint256 _feeDenominator) returns()
func (*BridgeBankTransactor) UpdateHmyBridge ¶
func (_BridgeBank *BridgeBankTransactor) UpdateHmyBridge(opts *bind.TransactOpts, _harmonyBridge common.Address) (*types.Transaction, error)
UpdateHmyBridge is a paid mutator transaction binding the contract method 0x17877820.
Solidity: function updateHmyBridge(address _harmonyBridge) returns()
func (*BridgeBankTransactor) UpdateOracle ¶
func (_BridgeBank *BridgeBankTransactor) UpdateOracle(opts *bind.TransactOpts, _oracleAddress common.Address) (*types.Transaction, error)
UpdateOracle is a paid mutator transaction binding the contract method 0x1cb44dfc.
Solidity: function updateOracle(address _oracleAddress) returns()
func (*BridgeBankTransactor) WithdrawERC20 ¶
func (_BridgeBank *BridgeBankTransactor) WithdrawERC20(opts *bind.TransactOpts, _ethereumToken common.Address, _ethereumReceiver common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.
Solidity: function withdrawERC20(address _ethereumToken, address _ethereumReceiver, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactor) WithdrawETH ¶
func (_BridgeBank *BridgeBankTransactor) WithdrawETH(opts *bind.TransactOpts, _ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address _ethereumReceiver, uint256 _amountETH) returns()
type BridgeBankTransactorRaw ¶
type BridgeBankTransactorRaw struct {
Contract *BridgeBankTransactor // Generic write-only contract binding to access the raw methods on
}
BridgeBankTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BridgeBankTransactorRaw) Transact ¶
func (_BridgeBank *BridgeBankTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeBankTransactorRaw) Transfer ¶
func (_BridgeBank *BridgeBankTransactorRaw) 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 BridgeBankTransactorSession ¶
type BridgeBankTransactorSession struct { Contract *BridgeBankTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BridgeBankTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BridgeBankTransactorSession) ActivateToken ¶
func (_BridgeBank *BridgeBankTransactorSession) ActivateToken(_ethereumToken common.Address) (*types.Transaction, error)
ActivateToken is a paid mutator transaction binding the contract method 0x0d1ce2d2.
Solidity: function activateToken(address _ethereumToken) returns()
func (*BridgeBankTransactorSession) AddToken ¶
func (_BridgeBank *BridgeBankTransactorSession) AddToken(_ethereumToken common.Address, _ethereumTokenAmount *big.Int, _harmonyToken common.Address) (*types.Transaction, error)
AddToken is a paid mutator transaction binding the contract method 0xa766a392.
Solidity: function addToken(address _ethereumToken, uint256 _ethereumTokenAmount, address _harmonyToken) returns()
func (*BridgeBankTransactorSession) DeactivateToken ¶
func (_BridgeBank *BridgeBankTransactorSession) DeactivateToken(_ethereumToken common.Address) (*types.Transaction, error)
DeactivateToken is a paid mutator transaction binding the contract method 0x68173bcf.
Solidity: function deactivateToken(address _ethereumToken) returns()
func (*BridgeBankTransactorSession) Fallback ¶
func (_BridgeBank *BridgeBankTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*BridgeBankTransactorSession) Initialize ¶
func (_BridgeBank *BridgeBankTransactorSession) Initialize(_bridgeRegistry common.Address, _bandOracleAddress common.Address, _lendingPool common.Address, _wethGateway common.Address, _weth common.Address, _harmonyETH common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcc2a9a5b.
Solidity: function initialize(address _bridgeRegistry, address _bandOracleAddress, address _lendingPool, address _wethGateway, address _weth, address _harmonyETH) payable returns()
func (*BridgeBankTransactorSession) SwapETHForONE ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapETHForONE(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
SwapETHForONE is a paid mutator transaction binding the contract method 0x5e01297d.
Solidity: function swapETHForONE(address _harmonyReceiver, uint256 _amountETH) payable returns()
func (*BridgeBankTransactorSession) SwapETHForToken ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapETHForToken(_harmonyReceiver common.Address, _amountETH *big.Int, _destToken common.Address) (*types.Transaction, error)
SwapETHForToken is a paid mutator transaction binding the contract method 0x903e10ba.
Solidity: function swapETHForToken(address _harmonyReceiver, uint256 _amountETH, address _destToken) payable returns()
func (*BridgeBankTransactorSession) SwapETHForWrappedETH ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapETHForWrappedETH(_harmonyReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
SwapETHForWrappedETH is a paid mutator transaction binding the contract method 0x7fabc432.
Solidity: function swapETHForWrappedETH(address _harmonyReceiver, uint256 _amountETH) payable returns()
func (*BridgeBankTransactorSession) SwapToken11 ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapToken11(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapToken11 is a paid mutator transaction binding the contract method 0xbb0a64db.
Solidity: function swapToken_1_1(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactorSession) SwapTokenForONE ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapTokenForONE(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapTokenForONE is a paid mutator transaction binding the contract method 0xba1adba4.
Solidity: function swapTokenForONE(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactorSession) SwapTokenForToken ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapTokenForToken(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int, _destToken common.Address) (*types.Transaction, error)
SwapTokenForToken is a paid mutator transaction binding the contract method 0x9b92910c.
Solidity: function swapTokenForToken(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount, address _destToken) returns()
func (*BridgeBankTransactorSession) SwapTokenForWrappedETH ¶
func (_BridgeBank *BridgeBankTransactorSession) SwapTokenForWrappedETH(_harmonyReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
SwapTokenForWrappedETH is a paid mutator transaction binding the contract method 0x49b1af93.
Solidity: function swapTokenForWrappedETH(address _harmonyReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactorSession) UnlockERC20 ¶
func (_BridgeBank *BridgeBankTransactorSession) UnlockERC20(_ethereumReceiver common.Address, _ethereumToken common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
UnlockERC20 is a paid mutator transaction binding the contract method 0x3c298e78.
Solidity: function unlockERC20(address _ethereumReceiver, address _ethereumToken, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactorSession) UnlockETH ¶
func (_BridgeBank *BridgeBankTransactorSession) UnlockETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
UnlockETH is a paid mutator transaction binding the contract method 0xed581fd3.
Solidity: function unlockETH(address _ethereumReceiver, uint256 _amountETH) returns()
func (*BridgeBankTransactorSession) UpdateFee ¶
func (_BridgeBank *BridgeBankTransactorSession) UpdateFee(_feeNumerator *big.Int, _feeDenominator *big.Int) (*types.Transaction, error)
UpdateFee is a paid mutator transaction binding the contract method 0x2740c197.
Solidity: function updateFee(uint256 _feeNumerator, uint256 _feeDenominator) returns()
func (*BridgeBankTransactorSession) UpdateHmyBridge ¶
func (_BridgeBank *BridgeBankTransactorSession) UpdateHmyBridge(_harmonyBridge common.Address) (*types.Transaction, error)
UpdateHmyBridge is a paid mutator transaction binding the contract method 0x17877820.
Solidity: function updateHmyBridge(address _harmonyBridge) returns()
func (*BridgeBankTransactorSession) UpdateOracle ¶
func (_BridgeBank *BridgeBankTransactorSession) UpdateOracle(_oracleAddress common.Address) (*types.Transaction, error)
UpdateOracle is a paid mutator transaction binding the contract method 0x1cb44dfc.
Solidity: function updateOracle(address _oracleAddress) returns()
func (*BridgeBankTransactorSession) WithdrawERC20 ¶
func (_BridgeBank *BridgeBankTransactorSession) WithdrawERC20(_ethereumToken common.Address, _ethereumReceiver common.Address, _ethereumTokenAmount *big.Int) (*types.Transaction, error)
WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.
Solidity: function withdrawERC20(address _ethereumToken, address _ethereumReceiver, uint256 _ethereumTokenAmount) returns()
func (*BridgeBankTransactorSession) WithdrawETH ¶
func (_BridgeBank *BridgeBankTransactorSession) WithdrawETH(_ethereumReceiver common.Address, _amountETH *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address _ethereumReceiver, uint256 _amountETH) returns()