Versions in this module Expand all Collapse all v1 v1.0.0 Aug 16, 2022 Changes in this version + var ERC20ABI = ERC20MetaData.ABI + var ERC20MetaData = &bind.MetaData + var FreeMulticall2ABI = FreeMulticall2MetaData.ABI + var FreeMulticall2MetaData = &bind.MetaData + var PriceOracleABI = PriceOracleMetaData.ABI + var PriceOracleMetaData = &bind.MetaData + type ERC20 struct + func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error) + type ERC20Approval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type ERC20ApprovalIterator struct + Event *ERC20Approval + func (it *ERC20ApprovalIterator) Close() error + func (it *ERC20ApprovalIterator) Error() error + func (it *ERC20ApprovalIterator) Next() bool + type ERC20Caller struct + func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error) + func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) + func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) + func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error) + func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error) + func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type ERC20CallerRaw struct + Contract *ERC20Caller + func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type ERC20CallerSession struct + CallOpts bind.CallOpts + Contract *ERC20Caller + func (_ERC20 *ERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) + func (_ERC20 *ERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error) + func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error) + func (_ERC20 *ERC20CallerSession) Name() (string, error) + func (_ERC20 *ERC20CallerSession) Symbol() (string, error) + func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error) + type ERC20Filterer struct + func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error) + func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error) + func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error) + func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error) + func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error) + func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, owner []common.Address, ...) (event.Subscription, error) + func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, from []common.Address, ...) (event.Subscription, error) + type ERC20Raw struct + Contract *ERC20 + func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_ERC20 *ERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ERC20Session struct + CallOpts bind.CallOpts + Contract *ERC20 + TransactOpts bind.TransactOpts + func (_ERC20 *ERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error) + func (_ERC20 *ERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Session) BalanceOf(owner common.Address) (*big.Int, error) + func (_ERC20 *ERC20Session) Decimals() (uint8, error) + func (_ERC20 *ERC20Session) Name() (string, error) + func (_ERC20 *ERC20Session) Symbol() (string, error) + func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error) + func (_ERC20 *ERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) + type ERC20Transactor struct + func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error) + func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error) + type ERC20TransactorRaw struct + Contract *ERC20Transactor + func (_ERC20 *ERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type ERC20TransactorSession struct + Contract *ERC20Transactor + TransactOpts bind.TransactOpts + func (_ERC20 *ERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error) + func (_ERC20 *ERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) + type ERC20Transfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type ERC20TransferIterator struct + Event *ERC20Transfer + func (it *ERC20TransferIterator) Close() error + func (it *ERC20TransferIterator) Error() error + func (it *ERC20TransferIterator) Next() bool + type FreeMulticall2 struct + func NewFreeMulticall2(address common.Address, backend bind.ContractBackend) (*FreeMulticall2, error) + type FreeMulticall2Caller struct + func NewFreeMulticall2Caller(address common.Address, caller bind.ContractCaller) (*FreeMulticall2Caller, error) + func (_FreeMulticall2 *FreeMulticall2Caller) Aggregate(opts *bind.CallOpts, calls []Multicall2Call) (struct{ ... }, error) + func (_FreeMulticall2 *FreeMulticall2Caller) BlockAndAggregate(opts *bind.CallOpts, calls []Multicall2Call) (struct{ ... }, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetBlockHash(opts *bind.CallOpts, blockNumber *big.Int) ([32]byte, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetBlockNumber(opts *bind.CallOpts) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetCurrentBlockCoinbase(opts *bind.CallOpts) (common.Address, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetCurrentBlockDifficulty(opts *bind.CallOpts) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetCurrentBlockGasLimit(opts *bind.CallOpts) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetCurrentBlockTimestamp(opts *bind.CallOpts) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetEthBalance(opts *bind.CallOpts, addr common.Address) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Caller) GetLastBlockHash(opts *bind.CallOpts) ([32]byte, error) + func (_FreeMulticall2 *FreeMulticall2Caller) TryAggregate(opts *bind.CallOpts, requireSuccess bool, calls []Multicall2Call) ([]Multicall2Result, error) + func (_FreeMulticall2 *FreeMulticall2Caller) TryBlockAndAggregate(opts *bind.CallOpts, requireSuccess bool, calls []Multicall2Call) (struct{ ... }, error) + type FreeMulticall2CallerRaw struct + Contract *FreeMulticall2Caller + func (_FreeMulticall2 *FreeMulticall2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type FreeMulticall2CallerSession struct + CallOpts bind.CallOpts + Contract *FreeMulticall2Caller + func (_FreeMulticall2 *FreeMulticall2CallerSession) Aggregate(calls []Multicall2Call) (struct{ ... }, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) BlockAndAggregate(calls []Multicall2Call) (struct{ ... }, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetBlockHash(blockNumber *big.Int) ([32]byte, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetBlockNumber() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetCurrentBlockCoinbase() (common.Address, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetCurrentBlockDifficulty() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetCurrentBlockGasLimit() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetCurrentBlockTimestamp() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetEthBalance(addr common.Address) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) GetLastBlockHash() ([32]byte, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) TryAggregate(requireSuccess bool, calls []Multicall2Call) ([]Multicall2Result, error) + func (_FreeMulticall2 *FreeMulticall2CallerSession) TryBlockAndAggregate(requireSuccess bool, calls []Multicall2Call) (struct{ ... }, error) + type FreeMulticall2Filterer struct + func NewFreeMulticall2Filterer(address common.Address, filterer bind.ContractFilterer) (*FreeMulticall2Filterer, error) + type FreeMulticall2Raw struct + Contract *FreeMulticall2 + func (_FreeMulticall2 *FreeMulticall2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_FreeMulticall2 *FreeMulticall2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_FreeMulticall2 *FreeMulticall2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type FreeMulticall2Session struct + CallOpts bind.CallOpts + Contract *FreeMulticall2 + TransactOpts bind.TransactOpts + func (_FreeMulticall2 *FreeMulticall2Session) Aggregate(calls []Multicall2Call) (struct{ ... }, error) + func (_FreeMulticall2 *FreeMulticall2Session) BlockAndAggregate(calls []Multicall2Call) (struct{ ... }, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetBlockHash(blockNumber *big.Int) ([32]byte, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetBlockNumber() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetCurrentBlockCoinbase() (common.Address, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetCurrentBlockDifficulty() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetCurrentBlockGasLimit() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetCurrentBlockTimestamp() (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetEthBalance(addr common.Address) (*big.Int, error) + func (_FreeMulticall2 *FreeMulticall2Session) GetLastBlockHash() ([32]byte, error) + func (_FreeMulticall2 *FreeMulticall2Session) TryAggregate(requireSuccess bool, calls []Multicall2Call) ([]Multicall2Result, error) + func (_FreeMulticall2 *FreeMulticall2Session) TryBlockAndAggregate(requireSuccess bool, calls []Multicall2Call) (struct{ ... }, error) + type FreeMulticall2Transactor struct + func NewFreeMulticall2Transactor(address common.Address, transactor bind.ContractTransactor) (*FreeMulticall2Transactor, error) + type FreeMulticall2TransactorRaw struct + Contract *FreeMulticall2Transactor + func (_FreeMulticall2 *FreeMulticall2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_FreeMulticall2 *FreeMulticall2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type FreeMulticall2TransactorSession struct + Contract *FreeMulticall2Transactor + TransactOpts bind.TransactOpts + type Multicall2Call struct + CallData []byte + Target common.Address + type Multicall2Result struct + ReturnData []byte + Success bool + type PriceOracle struct + func NewPriceOracle(address common.Address, backend bind.ContractBackend) (*PriceOracle, error) + type PriceOracleCaller struct + func NewPriceOracleCaller(address common.Address, caller bind.ContractCaller) (*PriceOracleCaller, error) + func (_PriceOracle *PriceOracleCaller) GetIndexPrice(opts *bind.CallOpts, amm common.Address) (*big.Int, error) + func (_PriceOracle *PriceOracleCaller) GetMarkPrice(opts *bind.CallOpts, amm common.Address) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCaller) GetMarkPriceAcc(opts *bind.CallOpts, amm common.Address, beta uint8, quoteAmount *big.Int, ...) (*big.Int, error) + func (_PriceOracle *PriceOracleCaller) GetMarkPriceAfterSwap(opts *bind.CallOpts, amm common.Address, quoteAmount *big.Int, ...) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCaller) GetMarkPriceInRatio(opts *bind.CallOpts, amm common.Address, quoteAmount *big.Int, ...) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCaller) GetMarketPrice(opts *bind.CallOpts, amm common.Address) (*big.Int, error) + func (_PriceOracle *PriceOracleCaller) Quote(opts *bind.CallOpts, baseToken common.Address, quoteToken common.Address, ...) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCaller) QuoteFromAmmTwap(opts *bind.CallOpts, amm common.Address, baseAmount *big.Int) (*big.Int, error) + type PriceOracleCallerRaw struct + Contract *PriceOracleCaller + func (_PriceOracle *PriceOracleCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type PriceOracleCallerSession struct + CallOpts bind.CallOpts + Contract *PriceOracleCaller + func (_PriceOracle *PriceOracleCallerSession) GetIndexPrice(amm common.Address) (*big.Int, error) + func (_PriceOracle *PriceOracleCallerSession) GetMarkPrice(amm common.Address) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCallerSession) GetMarkPriceAcc(amm common.Address, beta uint8, quoteAmount *big.Int, negative bool) (*big.Int, error) + func (_PriceOracle *PriceOracleCallerSession) GetMarkPriceAfterSwap(amm common.Address, quoteAmount *big.Int, baseAmount *big.Int) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCallerSession) GetMarkPriceInRatio(amm common.Address, quoteAmount *big.Int, baseAmount *big.Int) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCallerSession) GetMarketPrice(amm common.Address) (*big.Int, error) + func (_PriceOracle *PriceOracleCallerSession) Quote(baseToken common.Address, quoteToken common.Address, baseAmount *big.Int) (struct{ ... }, error) + func (_PriceOracle *PriceOracleCallerSession) QuoteFromAmmTwap(amm common.Address, baseAmount *big.Int) (*big.Int, error) + type PriceOracleFilterer struct + func NewPriceOracleFilterer(address common.Address, filterer bind.ContractFilterer) (*PriceOracleFilterer, error) + type PriceOracleRaw struct + Contract *PriceOracle + func (_PriceOracle *PriceOracleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_PriceOracle *PriceOracleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_PriceOracle *PriceOracleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type PriceOracleSession struct + CallOpts bind.CallOpts + Contract *PriceOracle + TransactOpts bind.TransactOpts + func (_PriceOracle *PriceOracleSession) GetIndexPrice(amm common.Address) (*big.Int, error) + func (_PriceOracle *PriceOracleSession) GetMarkPrice(amm common.Address) (struct{ ... }, error) + func (_PriceOracle *PriceOracleSession) GetMarkPriceAcc(amm common.Address, beta uint8, quoteAmount *big.Int, negative bool) (*big.Int, error) + func (_PriceOracle *PriceOracleSession) GetMarkPriceAfterSwap(amm common.Address, quoteAmount *big.Int, baseAmount *big.Int) (struct{ ... }, error) + func (_PriceOracle *PriceOracleSession) GetMarkPriceInRatio(amm common.Address, quoteAmount *big.Int, baseAmount *big.Int) (struct{ ... }, error) + func (_PriceOracle *PriceOracleSession) GetMarketPrice(amm common.Address) (*big.Int, error) + func (_PriceOracle *PriceOracleSession) Quote(baseToken common.Address, quoteToken common.Address, baseAmount *big.Int) (struct{ ... }, error) + func (_PriceOracle *PriceOracleSession) QuoteFromAmmTwap(amm common.Address, baseAmount *big.Int) (*big.Int, error) + func (_PriceOracle *PriceOracleSession) SetupTwap(amm common.Address) (*types.Transaction, error) + func (_PriceOracle *PriceOracleSession) UpdateAmmTwap(pair common.Address) (*types.Transaction, error) + type PriceOracleTransactor struct + func NewPriceOracleTransactor(address common.Address, transactor bind.ContractTransactor) (*PriceOracleTransactor, error) + func (_PriceOracle *PriceOracleTransactor) SetupTwap(opts *bind.TransactOpts, amm common.Address) (*types.Transaction, error) + func (_PriceOracle *PriceOracleTransactor) UpdateAmmTwap(opts *bind.TransactOpts, pair common.Address) (*types.Transaction, error) + type PriceOracleTransactorRaw struct + Contract *PriceOracleTransactor + func (_PriceOracle *PriceOracleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_PriceOracle *PriceOracleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type PriceOracleTransactorSession struct + Contract *PriceOracleTransactor + TransactOpts bind.TransactOpts + func (_PriceOracle *PriceOracleTransactorSession) SetupTwap(amm common.Address) (*types.Transaction, error) + func (_PriceOracle *PriceOracleTransactorSession) UpdateAmmTwap(pair common.Address) (*types.Transaction, error)