Documentation ¶
Index ¶
- Constants
- type Contract
- type ContractBuyBaseToken
- type ContractBuyBaseTokenIterator
- type ContractCaller
- func (_Contract *ContractCaller) BASEBALANCE(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) BASECAPITALRECEIVEQUOTE(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) BASECAPITALTOKEN(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) BASETOKEN(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) CLAIMED(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Contract *ContractCaller) CLOSED(opts *bind.CallOpts) (bool, error)
- func (_Contract *ContractCaller) DEPOSITBASEALLOWED(opts *bind.CallOpts) (bool, error)
- func (_Contract *ContractCaller) DEPOSITQUOTEALLOWED(opts *bind.CallOpts) (bool, error)
- func (_Contract *ContractCaller) GASPRICELIMIT(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) GetBaseCapitalBalanceOf(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
- func (_Contract *ContractCaller) GetExpectedTarget(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Contract *ContractCaller) GetLpBaseBalance(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
- func (_Contract *ContractCaller) GetLpQuoteBalance(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
- func (_Contract *ContractCaller) GetMidPrice(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) GetOraclePrice(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) GetQuoteCapitalBalanceOf(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
- func (_Contract *ContractCaller) GetTotalBaseCapital(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) GetTotalQuoteCapital(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) GetWithdrawBasePenalty(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCaller) GetWithdrawQuotePenalty(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCaller) K(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) LPFEERATE(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) MAINTAINER(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) MTFEERATE(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) NEWOWNER(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) ORACLE(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) OWNER(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) QUOTEBALANCE(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) QUOTECAPITALRECEIVEBASE(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) QUOTECAPITALTOKEN(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) QUOTETOKEN(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) QueryBuyBaseToken(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCaller) QuerySellBaseToken(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCaller) RSTATUS(opts *bind.CallOpts) (uint8, error)
- func (_Contract *ContractCaller) SUPERVISOR(opts *bind.CallOpts) (common.Address, error)
- func (_Contract *ContractCaller) TARGETBASETOKENAMOUNT(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) TARGETQUOTETOKENAMOUNT(opts *bind.CallOpts) (*big.Int, error)
- func (_Contract *ContractCaller) TRADEALLOWED(opts *bind.CallOpts) (bool, error)
- func (_Contract *ContractCaller) Version(opts *bind.CallOpts) (*big.Int, error)
- type ContractCallerRaw
- type ContractCallerSession
- func (_Contract *ContractCallerSession) BASEBALANCE() (*big.Int, error)
- func (_Contract *ContractCallerSession) BASECAPITALRECEIVEQUOTE() (*big.Int, error)
- func (_Contract *ContractCallerSession) BASECAPITALTOKEN() (common.Address, error)
- func (_Contract *ContractCallerSession) BASETOKEN() (common.Address, error)
- func (_Contract *ContractCallerSession) CLAIMED(arg0 common.Address) (bool, error)
- func (_Contract *ContractCallerSession) CLOSED() (bool, error)
- func (_Contract *ContractCallerSession) DEPOSITBASEALLOWED() (bool, error)
- func (_Contract *ContractCallerSession) DEPOSITQUOTEALLOWED() (bool, error)
- func (_Contract *ContractCallerSession) GASPRICELIMIT() (*big.Int, error)
- func (_Contract *ContractCallerSession) GetBaseCapitalBalanceOf(lp common.Address) (*big.Int, error)
- func (_Contract *ContractCallerSession) GetExpectedTarget() (struct{ ... }, error)
- func (_Contract *ContractCallerSession) GetLpBaseBalance(lp common.Address) (*big.Int, error)
- func (_Contract *ContractCallerSession) GetLpQuoteBalance(lp common.Address) (*big.Int, error)
- func (_Contract *ContractCallerSession) GetMidPrice() (*big.Int, error)
- func (_Contract *ContractCallerSession) GetOraclePrice() (*big.Int, error)
- func (_Contract *ContractCallerSession) GetQuoteCapitalBalanceOf(lp common.Address) (*big.Int, error)
- func (_Contract *ContractCallerSession) GetTotalBaseCapital() (*big.Int, error)
- func (_Contract *ContractCallerSession) GetTotalQuoteCapital() (*big.Int, error)
- func (_Contract *ContractCallerSession) GetWithdrawBasePenalty(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCallerSession) GetWithdrawQuotePenalty(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCallerSession) K() (*big.Int, error)
- func (_Contract *ContractCallerSession) LPFEERATE() (*big.Int, error)
- func (_Contract *ContractCallerSession) MAINTAINER() (common.Address, error)
- func (_Contract *ContractCallerSession) MTFEERATE() (*big.Int, error)
- func (_Contract *ContractCallerSession) NEWOWNER() (common.Address, error)
- func (_Contract *ContractCallerSession) ORACLE() (common.Address, error)
- func (_Contract *ContractCallerSession) OWNER() (common.Address, error)
- func (_Contract *ContractCallerSession) QUOTEBALANCE() (*big.Int, error)
- func (_Contract *ContractCallerSession) QUOTECAPITALRECEIVEBASE() (*big.Int, error)
- func (_Contract *ContractCallerSession) QUOTECAPITALTOKEN() (common.Address, error)
- func (_Contract *ContractCallerSession) QUOTETOKEN() (common.Address, error)
- func (_Contract *ContractCallerSession) QueryBuyBaseToken(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCallerSession) QuerySellBaseToken(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractCallerSession) RSTATUS() (uint8, error)
- func (_Contract *ContractCallerSession) SUPERVISOR() (common.Address, error)
- func (_Contract *ContractCallerSession) TARGETBASETOKENAMOUNT() (*big.Int, error)
- func (_Contract *ContractCallerSession) TARGETQUOTETOKENAMOUNT() (*big.Int, error)
- func (_Contract *ContractCallerSession) TRADEALLOWED() (bool, error)
- func (_Contract *ContractCallerSession) Version() (*big.Int, error)
- type ContractChargeMaintainerFee
- type ContractChargeMaintainerFeeIterator
- type ContractChargePenalty
- type ContractChargePenaltyIterator
- type ContractClaimAssets
- type ContractClaimAssetsIterator
- type ContractDeposit
- type ContractDepositIterator
- type ContractDonate
- type ContractDonateIterator
- type ContractFilterer
- func (_Contract *ContractFilterer) FilterBuyBaseToken(opts *bind.FilterOpts, buyer []common.Address) (*ContractBuyBaseTokenIterator, error)
- func (_Contract *ContractFilterer) FilterChargeMaintainerFee(opts *bind.FilterOpts, maintainer []common.Address) (*ContractChargeMaintainerFeeIterator, error)
- func (_Contract *ContractFilterer) FilterChargePenalty(opts *bind.FilterOpts, payer []common.Address) (*ContractChargePenaltyIterator, error)
- func (_Contract *ContractFilterer) FilterClaimAssets(opts *bind.FilterOpts, user []common.Address) (*ContractClaimAssetsIterator, error)
- func (_Contract *ContractFilterer) FilterDeposit(opts *bind.FilterOpts, payer []common.Address, receiver []common.Address) (*ContractDepositIterator, error)
- func (_Contract *ContractFilterer) FilterDonate(opts *bind.FilterOpts) (*ContractDonateIterator, error)
- func (_Contract *ContractFilterer) FilterOwnershipTransferPrepared(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*ContractOwnershipTransferPreparedIterator, error)
- func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*ContractOwnershipTransferredIterator, error)
- func (_Contract *ContractFilterer) FilterSellBaseToken(opts *bind.FilterOpts, seller []common.Address) (*ContractSellBaseTokenIterator, error)
- func (_Contract *ContractFilterer) FilterUpdateGasPriceLimit(opts *bind.FilterOpts) (*ContractUpdateGasPriceLimitIterator, error)
- func (_Contract *ContractFilterer) FilterUpdateK(opts *bind.FilterOpts) (*ContractUpdateKIterator, error)
- func (_Contract *ContractFilterer) FilterUpdateLiquidityProviderFeeRate(opts *bind.FilterOpts) (*ContractUpdateLiquidityProviderFeeRateIterator, error)
- func (_Contract *ContractFilterer) FilterUpdateMaintainerFeeRate(opts *bind.FilterOpts) (*ContractUpdateMaintainerFeeRateIterator, error)
- func (_Contract *ContractFilterer) FilterWithdraw(opts *bind.FilterOpts, payer []common.Address, receiver []common.Address) (*ContractWithdrawIterator, error)
- func (_Contract *ContractFilterer) ParseBuyBaseToken(log types.Log) (*ContractBuyBaseToken, error)
- func (_Contract *ContractFilterer) ParseChargeMaintainerFee(log types.Log) (*ContractChargeMaintainerFee, error)
- func (_Contract *ContractFilterer) ParseChargePenalty(log types.Log) (*ContractChargePenalty, error)
- func (_Contract *ContractFilterer) ParseClaimAssets(log types.Log) (*ContractClaimAssets, error)
- func (_Contract *ContractFilterer) ParseDeposit(log types.Log) (*ContractDeposit, error)
- func (_Contract *ContractFilterer) ParseDonate(log types.Log) (*ContractDonate, error)
- func (_Contract *ContractFilterer) ParseOwnershipTransferPrepared(log types.Log) (*ContractOwnershipTransferPrepared, error)
- func (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error)
- func (_Contract *ContractFilterer) ParseSellBaseToken(log types.Log) (*ContractSellBaseToken, error)
- func (_Contract *ContractFilterer) ParseUpdateGasPriceLimit(log types.Log) (*ContractUpdateGasPriceLimit, error)
- func (_Contract *ContractFilterer) ParseUpdateK(log types.Log) (*ContractUpdateK, error)
- func (_Contract *ContractFilterer) ParseUpdateLiquidityProviderFeeRate(log types.Log) (*ContractUpdateLiquidityProviderFeeRate, error)
- func (_Contract *ContractFilterer) ParseUpdateMaintainerFeeRate(log types.Log) (*ContractUpdateMaintainerFeeRate, error)
- func (_Contract *ContractFilterer) ParseWithdraw(log types.Log) (*ContractWithdraw, error)
- func (_Contract *ContractFilterer) WatchBuyBaseToken(opts *bind.WatchOpts, sink chan<- *ContractBuyBaseToken, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchChargeMaintainerFee(opts *bind.WatchOpts, sink chan<- *ContractChargeMaintainerFee, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchChargePenalty(opts *bind.WatchOpts, sink chan<- *ContractChargePenalty, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchClaimAssets(opts *bind.WatchOpts, sink chan<- *ContractClaimAssets, user []common.Address) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *ContractDeposit, payer []common.Address, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchDonate(opts *bind.WatchOpts, sink chan<- *ContractDonate) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchOwnershipTransferPrepared(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferPrepared, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchSellBaseToken(opts *bind.WatchOpts, sink chan<- *ContractSellBaseToken, ...) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchUpdateGasPriceLimit(opts *bind.WatchOpts, sink chan<- *ContractUpdateGasPriceLimit) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchUpdateK(opts *bind.WatchOpts, sink chan<- *ContractUpdateK) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchUpdateLiquidityProviderFeeRate(opts *bind.WatchOpts, sink chan<- *ContractUpdateLiquidityProviderFeeRate) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchUpdateMaintainerFeeRate(opts *bind.WatchOpts, sink chan<- *ContractUpdateMaintainerFeeRate) (event.Subscription, error)
- func (_Contract *ContractFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *ContractWithdraw, payer []common.Address, ...) (event.Subscription, error)
- type ContractOwnershipTransferPrepared
- type ContractOwnershipTransferPreparedIterator
- type ContractOwnershipTransferred
- type ContractOwnershipTransferredIterator
- type ContractRaw
- func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContractSellBaseToken
- type ContractSellBaseTokenIterator
- type ContractSession
- func (_Contract *ContractSession) BASEBALANCE() (*big.Int, error)
- func (_Contract *ContractSession) BASECAPITALRECEIVEQUOTE() (*big.Int, error)
- func (_Contract *ContractSession) BASECAPITALTOKEN() (common.Address, error)
- func (_Contract *ContractSession) BASETOKEN() (common.Address, error)
- func (_Contract *ContractSession) BuyBaseToken(amount *big.Int, maxPayQuote *big.Int, data []byte) (*types.Transaction, error)
- func (_Contract *ContractSession) CLAIMED(arg0 common.Address) (bool, error)
- func (_Contract *ContractSession) CLOSED() (bool, error)
- func (_Contract *ContractSession) ClaimAssets() (*types.Transaction, error)
- func (_Contract *ContractSession) ClaimOwnership() (*types.Transaction, error)
- func (_Contract *ContractSession) DEPOSITBASEALLOWED() (bool, error)
- func (_Contract *ContractSession) DEPOSITQUOTEALLOWED() (bool, error)
- func (_Contract *ContractSession) DepositBase(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) DepositBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) DepositQuote(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) DepositQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) DisableBaseDeposit() (*types.Transaction, error)
- func (_Contract *ContractSession) DisableQuoteDeposit() (*types.Transaction, error)
- func (_Contract *ContractSession) DisableTrading() (*types.Transaction, error)
- func (_Contract *ContractSession) DonateBaseToken(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) DonateQuoteToken(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) EnableBaseDeposit() (*types.Transaction, error)
- func (_Contract *ContractSession) EnableQuoteDeposit() (*types.Transaction, error)
- func (_Contract *ContractSession) EnableTrading() (*types.Transaction, error)
- func (_Contract *ContractSession) FinalSettlement() (*types.Transaction, error)
- func (_Contract *ContractSession) GASPRICELIMIT() (*big.Int, error)
- func (_Contract *ContractSession) GetBaseCapitalBalanceOf(lp common.Address) (*big.Int, error)
- func (_Contract *ContractSession) GetExpectedTarget() (struct{ ... }, error)
- func (_Contract *ContractSession) GetLpBaseBalance(lp common.Address) (*big.Int, error)
- func (_Contract *ContractSession) GetLpQuoteBalance(lp common.Address) (*big.Int, error)
- func (_Contract *ContractSession) GetMidPrice() (*big.Int, error)
- func (_Contract *ContractSession) GetOraclePrice() (*big.Int, error)
- func (_Contract *ContractSession) GetQuoteCapitalBalanceOf(lp common.Address) (*big.Int, error)
- func (_Contract *ContractSession) GetTotalBaseCapital() (*big.Int, error)
- func (_Contract *ContractSession) GetTotalQuoteCapital() (*big.Int, error)
- func (_Contract *ContractSession) GetWithdrawBasePenalty(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractSession) GetWithdrawQuotePenalty(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractSession) Init(owner common.Address, supervisor common.Address, maintainer common.Address, ...) (*types.Transaction, error)
- func (_Contract *ContractSession) K() (*big.Int, error)
- func (_Contract *ContractSession) LPFEERATE() (*big.Int, error)
- func (_Contract *ContractSession) MAINTAINER() (common.Address, error)
- func (_Contract *ContractSession) MTFEERATE() (*big.Int, error)
- func (_Contract *ContractSession) NEWOWNER() (common.Address, error)
- func (_Contract *ContractSession) ORACLE() (common.Address, error)
- func (_Contract *ContractSession) OWNER() (common.Address, error)
- func (_Contract *ContractSession) QUOTEBALANCE() (*big.Int, error)
- func (_Contract *ContractSession) QUOTECAPITALRECEIVEBASE() (*big.Int, error)
- func (_Contract *ContractSession) QUOTECAPITALTOKEN() (common.Address, error)
- func (_Contract *ContractSession) QUOTETOKEN() (common.Address, error)
- func (_Contract *ContractSession) QueryBuyBaseToken(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractSession) QuerySellBaseToken(amount *big.Int) (*big.Int, error)
- func (_Contract *ContractSession) RSTATUS() (uint8, error)
- func (_Contract *ContractSession) Retrieve(token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) SUPERVISOR() (common.Address, error)
- func (_Contract *ContractSession) SellBaseToken(amount *big.Int, minReceiveQuote *big.Int, data []byte) (*types.Transaction, error)
- func (_Contract *ContractSession) SetGasPriceLimit(newGasPriceLimit *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) SetK(newK *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) SetLiquidityProviderFeeRate(newLiquidityPorviderFeeRate *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) SetMaintainer(newMaintainer common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) SetMaintainerFeeRate(newMaintainerFeeRate *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) SetOracle(newOracle common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) SetSupervisor(newSupervisor common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) TARGETBASETOKENAMOUNT() (*big.Int, error)
- func (_Contract *ContractSession) TARGETQUOTETOKENAMOUNT() (*big.Int, error)
- func (_Contract *ContractSession) TRADEALLOWED() (bool, error)
- func (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) Version() (*big.Int, error)
- func (_Contract *ContractSession) WithdrawAllBase() (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawAllBaseTo(to common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawAllQuote() (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawAllQuoteTo(to common.Address) (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawBase(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawQuote(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractSession) WithdrawQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- type ContractTransactor
- func (_Contract *ContractTransactor) BuyBaseToken(opts *bind.TransactOpts, amount *big.Int, maxPayQuote *big.Int, data []byte) (*types.Transaction, error)
- func (_Contract *ContractTransactor) ClaimAssets(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) ClaimOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DepositBase(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DepositBaseTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DepositQuote(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DepositQuoteTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DisableBaseDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DisableQuoteDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DisableTrading(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DonateBaseToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) DonateQuoteToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) EnableBaseDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) EnableQuoteDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) EnableTrading(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) FinalSettlement(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Init(opts *bind.TransactOpts, owner common.Address, supervisor common.Address, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactor) Retrieve(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SellBaseToken(opts *bind.TransactOpts, amount *big.Int, minReceiveQuote *big.Int, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetGasPriceLimit(opts *bind.TransactOpts, newGasPriceLimit *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetK(opts *bind.TransactOpts, newK *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetLiquidityProviderFeeRate(opts *bind.TransactOpts, newLiquidityPorviderFeeRate *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetMaintainer(opts *bind.TransactOpts, newMaintainer common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetMaintainerFeeRate(opts *bind.TransactOpts, newMaintainerFeeRate *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetOracle(opts *bind.TransactOpts, newOracle common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) SetSupervisor(opts *bind.TransactOpts, newSupervisor common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawAllBase(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawAllBaseTo(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawAllQuote(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawAllQuoteTo(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawBase(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawBaseTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawQuote(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactor) WithdrawQuoteTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- type ContractTransactorRaw
- type ContractTransactorSession
- func (_Contract *ContractTransactorSession) BuyBaseToken(amount *big.Int, maxPayQuote *big.Int, data []byte) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) ClaimAssets() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) ClaimOwnership() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DepositBase(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DepositBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DepositQuote(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DepositQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DisableBaseDeposit() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DisableQuoteDeposit() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DisableTrading() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DonateBaseToken(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) DonateQuoteToken(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) EnableBaseDeposit() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) EnableQuoteDeposit() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) EnableTrading() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) FinalSettlement() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Init(owner common.Address, supervisor common.Address, maintainer common.Address, ...) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) Retrieve(token common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SellBaseToken(amount *big.Int, minReceiveQuote *big.Int, data []byte) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetGasPriceLimit(newGasPriceLimit *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetK(newK *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetLiquidityProviderFeeRate(newLiquidityPorviderFeeRate *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetMaintainer(newMaintainer common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetMaintainerFeeRate(newMaintainerFeeRate *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetOracle(newOracle common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) SetSupervisor(newSupervisor common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawAllBase() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawAllBaseTo(to common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawAllQuote() (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawAllQuoteTo(to common.Address) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawBase(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawQuote(amount *big.Int) (*types.Transaction, error)
- func (_Contract *ContractTransactorSession) WithdrawQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
- type ContractUpdateGasPriceLimit
- type ContractUpdateGasPriceLimitIterator
- type ContractUpdateK
- type ContractUpdateKIterator
- type ContractUpdateLiquidityProviderFeeRate
- type ContractUpdateLiquidityProviderFeeRateIterator
- type ContractUpdateMaintainerFeeRate
- type ContractUpdateMaintainerFeeRateIterator
- type ContractWithdraw
- type ContractWithdrawIterator
Constants ¶
const ContractABI = "" /* 20504-byte string literal not displayed */
ContractABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { ContractCaller // Read-only binding to the contract ContractTransactor // Write-only binding to the contract ContractFilterer // Log filterer for contract events }
Contract is an auto generated Go binding around an Ethereum contract.
func NewContract ¶
NewContract creates a new instance of Contract, bound to a specific deployed contract.
type ContractBuyBaseToken ¶
type ContractBuyBaseToken struct { Buyer common.Address ReceiveBase *big.Int PayQuote *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractBuyBaseToken represents a BuyBaseToken event raised by the Contract contract.
type ContractBuyBaseTokenIterator ¶
type ContractBuyBaseTokenIterator struct { Event *ContractBuyBaseToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractBuyBaseTokenIterator is returned from FilterBuyBaseToken and is used to iterate over the raw logs and unpacked data for BuyBaseToken events raised by the Contract contract.
func (*ContractBuyBaseTokenIterator) Close ¶
func (it *ContractBuyBaseTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractBuyBaseTokenIterator) Error ¶
func (it *ContractBuyBaseTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractBuyBaseTokenIterator) Next ¶
func (it *ContractBuyBaseTokenIterator) 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 ContractCaller ¶
type ContractCaller struct {
// contains filtered or unexported fields
}
ContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContractCaller ¶
func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error)
NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.
func (*ContractCaller) BASEBALANCE ¶
BASEBALANCE is a free data retrieval call binding the contract method 0xeab5d20e.
Solidity: function _BASE_BALANCE_() view returns(uint256)
func (*ContractCaller) BASECAPITALRECEIVEQUOTE ¶
BASECAPITALRECEIVEQUOTE is a free data retrieval call binding the contract method 0xc6b73cf9.
Solidity: function _BASE_CAPITAL_RECEIVE_QUOTE_() view returns(uint256)
func (*ContractCaller) BASECAPITALTOKEN ¶
BASECAPITALTOKEN is a free data retrieval call binding the contract method 0xd689107c.
Solidity: function _BASE_CAPITAL_TOKEN_() view returns(address)
func (*ContractCaller) BASETOKEN ¶
BASETOKEN is a free data retrieval call binding the contract method 0x4a248d2a.
Solidity: function _BASE_TOKEN_() view returns(address)
func (*ContractCaller) CLAIMED ¶
CLAIMED is a free data retrieval call binding the contract method 0x68be20ad.
Solidity: function _CLAIMED_(address ) view returns(bool)
func (*ContractCaller) CLOSED ¶
func (_Contract *ContractCaller) CLOSED(opts *bind.CallOpts) (bool, error)
CLOSED is a free data retrieval call binding the contract method 0x6ec6a58d.
Solidity: function _CLOSED_() view returns(bool)
func (*ContractCaller) DEPOSITBASEALLOWED ¶
func (_Contract *ContractCaller) DEPOSITBASEALLOWED(opts *bind.CallOpts) (bool, error)
DEPOSITBASEALLOWED is a free data retrieval call binding the contract method 0xa598aca7.
Solidity: function _DEPOSIT_BASE_ALLOWED_() view returns(bool)
func (*ContractCaller) DEPOSITQUOTEALLOWED ¶
func (_Contract *ContractCaller) DEPOSITQUOTEALLOWED(opts *bind.CallOpts) (bool, error)
DEPOSITQUOTEALLOWED is a free data retrieval call binding the contract method 0xc5bbffe8.
Solidity: function _DEPOSIT_QUOTE_ALLOWED_() view returns(bool)
func (*ContractCaller) GASPRICELIMIT ¶
GASPRICELIMIT is a free data retrieval call binding the contract method 0x4de4527e.
Solidity: function _GAS_PRICE_LIMIT_() view returns(uint256)
func (*ContractCaller) GetBaseCapitalBalanceOf ¶
func (_Contract *ContractCaller) GetBaseCapitalBalanceOf(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
GetBaseCapitalBalanceOf is a free data retrieval call binding the contract method 0x7aed942d.
Solidity: function getBaseCapitalBalanceOf(address lp) view returns(uint256)
func (*ContractCaller) GetExpectedTarget ¶
func (_Contract *ContractCaller) GetExpectedTarget(opts *bind.CallOpts) (struct { BaseTarget *big.Int QuoteTarget *big.Int }, error)
GetExpectedTarget is a free data retrieval call binding the contract method 0xffa64225.
Solidity: function getExpectedTarget() view returns(uint256 baseTarget, uint256 quoteTarget)
func (*ContractCaller) GetLpBaseBalance ¶
func (_Contract *ContractCaller) GetLpBaseBalance(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
GetLpBaseBalance is a free data retrieval call binding the contract method 0x95faa5f6.
Solidity: function getLpBaseBalance(address lp) view returns(uint256 lpBalance)
func (*ContractCaller) GetLpQuoteBalance ¶
func (_Contract *ContractCaller) GetLpQuoteBalance(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
GetLpQuoteBalance is a free data retrieval call binding the contract method 0x36a53bbb.
Solidity: function getLpQuoteBalance(address lp) view returns(uint256 lpBalance)
func (*ContractCaller) GetMidPrice ¶
GetMidPrice is a free data retrieval call binding the contract method 0xee27c689.
Solidity: function getMidPrice() view returns(uint256 midPrice)
func (*ContractCaller) GetOraclePrice ¶
GetOraclePrice is a free data retrieval call binding the contract method 0x796da7af.
Solidity: function getOraclePrice() view returns(uint256)
func (*ContractCaller) GetQuoteCapitalBalanceOf ¶
func (_Contract *ContractCaller) GetQuoteCapitalBalanceOf(opts *bind.CallOpts, lp common.Address) (*big.Int, error)
GetQuoteCapitalBalanceOf is a free data retrieval call binding the contract method 0xf67ed448.
Solidity: function getQuoteCapitalBalanceOf(address lp) view returns(uint256)
func (*ContractCaller) GetTotalBaseCapital ¶
GetTotalBaseCapital is a free data retrieval call binding the contract method 0x0cd1667d.
Solidity: function getTotalBaseCapital() view returns(uint256)
func (*ContractCaller) GetTotalQuoteCapital ¶
GetTotalQuoteCapital is a free data retrieval call binding the contract method 0x2aa82c65.
Solidity: function getTotalQuoteCapital() view returns(uint256)
func (*ContractCaller) GetWithdrawBasePenalty ¶
func (_Contract *ContractCaller) GetWithdrawBasePenalty(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
GetWithdrawBasePenalty is a free data retrieval call binding the contract method 0xee5150b3.
Solidity: function getWithdrawBasePenalty(uint256 amount) view returns(uint256 penalty)
func (*ContractCaller) GetWithdrawQuotePenalty ¶
func (_Contract *ContractCaller) GetWithdrawQuotePenalty(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
GetWithdrawQuotePenalty is a free data retrieval call binding the contract method 0x0c9f7bd0.
Solidity: function getWithdrawQuotePenalty(uint256 amount) view returns(uint256 penalty)
func (*ContractCaller) K ¶
K is a free data retrieval call binding the contract method 0xec2fd46d.
Solidity: function _K_() view returns(uint256)
func (*ContractCaller) LPFEERATE ¶
LPFEERATE is a free data retrieval call binding the contract method 0xab44a7a3.
Solidity: function _LP_FEE_RATE_() view returns(uint256)
func (*ContractCaller) MAINTAINER ¶
MAINTAINER is a free data retrieval call binding the contract method 0x4322ec83.
Solidity: function _MAINTAINER_() view returns(address)
func (*ContractCaller) MTFEERATE ¶
MTFEERATE is a free data retrieval call binding the contract method 0xc0ffa178.
Solidity: function _MT_FEE_RATE_() view returns(uint256)
func (*ContractCaller) NEWOWNER ¶
NEWOWNER is a free data retrieval call binding the contract method 0x8456db15.
Solidity: function _NEW_OWNER_() view returns(address)
func (*ContractCaller) ORACLE ¶
ORACLE is a free data retrieval call binding the contract method 0x73a2ab7c.
Solidity: function _ORACLE_() view returns(address)
func (*ContractCaller) OWNER ¶
OWNER is a free data retrieval call binding the contract method 0x16048bc4.
Solidity: function _OWNER_() view returns(address)
func (*ContractCaller) QUOTEBALANCE ¶
QUOTEBALANCE is a free data retrieval call binding the contract method 0x7c9b8e89.
Solidity: function _QUOTE_BALANCE_() view returns(uint256)
func (*ContractCaller) QUOTECAPITALRECEIVEBASE ¶
QUOTECAPITALRECEIVEBASE is a free data retrieval call binding the contract method 0x0e6518e9.
Solidity: function _QUOTE_CAPITAL_RECEIVE_BASE_() view returns(uint256)
func (*ContractCaller) QUOTECAPITALTOKEN ¶
QUOTECAPITALTOKEN is a free data retrieval call binding the contract method 0xac1fbc98.
Solidity: function _QUOTE_CAPITAL_TOKEN_() view returns(address)
func (*ContractCaller) QUOTETOKEN ¶
QUOTETOKEN is a free data retrieval call binding the contract method 0xd4b97046.
Solidity: function _QUOTE_TOKEN_() view returns(address)
func (*ContractCaller) QueryBuyBaseToken ¶
func (_Contract *ContractCaller) QueryBuyBaseToken(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
QueryBuyBaseToken is a free data retrieval call binding the contract method 0x18c0bbe4.
Solidity: function queryBuyBaseToken(uint256 amount) view returns(uint256 payQuote)
func (*ContractCaller) QuerySellBaseToken ¶
func (_Contract *ContractCaller) QuerySellBaseToken(opts *bind.CallOpts, amount *big.Int) (*big.Int, error)
QuerySellBaseToken is a free data retrieval call binding the contract method 0xa2801e16.
Solidity: function querySellBaseToken(uint256 amount) view returns(uint256 receiveQuote)
func (*ContractCaller) RSTATUS ¶
func (_Contract *ContractCaller) RSTATUS(opts *bind.CallOpts) (uint8, error)
RSTATUS is a free data retrieval call binding the contract method 0x17be952e.
Solidity: function _R_STATUS_() view returns(uint8)
func (*ContractCaller) SUPERVISOR ¶
SUPERVISOR is a free data retrieval call binding the contract method 0x3960f142.
Solidity: function _SUPERVISOR_() view returns(address)
func (*ContractCaller) TARGETBASETOKENAMOUNT ¶
TARGETBASETOKENAMOUNT is a free data retrieval call binding the contract method 0xb2094fd3.
Solidity: function _TARGET_BASE_TOKEN_AMOUNT_() view returns(uint256)
func (*ContractCaller) TARGETQUOTETOKENAMOUNT ¶
TARGETQUOTETOKENAMOUNT is a free data retrieval call binding the contract method 0x245c9685.
Solidity: function _TARGET_QUOTE_TOKEN_AMOUNT_() view returns(uint256)
func (*ContractCaller) TRADEALLOWED ¶
func (_Contract *ContractCaller) TRADEALLOWED(opts *bind.CallOpts) (bool, error)
TRADEALLOWED is a free data retrieval call binding the contract method 0xdd58b41c.
Solidity: function _TRADE_ALLOWED_() view returns(bool)
type ContractCallerRaw ¶
type ContractCallerRaw struct {
Contract *ContractCaller // Generic read-only contract binding to access the raw methods on
}
ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContractCallerRaw) Call ¶
func (_Contract *ContractCallerRaw) 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 ContractCallerSession ¶
type ContractCallerSession struct { Contract *ContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ContractCallerSession) BASEBALANCE ¶
func (_Contract *ContractCallerSession) BASEBALANCE() (*big.Int, error)
BASEBALANCE is a free data retrieval call binding the contract method 0xeab5d20e.
Solidity: function _BASE_BALANCE_() view returns(uint256)
func (*ContractCallerSession) BASECAPITALRECEIVEQUOTE ¶
func (_Contract *ContractCallerSession) BASECAPITALRECEIVEQUOTE() (*big.Int, error)
BASECAPITALRECEIVEQUOTE is a free data retrieval call binding the contract method 0xc6b73cf9.
Solidity: function _BASE_CAPITAL_RECEIVE_QUOTE_() view returns(uint256)
func (*ContractCallerSession) BASECAPITALTOKEN ¶
func (_Contract *ContractCallerSession) BASECAPITALTOKEN() (common.Address, error)
BASECAPITALTOKEN is a free data retrieval call binding the contract method 0xd689107c.
Solidity: function _BASE_CAPITAL_TOKEN_() view returns(address)
func (*ContractCallerSession) BASETOKEN ¶
func (_Contract *ContractCallerSession) BASETOKEN() (common.Address, error)
BASETOKEN is a free data retrieval call binding the contract method 0x4a248d2a.
Solidity: function _BASE_TOKEN_() view returns(address)
func (*ContractCallerSession) CLAIMED ¶
func (_Contract *ContractCallerSession) CLAIMED(arg0 common.Address) (bool, error)
CLAIMED is a free data retrieval call binding the contract method 0x68be20ad.
Solidity: function _CLAIMED_(address ) view returns(bool)
func (*ContractCallerSession) CLOSED ¶
func (_Contract *ContractCallerSession) CLOSED() (bool, error)
CLOSED is a free data retrieval call binding the contract method 0x6ec6a58d.
Solidity: function _CLOSED_() view returns(bool)
func (*ContractCallerSession) DEPOSITBASEALLOWED ¶
func (_Contract *ContractCallerSession) DEPOSITBASEALLOWED() (bool, error)
DEPOSITBASEALLOWED is a free data retrieval call binding the contract method 0xa598aca7.
Solidity: function _DEPOSIT_BASE_ALLOWED_() view returns(bool)
func (*ContractCallerSession) DEPOSITQUOTEALLOWED ¶
func (_Contract *ContractCallerSession) DEPOSITQUOTEALLOWED() (bool, error)
DEPOSITQUOTEALLOWED is a free data retrieval call binding the contract method 0xc5bbffe8.
Solidity: function _DEPOSIT_QUOTE_ALLOWED_() view returns(bool)
func (*ContractCallerSession) GASPRICELIMIT ¶
func (_Contract *ContractCallerSession) GASPRICELIMIT() (*big.Int, error)
GASPRICELIMIT is a free data retrieval call binding the contract method 0x4de4527e.
Solidity: function _GAS_PRICE_LIMIT_() view returns(uint256)
func (*ContractCallerSession) GetBaseCapitalBalanceOf ¶
func (_Contract *ContractCallerSession) GetBaseCapitalBalanceOf(lp common.Address) (*big.Int, error)
GetBaseCapitalBalanceOf is a free data retrieval call binding the contract method 0x7aed942d.
Solidity: function getBaseCapitalBalanceOf(address lp) view returns(uint256)
func (*ContractCallerSession) GetExpectedTarget ¶
func (_Contract *ContractCallerSession) GetExpectedTarget() (struct { BaseTarget *big.Int QuoteTarget *big.Int }, error)
GetExpectedTarget is a free data retrieval call binding the contract method 0xffa64225.
Solidity: function getExpectedTarget() view returns(uint256 baseTarget, uint256 quoteTarget)
func (*ContractCallerSession) GetLpBaseBalance ¶
GetLpBaseBalance is a free data retrieval call binding the contract method 0x95faa5f6.
Solidity: function getLpBaseBalance(address lp) view returns(uint256 lpBalance)
func (*ContractCallerSession) GetLpQuoteBalance ¶
GetLpQuoteBalance is a free data retrieval call binding the contract method 0x36a53bbb.
Solidity: function getLpQuoteBalance(address lp) view returns(uint256 lpBalance)
func (*ContractCallerSession) GetMidPrice ¶
func (_Contract *ContractCallerSession) GetMidPrice() (*big.Int, error)
GetMidPrice is a free data retrieval call binding the contract method 0xee27c689.
Solidity: function getMidPrice() view returns(uint256 midPrice)
func (*ContractCallerSession) GetOraclePrice ¶
func (_Contract *ContractCallerSession) GetOraclePrice() (*big.Int, error)
GetOraclePrice is a free data retrieval call binding the contract method 0x796da7af.
Solidity: function getOraclePrice() view returns(uint256)
func (*ContractCallerSession) GetQuoteCapitalBalanceOf ¶
func (_Contract *ContractCallerSession) GetQuoteCapitalBalanceOf(lp common.Address) (*big.Int, error)
GetQuoteCapitalBalanceOf is a free data retrieval call binding the contract method 0xf67ed448.
Solidity: function getQuoteCapitalBalanceOf(address lp) view returns(uint256)
func (*ContractCallerSession) GetTotalBaseCapital ¶
func (_Contract *ContractCallerSession) GetTotalBaseCapital() (*big.Int, error)
GetTotalBaseCapital is a free data retrieval call binding the contract method 0x0cd1667d.
Solidity: function getTotalBaseCapital() view returns(uint256)
func (*ContractCallerSession) GetTotalQuoteCapital ¶
func (_Contract *ContractCallerSession) GetTotalQuoteCapital() (*big.Int, error)
GetTotalQuoteCapital is a free data retrieval call binding the contract method 0x2aa82c65.
Solidity: function getTotalQuoteCapital() view returns(uint256)
func (*ContractCallerSession) GetWithdrawBasePenalty ¶
GetWithdrawBasePenalty is a free data retrieval call binding the contract method 0xee5150b3.
Solidity: function getWithdrawBasePenalty(uint256 amount) view returns(uint256 penalty)
func (*ContractCallerSession) GetWithdrawQuotePenalty ¶
GetWithdrawQuotePenalty is a free data retrieval call binding the contract method 0x0c9f7bd0.
Solidity: function getWithdrawQuotePenalty(uint256 amount) view returns(uint256 penalty)
func (*ContractCallerSession) K ¶
func (_Contract *ContractCallerSession) K() (*big.Int, error)
K is a free data retrieval call binding the contract method 0xec2fd46d.
Solidity: function _K_() view returns(uint256)
func (*ContractCallerSession) LPFEERATE ¶
func (_Contract *ContractCallerSession) LPFEERATE() (*big.Int, error)
LPFEERATE is a free data retrieval call binding the contract method 0xab44a7a3.
Solidity: function _LP_FEE_RATE_() view returns(uint256)
func (*ContractCallerSession) MAINTAINER ¶
func (_Contract *ContractCallerSession) MAINTAINER() (common.Address, error)
MAINTAINER is a free data retrieval call binding the contract method 0x4322ec83.
Solidity: function _MAINTAINER_() view returns(address)
func (*ContractCallerSession) MTFEERATE ¶
func (_Contract *ContractCallerSession) MTFEERATE() (*big.Int, error)
MTFEERATE is a free data retrieval call binding the contract method 0xc0ffa178.
Solidity: function _MT_FEE_RATE_() view returns(uint256)
func (*ContractCallerSession) NEWOWNER ¶
func (_Contract *ContractCallerSession) NEWOWNER() (common.Address, error)
NEWOWNER is a free data retrieval call binding the contract method 0x8456db15.
Solidity: function _NEW_OWNER_() view returns(address)
func (*ContractCallerSession) ORACLE ¶
func (_Contract *ContractCallerSession) ORACLE() (common.Address, error)
ORACLE is a free data retrieval call binding the contract method 0x73a2ab7c.
Solidity: function _ORACLE_() view returns(address)
func (*ContractCallerSession) OWNER ¶
func (_Contract *ContractCallerSession) OWNER() (common.Address, error)
OWNER is a free data retrieval call binding the contract method 0x16048bc4.
Solidity: function _OWNER_() view returns(address)
func (*ContractCallerSession) QUOTEBALANCE ¶
func (_Contract *ContractCallerSession) QUOTEBALANCE() (*big.Int, error)
QUOTEBALANCE is a free data retrieval call binding the contract method 0x7c9b8e89.
Solidity: function _QUOTE_BALANCE_() view returns(uint256)
func (*ContractCallerSession) QUOTECAPITALRECEIVEBASE ¶
func (_Contract *ContractCallerSession) QUOTECAPITALRECEIVEBASE() (*big.Int, error)
QUOTECAPITALRECEIVEBASE is a free data retrieval call binding the contract method 0x0e6518e9.
Solidity: function _QUOTE_CAPITAL_RECEIVE_BASE_() view returns(uint256)
func (*ContractCallerSession) QUOTECAPITALTOKEN ¶
func (_Contract *ContractCallerSession) QUOTECAPITALTOKEN() (common.Address, error)
QUOTECAPITALTOKEN is a free data retrieval call binding the contract method 0xac1fbc98.
Solidity: function _QUOTE_CAPITAL_TOKEN_() view returns(address)
func (*ContractCallerSession) QUOTETOKEN ¶
func (_Contract *ContractCallerSession) QUOTETOKEN() (common.Address, error)
QUOTETOKEN is a free data retrieval call binding the contract method 0xd4b97046.
Solidity: function _QUOTE_TOKEN_() view returns(address)
func (*ContractCallerSession) QueryBuyBaseToken ¶
QueryBuyBaseToken is a free data retrieval call binding the contract method 0x18c0bbe4.
Solidity: function queryBuyBaseToken(uint256 amount) view returns(uint256 payQuote)
func (*ContractCallerSession) QuerySellBaseToken ¶
QuerySellBaseToken is a free data retrieval call binding the contract method 0xa2801e16.
Solidity: function querySellBaseToken(uint256 amount) view returns(uint256 receiveQuote)
func (*ContractCallerSession) RSTATUS ¶
func (_Contract *ContractCallerSession) RSTATUS() (uint8, error)
RSTATUS is a free data retrieval call binding the contract method 0x17be952e.
Solidity: function _R_STATUS_() view returns(uint8)
func (*ContractCallerSession) SUPERVISOR ¶
func (_Contract *ContractCallerSession) SUPERVISOR() (common.Address, error)
SUPERVISOR is a free data retrieval call binding the contract method 0x3960f142.
Solidity: function _SUPERVISOR_() view returns(address)
func (*ContractCallerSession) TARGETBASETOKENAMOUNT ¶
func (_Contract *ContractCallerSession) TARGETBASETOKENAMOUNT() (*big.Int, error)
TARGETBASETOKENAMOUNT is a free data retrieval call binding the contract method 0xb2094fd3.
Solidity: function _TARGET_BASE_TOKEN_AMOUNT_() view returns(uint256)
func (*ContractCallerSession) TARGETQUOTETOKENAMOUNT ¶
func (_Contract *ContractCallerSession) TARGETQUOTETOKENAMOUNT() (*big.Int, error)
TARGETQUOTETOKENAMOUNT is a free data retrieval call binding the contract method 0x245c9685.
Solidity: function _TARGET_QUOTE_TOKEN_AMOUNT_() view returns(uint256)
func (*ContractCallerSession) TRADEALLOWED ¶
func (_Contract *ContractCallerSession) TRADEALLOWED() (bool, error)
TRADEALLOWED is a free data retrieval call binding the contract method 0xdd58b41c.
Solidity: function _TRADE_ALLOWED_() view returns(bool)
type ContractChargeMaintainerFee ¶
type ContractChargeMaintainerFee struct { Maintainer common.Address IsBaseToken bool Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractChargeMaintainerFee represents a ChargeMaintainerFee event raised by the Contract contract.
type ContractChargeMaintainerFeeIterator ¶
type ContractChargeMaintainerFeeIterator struct { Event *ContractChargeMaintainerFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractChargeMaintainerFeeIterator is returned from FilterChargeMaintainerFee and is used to iterate over the raw logs and unpacked data for ChargeMaintainerFee events raised by the Contract contract.
func (*ContractChargeMaintainerFeeIterator) Close ¶
func (it *ContractChargeMaintainerFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractChargeMaintainerFeeIterator) Error ¶
func (it *ContractChargeMaintainerFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractChargeMaintainerFeeIterator) Next ¶
func (it *ContractChargeMaintainerFeeIterator) 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 ContractChargePenalty ¶
type ContractChargePenalty struct { Payer common.Address IsBaseToken bool Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractChargePenalty represents a ChargePenalty event raised by the Contract contract.
type ContractChargePenaltyIterator ¶
type ContractChargePenaltyIterator struct { Event *ContractChargePenalty // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractChargePenaltyIterator is returned from FilterChargePenalty and is used to iterate over the raw logs and unpacked data for ChargePenalty events raised by the Contract contract.
func (*ContractChargePenaltyIterator) Close ¶
func (it *ContractChargePenaltyIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractChargePenaltyIterator) Error ¶
func (it *ContractChargePenaltyIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractChargePenaltyIterator) Next ¶
func (it *ContractChargePenaltyIterator) 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 ContractClaimAssets ¶
type ContractClaimAssets struct { User common.Address BaseTokenAmount *big.Int QuoteTokenAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractClaimAssets represents a ClaimAssets event raised by the Contract contract.
type ContractClaimAssetsIterator ¶
type ContractClaimAssetsIterator struct { Event *ContractClaimAssets // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractClaimAssetsIterator is returned from FilterClaimAssets and is used to iterate over the raw logs and unpacked data for ClaimAssets events raised by the Contract contract.
func (*ContractClaimAssetsIterator) Close ¶
func (it *ContractClaimAssetsIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractClaimAssetsIterator) Error ¶
func (it *ContractClaimAssetsIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractClaimAssetsIterator) Next ¶
func (it *ContractClaimAssetsIterator) 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 ContractDeposit ¶
type ContractDeposit struct { Payer common.Address Receiver common.Address IsBaseToken bool Amount *big.Int LpTokenAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractDeposit represents a Deposit event raised by the Contract contract.
type ContractDepositIterator ¶
type ContractDepositIterator struct { Event *ContractDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Contract contract.
func (*ContractDepositIterator) Close ¶
func (it *ContractDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractDepositIterator) Error ¶
func (it *ContractDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractDepositIterator) Next ¶
func (it *ContractDepositIterator) 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 ContractDonate ¶
type ContractDonate struct { Amount *big.Int IsBaseToken bool Raw types.Log // Blockchain specific contextual infos }
ContractDonate represents a Donate event raised by the Contract contract.
type ContractDonateIterator ¶
type ContractDonateIterator struct { Event *ContractDonate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractDonateIterator is returned from FilterDonate and is used to iterate over the raw logs and unpacked data for Donate events raised by the Contract contract.
func (*ContractDonateIterator) Close ¶
func (it *ContractDonateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractDonateIterator) Error ¶
func (it *ContractDonateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractDonateIterator) Next ¶
func (it *ContractDonateIterator) 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 ContractFilterer ¶
type ContractFilterer struct {
// contains filtered or unexported fields
}
ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewContractFilterer ¶
func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error)
NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.
func (*ContractFilterer) FilterBuyBaseToken ¶
func (_Contract *ContractFilterer) FilterBuyBaseToken(opts *bind.FilterOpts, buyer []common.Address) (*ContractBuyBaseTokenIterator, error)
FilterBuyBaseToken is a free log retrieval operation binding the contract event 0xe93ad76094f247c0dafc1c61adc2187de1ac2738f7a3b49cb20b2263420251a3.
Solidity: event BuyBaseToken(address indexed buyer, uint256 receiveBase, uint256 payQuote)
func (*ContractFilterer) FilterChargeMaintainerFee ¶
func (_Contract *ContractFilterer) FilterChargeMaintainerFee(opts *bind.FilterOpts, maintainer []common.Address) (*ContractChargeMaintainerFeeIterator, error)
FilterChargeMaintainerFee is a free log retrieval operation binding the contract event 0xe4fed5362e2669c70e5da5a18942d1e617d8917f6adc0164d9668bd3a6d0cebe.
Solidity: event ChargeMaintainerFee(address indexed maintainer, bool isBaseToken, uint256 amount)
func (*ContractFilterer) FilterChargePenalty ¶
func (_Contract *ContractFilterer) FilterChargePenalty(opts *bind.FilterOpts, payer []common.Address) (*ContractChargePenaltyIterator, error)
FilterChargePenalty is a free log retrieval operation binding the contract event 0x581f351e2bdb9fa9021bb2a24def989f06ac236f8a92aac14bcbc618ddf3826a.
Solidity: event ChargePenalty(address indexed payer, bool isBaseToken, uint256 amount)
func (*ContractFilterer) FilterClaimAssets ¶
func (_Contract *ContractFilterer) FilterClaimAssets(opts *bind.FilterOpts, user []common.Address) (*ContractClaimAssetsIterator, error)
FilterClaimAssets is a free log retrieval operation binding the contract event 0xbe5f7fe66d16c6a87bb5b8b08a96634fe4f1c2bac9e5e413efe41a782d4d0c43.
Solidity: event ClaimAssets(address indexed user, uint256 baseTokenAmount, uint256 quoteTokenAmount)
func (*ContractFilterer) FilterDeposit ¶
func (_Contract *ContractFilterer) FilterDeposit(opts *bind.FilterOpts, payer []common.Address, receiver []common.Address) (*ContractDepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b.
Solidity: event Deposit(address indexed payer, address indexed receiver, bool isBaseToken, uint256 amount, uint256 lpTokenAmount)
func (*ContractFilterer) FilterDonate ¶
func (_Contract *ContractFilterer) FilterDonate(opts *bind.FilterOpts) (*ContractDonateIterator, error)
FilterDonate is a free log retrieval operation binding the contract event 0xa259c93818139b6bc90fb80e8feb75122b42edaae49560f81392cf4e1946726e.
Solidity: event Donate(uint256 amount, bool isBaseToken)
func (*ContractFilterer) FilterOwnershipTransferPrepared ¶
func (_Contract *ContractFilterer) FilterOwnershipTransferPrepared(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferPreparedIterator, error)
FilterOwnershipTransferPrepared is a free log retrieval operation binding the contract event 0xdcf55418cee3220104fef63f979ff3c4097ad240c0c43dcb33ce837748983e62.
Solidity: event OwnershipTransferPrepared(address indexed previousOwner, address indexed newOwner)
func (*ContractFilterer) FilterOwnershipTransferred ¶
func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ContractFilterer) FilterSellBaseToken ¶
func (_Contract *ContractFilterer) FilterSellBaseToken(opts *bind.FilterOpts, seller []common.Address) (*ContractSellBaseTokenIterator, error)
FilterSellBaseToken is a free log retrieval operation binding the contract event 0xd8648b6ac54162763c86fd54bf2005af8ecd2f9cb273a5775921fd7f91e17b2d.
Solidity: event SellBaseToken(address indexed seller, uint256 payBase, uint256 receiveQuote)
func (*ContractFilterer) FilterUpdateGasPriceLimit ¶
func (_Contract *ContractFilterer) FilterUpdateGasPriceLimit(opts *bind.FilterOpts) (*ContractUpdateGasPriceLimitIterator, error)
FilterUpdateGasPriceLimit is a free log retrieval operation binding the contract event 0x808f99cfd15f1be6019f93dc76c81d5bd82e0b3e0b3d23a54f5a2e647a6cc3cc.
Solidity: event UpdateGasPriceLimit(uint256 oldGasPriceLimit, uint256 newGasPriceLimit)
func (*ContractFilterer) FilterUpdateK ¶
func (_Contract *ContractFilterer) FilterUpdateK(opts *bind.FilterOpts) (*ContractUpdateKIterator, error)
FilterUpdateK is a free log retrieval operation binding the contract event 0x023a40bebf7ac113f81c3d628073246cf9e0bc49980a9d6a9531498ce9e3dd1c.
Solidity: event UpdateK(uint256 oldK, uint256 newK)
func (*ContractFilterer) FilterUpdateLiquidityProviderFeeRate ¶
func (_Contract *ContractFilterer) FilterUpdateLiquidityProviderFeeRate(opts *bind.FilterOpts) (*ContractUpdateLiquidityProviderFeeRateIterator, error)
FilterUpdateLiquidityProviderFeeRate is a free log retrieval operation binding the contract event 0x3ce6ea91adda496b7a0546fa6558e5b52c3a509de6015820efb00ca4020e0a07.
Solidity: event UpdateLiquidityProviderFeeRate(uint256 oldLiquidityProviderFeeRate, uint256 newLiquidityProviderFeeRate)
func (*ContractFilterer) FilterUpdateMaintainerFeeRate ¶
func (_Contract *ContractFilterer) FilterUpdateMaintainerFeeRate(opts *bind.FilterOpts) (*ContractUpdateMaintainerFeeRateIterator, error)
FilterUpdateMaintainerFeeRate is a free log retrieval operation binding the contract event 0x6b04da3d58e4b37d99652babb3ea2bc25ce94379bfff3059f03d61b26c59e553.
Solidity: event UpdateMaintainerFeeRate(uint256 oldMaintainerFeeRate, uint256 newMaintainerFeeRate)
func (*ContractFilterer) FilterWithdraw ¶
func (_Contract *ContractFilterer) FilterWithdraw(opts *bind.FilterOpts, payer []common.Address, receiver []common.Address) (*ContractWithdrawIterator, error)
FilterWithdraw is a free log retrieval operation binding the contract event 0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d.
Solidity: event Withdraw(address indexed payer, address indexed receiver, bool isBaseToken, uint256 amount, uint256 lpTokenAmount)
func (*ContractFilterer) ParseBuyBaseToken ¶
func (_Contract *ContractFilterer) ParseBuyBaseToken(log types.Log) (*ContractBuyBaseToken, error)
ParseBuyBaseToken is a log parse operation binding the contract event 0xe93ad76094f247c0dafc1c61adc2187de1ac2738f7a3b49cb20b2263420251a3.
Solidity: event BuyBaseToken(address indexed buyer, uint256 receiveBase, uint256 payQuote)
func (*ContractFilterer) ParseChargeMaintainerFee ¶
func (_Contract *ContractFilterer) ParseChargeMaintainerFee(log types.Log) (*ContractChargeMaintainerFee, error)
ParseChargeMaintainerFee is a log parse operation binding the contract event 0xe4fed5362e2669c70e5da5a18942d1e617d8917f6adc0164d9668bd3a6d0cebe.
Solidity: event ChargeMaintainerFee(address indexed maintainer, bool isBaseToken, uint256 amount)
func (*ContractFilterer) ParseChargePenalty ¶
func (_Contract *ContractFilterer) ParseChargePenalty(log types.Log) (*ContractChargePenalty, error)
ParseChargePenalty is a log parse operation binding the contract event 0x581f351e2bdb9fa9021bb2a24def989f06ac236f8a92aac14bcbc618ddf3826a.
Solidity: event ChargePenalty(address indexed payer, bool isBaseToken, uint256 amount)
func (*ContractFilterer) ParseClaimAssets ¶
func (_Contract *ContractFilterer) ParseClaimAssets(log types.Log) (*ContractClaimAssets, error)
ParseClaimAssets is a log parse operation binding the contract event 0xbe5f7fe66d16c6a87bb5b8b08a96634fe4f1c2bac9e5e413efe41a782d4d0c43.
Solidity: event ClaimAssets(address indexed user, uint256 baseTokenAmount, uint256 quoteTokenAmount)
func (*ContractFilterer) ParseDeposit ¶
func (_Contract *ContractFilterer) ParseDeposit(log types.Log) (*ContractDeposit, error)
ParseDeposit is a log parse operation binding the contract event 0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b.
Solidity: event Deposit(address indexed payer, address indexed receiver, bool isBaseToken, uint256 amount, uint256 lpTokenAmount)
func (*ContractFilterer) ParseDonate ¶
func (_Contract *ContractFilterer) ParseDonate(log types.Log) (*ContractDonate, error)
ParseDonate is a log parse operation binding the contract event 0xa259c93818139b6bc90fb80e8feb75122b42edaae49560f81392cf4e1946726e.
Solidity: event Donate(uint256 amount, bool isBaseToken)
func (*ContractFilterer) ParseOwnershipTransferPrepared ¶
func (_Contract *ContractFilterer) ParseOwnershipTransferPrepared(log types.Log) (*ContractOwnershipTransferPrepared, error)
ParseOwnershipTransferPrepared is a log parse operation binding the contract event 0xdcf55418cee3220104fef63f979ff3c4097ad240c0c43dcb33ce837748983e62.
Solidity: event OwnershipTransferPrepared(address indexed previousOwner, address indexed newOwner)
func (*ContractFilterer) ParseOwnershipTransferred ¶
func (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ContractFilterer) ParseSellBaseToken ¶
func (_Contract *ContractFilterer) ParseSellBaseToken(log types.Log) (*ContractSellBaseToken, error)
ParseSellBaseToken is a log parse operation binding the contract event 0xd8648b6ac54162763c86fd54bf2005af8ecd2f9cb273a5775921fd7f91e17b2d.
Solidity: event SellBaseToken(address indexed seller, uint256 payBase, uint256 receiveQuote)
func (*ContractFilterer) ParseUpdateGasPriceLimit ¶
func (_Contract *ContractFilterer) ParseUpdateGasPriceLimit(log types.Log) (*ContractUpdateGasPriceLimit, error)
ParseUpdateGasPriceLimit is a log parse operation binding the contract event 0x808f99cfd15f1be6019f93dc76c81d5bd82e0b3e0b3d23a54f5a2e647a6cc3cc.
Solidity: event UpdateGasPriceLimit(uint256 oldGasPriceLimit, uint256 newGasPriceLimit)
func (*ContractFilterer) ParseUpdateK ¶
func (_Contract *ContractFilterer) ParseUpdateK(log types.Log) (*ContractUpdateK, error)
ParseUpdateK is a log parse operation binding the contract event 0x023a40bebf7ac113f81c3d628073246cf9e0bc49980a9d6a9531498ce9e3dd1c.
Solidity: event UpdateK(uint256 oldK, uint256 newK)
func (*ContractFilterer) ParseUpdateLiquidityProviderFeeRate ¶
func (_Contract *ContractFilterer) ParseUpdateLiquidityProviderFeeRate(log types.Log) (*ContractUpdateLiquidityProviderFeeRate, error)
ParseUpdateLiquidityProviderFeeRate is a log parse operation binding the contract event 0x3ce6ea91adda496b7a0546fa6558e5b52c3a509de6015820efb00ca4020e0a07.
Solidity: event UpdateLiquidityProviderFeeRate(uint256 oldLiquidityProviderFeeRate, uint256 newLiquidityProviderFeeRate)
func (*ContractFilterer) ParseUpdateMaintainerFeeRate ¶
func (_Contract *ContractFilterer) ParseUpdateMaintainerFeeRate(log types.Log) (*ContractUpdateMaintainerFeeRate, error)
ParseUpdateMaintainerFeeRate is a log parse operation binding the contract event 0x6b04da3d58e4b37d99652babb3ea2bc25ce94379bfff3059f03d61b26c59e553.
Solidity: event UpdateMaintainerFeeRate(uint256 oldMaintainerFeeRate, uint256 newMaintainerFeeRate)
func (*ContractFilterer) ParseWithdraw ¶
func (_Contract *ContractFilterer) ParseWithdraw(log types.Log) (*ContractWithdraw, error)
ParseWithdraw is a log parse operation binding the contract event 0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d.
Solidity: event Withdraw(address indexed payer, address indexed receiver, bool isBaseToken, uint256 amount, uint256 lpTokenAmount)
func (*ContractFilterer) WatchBuyBaseToken ¶
func (_Contract *ContractFilterer) WatchBuyBaseToken(opts *bind.WatchOpts, sink chan<- *ContractBuyBaseToken, buyer []common.Address) (event.Subscription, error)
WatchBuyBaseToken is a free log subscription operation binding the contract event 0xe93ad76094f247c0dafc1c61adc2187de1ac2738f7a3b49cb20b2263420251a3.
Solidity: event BuyBaseToken(address indexed buyer, uint256 receiveBase, uint256 payQuote)
func (*ContractFilterer) WatchChargeMaintainerFee ¶
func (_Contract *ContractFilterer) WatchChargeMaintainerFee(opts *bind.WatchOpts, sink chan<- *ContractChargeMaintainerFee, maintainer []common.Address) (event.Subscription, error)
WatchChargeMaintainerFee is a free log subscription operation binding the contract event 0xe4fed5362e2669c70e5da5a18942d1e617d8917f6adc0164d9668bd3a6d0cebe.
Solidity: event ChargeMaintainerFee(address indexed maintainer, bool isBaseToken, uint256 amount)
func (*ContractFilterer) WatchChargePenalty ¶
func (_Contract *ContractFilterer) WatchChargePenalty(opts *bind.WatchOpts, sink chan<- *ContractChargePenalty, payer []common.Address) (event.Subscription, error)
WatchChargePenalty is a free log subscription operation binding the contract event 0x581f351e2bdb9fa9021bb2a24def989f06ac236f8a92aac14bcbc618ddf3826a.
Solidity: event ChargePenalty(address indexed payer, bool isBaseToken, uint256 amount)
func (*ContractFilterer) WatchClaimAssets ¶
func (_Contract *ContractFilterer) WatchClaimAssets(opts *bind.WatchOpts, sink chan<- *ContractClaimAssets, user []common.Address) (event.Subscription, error)
WatchClaimAssets is a free log subscription operation binding the contract event 0xbe5f7fe66d16c6a87bb5b8b08a96634fe4f1c2bac9e5e413efe41a782d4d0c43.
Solidity: event ClaimAssets(address indexed user, uint256 baseTokenAmount, uint256 quoteTokenAmount)
func (*ContractFilterer) WatchDeposit ¶
func (_Contract *ContractFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *ContractDeposit, payer []common.Address, receiver []common.Address) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0x18081cde2fa64894914e1080b98cca17bb6d1acf633e57f6e26ebdb945ad830b.
Solidity: event Deposit(address indexed payer, address indexed receiver, bool isBaseToken, uint256 amount, uint256 lpTokenAmount)
func (*ContractFilterer) WatchDonate ¶
func (_Contract *ContractFilterer) WatchDonate(opts *bind.WatchOpts, sink chan<- *ContractDonate) (event.Subscription, error)
WatchDonate is a free log subscription operation binding the contract event 0xa259c93818139b6bc90fb80e8feb75122b42edaae49560f81392cf4e1946726e.
Solidity: event Donate(uint256 amount, bool isBaseToken)
func (*ContractFilterer) WatchOwnershipTransferPrepared ¶
func (_Contract *ContractFilterer) WatchOwnershipTransferPrepared(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferPrepared, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferPrepared is a free log subscription operation binding the contract event 0xdcf55418cee3220104fef63f979ff3c4097ad240c0c43dcb33ce837748983e62.
Solidity: event OwnershipTransferPrepared(address indexed previousOwner, address indexed newOwner)
func (*ContractFilterer) WatchOwnershipTransferred ¶
func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*ContractFilterer) WatchSellBaseToken ¶
func (_Contract *ContractFilterer) WatchSellBaseToken(opts *bind.WatchOpts, sink chan<- *ContractSellBaseToken, seller []common.Address) (event.Subscription, error)
WatchSellBaseToken is a free log subscription operation binding the contract event 0xd8648b6ac54162763c86fd54bf2005af8ecd2f9cb273a5775921fd7f91e17b2d.
Solidity: event SellBaseToken(address indexed seller, uint256 payBase, uint256 receiveQuote)
func (*ContractFilterer) WatchUpdateGasPriceLimit ¶
func (_Contract *ContractFilterer) WatchUpdateGasPriceLimit(opts *bind.WatchOpts, sink chan<- *ContractUpdateGasPriceLimit) (event.Subscription, error)
WatchUpdateGasPriceLimit is a free log subscription operation binding the contract event 0x808f99cfd15f1be6019f93dc76c81d5bd82e0b3e0b3d23a54f5a2e647a6cc3cc.
Solidity: event UpdateGasPriceLimit(uint256 oldGasPriceLimit, uint256 newGasPriceLimit)
func (*ContractFilterer) WatchUpdateK ¶
func (_Contract *ContractFilterer) WatchUpdateK(opts *bind.WatchOpts, sink chan<- *ContractUpdateK) (event.Subscription, error)
WatchUpdateK is a free log subscription operation binding the contract event 0x023a40bebf7ac113f81c3d628073246cf9e0bc49980a9d6a9531498ce9e3dd1c.
Solidity: event UpdateK(uint256 oldK, uint256 newK)
func (*ContractFilterer) WatchUpdateLiquidityProviderFeeRate ¶
func (_Contract *ContractFilterer) WatchUpdateLiquidityProviderFeeRate(opts *bind.WatchOpts, sink chan<- *ContractUpdateLiquidityProviderFeeRate) (event.Subscription, error)
WatchUpdateLiquidityProviderFeeRate is a free log subscription operation binding the contract event 0x3ce6ea91adda496b7a0546fa6558e5b52c3a509de6015820efb00ca4020e0a07.
Solidity: event UpdateLiquidityProviderFeeRate(uint256 oldLiquidityProviderFeeRate, uint256 newLiquidityProviderFeeRate)
func (*ContractFilterer) WatchUpdateMaintainerFeeRate ¶
func (_Contract *ContractFilterer) WatchUpdateMaintainerFeeRate(opts *bind.WatchOpts, sink chan<- *ContractUpdateMaintainerFeeRate) (event.Subscription, error)
WatchUpdateMaintainerFeeRate is a free log subscription operation binding the contract event 0x6b04da3d58e4b37d99652babb3ea2bc25ce94379bfff3059f03d61b26c59e553.
Solidity: event UpdateMaintainerFeeRate(uint256 oldMaintainerFeeRate, uint256 newMaintainerFeeRate)
func (*ContractFilterer) WatchWithdraw ¶
func (_Contract *ContractFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *ContractWithdraw, payer []common.Address, receiver []common.Address) (event.Subscription, error)
WatchWithdraw is a free log subscription operation binding the contract event 0xe89c586bd81ee35a18f7eac22a732b56e589a2821497cce12a0208828540a36d.
Solidity: event Withdraw(address indexed payer, address indexed receiver, bool isBaseToken, uint256 amount, uint256 lpTokenAmount)
type ContractOwnershipTransferPrepared ¶
type ContractOwnershipTransferPrepared struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
ContractOwnershipTransferPrepared represents a OwnershipTransferPrepared event raised by the Contract contract.
type ContractOwnershipTransferPreparedIterator ¶
type ContractOwnershipTransferPreparedIterator struct { Event *ContractOwnershipTransferPrepared // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractOwnershipTransferPreparedIterator is returned from FilterOwnershipTransferPrepared and is used to iterate over the raw logs and unpacked data for OwnershipTransferPrepared events raised by the Contract contract.
func (*ContractOwnershipTransferPreparedIterator) Close ¶
func (it *ContractOwnershipTransferPreparedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractOwnershipTransferPreparedIterator) Error ¶
func (it *ContractOwnershipTransferPreparedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractOwnershipTransferPreparedIterator) Next ¶
func (it *ContractOwnershipTransferPreparedIterator) 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 ContractOwnershipTransferred ¶
type ContractOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
ContractOwnershipTransferred represents a OwnershipTransferred event raised by the Contract contract.
type ContractOwnershipTransferredIterator ¶
type ContractOwnershipTransferredIterator struct { Event *ContractOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Contract contract.
func (*ContractOwnershipTransferredIterator) Close ¶
func (it *ContractOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractOwnershipTransferredIterator) Error ¶
func (it *ContractOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractOwnershipTransferredIterator) Next ¶
func (it *ContractOwnershipTransferredIterator) 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 ContractRaw ¶
type ContractRaw struct {
Contract *Contract // Generic contract binding to access the raw methods on
}
ContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContractRaw) Call ¶
func (_Contract *ContractRaw) 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 (*ContractRaw) Transact ¶
func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractRaw) Transfer ¶
func (_Contract *ContractRaw) 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 ContractSellBaseToken ¶
type ContractSellBaseToken struct { Seller common.Address PayBase *big.Int ReceiveQuote *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractSellBaseToken represents a SellBaseToken event raised by the Contract contract.
type ContractSellBaseTokenIterator ¶
type ContractSellBaseTokenIterator struct { Event *ContractSellBaseToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractSellBaseTokenIterator is returned from FilterSellBaseToken and is used to iterate over the raw logs and unpacked data for SellBaseToken events raised by the Contract contract.
func (*ContractSellBaseTokenIterator) Close ¶
func (it *ContractSellBaseTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractSellBaseTokenIterator) Error ¶
func (it *ContractSellBaseTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractSellBaseTokenIterator) Next ¶
func (it *ContractSellBaseTokenIterator) 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 ContractSession ¶
type ContractSession struct { Contract *Contract // 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 }
ContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ContractSession) BASEBALANCE ¶
func (_Contract *ContractSession) BASEBALANCE() (*big.Int, error)
BASEBALANCE is a free data retrieval call binding the contract method 0xeab5d20e.
Solidity: function _BASE_BALANCE_() view returns(uint256)
func (*ContractSession) BASECAPITALRECEIVEQUOTE ¶
func (_Contract *ContractSession) BASECAPITALRECEIVEQUOTE() (*big.Int, error)
BASECAPITALRECEIVEQUOTE is a free data retrieval call binding the contract method 0xc6b73cf9.
Solidity: function _BASE_CAPITAL_RECEIVE_QUOTE_() view returns(uint256)
func (*ContractSession) BASECAPITALTOKEN ¶
func (_Contract *ContractSession) BASECAPITALTOKEN() (common.Address, error)
BASECAPITALTOKEN is a free data retrieval call binding the contract method 0xd689107c.
Solidity: function _BASE_CAPITAL_TOKEN_() view returns(address)
func (*ContractSession) BASETOKEN ¶
func (_Contract *ContractSession) BASETOKEN() (common.Address, error)
BASETOKEN is a free data retrieval call binding the contract method 0x4a248d2a.
Solidity: function _BASE_TOKEN_() view returns(address)
func (*ContractSession) BuyBaseToken ¶
func (_Contract *ContractSession) BuyBaseToken(amount *big.Int, maxPayQuote *big.Int, data []byte) (*types.Transaction, error)
BuyBaseToken is a paid mutator transaction binding the contract method 0xe67ce706.
Solidity: function buyBaseToken(uint256 amount, uint256 maxPayQuote, bytes data) returns(uint256)
func (*ContractSession) CLAIMED ¶
func (_Contract *ContractSession) CLAIMED(arg0 common.Address) (bool, error)
CLAIMED is a free data retrieval call binding the contract method 0x68be20ad.
Solidity: function _CLAIMED_(address ) view returns(bool)
func (*ContractSession) CLOSED ¶
func (_Contract *ContractSession) CLOSED() (bool, error)
CLOSED is a free data retrieval call binding the contract method 0x6ec6a58d.
Solidity: function _CLOSED_() view returns(bool)
func (*ContractSession) ClaimAssets ¶
func (_Contract *ContractSession) ClaimAssets() (*types.Transaction, error)
ClaimAssets is a paid mutator transaction binding the contract method 0x1f3c156e.
Solidity: function claimAssets() returns()
func (*ContractSession) ClaimOwnership ¶
func (_Contract *ContractSession) ClaimOwnership() (*types.Transaction, error)
ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.
Solidity: function claimOwnership() returns()
func (*ContractSession) DEPOSITBASEALLOWED ¶
func (_Contract *ContractSession) DEPOSITBASEALLOWED() (bool, error)
DEPOSITBASEALLOWED is a free data retrieval call binding the contract method 0xa598aca7.
Solidity: function _DEPOSIT_BASE_ALLOWED_() view returns(bool)
func (*ContractSession) DEPOSITQUOTEALLOWED ¶
func (_Contract *ContractSession) DEPOSITQUOTEALLOWED() (bool, error)
DEPOSITQUOTEALLOWED is a free data retrieval call binding the contract method 0xc5bbffe8.
Solidity: function _DEPOSIT_QUOTE_ALLOWED_() view returns(bool)
func (*ContractSession) DepositBase ¶
func (_Contract *ContractSession) DepositBase(amount *big.Int) (*types.Transaction, error)
DepositBase is a paid mutator transaction binding the contract method 0x27bed8ee.
Solidity: function depositBase(uint256 amount) returns(uint256)
func (*ContractSession) DepositBaseTo ¶
func (_Contract *ContractSession) DepositBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
DepositBaseTo is a paid mutator transaction binding the contract method 0xaa06ce9b.
Solidity: function depositBaseTo(address to, uint256 amount) returns(uint256)
func (*ContractSession) DepositQuote ¶
func (_Contract *ContractSession) DepositQuote(amount *big.Int) (*types.Transaction, error)
DepositQuote is a paid mutator transaction binding the contract method 0xf3ae6c5f.
Solidity: function depositQuote(uint256 amount) returns(uint256)
func (*ContractSession) DepositQuoteTo ¶
func (_Contract *ContractSession) DepositQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
DepositQuoteTo is a paid mutator transaction binding the contract method 0x5f179f64.
Solidity: function depositQuoteTo(address to, uint256 amount) returns(uint256)
func (*ContractSession) DisableBaseDeposit ¶
func (_Contract *ContractSession) DisableBaseDeposit() (*types.Transaction, error)
DisableBaseDeposit is a paid mutator transaction binding the contract method 0x13c57624.
Solidity: function disableBaseDeposit() returns()
func (*ContractSession) DisableQuoteDeposit ¶
func (_Contract *ContractSession) DisableQuoteDeposit() (*types.Transaction, error)
DisableQuoteDeposit is a paid mutator transaction binding the contract method 0xbc7d679d.
Solidity: function disableQuoteDeposit() returns()
func (*ContractSession) DisableTrading ¶
func (_Contract *ContractSession) DisableTrading() (*types.Transaction, error)
DisableTrading is a paid mutator transaction binding the contract method 0x17700f01.
Solidity: function disableTrading() returns()
func (*ContractSession) DonateBaseToken ¶
func (_Contract *ContractSession) DonateBaseToken(amount *big.Int) (*types.Transaction, error)
DonateBaseToken is a paid mutator transaction binding the contract method 0xed0aa428.
Solidity: function donateBaseToken(uint256 amount) returns()
func (*ContractSession) DonateQuoteToken ¶
func (_Contract *ContractSession) DonateQuoteToken(amount *big.Int) (*types.Transaction, error)
DonateQuoteToken is a paid mutator transaction binding the contract method 0x387b0c11.
Solidity: function donateQuoteToken(uint256 amount) returns()
func (*ContractSession) EnableBaseDeposit ¶
func (_Contract *ContractSession) EnableBaseDeposit() (*types.Transaction, error)
EnableBaseDeposit is a paid mutator transaction binding the contract method 0x1184d8be.
Solidity: function enableBaseDeposit() returns()
func (*ContractSession) EnableQuoteDeposit ¶
func (_Contract *ContractSession) EnableQuoteDeposit() (*types.Transaction, error)
EnableQuoteDeposit is a paid mutator transaction binding the contract method 0x36ac41a8.
Solidity: function enableQuoteDeposit() returns()
func (*ContractSession) EnableTrading ¶
func (_Contract *ContractSession) EnableTrading() (*types.Transaction, error)
EnableTrading is a paid mutator transaction binding the contract method 0x8a8c523c.
Solidity: function enableTrading() returns()
func (*ContractSession) FinalSettlement ¶
func (_Contract *ContractSession) FinalSettlement() (*types.Transaction, error)
FinalSettlement is a paid mutator transaction binding the contract method 0x648a4fac.
Solidity: function finalSettlement() returns()
func (*ContractSession) GASPRICELIMIT ¶
func (_Contract *ContractSession) GASPRICELIMIT() (*big.Int, error)
GASPRICELIMIT is a free data retrieval call binding the contract method 0x4de4527e.
Solidity: function _GAS_PRICE_LIMIT_() view returns(uint256)
func (*ContractSession) GetBaseCapitalBalanceOf ¶
GetBaseCapitalBalanceOf is a free data retrieval call binding the contract method 0x7aed942d.
Solidity: function getBaseCapitalBalanceOf(address lp) view returns(uint256)
func (*ContractSession) GetExpectedTarget ¶
func (_Contract *ContractSession) GetExpectedTarget() (struct { BaseTarget *big.Int QuoteTarget *big.Int }, error)
GetExpectedTarget is a free data retrieval call binding the contract method 0xffa64225.
Solidity: function getExpectedTarget() view returns(uint256 baseTarget, uint256 quoteTarget)
func (*ContractSession) GetLpBaseBalance ¶
GetLpBaseBalance is a free data retrieval call binding the contract method 0x95faa5f6.
Solidity: function getLpBaseBalance(address lp) view returns(uint256 lpBalance)
func (*ContractSession) GetLpQuoteBalance ¶
GetLpQuoteBalance is a free data retrieval call binding the contract method 0x36a53bbb.
Solidity: function getLpQuoteBalance(address lp) view returns(uint256 lpBalance)
func (*ContractSession) GetMidPrice ¶
func (_Contract *ContractSession) GetMidPrice() (*big.Int, error)
GetMidPrice is a free data retrieval call binding the contract method 0xee27c689.
Solidity: function getMidPrice() view returns(uint256 midPrice)
func (*ContractSession) GetOraclePrice ¶
func (_Contract *ContractSession) GetOraclePrice() (*big.Int, error)
GetOraclePrice is a free data retrieval call binding the contract method 0x796da7af.
Solidity: function getOraclePrice() view returns(uint256)
func (*ContractSession) GetQuoteCapitalBalanceOf ¶
GetQuoteCapitalBalanceOf is a free data retrieval call binding the contract method 0xf67ed448.
Solidity: function getQuoteCapitalBalanceOf(address lp) view returns(uint256)
func (*ContractSession) GetTotalBaseCapital ¶
func (_Contract *ContractSession) GetTotalBaseCapital() (*big.Int, error)
GetTotalBaseCapital is a free data retrieval call binding the contract method 0x0cd1667d.
Solidity: function getTotalBaseCapital() view returns(uint256)
func (*ContractSession) GetTotalQuoteCapital ¶
func (_Contract *ContractSession) GetTotalQuoteCapital() (*big.Int, error)
GetTotalQuoteCapital is a free data retrieval call binding the contract method 0x2aa82c65.
Solidity: function getTotalQuoteCapital() view returns(uint256)
func (*ContractSession) GetWithdrawBasePenalty ¶
GetWithdrawBasePenalty is a free data retrieval call binding the contract method 0xee5150b3.
Solidity: function getWithdrawBasePenalty(uint256 amount) view returns(uint256 penalty)
func (*ContractSession) GetWithdrawQuotePenalty ¶
GetWithdrawQuotePenalty is a free data retrieval call binding the contract method 0x0c9f7bd0.
Solidity: function getWithdrawQuotePenalty(uint256 amount) view returns(uint256 penalty)
func (*ContractSession) Init ¶
func (_Contract *ContractSession) Init(owner common.Address, supervisor common.Address, maintainer common.Address, baseToken common.Address, quoteToken common.Address, oracle common.Address, lpFeeRate *big.Int, mtFeeRate *big.Int, k *big.Int, gasPriceLimit *big.Int) (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xf00f9a09.
Solidity: function init(address owner, address supervisor, address maintainer, address baseToken, address quoteToken, address oracle, uint256 lpFeeRate, uint256 mtFeeRate, uint256 k, uint256 gasPriceLimit) returns()
func (*ContractSession) K ¶
func (_Contract *ContractSession) K() (*big.Int, error)
K is a free data retrieval call binding the contract method 0xec2fd46d.
Solidity: function _K_() view returns(uint256)
func (*ContractSession) LPFEERATE ¶
func (_Contract *ContractSession) LPFEERATE() (*big.Int, error)
LPFEERATE is a free data retrieval call binding the contract method 0xab44a7a3.
Solidity: function _LP_FEE_RATE_() view returns(uint256)
func (*ContractSession) MAINTAINER ¶
func (_Contract *ContractSession) MAINTAINER() (common.Address, error)
MAINTAINER is a free data retrieval call binding the contract method 0x4322ec83.
Solidity: function _MAINTAINER_() view returns(address)
func (*ContractSession) MTFEERATE ¶
func (_Contract *ContractSession) MTFEERATE() (*big.Int, error)
MTFEERATE is a free data retrieval call binding the contract method 0xc0ffa178.
Solidity: function _MT_FEE_RATE_() view returns(uint256)
func (*ContractSession) NEWOWNER ¶
func (_Contract *ContractSession) NEWOWNER() (common.Address, error)
NEWOWNER is a free data retrieval call binding the contract method 0x8456db15.
Solidity: function _NEW_OWNER_() view returns(address)
func (*ContractSession) ORACLE ¶
func (_Contract *ContractSession) ORACLE() (common.Address, error)
ORACLE is a free data retrieval call binding the contract method 0x73a2ab7c.
Solidity: function _ORACLE_() view returns(address)
func (*ContractSession) OWNER ¶
func (_Contract *ContractSession) OWNER() (common.Address, error)
OWNER is a free data retrieval call binding the contract method 0x16048bc4.
Solidity: function _OWNER_() view returns(address)
func (*ContractSession) QUOTEBALANCE ¶
func (_Contract *ContractSession) QUOTEBALANCE() (*big.Int, error)
QUOTEBALANCE is a free data retrieval call binding the contract method 0x7c9b8e89.
Solidity: function _QUOTE_BALANCE_() view returns(uint256)
func (*ContractSession) QUOTECAPITALRECEIVEBASE ¶
func (_Contract *ContractSession) QUOTECAPITALRECEIVEBASE() (*big.Int, error)
QUOTECAPITALRECEIVEBASE is a free data retrieval call binding the contract method 0x0e6518e9.
Solidity: function _QUOTE_CAPITAL_RECEIVE_BASE_() view returns(uint256)
func (*ContractSession) QUOTECAPITALTOKEN ¶
func (_Contract *ContractSession) QUOTECAPITALTOKEN() (common.Address, error)
QUOTECAPITALTOKEN is a free data retrieval call binding the contract method 0xac1fbc98.
Solidity: function _QUOTE_CAPITAL_TOKEN_() view returns(address)
func (*ContractSession) QUOTETOKEN ¶
func (_Contract *ContractSession) QUOTETOKEN() (common.Address, error)
QUOTETOKEN is a free data retrieval call binding the contract method 0xd4b97046.
Solidity: function _QUOTE_TOKEN_() view returns(address)
func (*ContractSession) QueryBuyBaseToken ¶
QueryBuyBaseToken is a free data retrieval call binding the contract method 0x18c0bbe4.
Solidity: function queryBuyBaseToken(uint256 amount) view returns(uint256 payQuote)
func (*ContractSession) QuerySellBaseToken ¶
QuerySellBaseToken is a free data retrieval call binding the contract method 0xa2801e16.
Solidity: function querySellBaseToken(uint256 amount) view returns(uint256 receiveQuote)
func (*ContractSession) RSTATUS ¶
func (_Contract *ContractSession) RSTATUS() (uint8, error)
RSTATUS is a free data retrieval call binding the contract method 0x17be952e.
Solidity: function _R_STATUS_() view returns(uint8)
func (*ContractSession) Retrieve ¶
func (_Contract *ContractSession) Retrieve(token common.Address, amount *big.Int) (*types.Transaction, error)
Retrieve is a paid mutator transaction binding the contract method 0xc3a2a665.
Solidity: function retrieve(address token, uint256 amount) returns()
func (*ContractSession) SUPERVISOR ¶
func (_Contract *ContractSession) SUPERVISOR() (common.Address, error)
SUPERVISOR is a free data retrieval call binding the contract method 0x3960f142.
Solidity: function _SUPERVISOR_() view returns(address)
func (*ContractSession) SellBaseToken ¶
func (_Contract *ContractSession) SellBaseToken(amount *big.Int, minReceiveQuote *big.Int, data []byte) (*types.Transaction, error)
SellBaseToken is a paid mutator transaction binding the contract method 0x8dae7333.
Solidity: function sellBaseToken(uint256 amount, uint256 minReceiveQuote, bytes data) returns(uint256)
func (*ContractSession) SetGasPriceLimit ¶
func (_Contract *ContractSession) SetGasPriceLimit(newGasPriceLimit *big.Int) (*types.Transaction, error)
SetGasPriceLimit is a paid mutator transaction binding the contract method 0x09231602.
Solidity: function setGasPriceLimit(uint256 newGasPriceLimit) returns()
func (*ContractSession) SetK ¶
func (_Contract *ContractSession) SetK(newK *big.Int) (*types.Transaction, error)
SetK is a paid mutator transaction binding the contract method 0x67de8be9.
Solidity: function setK(uint256 newK) returns()
func (*ContractSession) SetLiquidityProviderFeeRate ¶
func (_Contract *ContractSession) SetLiquidityProviderFeeRate(newLiquidityPorviderFeeRate *big.Int) (*types.Transaction, error)
SetLiquidityProviderFeeRate is a paid mutator transaction binding the contract method 0x5bb7552a.
Solidity: function setLiquidityProviderFeeRate(uint256 newLiquidityPorviderFeeRate) returns()
func (*ContractSession) SetMaintainer ¶
func (_Contract *ContractSession) SetMaintainer(newMaintainer common.Address) (*types.Transaction, error)
SetMaintainer is a paid mutator transaction binding the contract method 0x13ea5d29.
Solidity: function setMaintainer(address newMaintainer) returns()
func (*ContractSession) SetMaintainerFeeRate ¶
func (_Contract *ContractSession) SetMaintainerFeeRate(newMaintainerFeeRate *big.Int) (*types.Transaction, error)
SetMaintainerFeeRate is a paid mutator transaction binding the contract method 0xf2220416.
Solidity: function setMaintainerFeeRate(uint256 newMaintainerFeeRate) returns()
func (*ContractSession) SetOracle ¶
func (_Contract *ContractSession) SetOracle(newOracle common.Address) (*types.Transaction, error)
SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.
Solidity: function setOracle(address newOracle) returns()
func (*ContractSession) SetSupervisor ¶
func (_Contract *ContractSession) SetSupervisor(newSupervisor common.Address) (*types.Transaction, error)
SetSupervisor is a paid mutator transaction binding the contract method 0x9299eb30.
Solidity: function setSupervisor(address newSupervisor) returns()
func (*ContractSession) TARGETBASETOKENAMOUNT ¶
func (_Contract *ContractSession) TARGETBASETOKENAMOUNT() (*big.Int, error)
TARGETBASETOKENAMOUNT is a free data retrieval call binding the contract method 0xb2094fd3.
Solidity: function _TARGET_BASE_TOKEN_AMOUNT_() view returns(uint256)
func (*ContractSession) TARGETQUOTETOKENAMOUNT ¶
func (_Contract *ContractSession) TARGETQUOTETOKENAMOUNT() (*big.Int, error)
TARGETQUOTETOKENAMOUNT is a free data retrieval call binding the contract method 0x245c9685.
Solidity: function _TARGET_QUOTE_TOKEN_AMOUNT_() view returns(uint256)
func (*ContractSession) TRADEALLOWED ¶
func (_Contract *ContractSession) TRADEALLOWED() (bool, error)
TRADEALLOWED is a free data retrieval call binding the contract method 0xdd58b41c.
Solidity: function _TRADE_ALLOWED_() view returns(bool)
func (*ContractSession) TransferOwnership ¶
func (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*ContractSession) Version ¶
func (_Contract *ContractSession) Version() (*big.Int, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() pure returns(uint256)
func (*ContractSession) WithdrawAllBase ¶
func (_Contract *ContractSession) WithdrawAllBase() (*types.Transaction, error)
WithdrawAllBase is a paid mutator transaction binding the contract method 0xd47eaa37.
Solidity: function withdrawAllBase() returns(uint256)
func (*ContractSession) WithdrawAllBaseTo ¶
func (_Contract *ContractSession) WithdrawAllBaseTo(to common.Address) (*types.Transaction, error)
WithdrawAllBaseTo is a paid mutator transaction binding the contract method 0x1e34b9cc.
Solidity: function withdrawAllBaseTo(address to) returns(uint256)
func (*ContractSession) WithdrawAllQuote ¶
func (_Contract *ContractSession) WithdrawAllQuote() (*types.Transaction, error)
WithdrawAllQuote is a paid mutator transaction binding the contract method 0xc59203af.
Solidity: function withdrawAllQuote() returns(uint256)
func (*ContractSession) WithdrawAllQuoteTo ¶
func (_Contract *ContractSession) WithdrawAllQuoteTo(to common.Address) (*types.Transaction, error)
WithdrawAllQuoteTo is a paid mutator transaction binding the contract method 0x04512dc4.
Solidity: function withdrawAllQuoteTo(address to) returns(uint256)
func (*ContractSession) WithdrawBase ¶
func (_Contract *ContractSession) WithdrawBase(amount *big.Int) (*types.Transaction, error)
WithdrawBase is a paid mutator transaction binding the contract method 0xf98bea15.
Solidity: function withdrawBase(uint256 amount) returns(uint256)
func (*ContractSession) WithdrawBaseTo ¶
func (_Contract *ContractSession) WithdrawBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawBaseTo is a paid mutator transaction binding the contract method 0x947cf92b.
Solidity: function withdrawBaseTo(address to, uint256 amount) returns(uint256)
func (*ContractSession) WithdrawQuote ¶
func (_Contract *ContractSession) WithdrawQuote(amount *big.Int) (*types.Transaction, error)
WithdrawQuote is a paid mutator transaction binding the contract method 0xc0a5f6ff.
Solidity: function withdrawQuote(uint256 amount) returns(uint256)
func (*ContractSession) WithdrawQuoteTo ¶
func (_Contract *ContractSession) WithdrawQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawQuoteTo is a paid mutator transaction binding the contract method 0x108db744.
Solidity: function withdrawQuoteTo(address to, uint256 amount) returns(uint256)
type ContractTransactor ¶
type ContractTransactor struct {
// contains filtered or unexported fields
}
ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContractTransactor ¶
func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error)
NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.
func (*ContractTransactor) BuyBaseToken ¶
func (_Contract *ContractTransactor) BuyBaseToken(opts *bind.TransactOpts, amount *big.Int, maxPayQuote *big.Int, data []byte) (*types.Transaction, error)
BuyBaseToken is a paid mutator transaction binding the contract method 0xe67ce706.
Solidity: function buyBaseToken(uint256 amount, uint256 maxPayQuote, bytes data) returns(uint256)
func (*ContractTransactor) ClaimAssets ¶
func (_Contract *ContractTransactor) ClaimAssets(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimAssets is a paid mutator transaction binding the contract method 0x1f3c156e.
Solidity: function claimAssets() returns()
func (*ContractTransactor) ClaimOwnership ¶
func (_Contract *ContractTransactor) ClaimOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.
Solidity: function claimOwnership() returns()
func (*ContractTransactor) DepositBase ¶
func (_Contract *ContractTransactor) DepositBase(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
DepositBase is a paid mutator transaction binding the contract method 0x27bed8ee.
Solidity: function depositBase(uint256 amount) returns(uint256)
func (*ContractTransactor) DepositBaseTo ¶
func (_Contract *ContractTransactor) DepositBaseTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
DepositBaseTo is a paid mutator transaction binding the contract method 0xaa06ce9b.
Solidity: function depositBaseTo(address to, uint256 amount) returns(uint256)
func (*ContractTransactor) DepositQuote ¶
func (_Contract *ContractTransactor) DepositQuote(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
DepositQuote is a paid mutator transaction binding the contract method 0xf3ae6c5f.
Solidity: function depositQuote(uint256 amount) returns(uint256)
func (*ContractTransactor) DepositQuoteTo ¶
func (_Contract *ContractTransactor) DepositQuoteTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
DepositQuoteTo is a paid mutator transaction binding the contract method 0x5f179f64.
Solidity: function depositQuoteTo(address to, uint256 amount) returns(uint256)
func (*ContractTransactor) DisableBaseDeposit ¶
func (_Contract *ContractTransactor) DisableBaseDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
DisableBaseDeposit is a paid mutator transaction binding the contract method 0x13c57624.
Solidity: function disableBaseDeposit() returns()
func (*ContractTransactor) DisableQuoteDeposit ¶
func (_Contract *ContractTransactor) DisableQuoteDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
DisableQuoteDeposit is a paid mutator transaction binding the contract method 0xbc7d679d.
Solidity: function disableQuoteDeposit() returns()
func (*ContractTransactor) DisableTrading ¶
func (_Contract *ContractTransactor) DisableTrading(opts *bind.TransactOpts) (*types.Transaction, error)
DisableTrading is a paid mutator transaction binding the contract method 0x17700f01.
Solidity: function disableTrading() returns()
func (*ContractTransactor) DonateBaseToken ¶
func (_Contract *ContractTransactor) DonateBaseToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
DonateBaseToken is a paid mutator transaction binding the contract method 0xed0aa428.
Solidity: function donateBaseToken(uint256 amount) returns()
func (*ContractTransactor) DonateQuoteToken ¶
func (_Contract *ContractTransactor) DonateQuoteToken(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
DonateQuoteToken is a paid mutator transaction binding the contract method 0x387b0c11.
Solidity: function donateQuoteToken(uint256 amount) returns()
func (*ContractTransactor) EnableBaseDeposit ¶
func (_Contract *ContractTransactor) EnableBaseDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
EnableBaseDeposit is a paid mutator transaction binding the contract method 0x1184d8be.
Solidity: function enableBaseDeposit() returns()
func (*ContractTransactor) EnableQuoteDeposit ¶
func (_Contract *ContractTransactor) EnableQuoteDeposit(opts *bind.TransactOpts) (*types.Transaction, error)
EnableQuoteDeposit is a paid mutator transaction binding the contract method 0x36ac41a8.
Solidity: function enableQuoteDeposit() returns()
func (*ContractTransactor) EnableTrading ¶
func (_Contract *ContractTransactor) EnableTrading(opts *bind.TransactOpts) (*types.Transaction, error)
EnableTrading is a paid mutator transaction binding the contract method 0x8a8c523c.
Solidity: function enableTrading() returns()
func (*ContractTransactor) FinalSettlement ¶
func (_Contract *ContractTransactor) FinalSettlement(opts *bind.TransactOpts) (*types.Transaction, error)
FinalSettlement is a paid mutator transaction binding the contract method 0x648a4fac.
Solidity: function finalSettlement() returns()
func (*ContractTransactor) Init ¶
func (_Contract *ContractTransactor) Init(opts *bind.TransactOpts, owner common.Address, supervisor common.Address, maintainer common.Address, baseToken common.Address, quoteToken common.Address, oracle common.Address, lpFeeRate *big.Int, mtFeeRate *big.Int, k *big.Int, gasPriceLimit *big.Int) (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xf00f9a09.
Solidity: function init(address owner, address supervisor, address maintainer, address baseToken, address quoteToken, address oracle, uint256 lpFeeRate, uint256 mtFeeRate, uint256 k, uint256 gasPriceLimit) returns()
func (*ContractTransactor) Retrieve ¶
func (_Contract *ContractTransactor) Retrieve(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error)
Retrieve is a paid mutator transaction binding the contract method 0xc3a2a665.
Solidity: function retrieve(address token, uint256 amount) returns()
func (*ContractTransactor) SellBaseToken ¶
func (_Contract *ContractTransactor) SellBaseToken(opts *bind.TransactOpts, amount *big.Int, minReceiveQuote *big.Int, data []byte) (*types.Transaction, error)
SellBaseToken is a paid mutator transaction binding the contract method 0x8dae7333.
Solidity: function sellBaseToken(uint256 amount, uint256 minReceiveQuote, bytes data) returns(uint256)
func (*ContractTransactor) SetGasPriceLimit ¶
func (_Contract *ContractTransactor) SetGasPriceLimit(opts *bind.TransactOpts, newGasPriceLimit *big.Int) (*types.Transaction, error)
SetGasPriceLimit is a paid mutator transaction binding the contract method 0x09231602.
Solidity: function setGasPriceLimit(uint256 newGasPriceLimit) returns()
func (*ContractTransactor) SetK ¶
func (_Contract *ContractTransactor) SetK(opts *bind.TransactOpts, newK *big.Int) (*types.Transaction, error)
SetK is a paid mutator transaction binding the contract method 0x67de8be9.
Solidity: function setK(uint256 newK) returns()
func (*ContractTransactor) SetLiquidityProviderFeeRate ¶
func (_Contract *ContractTransactor) SetLiquidityProviderFeeRate(opts *bind.TransactOpts, newLiquidityPorviderFeeRate *big.Int) (*types.Transaction, error)
SetLiquidityProviderFeeRate is a paid mutator transaction binding the contract method 0x5bb7552a.
Solidity: function setLiquidityProviderFeeRate(uint256 newLiquidityPorviderFeeRate) returns()
func (*ContractTransactor) SetMaintainer ¶
func (_Contract *ContractTransactor) SetMaintainer(opts *bind.TransactOpts, newMaintainer common.Address) (*types.Transaction, error)
SetMaintainer is a paid mutator transaction binding the contract method 0x13ea5d29.
Solidity: function setMaintainer(address newMaintainer) returns()
func (*ContractTransactor) SetMaintainerFeeRate ¶
func (_Contract *ContractTransactor) SetMaintainerFeeRate(opts *bind.TransactOpts, newMaintainerFeeRate *big.Int) (*types.Transaction, error)
SetMaintainerFeeRate is a paid mutator transaction binding the contract method 0xf2220416.
Solidity: function setMaintainerFeeRate(uint256 newMaintainerFeeRate) returns()
func (*ContractTransactor) SetOracle ¶
func (_Contract *ContractTransactor) SetOracle(opts *bind.TransactOpts, newOracle common.Address) (*types.Transaction, error)
SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.
Solidity: function setOracle(address newOracle) returns()
func (*ContractTransactor) SetSupervisor ¶
func (_Contract *ContractTransactor) SetSupervisor(opts *bind.TransactOpts, newSupervisor common.Address) (*types.Transaction, error)
SetSupervisor is a paid mutator transaction binding the contract method 0x9299eb30.
Solidity: function setSupervisor(address newSupervisor) returns()
func (*ContractTransactor) TransferOwnership ¶
func (_Contract *ContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*ContractTransactor) WithdrawAllBase ¶
func (_Contract *ContractTransactor) WithdrawAllBase(opts *bind.TransactOpts) (*types.Transaction, error)
WithdrawAllBase is a paid mutator transaction binding the contract method 0xd47eaa37.
Solidity: function withdrawAllBase() returns(uint256)
func (*ContractTransactor) WithdrawAllBaseTo ¶
func (_Contract *ContractTransactor) WithdrawAllBaseTo(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
WithdrawAllBaseTo is a paid mutator transaction binding the contract method 0x1e34b9cc.
Solidity: function withdrawAllBaseTo(address to) returns(uint256)
func (*ContractTransactor) WithdrawAllQuote ¶
func (_Contract *ContractTransactor) WithdrawAllQuote(opts *bind.TransactOpts) (*types.Transaction, error)
WithdrawAllQuote is a paid mutator transaction binding the contract method 0xc59203af.
Solidity: function withdrawAllQuote() returns(uint256)
func (*ContractTransactor) WithdrawAllQuoteTo ¶
func (_Contract *ContractTransactor) WithdrawAllQuoteTo(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
WithdrawAllQuoteTo is a paid mutator transaction binding the contract method 0x04512dc4.
Solidity: function withdrawAllQuoteTo(address to) returns(uint256)
func (*ContractTransactor) WithdrawBase ¶
func (_Contract *ContractTransactor) WithdrawBase(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
WithdrawBase is a paid mutator transaction binding the contract method 0xf98bea15.
Solidity: function withdrawBase(uint256 amount) returns(uint256)
func (*ContractTransactor) WithdrawBaseTo ¶
func (_Contract *ContractTransactor) WithdrawBaseTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawBaseTo is a paid mutator transaction binding the contract method 0x947cf92b.
Solidity: function withdrawBaseTo(address to, uint256 amount) returns(uint256)
func (*ContractTransactor) WithdrawQuote ¶
func (_Contract *ContractTransactor) WithdrawQuote(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)
WithdrawQuote is a paid mutator transaction binding the contract method 0xc0a5f6ff.
Solidity: function withdrawQuote(uint256 amount) returns(uint256)
func (*ContractTransactor) WithdrawQuoteTo ¶
func (_Contract *ContractTransactor) WithdrawQuoteTo(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawQuoteTo is a paid mutator transaction binding the contract method 0x108db744.
Solidity: function withdrawQuoteTo(address to, uint256 amount) returns(uint256)
type ContractTransactorRaw ¶
type ContractTransactorRaw struct {
Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on
}
ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContractTransactorRaw) Transact ¶
func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractTransactorRaw) Transfer ¶
func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession ¶
type ContractTransactorSession struct { Contract *ContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ContractTransactorSession) BuyBaseToken ¶
func (_Contract *ContractTransactorSession) BuyBaseToken(amount *big.Int, maxPayQuote *big.Int, data []byte) (*types.Transaction, error)
BuyBaseToken is a paid mutator transaction binding the contract method 0xe67ce706.
Solidity: function buyBaseToken(uint256 amount, uint256 maxPayQuote, bytes data) returns(uint256)
func (*ContractTransactorSession) ClaimAssets ¶
func (_Contract *ContractTransactorSession) ClaimAssets() (*types.Transaction, error)
ClaimAssets is a paid mutator transaction binding the contract method 0x1f3c156e.
Solidity: function claimAssets() returns()
func (*ContractTransactorSession) ClaimOwnership ¶
func (_Contract *ContractTransactorSession) ClaimOwnership() (*types.Transaction, error)
ClaimOwnership is a paid mutator transaction binding the contract method 0x4e71e0c8.
Solidity: function claimOwnership() returns()
func (*ContractTransactorSession) DepositBase ¶
func (_Contract *ContractTransactorSession) DepositBase(amount *big.Int) (*types.Transaction, error)
DepositBase is a paid mutator transaction binding the contract method 0x27bed8ee.
Solidity: function depositBase(uint256 amount) returns(uint256)
func (*ContractTransactorSession) DepositBaseTo ¶
func (_Contract *ContractTransactorSession) DepositBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
DepositBaseTo is a paid mutator transaction binding the contract method 0xaa06ce9b.
Solidity: function depositBaseTo(address to, uint256 amount) returns(uint256)
func (*ContractTransactorSession) DepositQuote ¶
func (_Contract *ContractTransactorSession) DepositQuote(amount *big.Int) (*types.Transaction, error)
DepositQuote is a paid mutator transaction binding the contract method 0xf3ae6c5f.
Solidity: function depositQuote(uint256 amount) returns(uint256)
func (*ContractTransactorSession) DepositQuoteTo ¶
func (_Contract *ContractTransactorSession) DepositQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
DepositQuoteTo is a paid mutator transaction binding the contract method 0x5f179f64.
Solidity: function depositQuoteTo(address to, uint256 amount) returns(uint256)
func (*ContractTransactorSession) DisableBaseDeposit ¶
func (_Contract *ContractTransactorSession) DisableBaseDeposit() (*types.Transaction, error)
DisableBaseDeposit is a paid mutator transaction binding the contract method 0x13c57624.
Solidity: function disableBaseDeposit() returns()
func (*ContractTransactorSession) DisableQuoteDeposit ¶
func (_Contract *ContractTransactorSession) DisableQuoteDeposit() (*types.Transaction, error)
DisableQuoteDeposit is a paid mutator transaction binding the contract method 0xbc7d679d.
Solidity: function disableQuoteDeposit() returns()
func (*ContractTransactorSession) DisableTrading ¶
func (_Contract *ContractTransactorSession) DisableTrading() (*types.Transaction, error)
DisableTrading is a paid mutator transaction binding the contract method 0x17700f01.
Solidity: function disableTrading() returns()
func (*ContractTransactorSession) DonateBaseToken ¶
func (_Contract *ContractTransactorSession) DonateBaseToken(amount *big.Int) (*types.Transaction, error)
DonateBaseToken is a paid mutator transaction binding the contract method 0xed0aa428.
Solidity: function donateBaseToken(uint256 amount) returns()
func (*ContractTransactorSession) DonateQuoteToken ¶
func (_Contract *ContractTransactorSession) DonateQuoteToken(amount *big.Int) (*types.Transaction, error)
DonateQuoteToken is a paid mutator transaction binding the contract method 0x387b0c11.
Solidity: function donateQuoteToken(uint256 amount) returns()
func (*ContractTransactorSession) EnableBaseDeposit ¶
func (_Contract *ContractTransactorSession) EnableBaseDeposit() (*types.Transaction, error)
EnableBaseDeposit is a paid mutator transaction binding the contract method 0x1184d8be.
Solidity: function enableBaseDeposit() returns()
func (*ContractTransactorSession) EnableQuoteDeposit ¶
func (_Contract *ContractTransactorSession) EnableQuoteDeposit() (*types.Transaction, error)
EnableQuoteDeposit is a paid mutator transaction binding the contract method 0x36ac41a8.
Solidity: function enableQuoteDeposit() returns()
func (*ContractTransactorSession) EnableTrading ¶
func (_Contract *ContractTransactorSession) EnableTrading() (*types.Transaction, error)
EnableTrading is a paid mutator transaction binding the contract method 0x8a8c523c.
Solidity: function enableTrading() returns()
func (*ContractTransactorSession) FinalSettlement ¶
func (_Contract *ContractTransactorSession) FinalSettlement() (*types.Transaction, error)
FinalSettlement is a paid mutator transaction binding the contract method 0x648a4fac.
Solidity: function finalSettlement() returns()
func (*ContractTransactorSession) Init ¶
func (_Contract *ContractTransactorSession) Init(owner common.Address, supervisor common.Address, maintainer common.Address, baseToken common.Address, quoteToken common.Address, oracle common.Address, lpFeeRate *big.Int, mtFeeRate *big.Int, k *big.Int, gasPriceLimit *big.Int) (*types.Transaction, error)
Init is a paid mutator transaction binding the contract method 0xf00f9a09.
Solidity: function init(address owner, address supervisor, address maintainer, address baseToken, address quoteToken, address oracle, uint256 lpFeeRate, uint256 mtFeeRate, uint256 k, uint256 gasPriceLimit) returns()
func (*ContractTransactorSession) Retrieve ¶
func (_Contract *ContractTransactorSession) Retrieve(token common.Address, amount *big.Int) (*types.Transaction, error)
Retrieve is a paid mutator transaction binding the contract method 0xc3a2a665.
Solidity: function retrieve(address token, uint256 amount) returns()
func (*ContractTransactorSession) SellBaseToken ¶
func (_Contract *ContractTransactorSession) SellBaseToken(amount *big.Int, minReceiveQuote *big.Int, data []byte) (*types.Transaction, error)
SellBaseToken is a paid mutator transaction binding the contract method 0x8dae7333.
Solidity: function sellBaseToken(uint256 amount, uint256 minReceiveQuote, bytes data) returns(uint256)
func (*ContractTransactorSession) SetGasPriceLimit ¶
func (_Contract *ContractTransactorSession) SetGasPriceLimit(newGasPriceLimit *big.Int) (*types.Transaction, error)
SetGasPriceLimit is a paid mutator transaction binding the contract method 0x09231602.
Solidity: function setGasPriceLimit(uint256 newGasPriceLimit) returns()
func (*ContractTransactorSession) SetK ¶
func (_Contract *ContractTransactorSession) SetK(newK *big.Int) (*types.Transaction, error)
SetK is a paid mutator transaction binding the contract method 0x67de8be9.
Solidity: function setK(uint256 newK) returns()
func (*ContractTransactorSession) SetLiquidityProviderFeeRate ¶
func (_Contract *ContractTransactorSession) SetLiquidityProviderFeeRate(newLiquidityPorviderFeeRate *big.Int) (*types.Transaction, error)
SetLiquidityProviderFeeRate is a paid mutator transaction binding the contract method 0x5bb7552a.
Solidity: function setLiquidityProviderFeeRate(uint256 newLiquidityPorviderFeeRate) returns()
func (*ContractTransactorSession) SetMaintainer ¶
func (_Contract *ContractTransactorSession) SetMaintainer(newMaintainer common.Address) (*types.Transaction, error)
SetMaintainer is a paid mutator transaction binding the contract method 0x13ea5d29.
Solidity: function setMaintainer(address newMaintainer) returns()
func (*ContractTransactorSession) SetMaintainerFeeRate ¶
func (_Contract *ContractTransactorSession) SetMaintainerFeeRate(newMaintainerFeeRate *big.Int) (*types.Transaction, error)
SetMaintainerFeeRate is a paid mutator transaction binding the contract method 0xf2220416.
Solidity: function setMaintainerFeeRate(uint256 newMaintainerFeeRate) returns()
func (*ContractTransactorSession) SetOracle ¶
func (_Contract *ContractTransactorSession) SetOracle(newOracle common.Address) (*types.Transaction, error)
SetOracle is a paid mutator transaction binding the contract method 0x7adbf973.
Solidity: function setOracle(address newOracle) returns()
func (*ContractTransactorSession) SetSupervisor ¶
func (_Contract *ContractTransactorSession) SetSupervisor(newSupervisor common.Address) (*types.Transaction, error)
SetSupervisor is a paid mutator transaction binding the contract method 0x9299eb30.
Solidity: function setSupervisor(address newSupervisor) returns()
func (*ContractTransactorSession) TransferOwnership ¶
func (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*ContractTransactorSession) WithdrawAllBase ¶
func (_Contract *ContractTransactorSession) WithdrawAllBase() (*types.Transaction, error)
WithdrawAllBase is a paid mutator transaction binding the contract method 0xd47eaa37.
Solidity: function withdrawAllBase() returns(uint256)
func (*ContractTransactorSession) WithdrawAllBaseTo ¶
func (_Contract *ContractTransactorSession) WithdrawAllBaseTo(to common.Address) (*types.Transaction, error)
WithdrawAllBaseTo is a paid mutator transaction binding the contract method 0x1e34b9cc.
Solidity: function withdrawAllBaseTo(address to) returns(uint256)
func (*ContractTransactorSession) WithdrawAllQuote ¶
func (_Contract *ContractTransactorSession) WithdrawAllQuote() (*types.Transaction, error)
WithdrawAllQuote is a paid mutator transaction binding the contract method 0xc59203af.
Solidity: function withdrawAllQuote() returns(uint256)
func (*ContractTransactorSession) WithdrawAllQuoteTo ¶
func (_Contract *ContractTransactorSession) WithdrawAllQuoteTo(to common.Address) (*types.Transaction, error)
WithdrawAllQuoteTo is a paid mutator transaction binding the contract method 0x04512dc4.
Solidity: function withdrawAllQuoteTo(address to) returns(uint256)
func (*ContractTransactorSession) WithdrawBase ¶
func (_Contract *ContractTransactorSession) WithdrawBase(amount *big.Int) (*types.Transaction, error)
WithdrawBase is a paid mutator transaction binding the contract method 0xf98bea15.
Solidity: function withdrawBase(uint256 amount) returns(uint256)
func (*ContractTransactorSession) WithdrawBaseTo ¶
func (_Contract *ContractTransactorSession) WithdrawBaseTo(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawBaseTo is a paid mutator transaction binding the contract method 0x947cf92b.
Solidity: function withdrawBaseTo(address to, uint256 amount) returns(uint256)
func (*ContractTransactorSession) WithdrawQuote ¶
func (_Contract *ContractTransactorSession) WithdrawQuote(amount *big.Int) (*types.Transaction, error)
WithdrawQuote is a paid mutator transaction binding the contract method 0xc0a5f6ff.
Solidity: function withdrawQuote(uint256 amount) returns(uint256)
func (*ContractTransactorSession) WithdrawQuoteTo ¶
func (_Contract *ContractTransactorSession) WithdrawQuoteTo(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawQuoteTo is a paid mutator transaction binding the contract method 0x108db744.
Solidity: function withdrawQuoteTo(address to, uint256 amount) returns(uint256)
type ContractUpdateGasPriceLimit ¶
type ContractUpdateGasPriceLimit struct { OldGasPriceLimit *big.Int NewGasPriceLimit *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractUpdateGasPriceLimit represents a UpdateGasPriceLimit event raised by the Contract contract.
type ContractUpdateGasPriceLimitIterator ¶
type ContractUpdateGasPriceLimitIterator struct { Event *ContractUpdateGasPriceLimit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractUpdateGasPriceLimitIterator is returned from FilterUpdateGasPriceLimit and is used to iterate over the raw logs and unpacked data for UpdateGasPriceLimit events raised by the Contract contract.
func (*ContractUpdateGasPriceLimitIterator) Close ¶
func (it *ContractUpdateGasPriceLimitIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractUpdateGasPriceLimitIterator) Error ¶
func (it *ContractUpdateGasPriceLimitIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractUpdateGasPriceLimitIterator) Next ¶
func (it *ContractUpdateGasPriceLimitIterator) 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 ContractUpdateK ¶
type ContractUpdateK struct { OldK *big.Int NewK *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractUpdateK represents a UpdateK event raised by the Contract contract.
type ContractUpdateKIterator ¶
type ContractUpdateKIterator struct { Event *ContractUpdateK // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractUpdateKIterator is returned from FilterUpdateK and is used to iterate over the raw logs and unpacked data for UpdateK events raised by the Contract contract.
func (*ContractUpdateKIterator) Close ¶
func (it *ContractUpdateKIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractUpdateKIterator) Error ¶
func (it *ContractUpdateKIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractUpdateKIterator) Next ¶
func (it *ContractUpdateKIterator) 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 ContractUpdateLiquidityProviderFeeRate ¶
type ContractUpdateLiquidityProviderFeeRate struct { OldLiquidityProviderFeeRate *big.Int NewLiquidityProviderFeeRate *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractUpdateLiquidityProviderFeeRate represents a UpdateLiquidityProviderFeeRate event raised by the Contract contract.
type ContractUpdateLiquidityProviderFeeRateIterator ¶
type ContractUpdateLiquidityProviderFeeRateIterator struct { Event *ContractUpdateLiquidityProviderFeeRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractUpdateLiquidityProviderFeeRateIterator is returned from FilterUpdateLiquidityProviderFeeRate and is used to iterate over the raw logs and unpacked data for UpdateLiquidityProviderFeeRate events raised by the Contract contract.
func (*ContractUpdateLiquidityProviderFeeRateIterator) Close ¶
func (it *ContractUpdateLiquidityProviderFeeRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractUpdateLiquidityProviderFeeRateIterator) Error ¶
func (it *ContractUpdateLiquidityProviderFeeRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractUpdateLiquidityProviderFeeRateIterator) Next ¶
func (it *ContractUpdateLiquidityProviderFeeRateIterator) 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 ContractUpdateMaintainerFeeRate ¶
type ContractUpdateMaintainerFeeRate struct { OldMaintainerFeeRate *big.Int NewMaintainerFeeRate *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractUpdateMaintainerFeeRate represents a UpdateMaintainerFeeRate event raised by the Contract contract.
type ContractUpdateMaintainerFeeRateIterator ¶
type ContractUpdateMaintainerFeeRateIterator struct { Event *ContractUpdateMaintainerFeeRate // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractUpdateMaintainerFeeRateIterator is returned from FilterUpdateMaintainerFeeRate and is used to iterate over the raw logs and unpacked data for UpdateMaintainerFeeRate events raised by the Contract contract.
func (*ContractUpdateMaintainerFeeRateIterator) Close ¶
func (it *ContractUpdateMaintainerFeeRateIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractUpdateMaintainerFeeRateIterator) Error ¶
func (it *ContractUpdateMaintainerFeeRateIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractUpdateMaintainerFeeRateIterator) Next ¶
func (it *ContractUpdateMaintainerFeeRateIterator) 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 ContractWithdraw ¶
type ContractWithdraw struct { Payer common.Address Receiver common.Address IsBaseToken bool Amount *big.Int LpTokenAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
ContractWithdraw represents a Withdraw event raised by the Contract contract.
type ContractWithdrawIterator ¶
type ContractWithdrawIterator struct { Event *ContractWithdraw // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Contract contract.
func (*ContractWithdrawIterator) Close ¶
func (it *ContractWithdrawIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractWithdrawIterator) Error ¶
func (it *ContractWithdrawIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractWithdrawIterator) Next ¶
func (it *ContractWithdrawIterator) 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.