Documentation ¶
Index ¶
- Constants
- Variables
- type HbSwap
- type HbSwapAddLiquidity
- type HbSwapAddLiquidityIterator
- type HbSwapCaller
- func (_HbSwap *HbSwapCaller) ConsentRecord(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_HbSwap *HbSwapCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) Fp(opts *bind.CallOpts) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) InputMaskOwner(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_HbSwap *HbSwapCaller) InputmaskCnt(opts *bind.CallOpts) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) LastUpdateSeq(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) Prices(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (string, error)
- func (_HbSwap *HbSwapCaller) PublicBalance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) SecretWithdrawCnt(opts *bind.CallOpts) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) SecretWithdrawMap(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_HbSwap *HbSwapCaller) Servers(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_HbSwap *HbSwapCaller) Threshold(opts *bind.CallOpts) (*big.Int, error)
- func (_HbSwap *HbSwapCaller) TradeCnt(opts *bind.CallOpts) (*big.Int, error)
- type HbSwapCallerRaw
- type HbSwapCallerSession
- func (_HbSwap *HbSwapCallerSession) ConsentRecord(arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_HbSwap *HbSwapCallerSession) Decimals() (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) Fp() (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) InputMaskOwner(arg0 *big.Int) (common.Address, error)
- func (_HbSwap *HbSwapCallerSession) InputmaskCnt() (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) LastUpdateSeq(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) Prices(arg0 common.Address, arg1 common.Address) (string, error)
- func (_HbSwap *HbSwapCallerSession) PublicBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) SecretWithdrawCnt() (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) SecretWithdrawMap(arg0 *big.Int) (struct{ ... }, error)
- func (_HbSwap *HbSwapCallerSession) Servers(arg0 common.Address) (bool, error)
- func (_HbSwap *HbSwapCallerSession) Threshold() (*big.Int, error)
- func (_HbSwap *HbSwapCallerSession) TradeCnt() (*big.Int, error)
- type HbSwapFilterer
- func (_HbSwap *HbSwapFilterer) FilterAddLiquidity(opts *bind.FilterOpts) (*HbSwapAddLiquidityIterator, error)
- func (_HbSwap *HbSwapFilterer) FilterInitPool(opts *bind.FilterOpts) (*HbSwapInitPoolIterator, error)
- func (_HbSwap *HbSwapFilterer) FilterInputMask(opts *bind.FilterOpts) (*HbSwapInputMaskIterator, error)
- func (_HbSwap *HbSwapFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts) (*HbSwapRemoveLiquidityIterator, error)
- func (_HbSwap *HbSwapFilterer) FilterSecretDeposit(opts *bind.FilterOpts) (*HbSwapSecretDepositIterator, error)
- func (_HbSwap *HbSwapFilterer) FilterSecretWithdraw(opts *bind.FilterOpts) (*HbSwapSecretWithdrawIterator, error)
- func (_HbSwap *HbSwapFilterer) FilterTrade(opts *bind.FilterOpts) (*HbSwapTradeIterator, error)
- func (_HbSwap *HbSwapFilterer) ParseAddLiquidity(log types.Log) (*HbSwapAddLiquidity, error)
- func (_HbSwap *HbSwapFilterer) ParseInitPool(log types.Log) (*HbSwapInitPool, error)
- func (_HbSwap *HbSwapFilterer) ParseInputMask(log types.Log) (*HbSwapInputMask, error)
- func (_HbSwap *HbSwapFilterer) ParseRemoveLiquidity(log types.Log) (*HbSwapRemoveLiquidity, error)
- func (_HbSwap *HbSwapFilterer) ParseSecretDeposit(log types.Log) (*HbSwapSecretDeposit, error)
- func (_HbSwap *HbSwapFilterer) ParseSecretWithdraw(log types.Log) (*HbSwapSecretWithdraw, error)
- func (_HbSwap *HbSwapFilterer) ParseTrade(log types.Log) (*HbSwapTrade, error)
- func (_HbSwap *HbSwapFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *HbSwapAddLiquidity) (event.Subscription, error)
- func (_HbSwap *HbSwapFilterer) WatchInitPool(opts *bind.WatchOpts, sink chan<- *HbSwapInitPool) (event.Subscription, error)
- func (_HbSwap *HbSwapFilterer) WatchInputMask(opts *bind.WatchOpts, sink chan<- *HbSwapInputMask) (event.Subscription, error)
- func (_HbSwap *HbSwapFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *HbSwapRemoveLiquidity) (event.Subscription, error)
- func (_HbSwap *HbSwapFilterer) WatchSecretDeposit(opts *bind.WatchOpts, sink chan<- *HbSwapSecretDeposit) (event.Subscription, error)
- func (_HbSwap *HbSwapFilterer) WatchSecretWithdraw(opts *bind.WatchOpts, sink chan<- *HbSwapSecretWithdraw) (event.Subscription, error)
- func (_HbSwap *HbSwapFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *HbSwapTrade) (event.Subscription, error)
- type HbSwapInitPool
- type HbSwapInitPoolIterator
- type HbSwapInputMask
- type HbSwapInputMaskIterator
- type HbSwapRaw
- func (_HbSwap *HbSwapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_HbSwap *HbSwapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_HbSwap *HbSwapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type HbSwapRemoveLiquidity
- type HbSwapRemoveLiquidityIterator
- type HbSwapSecretDeposit
- type HbSwapSecretDepositIterator
- type HbSwapSecretWithdraw
- type HbSwapSecretWithdrawIterator
- type HbSwapSession
- func (_HbSwap *HbSwapSession) AddLiquidity(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) Consent(_seq *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) ConsentRecord(arg0 *big.Int, arg1 common.Address) (bool, error)
- func (_HbSwap *HbSwapSession) Decimals() (*big.Int, error)
- func (_HbSwap *HbSwapSession) Fp() (*big.Int, error)
- func (_HbSwap *HbSwapSession) InitPool(_tokenA common.Address, _tokenB common.Address, _amtA *big.Int, _amtB *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) InputMaskOwner(arg0 *big.Int) (common.Address, error)
- func (_HbSwap *HbSwapSession) InputmaskCnt() (*big.Int, error)
- func (_HbSwap *HbSwapSession) LastUpdateSeq(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_HbSwap *HbSwapSession) Prices(arg0 common.Address, arg1 common.Address) (string, error)
- func (_HbSwap *HbSwapSession) PublicBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_HbSwap *HbSwapSession) PublicDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) PublicWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) RemoveLiquidity(_tokenA common.Address, _tokenB common.Address, _idx *big.Int, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) ReserveInput(_num *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) ResetBalance(_token common.Address, _user common.Address) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) ResetPrice(_tokenA common.Address, _tokenB common.Address, _servers []common.Address) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) SecretDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) SecretWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) SecretWithdrawCnt() (*big.Int, error)
- func (_HbSwap *HbSwapSession) SecretWithdrawMap(arg0 *big.Int) (struct{ ... }, error)
- func (_HbSwap *HbSwapSession) Servers(arg0 common.Address) (bool, error)
- func (_HbSwap *HbSwapSession) Threshold() (*big.Int, error)
- func (_HbSwap *HbSwapSession) Trade(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapSession) TradeCnt() (*big.Int, error)
- func (_HbSwap *HbSwapSession) UpdatePrice(_tokenA common.Address, _tokenB common.Address, _checkpointSeq *big.Int, ...) (*types.Transaction, error)
- type HbSwapTrade
- type HbSwapTradeIterator
- type HbSwapTransactor
- func (_HbSwap *HbSwapTransactor) AddLiquidity(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) Consent(opts *bind.TransactOpts, _seq *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) InitPool(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) PublicDeposit(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) PublicWithdraw(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) RemoveLiquidity(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) ReserveInput(opts *bind.TransactOpts, _num *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) ResetBalance(opts *bind.TransactOpts, _token common.Address, _user common.Address) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) ResetPrice(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) SecretDeposit(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) SecretWithdraw(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) Trade(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactor) UpdatePrice(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, ...) (*types.Transaction, error)
- type HbSwapTransactorRaw
- type HbSwapTransactorSession
- func (_HbSwap *HbSwapTransactorSession) AddLiquidity(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) Consent(_seq *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) InitPool(_tokenA common.Address, _tokenB common.Address, _amtA *big.Int, _amtB *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) PublicDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) PublicWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) RemoveLiquidity(_tokenA common.Address, _tokenB common.Address, _idx *big.Int, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) ReserveInput(_num *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) ResetBalance(_token common.Address, _user common.Address) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) ResetPrice(_tokenA common.Address, _tokenB common.Address, _servers []common.Address) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) SecretDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) SecretWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) Trade(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, ...) (*types.Transaction, error)
- func (_HbSwap *HbSwapTransactorSession) UpdatePrice(_tokenA common.Address, _tokenB common.Address, _checkpointSeq *big.Int, ...) (*types.Transaction, error)
Constants ¶
const HbSwapABI = "" /* 12081-byte string literal not displayed */
HbSwapABI is the input ABI used to generate the binding from.
Variables ¶
var HbSwapBin = "" /* 29944-byte string literal not displayed */
HbSwapBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type HbSwap ¶
type HbSwap struct { HbSwapCaller // Read-only binding to the contract HbSwapTransactor // Write-only binding to the contract HbSwapFilterer // Log filterer for contract events }
HbSwap is an auto generated Go binding around an Ethereum contract.
func DeployHbSwap ¶
func DeployHbSwap(auth *bind.TransactOpts, backend bind.ContractBackend, _servers []common.Address, _threshold *big.Int) (common.Address, *types.Transaction, *HbSwap, error)
DeployHbSwap deploys a new Ethereum contract, binding an instance of HbSwap to it.
type HbSwapAddLiquidity ¶
type HbSwapAddLiquidity struct { User common.Address TokenA common.Address TokenB common.Address IdxA *big.Int IdxB *big.Int MaskedAmtA *big.Int MaskedAmtB *big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapAddLiquidity represents a AddLiquidity event raised by the HbSwap contract.
type HbSwapAddLiquidityIterator ¶
type HbSwapAddLiquidityIterator struct { Event *HbSwapAddLiquidity // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapAddLiquidityIterator is returned from FilterAddLiquidity and is used to iterate over the raw logs and unpacked data for AddLiquidity events raised by the HbSwap contract.
func (*HbSwapAddLiquidityIterator) Close ¶
func (it *HbSwapAddLiquidityIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapAddLiquidityIterator) Error ¶
func (it *HbSwapAddLiquidityIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapAddLiquidityIterator) Next ¶
func (it *HbSwapAddLiquidityIterator) 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 HbSwapCaller ¶
type HbSwapCaller struct {
// contains filtered or unexported fields
}
HbSwapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewHbSwapCaller ¶
func NewHbSwapCaller(address common.Address, caller bind.ContractCaller) (*HbSwapCaller, error)
NewHbSwapCaller creates a new read-only instance of HbSwap, bound to a specific deployed contract.
func (*HbSwapCaller) ConsentRecord ¶
func (_HbSwap *HbSwapCaller) ConsentRecord(opts *bind.CallOpts, arg0 *big.Int, arg1 common.Address) (bool, error)
ConsentRecord is a free data retrieval call binding the contract method 0x1768af96.
Solidity: function consentRecord(uint256 , address ) view returns(bool)
func (*HbSwapCaller) Decimals ¶
Decimals is a free data retrieval call binding the contract method 0xc6ceb50b.
Solidity: function Decimals() view returns(uint256)
func (*HbSwapCaller) Fp ¶
Fp is a free data retrieval call binding the contract method 0xa45b6ce6.
Solidity: function Fp() view returns(uint256)
func (*HbSwapCaller) InputMaskOwner ¶
func (_HbSwap *HbSwapCaller) InputMaskOwner(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
InputMaskOwner is a free data retrieval call binding the contract method 0xb7deef82.
Solidity: function inputMaskOwner(uint256 ) view returns(address)
func (*HbSwapCaller) InputmaskCnt ¶
InputmaskCnt is a free data retrieval call binding the contract method 0x93910e66.
Solidity: function inputmaskCnt() view returns(uint256)
func (*HbSwapCaller) LastUpdateSeq ¶
func (_HbSwap *HbSwapCaller) LastUpdateSeq(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
LastUpdateSeq is a free data retrieval call binding the contract method 0xa4bea6c8.
Solidity: function lastUpdateSeq(address , address ) view returns(uint256)
func (*HbSwapCaller) Prices ¶
func (_HbSwap *HbSwapCaller) Prices(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (string, error)
Prices is a free data retrieval call binding the contract method 0x1f312404.
Solidity: function prices(address , address ) view returns(string)
func (*HbSwapCaller) PublicBalance ¶
func (_HbSwap *HbSwapCaller) PublicBalance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
PublicBalance is a free data retrieval call binding the contract method 0xe7e89276.
Solidity: function publicBalance(address , address ) view returns(uint256)
func (*HbSwapCaller) SecretWithdrawCnt ¶
SecretWithdrawCnt is a free data retrieval call binding the contract method 0x3394dc6f.
Solidity: function secretWithdrawCnt() view returns(uint256)
func (*HbSwapCaller) SecretWithdrawMap ¶
func (_HbSwap *HbSwapCaller) SecretWithdrawMap(opts *bind.CallOpts, arg0 *big.Int) (struct { Token common.Address User common.Address Amt *big.Int }, error)
SecretWithdrawMap is a free data retrieval call binding the contract method 0x7aa6fd65.
Solidity: function secretWithdrawMap(uint256 ) view returns(address token, address user, uint256 amt)
func (*HbSwapCaller) Servers ¶
Servers is a free data retrieval call binding the contract method 0x12ada8de.
Solidity: function servers(address ) view returns(bool)
type HbSwapCallerRaw ¶
type HbSwapCallerRaw struct {
Contract *HbSwapCaller // Generic read-only contract binding to access the raw methods on
}
HbSwapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*HbSwapCallerRaw) Call ¶
func (_HbSwap *HbSwapCallerRaw) 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 HbSwapCallerSession ¶
type HbSwapCallerSession struct { Contract *HbSwapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
HbSwapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*HbSwapCallerSession) ConsentRecord ¶
ConsentRecord is a free data retrieval call binding the contract method 0x1768af96.
Solidity: function consentRecord(uint256 , address ) view returns(bool)
func (*HbSwapCallerSession) Decimals ¶
func (_HbSwap *HbSwapCallerSession) Decimals() (*big.Int, error)
Decimals is a free data retrieval call binding the contract method 0xc6ceb50b.
Solidity: function Decimals() view returns(uint256)
func (*HbSwapCallerSession) Fp ¶
func (_HbSwap *HbSwapCallerSession) Fp() (*big.Int, error)
Fp is a free data retrieval call binding the contract method 0xa45b6ce6.
Solidity: function Fp() view returns(uint256)
func (*HbSwapCallerSession) InputMaskOwner ¶
InputMaskOwner is a free data retrieval call binding the contract method 0xb7deef82.
Solidity: function inputMaskOwner(uint256 ) view returns(address)
func (*HbSwapCallerSession) InputmaskCnt ¶
func (_HbSwap *HbSwapCallerSession) InputmaskCnt() (*big.Int, error)
InputmaskCnt is a free data retrieval call binding the contract method 0x93910e66.
Solidity: function inputmaskCnt() view returns(uint256)
func (*HbSwapCallerSession) LastUpdateSeq ¶
func (_HbSwap *HbSwapCallerSession) LastUpdateSeq(arg0 common.Address, arg1 common.Address) (*big.Int, error)
LastUpdateSeq is a free data retrieval call binding the contract method 0xa4bea6c8.
Solidity: function lastUpdateSeq(address , address ) view returns(uint256)
func (*HbSwapCallerSession) Prices ¶
func (_HbSwap *HbSwapCallerSession) Prices(arg0 common.Address, arg1 common.Address) (string, error)
Prices is a free data retrieval call binding the contract method 0x1f312404.
Solidity: function prices(address , address ) view returns(string)
func (*HbSwapCallerSession) PublicBalance ¶
func (_HbSwap *HbSwapCallerSession) PublicBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
PublicBalance is a free data retrieval call binding the contract method 0xe7e89276.
Solidity: function publicBalance(address , address ) view returns(uint256)
func (*HbSwapCallerSession) SecretWithdrawCnt ¶
func (_HbSwap *HbSwapCallerSession) SecretWithdrawCnt() (*big.Int, error)
SecretWithdrawCnt is a free data retrieval call binding the contract method 0x3394dc6f.
Solidity: function secretWithdrawCnt() view returns(uint256)
func (*HbSwapCallerSession) SecretWithdrawMap ¶
func (_HbSwap *HbSwapCallerSession) SecretWithdrawMap(arg0 *big.Int) (struct { Token common.Address User common.Address Amt *big.Int }, error)
SecretWithdrawMap is a free data retrieval call binding the contract method 0x7aa6fd65.
Solidity: function secretWithdrawMap(uint256 ) view returns(address token, address user, uint256 amt)
func (*HbSwapCallerSession) Servers ¶
func (_HbSwap *HbSwapCallerSession) Servers(arg0 common.Address) (bool, error)
Servers is a free data retrieval call binding the contract method 0x12ada8de.
Solidity: function servers(address ) view returns(bool)
type HbSwapFilterer ¶
type HbSwapFilterer struct {
// contains filtered or unexported fields
}
HbSwapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewHbSwapFilterer ¶
func NewHbSwapFilterer(address common.Address, filterer bind.ContractFilterer) (*HbSwapFilterer, error)
NewHbSwapFilterer creates a new log filterer instance of HbSwap, bound to a specific deployed contract.
func (*HbSwapFilterer) FilterAddLiquidity ¶
func (_HbSwap *HbSwapFilterer) FilterAddLiquidity(opts *bind.FilterOpts) (*HbSwapAddLiquidityIterator, error)
FilterAddLiquidity is a free log retrieval operation binding the contract event 0xec7d4752dd44bf7fc59045c9d80163de2a1b9dbd9032d11cb1156f7f867c6411.
Solidity: event AddLiquidity(address user, address tokenA, address tokenB, uint256 idxA, uint256 idxB, uint256 maskedAmtA, uint256 maskedAmtB)
func (*HbSwapFilterer) FilterInitPool ¶
func (_HbSwap *HbSwapFilterer) FilterInitPool(opts *bind.FilterOpts) (*HbSwapInitPoolIterator, error)
FilterInitPool is a free log retrieval operation binding the contract event 0xfaaebcb30b1b421f4f2ca7f2620e5add6a64532c087ee0646fd665a33d36fdf5.
Solidity: event InitPool(address user, address tokenA, address tokenB, uint256 amtA, uint256 amtB)
func (*HbSwapFilterer) FilterInputMask ¶
func (_HbSwap *HbSwapFilterer) FilterInputMask(opts *bind.FilterOpts) (*HbSwapInputMaskIterator, error)
FilterInputMask is a free log retrieval operation binding the contract event 0xff742b54a62e49c065680fc16aa208f37f60ded27e03a3d19e6088ba0c7b41d4.
Solidity: event InputMask(uint256[] inpusMaskIndexes)
func (*HbSwapFilterer) FilterRemoveLiquidity ¶
func (_HbSwap *HbSwapFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts) (*HbSwapRemoveLiquidityIterator, error)
FilterRemoveLiquidity is a free log retrieval operation binding the contract event 0xa8dbaaebbb025c88e9e34c84635cd8238043556e9af43fb161508c898a8e1ef9.
Solidity: event RemoveLiquidity(address user, address tokenA, address tokenB, uint256 idx, uint256 maskedAmt)
func (*HbSwapFilterer) FilterSecretDeposit ¶
func (_HbSwap *HbSwapFilterer) FilterSecretDeposit(opts *bind.FilterOpts) (*HbSwapSecretDepositIterator, error)
FilterSecretDeposit is a free log retrieval operation binding the contract event 0x07c06144435b7d2bdccf9ee7e5a7022c63382ac7c3a0e14ed08b5969dedf0ecf.
Solidity: event SecretDeposit(address token, address user, uint256 amt)
func (*HbSwapFilterer) FilterSecretWithdraw ¶
func (_HbSwap *HbSwapFilterer) FilterSecretWithdraw(opts *bind.FilterOpts) (*HbSwapSecretWithdrawIterator, error)
FilterSecretWithdraw is a free log retrieval operation binding the contract event 0x4ef3cc4825a92c3b6922acc8a45152cc96ef48463e8ed500dacd5df9e29a67f3.
Solidity: event SecretWithdraw(uint256 seq, address token, address user, uint256 amt)
func (*HbSwapFilterer) FilterTrade ¶
func (_HbSwap *HbSwapFilterer) FilterTrade(opts *bind.FilterOpts) (*HbSwapTradeIterator, error)
FilterTrade is a free log retrieval operation binding the contract event 0x2b4d91cd20cc8800407e3614b8466a6f0729ac3b1fa43d4e2b059ff5593cbae6.
Solidity: event Trade(uint256 tradeSeq, address user, address tokenA, address tokenB, uint256 idxA, uint256 idxB, uint256 maskedAmtA, uint256 maskedAmtB)
func (*HbSwapFilterer) ParseAddLiquidity ¶
func (_HbSwap *HbSwapFilterer) ParseAddLiquidity(log types.Log) (*HbSwapAddLiquidity, error)
ParseAddLiquidity is a log parse operation binding the contract event 0xec7d4752dd44bf7fc59045c9d80163de2a1b9dbd9032d11cb1156f7f867c6411.
Solidity: event AddLiquidity(address user, address tokenA, address tokenB, uint256 idxA, uint256 idxB, uint256 maskedAmtA, uint256 maskedAmtB)
func (*HbSwapFilterer) ParseInitPool ¶
func (_HbSwap *HbSwapFilterer) ParseInitPool(log types.Log) (*HbSwapInitPool, error)
ParseInitPool is a log parse operation binding the contract event 0xfaaebcb30b1b421f4f2ca7f2620e5add6a64532c087ee0646fd665a33d36fdf5.
Solidity: event InitPool(address user, address tokenA, address tokenB, uint256 amtA, uint256 amtB)
func (*HbSwapFilterer) ParseInputMask ¶
func (_HbSwap *HbSwapFilterer) ParseInputMask(log types.Log) (*HbSwapInputMask, error)
ParseInputMask is a log parse operation binding the contract event 0xff742b54a62e49c065680fc16aa208f37f60ded27e03a3d19e6088ba0c7b41d4.
Solidity: event InputMask(uint256[] inpusMaskIndexes)
func (*HbSwapFilterer) ParseRemoveLiquidity ¶
func (_HbSwap *HbSwapFilterer) ParseRemoveLiquidity(log types.Log) (*HbSwapRemoveLiquidity, error)
ParseRemoveLiquidity is a log parse operation binding the contract event 0xa8dbaaebbb025c88e9e34c84635cd8238043556e9af43fb161508c898a8e1ef9.
Solidity: event RemoveLiquidity(address user, address tokenA, address tokenB, uint256 idx, uint256 maskedAmt)
func (*HbSwapFilterer) ParseSecretDeposit ¶
func (_HbSwap *HbSwapFilterer) ParseSecretDeposit(log types.Log) (*HbSwapSecretDeposit, error)
ParseSecretDeposit is a log parse operation binding the contract event 0x07c06144435b7d2bdccf9ee7e5a7022c63382ac7c3a0e14ed08b5969dedf0ecf.
Solidity: event SecretDeposit(address token, address user, uint256 amt)
func (*HbSwapFilterer) ParseSecretWithdraw ¶
func (_HbSwap *HbSwapFilterer) ParseSecretWithdraw(log types.Log) (*HbSwapSecretWithdraw, error)
ParseSecretWithdraw is a log parse operation binding the contract event 0x4ef3cc4825a92c3b6922acc8a45152cc96ef48463e8ed500dacd5df9e29a67f3.
Solidity: event SecretWithdraw(uint256 seq, address token, address user, uint256 amt)
func (*HbSwapFilterer) ParseTrade ¶
func (_HbSwap *HbSwapFilterer) ParseTrade(log types.Log) (*HbSwapTrade, error)
ParseTrade is a log parse operation binding the contract event 0x2b4d91cd20cc8800407e3614b8466a6f0729ac3b1fa43d4e2b059ff5593cbae6.
Solidity: event Trade(uint256 tradeSeq, address user, address tokenA, address tokenB, uint256 idxA, uint256 idxB, uint256 maskedAmtA, uint256 maskedAmtB)
func (*HbSwapFilterer) WatchAddLiquidity ¶
func (_HbSwap *HbSwapFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *HbSwapAddLiquidity) (event.Subscription, error)
WatchAddLiquidity is a free log subscription operation binding the contract event 0xec7d4752dd44bf7fc59045c9d80163de2a1b9dbd9032d11cb1156f7f867c6411.
Solidity: event AddLiquidity(address user, address tokenA, address tokenB, uint256 idxA, uint256 idxB, uint256 maskedAmtA, uint256 maskedAmtB)
func (*HbSwapFilterer) WatchInitPool ¶
func (_HbSwap *HbSwapFilterer) WatchInitPool(opts *bind.WatchOpts, sink chan<- *HbSwapInitPool) (event.Subscription, error)
WatchInitPool is a free log subscription operation binding the contract event 0xfaaebcb30b1b421f4f2ca7f2620e5add6a64532c087ee0646fd665a33d36fdf5.
Solidity: event InitPool(address user, address tokenA, address tokenB, uint256 amtA, uint256 amtB)
func (*HbSwapFilterer) WatchInputMask ¶
func (_HbSwap *HbSwapFilterer) WatchInputMask(opts *bind.WatchOpts, sink chan<- *HbSwapInputMask) (event.Subscription, error)
WatchInputMask is a free log subscription operation binding the contract event 0xff742b54a62e49c065680fc16aa208f37f60ded27e03a3d19e6088ba0c7b41d4.
Solidity: event InputMask(uint256[] inpusMaskIndexes)
func (*HbSwapFilterer) WatchRemoveLiquidity ¶
func (_HbSwap *HbSwapFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *HbSwapRemoveLiquidity) (event.Subscription, error)
WatchRemoveLiquidity is a free log subscription operation binding the contract event 0xa8dbaaebbb025c88e9e34c84635cd8238043556e9af43fb161508c898a8e1ef9.
Solidity: event RemoveLiquidity(address user, address tokenA, address tokenB, uint256 idx, uint256 maskedAmt)
func (*HbSwapFilterer) WatchSecretDeposit ¶
func (_HbSwap *HbSwapFilterer) WatchSecretDeposit(opts *bind.WatchOpts, sink chan<- *HbSwapSecretDeposit) (event.Subscription, error)
WatchSecretDeposit is a free log subscription operation binding the contract event 0x07c06144435b7d2bdccf9ee7e5a7022c63382ac7c3a0e14ed08b5969dedf0ecf.
Solidity: event SecretDeposit(address token, address user, uint256 amt)
func (*HbSwapFilterer) WatchSecretWithdraw ¶
func (_HbSwap *HbSwapFilterer) WatchSecretWithdraw(opts *bind.WatchOpts, sink chan<- *HbSwapSecretWithdraw) (event.Subscription, error)
WatchSecretWithdraw is a free log subscription operation binding the contract event 0x4ef3cc4825a92c3b6922acc8a45152cc96ef48463e8ed500dacd5df9e29a67f3.
Solidity: event SecretWithdraw(uint256 seq, address token, address user, uint256 amt)
func (*HbSwapFilterer) WatchTrade ¶
func (_HbSwap *HbSwapFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *HbSwapTrade) (event.Subscription, error)
WatchTrade is a free log subscription operation binding the contract event 0x2b4d91cd20cc8800407e3614b8466a6f0729ac3b1fa43d4e2b059ff5593cbae6.
Solidity: event Trade(uint256 tradeSeq, address user, address tokenA, address tokenB, uint256 idxA, uint256 idxB, uint256 maskedAmtA, uint256 maskedAmtB)
type HbSwapInitPool ¶
type HbSwapInitPool struct { User common.Address TokenA common.Address TokenB common.Address AmtA *big.Int AmtB *big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapInitPool represents a InitPool event raised by the HbSwap contract.
type HbSwapInitPoolIterator ¶
type HbSwapInitPoolIterator struct { Event *HbSwapInitPool // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapInitPoolIterator is returned from FilterInitPool and is used to iterate over the raw logs and unpacked data for InitPool events raised by the HbSwap contract.
func (*HbSwapInitPoolIterator) Close ¶
func (it *HbSwapInitPoolIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapInitPoolIterator) Error ¶
func (it *HbSwapInitPoolIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapInitPoolIterator) Next ¶
func (it *HbSwapInitPoolIterator) 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 HbSwapInputMask ¶
type HbSwapInputMask struct { InpusMaskIndexes []*big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapInputMask represents a InputMask event raised by the HbSwap contract.
type HbSwapInputMaskIterator ¶
type HbSwapInputMaskIterator struct { Event *HbSwapInputMask // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapInputMaskIterator is returned from FilterInputMask and is used to iterate over the raw logs and unpacked data for InputMask events raised by the HbSwap contract.
func (*HbSwapInputMaskIterator) Close ¶
func (it *HbSwapInputMaskIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapInputMaskIterator) Error ¶
func (it *HbSwapInputMaskIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapInputMaskIterator) Next ¶
func (it *HbSwapInputMaskIterator) 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 HbSwapRaw ¶
type HbSwapRaw struct {
Contract *HbSwap // Generic contract binding to access the raw methods on
}
HbSwapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*HbSwapRaw) Call ¶
func (_HbSwap *HbSwapRaw) 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 (*HbSwapRaw) Transact ¶
func (_HbSwap *HbSwapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HbSwapRaw) Transfer ¶
func (_HbSwap *HbSwapRaw) 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 HbSwapRemoveLiquidity ¶
type HbSwapRemoveLiquidity struct { User common.Address TokenA common.Address TokenB common.Address Idx *big.Int MaskedAmt *big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapRemoveLiquidity represents a RemoveLiquidity event raised by the HbSwap contract.
type HbSwapRemoveLiquidityIterator ¶
type HbSwapRemoveLiquidityIterator struct { Event *HbSwapRemoveLiquidity // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapRemoveLiquidityIterator is returned from FilterRemoveLiquidity and is used to iterate over the raw logs and unpacked data for RemoveLiquidity events raised by the HbSwap contract.
func (*HbSwapRemoveLiquidityIterator) Close ¶
func (it *HbSwapRemoveLiquidityIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapRemoveLiquidityIterator) Error ¶
func (it *HbSwapRemoveLiquidityIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapRemoveLiquidityIterator) Next ¶
func (it *HbSwapRemoveLiquidityIterator) 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 HbSwapSecretDeposit ¶
type HbSwapSecretDeposit struct { Token common.Address User common.Address Amt *big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapSecretDeposit represents a SecretDeposit event raised by the HbSwap contract.
type HbSwapSecretDepositIterator ¶
type HbSwapSecretDepositIterator struct { Event *HbSwapSecretDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapSecretDepositIterator is returned from FilterSecretDeposit and is used to iterate over the raw logs and unpacked data for SecretDeposit events raised by the HbSwap contract.
func (*HbSwapSecretDepositIterator) Close ¶
func (it *HbSwapSecretDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapSecretDepositIterator) Error ¶
func (it *HbSwapSecretDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapSecretDepositIterator) Next ¶
func (it *HbSwapSecretDepositIterator) 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 HbSwapSecretWithdraw ¶
type HbSwapSecretWithdraw struct { Seq *big.Int Token common.Address User common.Address Amt *big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapSecretWithdraw represents a SecretWithdraw event raised by the HbSwap contract.
type HbSwapSecretWithdrawIterator ¶
type HbSwapSecretWithdrawIterator struct { Event *HbSwapSecretWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapSecretWithdrawIterator is returned from FilterSecretWithdraw and is used to iterate over the raw logs and unpacked data for SecretWithdraw events raised by the HbSwap contract.
func (*HbSwapSecretWithdrawIterator) Close ¶
func (it *HbSwapSecretWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapSecretWithdrawIterator) Error ¶
func (it *HbSwapSecretWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapSecretWithdrawIterator) Next ¶
func (it *HbSwapSecretWithdrawIterator) 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 HbSwapSession ¶
type HbSwapSession struct { Contract *HbSwap // 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 }
HbSwapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*HbSwapSession) AddLiquidity ¶
func (_HbSwap *HbSwapSession) AddLiquidity(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, _maskedAmtA *big.Int, _maskedAmtB *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f.
Solidity: function addLiquidity(address _tokenA, address _tokenB, uint256 _idxA, uint256 _idxB, uint256 _maskedAmtA, uint256 _maskedAmtB) returns()
func (*HbSwapSession) Consent ¶
func (_HbSwap *HbSwapSession) Consent(_seq *big.Int) (*types.Transaction, error)
Consent is a paid mutator transaction binding the contract method 0x9eef6ce8.
Solidity: function consent(uint256 _seq) returns()
func (*HbSwapSession) ConsentRecord ¶
ConsentRecord is a free data retrieval call binding the contract method 0x1768af96.
Solidity: function consentRecord(uint256 , address ) view returns(bool)
func (*HbSwapSession) Decimals ¶
func (_HbSwap *HbSwapSession) Decimals() (*big.Int, error)
Decimals is a free data retrieval call binding the contract method 0xc6ceb50b.
Solidity: function Decimals() view returns(uint256)
func (*HbSwapSession) Fp ¶
func (_HbSwap *HbSwapSession) Fp() (*big.Int, error)
Fp is a free data retrieval call binding the contract method 0xa45b6ce6.
Solidity: function Fp() view returns(uint256)
func (*HbSwapSession) InitPool ¶
func (_HbSwap *HbSwapSession) InitPool(_tokenA common.Address, _tokenB common.Address, _amtA *big.Int, _amtB *big.Int) (*types.Transaction, error)
InitPool is a paid mutator transaction binding the contract method 0x2f8a68c5.
Solidity: function initPool(address _tokenA, address _tokenB, uint256 _amtA, uint256 _amtB) returns()
func (*HbSwapSession) InputMaskOwner ¶
InputMaskOwner is a free data retrieval call binding the contract method 0xb7deef82.
Solidity: function inputMaskOwner(uint256 ) view returns(address)
func (*HbSwapSession) InputmaskCnt ¶
func (_HbSwap *HbSwapSession) InputmaskCnt() (*big.Int, error)
InputmaskCnt is a free data retrieval call binding the contract method 0x93910e66.
Solidity: function inputmaskCnt() view returns(uint256)
func (*HbSwapSession) LastUpdateSeq ¶
func (_HbSwap *HbSwapSession) LastUpdateSeq(arg0 common.Address, arg1 common.Address) (*big.Int, error)
LastUpdateSeq is a free data retrieval call binding the contract method 0xa4bea6c8.
Solidity: function lastUpdateSeq(address , address ) view returns(uint256)
func (*HbSwapSession) Prices ¶
Prices is a free data retrieval call binding the contract method 0x1f312404.
Solidity: function prices(address , address ) view returns(string)
func (*HbSwapSession) PublicBalance ¶
func (_HbSwap *HbSwapSession) PublicBalance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
PublicBalance is a free data retrieval call binding the contract method 0xe7e89276.
Solidity: function publicBalance(address , address ) view returns(uint256)
func (*HbSwapSession) PublicDeposit ¶
func (_HbSwap *HbSwapSession) PublicDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
PublicDeposit is a paid mutator transaction binding the contract method 0x93f54644.
Solidity: function publicDeposit(address _token, uint256 _amt) payable returns()
func (*HbSwapSession) PublicWithdraw ¶
func (_HbSwap *HbSwapSession) PublicWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
PublicWithdraw is a paid mutator transaction binding the contract method 0xbc94e7cf.
Solidity: function publicWithdraw(address _token, uint256 _amt) returns()
func (*HbSwapSession) RemoveLiquidity ¶
func (_HbSwap *HbSwapSession) RemoveLiquidity(_tokenA common.Address, _tokenB common.Address, _idx *big.Int, _maskedAmt *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0x3ee7f9d3.
Solidity: function removeLiquidity(address _tokenA, address _tokenB, uint256 _idx, uint256 _maskedAmt) returns()
func (*HbSwapSession) ReserveInput ¶
func (_HbSwap *HbSwapSession) ReserveInput(_num *big.Int) (*types.Transaction, error)
ReserveInput is a paid mutator transaction binding the contract method 0xcc5bd7fa.
Solidity: function reserveInput(uint256 _num) returns()
func (*HbSwapSession) ResetBalance ¶
func (_HbSwap *HbSwapSession) ResetBalance(_token common.Address, _user common.Address) (*types.Transaction, error)
ResetBalance is a paid mutator transaction binding the contract method 0xca7b58ad.
Solidity: function resetBalance(address _token, address _user) returns()
func (*HbSwapSession) ResetPrice ¶
func (_HbSwap *HbSwapSession) ResetPrice(_tokenA common.Address, _tokenB common.Address, _servers []common.Address) (*types.Transaction, error)
ResetPrice is a paid mutator transaction binding the contract method 0x9450fb26.
Solidity: function resetPrice(address _tokenA, address _tokenB, address[] _servers) returns()
func (*HbSwapSession) SecretDeposit ¶
func (_HbSwap *HbSwapSession) SecretDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
SecretDeposit is a paid mutator transaction binding the contract method 0xade28aad.
Solidity: function secretDeposit(address _token, uint256 _amt) returns()
func (*HbSwapSession) SecretWithdraw ¶
func (_HbSwap *HbSwapSession) SecretWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
SecretWithdraw is a paid mutator transaction binding the contract method 0xdee40595.
Solidity: function secretWithdraw(address _token, uint256 _amt) returns()
func (*HbSwapSession) SecretWithdrawCnt ¶
func (_HbSwap *HbSwapSession) SecretWithdrawCnt() (*big.Int, error)
SecretWithdrawCnt is a free data retrieval call binding the contract method 0x3394dc6f.
Solidity: function secretWithdrawCnt() view returns(uint256)
func (*HbSwapSession) SecretWithdrawMap ¶
func (_HbSwap *HbSwapSession) SecretWithdrawMap(arg0 *big.Int) (struct { Token common.Address User common.Address Amt *big.Int }, error)
SecretWithdrawMap is a free data retrieval call binding the contract method 0x7aa6fd65.
Solidity: function secretWithdrawMap(uint256 ) view returns(address token, address user, uint256 amt)
func (*HbSwapSession) Servers ¶
func (_HbSwap *HbSwapSession) Servers(arg0 common.Address) (bool, error)
Servers is a free data retrieval call binding the contract method 0x12ada8de.
Solidity: function servers(address ) view returns(bool)
func (*HbSwapSession) Threshold ¶
func (_HbSwap *HbSwapSession) Threshold() (*big.Int, error)
Threshold is a free data retrieval call binding the contract method 0x42cde4e8.
Solidity: function threshold() view returns(uint256)
func (*HbSwapSession) Trade ¶
func (_HbSwap *HbSwapSession) Trade(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, _maskedA *big.Int, _maskedB *big.Int) (*types.Transaction, error)
Trade is a paid mutator transaction binding the contract method 0xb72a2139.
Solidity: function trade(address _tokenA, address _tokenB, uint256 _idxA, uint256 _idxB, uint256 _maskedA, uint256 _maskedB) returns()
func (*HbSwapSession) TradeCnt ¶
func (_HbSwap *HbSwapSession) TradeCnt() (*big.Int, error)
TradeCnt is a free data retrieval call binding the contract method 0xaf4170c4.
Solidity: function tradeCnt() view returns(uint256)
func (*HbSwapSession) UpdatePrice ¶
func (_HbSwap *HbSwapSession) UpdatePrice(_tokenA common.Address, _tokenB common.Address, _checkpointSeq *big.Int, _price string) (*types.Transaction, error)
UpdatePrice is a paid mutator transaction binding the contract method 0x3766dba7.
Solidity: function updatePrice(address _tokenA, address _tokenB, uint256 _checkpointSeq, string _price) returns()
type HbSwapTrade ¶
type HbSwapTrade struct { TradeSeq *big.Int User common.Address TokenA common.Address TokenB common.Address IdxA *big.Int IdxB *big.Int MaskedAmtA *big.Int MaskedAmtB *big.Int Raw types.Log // Blockchain specific contextual infos }
HbSwapTrade represents a Trade event raised by the HbSwap contract.
type HbSwapTradeIterator ¶
type HbSwapTradeIterator struct { Event *HbSwapTrade // Event containing the contract specifics and raw log // contains filtered or unexported fields }
HbSwapTradeIterator is returned from FilterTrade and is used to iterate over the raw logs and unpacked data for Trade events raised by the HbSwap contract.
func (*HbSwapTradeIterator) Close ¶
func (it *HbSwapTradeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*HbSwapTradeIterator) Error ¶
func (it *HbSwapTradeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*HbSwapTradeIterator) Next ¶
func (it *HbSwapTradeIterator) 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 HbSwapTransactor ¶
type HbSwapTransactor struct {
// contains filtered or unexported fields
}
HbSwapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewHbSwapTransactor ¶
func NewHbSwapTransactor(address common.Address, transactor bind.ContractTransactor) (*HbSwapTransactor, error)
NewHbSwapTransactor creates a new write-only instance of HbSwap, bound to a specific deployed contract.
func (*HbSwapTransactor) AddLiquidity ¶
func (_HbSwap *HbSwapTransactor) AddLiquidity(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, _maskedAmtA *big.Int, _maskedAmtB *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f.
Solidity: function addLiquidity(address _tokenA, address _tokenB, uint256 _idxA, uint256 _idxB, uint256 _maskedAmtA, uint256 _maskedAmtB) returns()
func (*HbSwapTransactor) Consent ¶
func (_HbSwap *HbSwapTransactor) Consent(opts *bind.TransactOpts, _seq *big.Int) (*types.Transaction, error)
Consent is a paid mutator transaction binding the contract method 0x9eef6ce8.
Solidity: function consent(uint256 _seq) returns()
func (*HbSwapTransactor) InitPool ¶
func (_HbSwap *HbSwapTransactor) InitPool(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, _amtA *big.Int, _amtB *big.Int) (*types.Transaction, error)
InitPool is a paid mutator transaction binding the contract method 0x2f8a68c5.
Solidity: function initPool(address _tokenA, address _tokenB, uint256 _amtA, uint256 _amtB) returns()
func (*HbSwapTransactor) PublicDeposit ¶
func (_HbSwap *HbSwapTransactor) PublicDeposit(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
PublicDeposit is a paid mutator transaction binding the contract method 0x93f54644.
Solidity: function publicDeposit(address _token, uint256 _amt) payable returns()
func (*HbSwapTransactor) PublicWithdraw ¶
func (_HbSwap *HbSwapTransactor) PublicWithdraw(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
PublicWithdraw is a paid mutator transaction binding the contract method 0xbc94e7cf.
Solidity: function publicWithdraw(address _token, uint256 _amt) returns()
func (*HbSwapTransactor) RemoveLiquidity ¶
func (_HbSwap *HbSwapTransactor) RemoveLiquidity(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, _idx *big.Int, _maskedAmt *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0x3ee7f9d3.
Solidity: function removeLiquidity(address _tokenA, address _tokenB, uint256 _idx, uint256 _maskedAmt) returns()
func (*HbSwapTransactor) ReserveInput ¶
func (_HbSwap *HbSwapTransactor) ReserveInput(opts *bind.TransactOpts, _num *big.Int) (*types.Transaction, error)
ReserveInput is a paid mutator transaction binding the contract method 0xcc5bd7fa.
Solidity: function reserveInput(uint256 _num) returns()
func (*HbSwapTransactor) ResetBalance ¶
func (_HbSwap *HbSwapTransactor) ResetBalance(opts *bind.TransactOpts, _token common.Address, _user common.Address) (*types.Transaction, error)
ResetBalance is a paid mutator transaction binding the contract method 0xca7b58ad.
Solidity: function resetBalance(address _token, address _user) returns()
func (*HbSwapTransactor) ResetPrice ¶
func (_HbSwap *HbSwapTransactor) ResetPrice(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, _servers []common.Address) (*types.Transaction, error)
ResetPrice is a paid mutator transaction binding the contract method 0x9450fb26.
Solidity: function resetPrice(address _tokenA, address _tokenB, address[] _servers) returns()
func (*HbSwapTransactor) SecretDeposit ¶
func (_HbSwap *HbSwapTransactor) SecretDeposit(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
SecretDeposit is a paid mutator transaction binding the contract method 0xade28aad.
Solidity: function secretDeposit(address _token, uint256 _amt) returns()
func (*HbSwapTransactor) SecretWithdraw ¶
func (_HbSwap *HbSwapTransactor) SecretWithdraw(opts *bind.TransactOpts, _token common.Address, _amt *big.Int) (*types.Transaction, error)
SecretWithdraw is a paid mutator transaction binding the contract method 0xdee40595.
Solidity: function secretWithdraw(address _token, uint256 _amt) returns()
func (*HbSwapTransactor) Trade ¶
func (_HbSwap *HbSwapTransactor) Trade(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, _maskedA *big.Int, _maskedB *big.Int) (*types.Transaction, error)
Trade is a paid mutator transaction binding the contract method 0xb72a2139.
Solidity: function trade(address _tokenA, address _tokenB, uint256 _idxA, uint256 _idxB, uint256 _maskedA, uint256 _maskedB) returns()
func (*HbSwapTransactor) UpdatePrice ¶
func (_HbSwap *HbSwapTransactor) UpdatePrice(opts *bind.TransactOpts, _tokenA common.Address, _tokenB common.Address, _checkpointSeq *big.Int, _price string) (*types.Transaction, error)
UpdatePrice is a paid mutator transaction binding the contract method 0x3766dba7.
Solidity: function updatePrice(address _tokenA, address _tokenB, uint256 _checkpointSeq, string _price) returns()
type HbSwapTransactorRaw ¶
type HbSwapTransactorRaw struct {
Contract *HbSwapTransactor // Generic write-only contract binding to access the raw methods on
}
HbSwapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*HbSwapTransactorRaw) Transact ¶
func (_HbSwap *HbSwapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*HbSwapTransactorRaw) Transfer ¶
func (_HbSwap *HbSwapTransactorRaw) 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 HbSwapTransactorSession ¶
type HbSwapTransactorSession struct { Contract *HbSwapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
HbSwapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*HbSwapTransactorSession) AddLiquidity ¶
func (_HbSwap *HbSwapTransactorSession) AddLiquidity(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, _maskedAmtA *big.Int, _maskedAmtB *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f.
Solidity: function addLiquidity(address _tokenA, address _tokenB, uint256 _idxA, uint256 _idxB, uint256 _maskedAmtA, uint256 _maskedAmtB) returns()
func (*HbSwapTransactorSession) Consent ¶
func (_HbSwap *HbSwapTransactorSession) Consent(_seq *big.Int) (*types.Transaction, error)
Consent is a paid mutator transaction binding the contract method 0x9eef6ce8.
Solidity: function consent(uint256 _seq) returns()
func (*HbSwapTransactorSession) InitPool ¶
func (_HbSwap *HbSwapTransactorSession) InitPool(_tokenA common.Address, _tokenB common.Address, _amtA *big.Int, _amtB *big.Int) (*types.Transaction, error)
InitPool is a paid mutator transaction binding the contract method 0x2f8a68c5.
Solidity: function initPool(address _tokenA, address _tokenB, uint256 _amtA, uint256 _amtB) returns()
func (*HbSwapTransactorSession) PublicDeposit ¶
func (_HbSwap *HbSwapTransactorSession) PublicDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
PublicDeposit is a paid mutator transaction binding the contract method 0x93f54644.
Solidity: function publicDeposit(address _token, uint256 _amt) payable returns()
func (*HbSwapTransactorSession) PublicWithdraw ¶
func (_HbSwap *HbSwapTransactorSession) PublicWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
PublicWithdraw is a paid mutator transaction binding the contract method 0xbc94e7cf.
Solidity: function publicWithdraw(address _token, uint256 _amt) returns()
func (*HbSwapTransactorSession) RemoveLiquidity ¶
func (_HbSwap *HbSwapTransactorSession) RemoveLiquidity(_tokenA common.Address, _tokenB common.Address, _idx *big.Int, _maskedAmt *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0x3ee7f9d3.
Solidity: function removeLiquidity(address _tokenA, address _tokenB, uint256 _idx, uint256 _maskedAmt) returns()
func (*HbSwapTransactorSession) ReserveInput ¶
func (_HbSwap *HbSwapTransactorSession) ReserveInput(_num *big.Int) (*types.Transaction, error)
ReserveInput is a paid mutator transaction binding the contract method 0xcc5bd7fa.
Solidity: function reserveInput(uint256 _num) returns()
func (*HbSwapTransactorSession) ResetBalance ¶
func (_HbSwap *HbSwapTransactorSession) ResetBalance(_token common.Address, _user common.Address) (*types.Transaction, error)
ResetBalance is a paid mutator transaction binding the contract method 0xca7b58ad.
Solidity: function resetBalance(address _token, address _user) returns()
func (*HbSwapTransactorSession) ResetPrice ¶
func (_HbSwap *HbSwapTransactorSession) ResetPrice(_tokenA common.Address, _tokenB common.Address, _servers []common.Address) (*types.Transaction, error)
ResetPrice is a paid mutator transaction binding the contract method 0x9450fb26.
Solidity: function resetPrice(address _tokenA, address _tokenB, address[] _servers) returns()
func (*HbSwapTransactorSession) SecretDeposit ¶
func (_HbSwap *HbSwapTransactorSession) SecretDeposit(_token common.Address, _amt *big.Int) (*types.Transaction, error)
SecretDeposit is a paid mutator transaction binding the contract method 0xade28aad.
Solidity: function secretDeposit(address _token, uint256 _amt) returns()
func (*HbSwapTransactorSession) SecretWithdraw ¶
func (_HbSwap *HbSwapTransactorSession) SecretWithdraw(_token common.Address, _amt *big.Int) (*types.Transaction, error)
SecretWithdraw is a paid mutator transaction binding the contract method 0xdee40595.
Solidity: function secretWithdraw(address _token, uint256 _amt) returns()
func (*HbSwapTransactorSession) Trade ¶
func (_HbSwap *HbSwapTransactorSession) Trade(_tokenA common.Address, _tokenB common.Address, _idxA *big.Int, _idxB *big.Int, _maskedA *big.Int, _maskedB *big.Int) (*types.Transaction, error)
Trade is a paid mutator transaction binding the contract method 0xb72a2139.
Solidity: function trade(address _tokenA, address _tokenB, uint256 _idxA, uint256 _idxB, uint256 _maskedA, uint256 _maskedB) returns()
func (*HbSwapTransactorSession) UpdatePrice ¶
func (_HbSwap *HbSwapTransactorSession) UpdatePrice(_tokenA common.Address, _tokenB common.Address, _checkpointSeq *big.Int, _price string) (*types.Transaction, error)
UpdatePrice is a paid mutator transaction binding the contract method 0x3766dba7.
Solidity: function updatePrice(address _tokenA, address _tokenB, uint256 _checkpointSeq, string _price) returns()