Documentation ¶
Index ¶
- Variables
- type ClassicPool
- type ClassicPoolApproval
- type ClassicPoolApprovalIterator
- type ClassicPoolBurn
- type ClassicPoolBurnIterator
- type ClassicPoolCaller
- func (_ClassicPool *ClassicPoolCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
- func (_ClassicPool *ClassicPoolCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_ClassicPool *ClassicPoolCaller) GetAmountIn(opts *bind.CallOpts, _tokenOut common.Address, _amountOut *big.Int, ...) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) GetAmountOut(opts *bind.CallOpts, _tokenIn common.Address, _amountIn *big.Int, ...) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) GetAssets(opts *bind.CallOpts) ([]common.Address, error)
- func (_ClassicPool *ClassicPoolCaller) GetProtocolFee(opts *bind.CallOpts) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) GetReserves(opts *bind.CallOpts) (struct{ ... }, error)
- func (_ClassicPool *ClassicPoolCaller) GetSwapFee(opts *bind.CallOpts, _sender common.Address, _tokenIn common.Address, ...) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) InvariantLast(opts *bind.CallOpts) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) Master(opts *bind.CallOpts) (common.Address, error)
- func (_ClassicPool *ClassicPoolCaller) Name(opts *bind.CallOpts) (string, error)
- func (_ClassicPool *ClassicPoolCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) PoolType(opts *bind.CallOpts) (uint16, error)
- func (_ClassicPool *ClassicPoolCaller) Reserve0(opts *bind.CallOpts) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) Reserve1(opts *bind.CallOpts) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)
- func (_ClassicPool *ClassicPoolCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_ClassicPool *ClassicPoolCaller) Token0(opts *bind.CallOpts) (common.Address, error)
- func (_ClassicPool *ClassicPoolCaller) Token1(opts *bind.CallOpts) (common.Address, error)
- func (_ClassicPool *ClassicPoolCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCaller) Vault(opts *bind.CallOpts) (common.Address, error)
- type ClassicPoolCallerRaw
- type ClassicPoolCallerSession
- func (_ClassicPool *ClassicPoolCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_ClassicPool *ClassicPoolCallerSession) Decimals() (uint8, error)
- func (_ClassicPool *ClassicPoolCallerSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) GetAssets() ([]common.Address, error)
- func (_ClassicPool *ClassicPoolCallerSession) GetProtocolFee() (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) GetReserves() (struct{ ... }, error)
- func (_ClassicPool *ClassicPoolCallerSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) InvariantLast() (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) Master() (common.Address, error)
- func (_ClassicPool *ClassicPoolCallerSession) Name() (string, error)
- func (_ClassicPool *ClassicPoolCallerSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) PoolType() (uint16, error)
- func (_ClassicPool *ClassicPoolCallerSession) Reserve0() (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) Reserve1() (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)
- func (_ClassicPool *ClassicPoolCallerSession) Symbol() (string, error)
- func (_ClassicPool *ClassicPoolCallerSession) Token0() (common.Address, error)
- func (_ClassicPool *ClassicPoolCallerSession) Token1() (common.Address, error)
- func (_ClassicPool *ClassicPoolCallerSession) TotalSupply() (*big.Int, error)
- func (_ClassicPool *ClassicPoolCallerSession) Vault() (common.Address, error)
- type ClassicPoolFactory
- type ClassicPoolFactoryCaller
- func (_ClassicPoolFactory *ClassicPoolFactoryCaller) GetDeployData(opts *bind.CallOpts) ([]byte, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryCaller) GetPool(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryCaller) GetSwapFee(opts *bind.CallOpts, pool common.Address, sender common.Address, ...) (*big.Int, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryCaller) Master(opts *bind.CallOpts) (common.Address, error)
- type ClassicPoolFactoryCallerRaw
- type ClassicPoolFactoryCallerSession
- func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) GetDeployData() ([]byte, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, ...) (*big.Int, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) Master() (common.Address, error)
- type ClassicPoolFactoryFilterer
- func (_ClassicPoolFactory *ClassicPoolFactoryFilterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*ClassicPoolFactoryPoolCreatedIterator, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryFilterer) ParsePoolCreated(log types.Log) (*ClassicPoolFactoryPoolCreated, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *ClassicPoolFactoryPoolCreated, ...) (event.Subscription, error)
- type ClassicPoolFactoryPoolCreated
- type ClassicPoolFactoryPoolCreatedIterator
- type ClassicPoolFactoryRaw
- func (_ClassicPoolFactory *ClassicPoolFactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ClassicPoolFactory *ClassicPoolFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ClassicPoolFactory *ClassicPoolFactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ClassicPoolFactorySession
- func (_ClassicPoolFactory *ClassicPoolFactorySession) CreatePool(data []byte) (*types.Transaction, error)
- func (_ClassicPoolFactory *ClassicPoolFactorySession) GetDeployData() ([]byte, error)
- func (_ClassicPoolFactory *ClassicPoolFactorySession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_ClassicPoolFactory *ClassicPoolFactorySession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, ...) (*big.Int, error)
- func (_ClassicPoolFactory *ClassicPoolFactorySession) Master() (common.Address, error)
- type ClassicPoolFactoryTransactor
- type ClassicPoolFactoryTransactorRaw
- type ClassicPoolFactoryTransactorSession
- type ClassicPoolFilterer
- func (_ClassicPool *ClassicPoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ClassicPoolApprovalIterator, error)
- func (_ClassicPool *ClassicPoolFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ClassicPoolBurnIterator, error)
- func (_ClassicPool *ClassicPoolFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ClassicPoolMintIterator, error)
- func (_ClassicPool *ClassicPoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ClassicPoolSwapIterator, error)
- func (_ClassicPool *ClassicPoolFilterer) FilterSync(opts *bind.FilterOpts) (*ClassicPoolSyncIterator, error)
- func (_ClassicPool *ClassicPoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ClassicPoolTransferIterator, error)
- func (_ClassicPool *ClassicPoolFilterer) ParseApproval(log types.Log) (*ClassicPoolApproval, error)
- func (_ClassicPool *ClassicPoolFilterer) ParseBurn(log types.Log) (*ClassicPoolBurn, error)
- func (_ClassicPool *ClassicPoolFilterer) ParseMint(log types.Log) (*ClassicPoolMint, error)
- func (_ClassicPool *ClassicPoolFilterer) ParseSwap(log types.Log) (*ClassicPoolSwap, error)
- func (_ClassicPool *ClassicPoolFilterer) ParseSync(log types.Log) (*ClassicPoolSync, error)
- func (_ClassicPool *ClassicPoolFilterer) ParseTransfer(log types.Log) (*ClassicPoolTransfer, error)
- func (_ClassicPool *ClassicPoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ClassicPoolApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_ClassicPool *ClassicPoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *ClassicPoolBurn, sender []common.Address, ...) (event.Subscription, error)
- func (_ClassicPool *ClassicPoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *ClassicPoolMint, sender []common.Address, ...) (event.Subscription, error)
- func (_ClassicPool *ClassicPoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *ClassicPoolSwap, sender []common.Address, ...) (event.Subscription, error)
- func (_ClassicPool *ClassicPoolFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *ClassicPoolSync) (event.Subscription, error)
- func (_ClassicPool *ClassicPoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ClassicPoolTransfer, from []common.Address, ...) (event.Subscription, error)
- type ClassicPoolMint
- type ClassicPoolMintIterator
- type ClassicPoolRaw
- func (_ClassicPool *ClassicPoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ClassicPool *ClassicPoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ClassicPoolSession
- func (_ClassicPool *ClassicPoolSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) Burn(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_ClassicPool *ClassicPoolSession) Decimals() (uint8, error)
- func (_ClassicPool *ClassicPoolSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) GetAssets() ([]common.Address, error)
- func (_ClassicPool *ClassicPoolSession) GetProtocolFee() (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) GetReserves() (struct{ ... }, error)
- func (_ClassicPool *ClassicPoolSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) InvariantLast() (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) Master() (common.Address, error)
- func (_ClassicPool *ClassicPoolSession) Mint(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) Name() (string, error)
- func (_ClassicPool *ClassicPoolSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) PoolType() (uint16, error)
- func (_ClassicPool *ClassicPoolSession) Reserve0() (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) Reserve1() (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) SupportsInterface(interfaceID [4]byte) (bool, error)
- func (_ClassicPool *ClassicPoolSession) Swap(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) Symbol() (string, error)
- func (_ClassicPool *ClassicPoolSession) Token0() (common.Address, error)
- func (_ClassicPool *ClassicPoolSession) Token1() (common.Address, error)
- func (_ClassicPool *ClassicPoolSession) TotalSupply() (*big.Int, error)
- func (_ClassicPool *ClassicPoolSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolSession) Vault() (common.Address, error)
- type ClassicPoolSwap
- type ClassicPoolSwapIterator
- type ClassicPoolSync
- type ClassicPoolSyncIterator
- type ClassicPoolTransactor
- func (_ClassicPool *ClassicPoolTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) Burn(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) BurnSingle(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) Mint(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) Permit(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) Permit2(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) Swap(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type ClassicPoolTransactorRaw
- type ClassicPoolTransactorSession
- func (_ClassicPool *ClassicPoolTransactorSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) Burn(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) Mint(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) Swap(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ClassicPool *ClassicPoolTransactorSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- type ClassicPoolTransfer
- type ClassicPoolTransferIterator
- type IPoolTokenAmount
- type IRouterArrayPermitParams
- type IRouterSplitPermitParams
- type IRouterSwapPath
- type IRouterSwapStep
- type Router
- type RouterCaller
- func (_Router *RouterCaller) EnteredPools(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)
- func (_Router *RouterCaller) EnteredPoolsLength(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_Router *RouterCaller) IsPoolEntered(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
- func (_Router *RouterCaller) Vault(opts *bind.CallOpts) (common.Address, error)
- func (_Router *RouterCaller) WETH(opts *bind.CallOpts) (common.Address, error)
- type RouterCallerRaw
- type RouterCallerSession
- func (_Router *RouterCallerSession) EnteredPools(arg0 common.Address, arg1 *big.Int) (common.Address, error)
- func (_Router *RouterCallerSession) EnteredPoolsLength(account common.Address) (*big.Int, error)
- func (_Router *RouterCallerSession) IsPoolEntered(arg0 common.Address, arg1 common.Address) (bool, error)
- func (_Router *RouterCallerSession) Vault() (common.Address, error)
- func (_Router *RouterCallerSession) WETH() (common.Address, error)
- type RouterFilterer
- type RouterRaw
- func (_Router *RouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Router *RouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RouterSession
- func (_Router *RouterSession) AddLiquidity(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) AddLiquidity2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) AddLiquidityWithPermit(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) AddLiquidityWithPermit2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) BurnLiquidity(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) BurnLiquiditySingle(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) BurnLiquiditySingleWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) BurnLiquidityWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) CreatePool(_factory common.Address, data []byte) (*types.Transaction, error)
- func (_Router *RouterSession) EnteredPools(arg0 common.Address, arg1 *big.Int) (common.Address, error)
- func (_Router *RouterSession) EnteredPoolsLength(account common.Address) (*big.Int, error)
- func (_Router *RouterSession) IsPoolEntered(arg0 common.Address, arg1 common.Address) (bool, error)
- func (_Router *RouterSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_Router *RouterSession) SelfPermit(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SelfPermit2(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
- func (_Router *RouterSession) SelfPermit2IfNecessary(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
- func (_Router *RouterSession) SelfPermitAllowed(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SelfPermitAllowedIfNecessary(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) SelfPermitIfNecessary(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterSession) Stake(stakingPool common.Address, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) Swap(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Router *RouterSession) SwapWithPermit(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterSession) Vault() (common.Address, error)
- func (_Router *RouterSession) WETH() (common.Address, error)
- type RouterTransactor
- func (_Router *RouterTransactor) AddLiquidity(opts *bind.TransactOpts, pool common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) AddLiquidity2(opts *bind.TransactOpts, pool common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) AddLiquidityWithPermit(opts *bind.TransactOpts, pool common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) AddLiquidityWithPermit2(opts *bind.TransactOpts, pool common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) BurnLiquidity(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) BurnLiquiditySingle(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) BurnLiquiditySingleWithPermit(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) BurnLiquidityWithPermit(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) CreatePool(opts *bind.TransactOpts, _factory common.Address, data []byte) (*types.Transaction, error)
- func (_Router *RouterTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
- func (_Router *RouterTransactor) SelfPermit(opts *bind.TransactOpts, token common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SelfPermit2(opts *bind.TransactOpts, token common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SelfPermit2IfNecessary(opts *bind.TransactOpts, token common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SelfPermitAllowed(opts *bind.TransactOpts, token common.Address, nonce *big.Int, expiry *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SelfPermitAllowedIfNecessary(opts *bind.TransactOpts, token common.Address, nonce *big.Int, expiry *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SelfPermitIfNecessary(opts *bind.TransactOpts, token common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) Stake(opts *bind.TransactOpts, stakingPool common.Address, token common.Address, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) Swap(opts *bind.TransactOpts, paths []IRouterSwapPath, amountOutMin *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactor) SwapWithPermit(opts *bind.TransactOpts, paths []IRouterSwapPath, amountOutMin *big.Int, ...) (*types.Transaction, error)
- type RouterTransactorRaw
- type RouterTransactorSession
- func (_Router *RouterTransactorSession) AddLiquidity(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) AddLiquidity2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) AddLiquidityWithPermit(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) AddLiquidityWithPermit2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) BurnLiquidity(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) BurnLiquiditySingle(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) BurnLiquiditySingleWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) BurnLiquidityWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) CreatePool(_factory common.Address, data []byte) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SelfPermit(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SelfPermit2(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SelfPermit2IfNecessary(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SelfPermitAllowed(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SelfPermitAllowedIfNecessary(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SelfPermitIfNecessary(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Stake(stakingPool common.Address, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) Swap(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Router *RouterTransactorSession) SwapWithPermit(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- type StablePool
- type StablePoolApproval
- type StablePoolApprovalIterator
- type StablePoolBurn
- type StablePoolBurnIterator
- type StablePoolCaller
- func (_StablePool *StablePoolCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
- func (_StablePool *StablePoolCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_StablePool *StablePoolCaller) GetAmountIn(opts *bind.CallOpts, _tokenOut common.Address, _amountOut *big.Int, ...) (*big.Int, error)
- func (_StablePool *StablePoolCaller) GetAmountOut(opts *bind.CallOpts, _tokenIn common.Address, _amountIn *big.Int, ...) (*big.Int, error)
- func (_StablePool *StablePoolCaller) GetAssets(opts *bind.CallOpts) ([]common.Address, error)
- func (_StablePool *StablePoolCaller) GetProtocolFee(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) GetReserves(opts *bind.CallOpts) (struct{ ... }, error)
- func (_StablePool *StablePoolCaller) GetSwapFee(opts *bind.CallOpts, _sender common.Address, _tokenIn common.Address, ...) (*big.Int, error)
- func (_StablePool *StablePoolCaller) InvariantLast(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) Master(opts *bind.CallOpts) (common.Address, error)
- func (_StablePool *StablePoolCaller) Name(opts *bind.CallOpts) (string, error)
- func (_StablePool *StablePoolCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCaller) PoolType(opts *bind.CallOpts) (uint16, error)
- func (_StablePool *StablePoolCaller) Reserve0(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) Reserve1(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)
- func (_StablePool *StablePoolCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_StablePool *StablePoolCaller) Token0(opts *bind.CallOpts) (common.Address, error)
- func (_StablePool *StablePoolCaller) Token0PrecisionMultiplier(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) Token1(opts *bind.CallOpts) (common.Address, error)
- func (_StablePool *StablePoolCaller) Token1PrecisionMultiplier(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_StablePool *StablePoolCaller) Vault(opts *bind.CallOpts) (common.Address, error)
- type StablePoolCallerRaw
- type StablePoolCallerSession
- func (_StablePool *StablePoolCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_StablePool *StablePoolCallerSession) Decimals() (uint8, error)
- func (_StablePool *StablePoolCallerSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) GetAssets() ([]common.Address, error)
- func (_StablePool *StablePoolCallerSession) GetProtocolFee() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) GetReserves() (struct{ ... }, error)
- func (_StablePool *StablePoolCallerSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) InvariantLast() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) Master() (common.Address, error)
- func (_StablePool *StablePoolCallerSession) Name() (string, error)
- func (_StablePool *StablePoolCallerSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) PoolType() (uint16, error)
- func (_StablePool *StablePoolCallerSession) Reserve0() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) Reserve1() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)
- func (_StablePool *StablePoolCallerSession) Symbol() (string, error)
- func (_StablePool *StablePoolCallerSession) Token0() (common.Address, error)
- func (_StablePool *StablePoolCallerSession) Token0PrecisionMultiplier() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) Token1() (common.Address, error)
- func (_StablePool *StablePoolCallerSession) Token1PrecisionMultiplier() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) TotalSupply() (*big.Int, error)
- func (_StablePool *StablePoolCallerSession) Vault() (common.Address, error)
- type StablePoolFactory
- type StablePoolFactoryCaller
- func (_StablePoolFactory *StablePoolFactoryCaller) GetDeployData(opts *bind.CallOpts) ([]byte, error)
- func (_StablePoolFactory *StablePoolFactoryCaller) GetPool(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_StablePoolFactory *StablePoolFactoryCaller) GetSwapFee(opts *bind.CallOpts, pool common.Address, sender common.Address, ...) (*big.Int, error)
- func (_StablePoolFactory *StablePoolFactoryCaller) Master(opts *bind.CallOpts) (common.Address, error)
- type StablePoolFactoryCallerRaw
- type StablePoolFactoryCallerSession
- func (_StablePoolFactory *StablePoolFactoryCallerSession) GetDeployData() ([]byte, error)
- func (_StablePoolFactory *StablePoolFactoryCallerSession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_StablePoolFactory *StablePoolFactoryCallerSession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, ...) (*big.Int, error)
- func (_StablePoolFactory *StablePoolFactoryCallerSession) Master() (common.Address, error)
- type StablePoolFactoryFilterer
- func (_StablePoolFactory *StablePoolFactoryFilterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*StablePoolFactoryPoolCreatedIterator, error)
- func (_StablePoolFactory *StablePoolFactoryFilterer) ParsePoolCreated(log types.Log) (*StablePoolFactoryPoolCreated, error)
- func (_StablePoolFactory *StablePoolFactoryFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *StablePoolFactoryPoolCreated, ...) (event.Subscription, error)
- type StablePoolFactoryPoolCreated
- type StablePoolFactoryPoolCreatedIterator
- type StablePoolFactoryRaw
- func (_StablePoolFactory *StablePoolFactoryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StablePoolFactory *StablePoolFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StablePoolFactory *StablePoolFactoryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StablePoolFactorySession
- func (_StablePoolFactory *StablePoolFactorySession) CreatePool(data []byte) (*types.Transaction, error)
- func (_StablePoolFactory *StablePoolFactorySession) GetDeployData() ([]byte, error)
- func (_StablePoolFactory *StablePoolFactorySession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
- func (_StablePoolFactory *StablePoolFactorySession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, ...) (*big.Int, error)
- func (_StablePoolFactory *StablePoolFactorySession) Master() (common.Address, error)
- type StablePoolFactoryTransactor
- type StablePoolFactoryTransactorRaw
- type StablePoolFactoryTransactorSession
- type StablePoolFilterer
- func (_StablePool *StablePoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StablePoolApprovalIterator, error)
- func (_StablePool *StablePoolFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*StablePoolBurnIterator, error)
- func (_StablePool *StablePoolFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*StablePoolMintIterator, error)
- func (_StablePool *StablePoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*StablePoolSwapIterator, error)
- func (_StablePool *StablePoolFilterer) FilterSync(opts *bind.FilterOpts) (*StablePoolSyncIterator, error)
- func (_StablePool *StablePoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StablePoolTransferIterator, error)
- func (_StablePool *StablePoolFilterer) ParseApproval(log types.Log) (*StablePoolApproval, error)
- func (_StablePool *StablePoolFilterer) ParseBurn(log types.Log) (*StablePoolBurn, error)
- func (_StablePool *StablePoolFilterer) ParseMint(log types.Log) (*StablePoolMint, error)
- func (_StablePool *StablePoolFilterer) ParseSwap(log types.Log) (*StablePoolSwap, error)
- func (_StablePool *StablePoolFilterer) ParseSync(log types.Log) (*StablePoolSync, error)
- func (_StablePool *StablePoolFilterer) ParseTransfer(log types.Log) (*StablePoolTransfer, error)
- func (_StablePool *StablePoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StablePoolApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_StablePool *StablePoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *StablePoolBurn, sender []common.Address, ...) (event.Subscription, error)
- func (_StablePool *StablePoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *StablePoolMint, sender []common.Address, ...) (event.Subscription, error)
- func (_StablePool *StablePoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *StablePoolSwap, sender []common.Address, ...) (event.Subscription, error)
- func (_StablePool *StablePoolFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *StablePoolSync) (event.Subscription, error)
- func (_StablePool *StablePoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StablePoolTransfer, from []common.Address, ...) (event.Subscription, error)
- type StablePoolMint
- type StablePoolMintIterator
- type StablePoolRaw
- func (_StablePool *StablePoolRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StablePool *StablePoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StablePool *StablePoolRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StablePoolSession
- func (_StablePool *StablePoolSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolSession) Burn(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_StablePool *StablePoolSession) Decimals() (uint8, error)
- func (_StablePool *StablePoolSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
- func (_StablePool *StablePoolSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
- func (_StablePool *StablePoolSession) GetAssets() ([]common.Address, error)
- func (_StablePool *StablePoolSession) GetProtocolFee() (*big.Int, error)
- func (_StablePool *StablePoolSession) GetReserves() (struct{ ... }, error)
- func (_StablePool *StablePoolSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, ...) (*big.Int, error)
- func (_StablePool *StablePoolSession) InvariantLast() (*big.Int, error)
- func (_StablePool *StablePoolSession) Master() (common.Address, error)
- func (_StablePool *StablePoolSession) Mint(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) Name() (string, error)
- func (_StablePool *StablePoolSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_StablePool *StablePoolSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) PoolType() (uint16, error)
- func (_StablePool *StablePoolSession) Reserve0() (*big.Int, error)
- func (_StablePool *StablePoolSession) Reserve1() (*big.Int, error)
- func (_StablePool *StablePoolSession) SupportsInterface(interfaceID [4]byte) (bool, error)
- func (_StablePool *StablePoolSession) Swap(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) Symbol() (string, error)
- func (_StablePool *StablePoolSession) Token0() (common.Address, error)
- func (_StablePool *StablePoolSession) Token0PrecisionMultiplier() (*big.Int, error)
- func (_StablePool *StablePoolSession) Token1() (common.Address, error)
- func (_StablePool *StablePoolSession) Token1PrecisionMultiplier() (*big.Int, error)
- func (_StablePool *StablePoolSession) TotalSupply() (*big.Int, error)
- func (_StablePool *StablePoolSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolSession) Vault() (common.Address, error)
- type StablePoolSwap
- type StablePoolSwapIterator
- type StablePoolSync
- type StablePoolSyncIterator
- type StablePoolTransactor
- func (_StablePool *StablePoolTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) Burn(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) BurnSingle(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) Mint(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) Permit(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) Permit2(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) Swap(opts *bind.TransactOpts, _data []byte, _sender common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type StablePoolTransactorRaw
- type StablePoolTransactorSession
- func (_StablePool *StablePoolTransactorSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) Burn(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) Mint(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) Swap(_data []byte, _sender common.Address, _callback common.Address, ...) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_StablePool *StablePoolTransactorSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- type StablePoolTransfer
- type StablePoolTransferIterator
- type SyncSwapRouterTokenInput
- type Vault
- type VaultCaller
- func (_Vault *VaultCaller) BalanceOf(opts *bind.CallOpts, token common.Address, account common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) ERC3156CALLBACKSUCCESS(opts *bind.CallOpts) ([32]byte, error)
- func (_Vault *VaultCaller) FlashFee(opts *bind.CallOpts, arg0 common.Address, amount *big.Int) (*big.Int, error)
- func (_Vault *VaultCaller) FlashLoanFeePercentage(opts *bind.CallOpts) (*big.Int, error)
- func (_Vault *VaultCaller) FlashLoanFeeRecipient(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) MaxFlashLoan(opts *bind.CallOpts, token common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Vault *VaultCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Vault *VaultCaller) Reserves(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCaller) WETH(opts *bind.CallOpts) (common.Address, error)
- type VaultCallerRaw
- type VaultCallerSession
- func (_Vault *VaultCallerSession) BalanceOf(token common.Address, account common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) ERC3156CALLBACKSUCCESS() ([32]byte, error)
- func (_Vault *VaultCallerSession) FlashFee(arg0 common.Address, amount *big.Int) (*big.Int, error)
- func (_Vault *VaultCallerSession) FlashLoanFeePercentage() (*big.Int, error)
- func (_Vault *VaultCallerSession) FlashLoanFeeRecipient() (common.Address, error)
- func (_Vault *VaultCallerSession) MaxFlashLoan(token common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) Owner() (common.Address, error)
- func (_Vault *VaultCallerSession) Paused() (bool, error)
- func (_Vault *VaultCallerSession) Reserves(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultCallerSession) WETH() (common.Address, error)
- type VaultFilterer
- func (_Vault *VaultFilterer) FilterFlashLoan(opts *bind.FilterOpts, recipient []common.Address, token []common.Address) (*VaultFlashLoanIterator, error)
- func (_Vault *VaultFilterer) FilterFlashLoanFeePercentageChanged(opts *bind.FilterOpts) (*VaultFlashLoanFeePercentageChangedIterator, error)
- func (_Vault *VaultFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*VaultOwnershipTransferredIterator, error)
- func (_Vault *VaultFilterer) FilterPaused(opts *bind.FilterOpts) (*VaultPausedIterator, error)
- func (_Vault *VaultFilterer) FilterUnpaused(opts *bind.FilterOpts) (*VaultUnpausedIterator, error)
- func (_Vault *VaultFilterer) ParseFlashLoan(log types.Log) (*VaultFlashLoan, error)
- func (_Vault *VaultFilterer) ParseFlashLoanFeePercentageChanged(log types.Log) (*VaultFlashLoanFeePercentageChanged, error)
- func (_Vault *VaultFilterer) ParseOwnershipTransferred(log types.Log) (*VaultOwnershipTransferred, error)
- func (_Vault *VaultFilterer) ParsePaused(log types.Log) (*VaultPaused, error)
- func (_Vault *VaultFilterer) ParseUnpaused(log types.Log) (*VaultUnpaused, error)
- func (_Vault *VaultFilterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *VaultFlashLoan, recipient []common.Address, ...) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchFlashLoanFeePercentageChanged(opts *bind.WatchOpts, sink chan<- *VaultFlashLoanFeePercentageChanged) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VaultOwnershipTransferred, ...) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *VaultPaused) (event.Subscription, error)
- func (_Vault *VaultFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *VaultUnpaused) (event.Subscription, error)
- type VaultFlashLoan
- type VaultFlashLoanFeePercentageChanged
- type VaultFlashLoanFeePercentageChangedIterator
- type VaultFlashLoanIterator
- type VaultOwnershipTransferred
- type VaultOwnershipTransferredIterator
- type VaultPaused
- type VaultPausedIterator
- type VaultRaw
- func (_Vault *VaultRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Vault *VaultRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Vault *VaultRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type VaultSession
- func (_Vault *VaultSession) BalanceOf(token common.Address, account common.Address) (*big.Int, error)
- func (_Vault *VaultSession) Deposit(token common.Address, to common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) DepositETH(to common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) ERC3156CALLBACKSUCCESS() ([32]byte, error)
- func (_Vault *VaultSession) FlashFee(arg0 common.Address, amount *big.Int) (*big.Int, error)
- func (_Vault *VaultSession) FlashLoan(receiver common.Address, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) FlashLoanFeePercentage() (*big.Int, error)
- func (_Vault *VaultSession) FlashLoanFeeRecipient() (common.Address, error)
- func (_Vault *VaultSession) FlashLoanMultiple(recipient common.Address, tokens []common.Address, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultSession) MaxFlashLoan(token common.Address) (*big.Int, error)
- func (_Vault *VaultSession) Owner() (common.Address, error)
- func (_Vault *VaultSession) Paused() (bool, error)
- func (_Vault *VaultSession) Receive() (*types.Transaction, error)
- func (_Vault *VaultSession) RenounceOwnership() (*types.Transaction, error)
- func (_Vault *VaultSession) Reserves(arg0 common.Address) (*big.Int, error)
- func (_Vault *VaultSession) SetFlashLoanFeePercentage(newFlashLoanFeePercentage *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) SetFlashLoanFeeRecipient(_flashLoanFeeRecipient common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) SetPaused(_status bool) (*types.Transaction, error)
- func (_Vault *VaultSession) Transfer(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) TransferAndDeposit(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Vault *VaultSession) WETH() (common.Address, error)
- func (_Vault *VaultSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultSession) WithdrawAlternative(token common.Address, to common.Address, amount *big.Int, mode uint8) (*types.Transaction, error)
- func (_Vault *VaultSession) WithdrawETH(to common.Address, amount *big.Int) (*types.Transaction, error)
- type VaultTransactor
- func (_Vault *VaultTransactor) Deposit(opts *bind.TransactOpts, token common.Address, to common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) DepositETH(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) FlashLoan(opts *bind.TransactOpts, receiver common.Address, token common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) FlashLoanMultiple(opts *bind.TransactOpts, recipient common.Address, tokens []common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Vault *VaultTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetFlashLoanFeePercentage(opts *bind.TransactOpts, newFlashLoanFeePercentage *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetFlashLoanFeeRecipient(opts *bind.TransactOpts, _flashLoanFeeRecipient common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) SetPaused(opts *bind.TransactOpts, _status bool) (*types.Transaction, error)
- func (_Vault *VaultTransactor) Transfer(opts *bind.TransactOpts, token common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) TransferAndDeposit(opts *bind.TransactOpts, token common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) WithdrawAlternative(opts *bind.TransactOpts, token common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactor) WithdrawETH(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- type VaultTransactorRaw
- type VaultTransactorSession
- func (_Vault *VaultTransactorSession) Deposit(token common.Address, to common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) DepositETH(to common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) FlashLoan(receiver common.Address, token common.Address, amount *big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) FlashLoanMultiple(recipient common.Address, tokens []common.Address, amounts []*big.Int, ...) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) Receive() (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetFlashLoanFeePercentage(newFlashLoanFeePercentage *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetFlashLoanFeeRecipient(_flashLoanFeeRecipient common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) SetPaused(_status bool) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) Transfer(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) TransferAndDeposit(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) WithdrawAlternative(token common.Address, to common.Address, amount *big.Int, mode uint8) (*types.Transaction, error)
- func (_Vault *VaultTransactorSession) WithdrawETH(to common.Address, amount *big.Int) (*types.Transaction, error)
- type VaultUnpaused
- type VaultUnpausedIterator
Constants ¶
This section is empty.
Variables ¶
var ClassicPoolABI = ClassicPoolMetaData.ABI
ClassicPoolABI is the input ABI used to generate the binding from. Deprecated: Use ClassicPoolMetaData.ABI instead.
var ClassicPoolFactoryABI = ClassicPoolFactoryMetaData.ABI
ClassicPoolFactoryABI is the input ABI used to generate the binding from. Deprecated: Use ClassicPoolFactoryMetaData.ABI instead.
var ClassicPoolFactoryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_master\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidTokens\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDeployData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"deployData\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getSwapFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"swapFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
ClassicPoolFactoryMetaData contains all meta data concerning the ClassicPoolFactory contract.
var ClassicPoolMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"Expired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientLiquidityMinted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Overflow\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve1\",\"type\":\"uint256\"}],\"name\":\"Sync\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"_amounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"burnSingle\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"_tokenAmount\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAssets\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"_protocolFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_reserve0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_reserve1\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getSwapFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"_swapFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"invariantLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"_v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"_r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"permit2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolType\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"_tokenAmount\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
ClassicPoolMetaData contains all meta data concerning the ClassicPool contract.
var RouterABI = RouterMetaData.ABI
RouterABI is the input ABI used to generate the binding from. Deprecated: Use RouterMetaData.ABI instead.
var RouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vault\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_wETH\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ApproveFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Expired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughLiquidityMinted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TooLittleReceived\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromFailed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"addLiquidity2\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structIRouter.SplitPermitParams[]\",\"name\":\"permits\",\"type\":\"tuple[]\"}],\"name\":\"addLiquidityWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSyncSwapRouter.TokenInput[]\",\"name\":\"inputs\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minLiquidity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structIRouter.SplitPermitParams[]\",\"name\":\"permits\",\"type\":\"tuple[]\"}],\"name\":\"addLiquidityWithPermit2\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256[]\",\"name\":\"minAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"burnLiquidity\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"amounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"name\":\"burnLiquiditySingle\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"minAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.ArrayPermitParams\",\"name\":\"permit\",\"type\":\"tuple\"}],\"name\":\"burnLiquiditySingleWithPermit\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"uint256[]\",\"name\":\"minAmounts\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.ArrayPermitParams\",\"name\":\"permit\",\"type\":\"tuple\"}],\"name\":\"burnLiquidityWithPermit\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"amounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"enteredPools\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"enteredPoolsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isPoolEntered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"selfPermit2\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"selfPermit2IfNecessary\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermitAllowed\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expiry\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermitAllowedIfNecessary\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"selfPermitIfNecessary\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"stakingPool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalf\",\"type\":\"address\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.SwapStep[]\",\"name\":\"steps\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"internalType\":\"structIRouter.SwapPath[]\",\"name\":\"paths\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"name\":\"swap\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"callbackData\",\"type\":\"bytes\"}],\"internalType\":\"structIRouter.SwapStep[]\",\"name\":\"steps\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"internalType\":\"structIRouter.SwapPath[]\",\"name\":\"paths\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"approveAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"structIRouter.SplitPermitParams\",\"name\":\"permit\",\"type\":\"tuple\"}],\"name\":\"swapWithPermit\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"amountOut\",\"type\":\"tuple\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
RouterMetaData contains all meta data concerning the Router contract.
var StablePoolABI = StablePoolMetaData.ABI
StablePoolABI is the input ABI used to generate the binding from. Deprecated: Use StablePoolMetaData.ABI instead.
var StablePoolFactoryABI = StablePoolFactoryMetaData.ABI
StablePoolFactoryABI is the input ABI used to generate the binding from. Deprecated: Use StablePoolFactoryMetaData.ABI instead.
var StablePoolFactoryMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_master\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidTokens\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"name\":\"PoolCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDeployData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"deployData\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"getPool\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"pool\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenOut\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getSwapFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"swapFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
StablePoolFactoryMetaData contains all meta data concerning the StablePoolFactory contract.
var StablePoolMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"Expired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientLiquidityMinted\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Overflow\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1In\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reserve1\",\"type\":\"uint256\"}],\"name\":\"Sync\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"burn\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount[]\",\"name\":\"_amounts\",\"type\":\"tuple[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"burnSingle\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"_tokenAmount\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"}],\"name\":\"getAmountIn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAssets\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"_protocolFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_reserve0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_reserve1\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenIn\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_tokenOut\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"getSwapFee\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"_swapFee\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"invariantLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"nonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"_v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"_r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"permit2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolType\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_callback\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_callbackData\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structIPool.TokenAmount\",\"name\":\"_tokenAmount\",\"type\":\"tuple\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token0PrecisionMultiplier\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"token1PrecisionMultiplier\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
StablePoolMetaData contains all meta data concerning the StablePool contract.
var VaultABI = VaultMetaData.ABI
VaultABI is the input ABI used to generate the binding from. Deprecated: Use VaultMetaData.ABI instead.
var VaultMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_wETH\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ETHTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFromFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"feeAmount\",\"type\":\"uint256\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldFlashLoanFeePercentage\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newFlashLoanFeePercentage\",\"type\":\"uint256\"}],\"name\":\"FlashLoanFeePercentageChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ERC3156_CALLBACK_SUCCESS\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"deposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"depositETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"flashFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIERC3156FlashBorrower\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"flashLoan\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"flashLoanFeePercentage\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"flashLoanFeeRecipient\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractIFlashLoanRecipient\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"userData\",\"type\":\"bytes\"}],\"name\":\"flashLoanMultiple\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"maxFlashLoan\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"reserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newFlashLoanFeePercentage\",\"type\":\"uint256\"}],\"name\":\"setFlashLoanFeePercentage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_flashLoanFeeRecipient\",\"type\":\"address\"}],\"name\":\"setFlashLoanFeeRecipient\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_status\",\"type\":\"bool\"}],\"name\":\"setPaused\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferAndDeposit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wETH\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"mode\",\"type\":\"uint8\"}],\"name\":\"withdrawAlternative\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdrawETH\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
}
VaultMetaData contains all meta data concerning the Vault contract.
Functions ¶
This section is empty.
Types ¶
type ClassicPool ¶
type ClassicPool struct { ClassicPoolCaller // Read-only binding to the contract ClassicPoolTransactor // Write-only binding to the contract ClassicPoolFilterer // Log filterer for contract events }
ClassicPool is an auto generated Go binding around an Ethereum contract.
func NewClassicPool ¶
func NewClassicPool(address common.Address, backend bind.ContractBackend) (*ClassicPool, error)
NewClassicPool creates a new instance of ClassicPool, bound to a specific deployed contract.
type ClassicPoolApproval ¶
type ClassicPoolApproval struct { Owner common.Address Spender common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
ClassicPoolApproval represents a Approval event raised by the ClassicPool contract.
type ClassicPoolApprovalIterator ¶
type ClassicPoolApprovalIterator struct { Event *ClassicPoolApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ClassicPool contract.
func (*ClassicPoolApprovalIterator) Close ¶
func (it *ClassicPoolApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolApprovalIterator) Error ¶
func (it *ClassicPoolApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolApprovalIterator) Next ¶
func (it *ClassicPoolApprovalIterator) 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 ClassicPoolBurn ¶
type ClassicPoolBurn struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Liquidity *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
ClassicPoolBurn represents a Burn event raised by the ClassicPool contract.
type ClassicPoolBurnIterator ¶
type ClassicPoolBurnIterator struct { Event *ClassicPoolBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the ClassicPool contract.
func (*ClassicPoolBurnIterator) Close ¶
func (it *ClassicPoolBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolBurnIterator) Error ¶
func (it *ClassicPoolBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolBurnIterator) Next ¶
func (it *ClassicPoolBurnIterator) 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 ClassicPoolCaller ¶
type ClassicPoolCaller struct {
// contains filtered or unexported fields
}
ClassicPoolCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewClassicPoolCaller ¶
func NewClassicPoolCaller(address common.Address, caller bind.ContractCaller) (*ClassicPoolCaller, error)
NewClassicPoolCaller creates a new read-only instance of ClassicPool, bound to a specific deployed contract.
func (*ClassicPoolCaller) Allowance ¶
func (_ClassicPool *ClassicPoolCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*ClassicPoolCaller) BalanceOf ¶
func (_ClassicPool *ClassicPoolCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*ClassicPoolCaller) DOMAINSEPARATOR ¶
func (_ClassicPool *ClassicPoolCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*ClassicPoolCaller) Decimals ¶
func (_ClassicPool *ClassicPoolCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ClassicPoolCaller) GetAmountIn ¶
func (_ClassicPool *ClassicPoolCaller) GetAmountIn(opts *bind.CallOpts, _tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.
Solidity: function getAmountIn(address _tokenOut, uint256 _amountOut, address _sender) view returns(uint256 _amountIn)
func (*ClassicPoolCaller) GetAmountOut ¶
func (_ClassicPool *ClassicPoolCaller) GetAmountOut(opts *bind.CallOpts, _tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.
Solidity: function getAmountOut(address _tokenIn, uint256 _amountIn, address _sender) view returns(uint256 _amountOut)
func (*ClassicPoolCaller) GetAssets ¶
GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.
Solidity: function getAssets() view returns(address[] assets)
func (*ClassicPoolCaller) GetProtocolFee ¶
GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.
Solidity: function getProtocolFee() view returns(uint24 _protocolFee)
func (*ClassicPoolCaller) GetReserves ¶
func (_ClassicPool *ClassicPoolCaller) GetReserves(opts *bind.CallOpts) (struct { Reserve0 *big.Int Reserve1 *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1)
func (*ClassicPoolCaller) GetSwapFee ¶
func (_ClassicPool *ClassicPoolCaller) GetSwapFee(opts *bind.CallOpts, _sender common.Address, _tokenIn common.Address, _tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.
Solidity: function getSwapFee(address _sender, address _tokenIn, address _tokenOut, bytes data) view returns(uint24 _swapFee)
func (*ClassicPoolCaller) InvariantLast ¶
InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.
Solidity: function invariantLast() view returns(uint256)
func (*ClassicPoolCaller) Master ¶
Master is a free data retrieval call binding the contract method 0xee97f7f3.
Solidity: function master() view returns(address)
func (*ClassicPoolCaller) Name ¶
func (_ClassicPool *ClassicPoolCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ClassicPoolCaller) Nonces ¶
func (_ClassicPool *ClassicPoolCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*ClassicPoolCaller) PoolType ¶
func (_ClassicPool *ClassicPoolCaller) PoolType(opts *bind.CallOpts) (uint16, error)
PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.
Solidity: function poolType() view returns(uint16)
func (*ClassicPoolCaller) Reserve0 ¶
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*ClassicPoolCaller) Reserve1 ¶
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*ClassicPoolCaller) SupportsInterface ¶
func (_ClassicPool *ClassicPoolCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (*ClassicPoolCaller) Symbol ¶
func (_ClassicPool *ClassicPoolCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ClassicPoolCaller) Token0 ¶
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*ClassicPoolCaller) Token1 ¶
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*ClassicPoolCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type ClassicPoolCallerRaw ¶
type ClassicPoolCallerRaw struct {
Contract *ClassicPoolCaller // Generic read-only contract binding to access the raw methods on
}
ClassicPoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ClassicPoolCallerRaw) Call ¶
func (_ClassicPool *ClassicPoolCallerRaw) 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 ClassicPoolCallerSession ¶
type ClassicPoolCallerSession struct { Contract *ClassicPoolCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ClassicPoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ClassicPoolCallerSession) Allowance ¶
func (_ClassicPool *ClassicPoolCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*ClassicPoolCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*ClassicPoolCallerSession) DOMAINSEPARATOR ¶
func (_ClassicPool *ClassicPoolCallerSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*ClassicPoolCallerSession) Decimals ¶
func (_ClassicPool *ClassicPoolCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ClassicPoolCallerSession) GetAmountIn ¶
func (_ClassicPool *ClassicPoolCallerSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.
Solidity: function getAmountIn(address _tokenOut, uint256 _amountOut, address _sender) view returns(uint256 _amountIn)
func (*ClassicPoolCallerSession) GetAmountOut ¶
func (_ClassicPool *ClassicPoolCallerSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.
Solidity: function getAmountOut(address _tokenIn, uint256 _amountIn, address _sender) view returns(uint256 _amountOut)
func (*ClassicPoolCallerSession) GetAssets ¶
func (_ClassicPool *ClassicPoolCallerSession) GetAssets() ([]common.Address, error)
GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.
Solidity: function getAssets() view returns(address[] assets)
func (*ClassicPoolCallerSession) GetProtocolFee ¶
func (_ClassicPool *ClassicPoolCallerSession) GetProtocolFee() (*big.Int, error)
GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.
Solidity: function getProtocolFee() view returns(uint24 _protocolFee)
func (*ClassicPoolCallerSession) GetReserves ¶
func (_ClassicPool *ClassicPoolCallerSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1)
func (*ClassicPoolCallerSession) GetSwapFee ¶
func (_ClassicPool *ClassicPoolCallerSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.
Solidity: function getSwapFee(address _sender, address _tokenIn, address _tokenOut, bytes data) view returns(uint24 _swapFee)
func (*ClassicPoolCallerSession) InvariantLast ¶
func (_ClassicPool *ClassicPoolCallerSession) InvariantLast() (*big.Int, error)
InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.
Solidity: function invariantLast() view returns(uint256)
func (*ClassicPoolCallerSession) Master ¶
func (_ClassicPool *ClassicPoolCallerSession) Master() (common.Address, error)
Master is a free data retrieval call binding the contract method 0xee97f7f3.
Solidity: function master() view returns(address)
func (*ClassicPoolCallerSession) Name ¶
func (_ClassicPool *ClassicPoolCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ClassicPoolCallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*ClassicPoolCallerSession) PoolType ¶
func (_ClassicPool *ClassicPoolCallerSession) PoolType() (uint16, error)
PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.
Solidity: function poolType() view returns(uint16)
func (*ClassicPoolCallerSession) Reserve0 ¶
func (_ClassicPool *ClassicPoolCallerSession) Reserve0() (*big.Int, error)
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*ClassicPoolCallerSession) Reserve1 ¶
func (_ClassicPool *ClassicPoolCallerSession) Reserve1() (*big.Int, error)
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*ClassicPoolCallerSession) SupportsInterface ¶
func (_ClassicPool *ClassicPoolCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (*ClassicPoolCallerSession) Symbol ¶
func (_ClassicPool *ClassicPoolCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ClassicPoolCallerSession) Token0 ¶
func (_ClassicPool *ClassicPoolCallerSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*ClassicPoolCallerSession) Token1 ¶
func (_ClassicPool *ClassicPoolCallerSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*ClassicPoolCallerSession) TotalSupply ¶
func (_ClassicPool *ClassicPoolCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type ClassicPoolFactory ¶
type ClassicPoolFactory struct { ClassicPoolFactoryCaller // Read-only binding to the contract ClassicPoolFactoryTransactor // Write-only binding to the contract ClassicPoolFactoryFilterer // Log filterer for contract events }
ClassicPoolFactory is an auto generated Go binding around an Ethereum contract.
func NewClassicPoolFactory ¶
func NewClassicPoolFactory(address common.Address, backend bind.ContractBackend) (*ClassicPoolFactory, error)
NewClassicPoolFactory creates a new instance of ClassicPoolFactory, bound to a specific deployed contract.
type ClassicPoolFactoryCaller ¶
type ClassicPoolFactoryCaller struct {
// contains filtered or unexported fields
}
ClassicPoolFactoryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewClassicPoolFactoryCaller ¶
func NewClassicPoolFactoryCaller(address common.Address, caller bind.ContractCaller) (*ClassicPoolFactoryCaller, error)
NewClassicPoolFactoryCaller creates a new read-only instance of ClassicPoolFactory, bound to a specific deployed contract.
func (*ClassicPoolFactoryCaller) GetDeployData ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCaller) GetDeployData(opts *bind.CallOpts) ([]byte, error)
GetDeployData is a free data retrieval call binding the contract method 0xd039f622.
Solidity: function getDeployData() view returns(bytes deployData)
func (*ClassicPoolFactoryCaller) GetPool ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCaller) GetPool(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPool is a free data retrieval call binding the contract method 0x531aa03e.
Solidity: function getPool(address , address ) view returns(address)
func (*ClassicPoolFactoryCaller) GetSwapFee ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCaller) GetSwapFee(opts *bind.CallOpts, pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.
Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)
type ClassicPoolFactoryCallerRaw ¶
type ClassicPoolFactoryCallerRaw struct {
Contract *ClassicPoolFactoryCaller // Generic read-only contract binding to access the raw methods on
}
ClassicPoolFactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ClassicPoolFactoryCallerRaw) Call ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCallerRaw) 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 ClassicPoolFactoryCallerSession ¶
type ClassicPoolFactoryCallerSession struct { Contract *ClassicPoolFactoryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ClassicPoolFactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ClassicPoolFactoryCallerSession) GetDeployData ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) GetDeployData() ([]byte, error)
GetDeployData is a free data retrieval call binding the contract method 0xd039f622.
Solidity: function getDeployData() view returns(bytes deployData)
func (*ClassicPoolFactoryCallerSession) GetPool ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPool is a free data retrieval call binding the contract method 0x531aa03e.
Solidity: function getPool(address , address ) view returns(address)
func (*ClassicPoolFactoryCallerSession) GetSwapFee ¶
func (_ClassicPoolFactory *ClassicPoolFactoryCallerSession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.
Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)
type ClassicPoolFactoryFilterer ¶
type ClassicPoolFactoryFilterer struct {
// contains filtered or unexported fields
}
ClassicPoolFactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewClassicPoolFactoryFilterer ¶
func NewClassicPoolFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*ClassicPoolFactoryFilterer, error)
NewClassicPoolFactoryFilterer creates a new log filterer instance of ClassicPoolFactory, bound to a specific deployed contract.
func (*ClassicPoolFactoryFilterer) FilterPoolCreated ¶
func (_ClassicPoolFactory *ClassicPoolFactoryFilterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*ClassicPoolFactoryPoolCreatedIterator, error)
FilterPoolCreated is a free log retrieval operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.
Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)
func (*ClassicPoolFactoryFilterer) ParsePoolCreated ¶
func (_ClassicPoolFactory *ClassicPoolFactoryFilterer) ParsePoolCreated(log types.Log) (*ClassicPoolFactoryPoolCreated, error)
ParsePoolCreated is a log parse operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.
Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)
func (*ClassicPoolFactoryFilterer) WatchPoolCreated ¶
func (_ClassicPoolFactory *ClassicPoolFactoryFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *ClassicPoolFactoryPoolCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error)
WatchPoolCreated is a free log subscription operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.
Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)
type ClassicPoolFactoryPoolCreated ¶
type ClassicPoolFactoryPoolCreated struct { Token0 common.Address Token1 common.Address Pool common.Address Raw types.Log // Blockchain specific contextual infos }
ClassicPoolFactoryPoolCreated represents a PoolCreated event raised by the ClassicPoolFactory contract.
type ClassicPoolFactoryPoolCreatedIterator ¶
type ClassicPoolFactoryPoolCreatedIterator struct { Event *ClassicPoolFactoryPoolCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolFactoryPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the ClassicPoolFactory contract.
func (*ClassicPoolFactoryPoolCreatedIterator) Close ¶
func (it *ClassicPoolFactoryPoolCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolFactoryPoolCreatedIterator) Error ¶
func (it *ClassicPoolFactoryPoolCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolFactoryPoolCreatedIterator) Next ¶
func (it *ClassicPoolFactoryPoolCreatedIterator) 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 ClassicPoolFactoryRaw ¶
type ClassicPoolFactoryRaw struct {
Contract *ClassicPoolFactory // Generic contract binding to access the raw methods on
}
ClassicPoolFactoryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ClassicPoolFactoryRaw) Call ¶
func (_ClassicPoolFactory *ClassicPoolFactoryRaw) 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 (*ClassicPoolFactoryRaw) Transact ¶
func (_ClassicPoolFactory *ClassicPoolFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClassicPoolFactoryRaw) Transfer ¶
func (_ClassicPoolFactory *ClassicPoolFactoryRaw) 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 ClassicPoolFactorySession ¶
type ClassicPoolFactorySession struct { Contract *ClassicPoolFactory // 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 }
ClassicPoolFactorySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ClassicPoolFactorySession) CreatePool ¶
func (_ClassicPoolFactory *ClassicPoolFactorySession) CreatePool(data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.
Solidity: function createPool(bytes data) returns(address pool)
func (*ClassicPoolFactorySession) GetDeployData ¶
func (_ClassicPoolFactory *ClassicPoolFactorySession) GetDeployData() ([]byte, error)
GetDeployData is a free data retrieval call binding the contract method 0xd039f622.
Solidity: function getDeployData() view returns(bytes deployData)
func (*ClassicPoolFactorySession) GetPool ¶
func (_ClassicPoolFactory *ClassicPoolFactorySession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPool is a free data retrieval call binding the contract method 0x531aa03e.
Solidity: function getPool(address , address ) view returns(address)
func (*ClassicPoolFactorySession) GetSwapFee ¶
func (_ClassicPoolFactory *ClassicPoolFactorySession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.
Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)
type ClassicPoolFactoryTransactor ¶
type ClassicPoolFactoryTransactor struct {
// contains filtered or unexported fields
}
ClassicPoolFactoryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewClassicPoolFactoryTransactor ¶
func NewClassicPoolFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*ClassicPoolFactoryTransactor, error)
NewClassicPoolFactoryTransactor creates a new write-only instance of ClassicPoolFactory, bound to a specific deployed contract.
func (*ClassicPoolFactoryTransactor) CreatePool ¶
func (_ClassicPoolFactory *ClassicPoolFactoryTransactor) CreatePool(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.
Solidity: function createPool(bytes data) returns(address pool)
type ClassicPoolFactoryTransactorRaw ¶
type ClassicPoolFactoryTransactorRaw struct {
Contract *ClassicPoolFactoryTransactor // Generic write-only contract binding to access the raw methods on
}
ClassicPoolFactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ClassicPoolFactoryTransactorRaw) Transact ¶
func (_ClassicPoolFactory *ClassicPoolFactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClassicPoolFactoryTransactorRaw) Transfer ¶
func (_ClassicPoolFactory *ClassicPoolFactoryTransactorRaw) 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 ClassicPoolFactoryTransactorSession ¶
type ClassicPoolFactoryTransactorSession struct { Contract *ClassicPoolFactoryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ClassicPoolFactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ClassicPoolFactoryTransactorSession) CreatePool ¶
func (_ClassicPoolFactory *ClassicPoolFactoryTransactorSession) CreatePool(data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.
Solidity: function createPool(bytes data) returns(address pool)
type ClassicPoolFilterer ¶
type ClassicPoolFilterer struct {
// contains filtered or unexported fields
}
ClassicPoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewClassicPoolFilterer ¶
func NewClassicPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*ClassicPoolFilterer, error)
NewClassicPoolFilterer creates a new log filterer instance of ClassicPool, bound to a specific deployed contract.
func (*ClassicPoolFilterer) FilterApproval ¶
func (_ClassicPool *ClassicPoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ClassicPoolApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*ClassicPoolFilterer) FilterBurn ¶
func (_ClassicPool *ClassicPoolFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ClassicPoolBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xd175a80c109434bb89948928ab2475a6647c94244cb70002197896423c883363.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*ClassicPoolFilterer) FilterMint ¶
func (_ClassicPool *ClassicPoolFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ClassicPoolMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0xa8137fff86647d8a402117b9c5dbda627f721d3773338fb9678c83e54ed39080.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*ClassicPoolFilterer) FilterSwap ¶
func (_ClassicPool *ClassicPoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ClassicPoolSwapIterator, error)
FilterSwap is a free log retrieval operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*ClassicPoolFilterer) FilterSync ¶
func (_ClassicPool *ClassicPoolFilterer) FilterSync(opts *bind.FilterOpts) (*ClassicPoolSyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*ClassicPoolFilterer) FilterTransfer ¶
func (_ClassicPool *ClassicPoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ClassicPoolTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*ClassicPoolFilterer) ParseApproval ¶
func (_ClassicPool *ClassicPoolFilterer) ParseApproval(log types.Log) (*ClassicPoolApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*ClassicPoolFilterer) ParseBurn ¶
func (_ClassicPool *ClassicPoolFilterer) ParseBurn(log types.Log) (*ClassicPoolBurn, error)
ParseBurn is a log parse operation binding the contract event 0xd175a80c109434bb89948928ab2475a6647c94244cb70002197896423c883363.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*ClassicPoolFilterer) ParseMint ¶
func (_ClassicPool *ClassicPoolFilterer) ParseMint(log types.Log) (*ClassicPoolMint, error)
ParseMint is a log parse operation binding the contract event 0xa8137fff86647d8a402117b9c5dbda627f721d3773338fb9678c83e54ed39080.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*ClassicPoolFilterer) ParseSwap ¶
func (_ClassicPool *ClassicPoolFilterer) ParseSwap(log types.Log) (*ClassicPoolSwap, error)
ParseSwap is a log parse operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*ClassicPoolFilterer) ParseSync ¶
func (_ClassicPool *ClassicPoolFilterer) ParseSync(log types.Log) (*ClassicPoolSync, error)
ParseSync is a log parse operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*ClassicPoolFilterer) ParseTransfer ¶
func (_ClassicPool *ClassicPoolFilterer) ParseTransfer(log types.Log) (*ClassicPoolTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*ClassicPoolFilterer) WatchApproval ¶
func (_ClassicPool *ClassicPoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ClassicPoolApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*ClassicPoolFilterer) WatchBurn ¶
func (_ClassicPool *ClassicPoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *ClassicPoolBurn, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xd175a80c109434bb89948928ab2475a6647c94244cb70002197896423c883363.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*ClassicPoolFilterer) WatchMint ¶
func (_ClassicPool *ClassicPoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *ClassicPoolMint, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0xa8137fff86647d8a402117b9c5dbda627f721d3773338fb9678c83e54ed39080.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*ClassicPoolFilterer) WatchSwap ¶
func (_ClassicPool *ClassicPoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *ClassicPoolSwap, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchSwap is a free log subscription operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*ClassicPoolFilterer) WatchSync ¶
func (_ClassicPool *ClassicPoolFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *ClassicPoolSync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*ClassicPoolFilterer) WatchTransfer ¶
func (_ClassicPool *ClassicPoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ClassicPoolTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
type ClassicPoolMint ¶
type ClassicPoolMint struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Liquidity *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
ClassicPoolMint represents a Mint event raised by the ClassicPool contract.
type ClassicPoolMintIterator ¶
type ClassicPoolMintIterator struct { Event *ClassicPoolMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the ClassicPool contract.
func (*ClassicPoolMintIterator) Close ¶
func (it *ClassicPoolMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolMintIterator) Error ¶
func (it *ClassicPoolMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolMintIterator) Next ¶
func (it *ClassicPoolMintIterator) 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 ClassicPoolRaw ¶
type ClassicPoolRaw struct {
Contract *ClassicPool // Generic contract binding to access the raw methods on
}
ClassicPoolRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ClassicPoolRaw) Call ¶
func (_ClassicPool *ClassicPoolRaw) 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 (*ClassicPoolRaw) Transact ¶
func (_ClassicPool *ClassicPoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClassicPoolRaw) Transfer ¶
func (_ClassicPool *ClassicPoolRaw) 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 ClassicPoolSession ¶
type ClassicPoolSession struct { Contract *ClassicPool // 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 }
ClassicPoolSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ClassicPoolSession) Allowance ¶
func (_ClassicPool *ClassicPoolSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*ClassicPoolSession) Approve ¶
func (_ClassicPool *ClassicPoolSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*ClassicPoolSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*ClassicPoolSession) Burn ¶
func (_ClassicPool *ClassicPoolSession) Burn(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf66eab5b.
Solidity: function burn(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256)[] _amounts)
func (*ClassicPoolSession) BurnSingle ¶
func (_ClassicPool *ClassicPoolSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.
Solidity: function burnSingle(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*ClassicPoolSession) DOMAINSEPARATOR ¶
func (_ClassicPool *ClassicPoolSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*ClassicPoolSession) Decimals ¶
func (_ClassicPool *ClassicPoolSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ClassicPoolSession) GetAmountIn ¶
func (_ClassicPool *ClassicPoolSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.
Solidity: function getAmountIn(address _tokenOut, uint256 _amountOut, address _sender) view returns(uint256 _amountIn)
func (*ClassicPoolSession) GetAmountOut ¶
func (_ClassicPool *ClassicPoolSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.
Solidity: function getAmountOut(address _tokenIn, uint256 _amountIn, address _sender) view returns(uint256 _amountOut)
func (*ClassicPoolSession) GetAssets ¶
func (_ClassicPool *ClassicPoolSession) GetAssets() ([]common.Address, error)
GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.
Solidity: function getAssets() view returns(address[] assets)
func (*ClassicPoolSession) GetProtocolFee ¶
func (_ClassicPool *ClassicPoolSession) GetProtocolFee() (*big.Int, error)
GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.
Solidity: function getProtocolFee() view returns(uint24 _protocolFee)
func (*ClassicPoolSession) GetReserves ¶
func (_ClassicPool *ClassicPoolSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1)
func (*ClassicPoolSession) GetSwapFee ¶
func (_ClassicPool *ClassicPoolSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.
Solidity: function getSwapFee(address _sender, address _tokenIn, address _tokenOut, bytes data) view returns(uint24 _swapFee)
func (*ClassicPoolSession) InvariantLast ¶
func (_ClassicPool *ClassicPoolSession) InvariantLast() (*big.Int, error)
InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.
Solidity: function invariantLast() view returns(uint256)
func (*ClassicPoolSession) Master ¶
func (_ClassicPool *ClassicPoolSession) Master() (common.Address, error)
Master is a free data retrieval call binding the contract method 0xee97f7f3.
Solidity: function master() view returns(address)
func (*ClassicPoolSession) Mint ¶
func (_ClassicPool *ClassicPoolSession) Mint(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x03e7286a.
Solidity: function mint(bytes _data, address _sender, address _callback, bytes _callbackData) returns(uint256)
func (*ClassicPoolSession) Name ¶
func (_ClassicPool *ClassicPoolSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*ClassicPoolSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*ClassicPoolSession) Permit ¶
func (_ClassicPool *ClassicPoolSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address _owner, address _spender, uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()
func (*ClassicPoolSession) Permit2 ¶
func (_ClassicPool *ClassicPoolSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _signature []byte) (*types.Transaction, error)
Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.
Solidity: function permit2(address _owner, address _spender, uint256 _amount, uint256 _deadline, bytes _signature) returns()
func (*ClassicPoolSession) PoolType ¶
func (_ClassicPool *ClassicPoolSession) PoolType() (uint16, error)
PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.
Solidity: function poolType() view returns(uint16)
func (*ClassicPoolSession) Reserve0 ¶
func (_ClassicPool *ClassicPoolSession) Reserve0() (*big.Int, error)
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*ClassicPoolSession) Reserve1 ¶
func (_ClassicPool *ClassicPoolSession) Reserve1() (*big.Int, error)
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*ClassicPoolSession) SupportsInterface ¶
func (_ClassicPool *ClassicPoolSession) SupportsInterface(interfaceID [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (*ClassicPoolSession) Swap ¶
func (_ClassicPool *ClassicPoolSession) Swap(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x7132bb7f.
Solidity: function swap(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*ClassicPoolSession) Symbol ¶
func (_ClassicPool *ClassicPoolSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*ClassicPoolSession) Token0 ¶
func (_ClassicPool *ClassicPoolSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*ClassicPoolSession) Token1 ¶
func (_ClassicPool *ClassicPoolSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*ClassicPoolSession) TotalSupply ¶
func (_ClassicPool *ClassicPoolSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*ClassicPoolSession) Transfer ¶
func (_ClassicPool *ClassicPoolSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _amount) returns(bool)
func (*ClassicPoolSession) TransferFrom ¶
func (_ClassicPool *ClassicPoolSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _amount) returns(bool)
type ClassicPoolSwap ¶
type ClassicPoolSwap struct { Sender common.Address Amount0In *big.Int Amount1In *big.Int Amount0Out *big.Int Amount1Out *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
ClassicPoolSwap represents a Swap event raised by the ClassicPool contract.
type ClassicPoolSwapIterator ¶
type ClassicPoolSwapIterator struct { Event *ClassicPoolSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the ClassicPool contract.
func (*ClassicPoolSwapIterator) Close ¶
func (it *ClassicPoolSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolSwapIterator) Error ¶
func (it *ClassicPoolSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolSwapIterator) Next ¶
func (it *ClassicPoolSwapIterator) 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 ClassicPoolSync ¶
type ClassicPoolSync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
ClassicPoolSync represents a Sync event raised by the ClassicPool contract.
type ClassicPoolSyncIterator ¶
type ClassicPoolSyncIterator struct { Event *ClassicPoolSync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the ClassicPool contract.
func (*ClassicPoolSyncIterator) Close ¶
func (it *ClassicPoolSyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolSyncIterator) Error ¶
func (it *ClassicPoolSyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolSyncIterator) Next ¶
func (it *ClassicPoolSyncIterator) 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 ClassicPoolTransactor ¶
type ClassicPoolTransactor struct {
// contains filtered or unexported fields
}
ClassicPoolTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewClassicPoolTransactor ¶
func NewClassicPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*ClassicPoolTransactor, error)
NewClassicPoolTransactor creates a new write-only instance of ClassicPool, bound to a specific deployed contract.
func (*ClassicPoolTransactor) Approve ¶
func (_ClassicPool *ClassicPoolTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*ClassicPoolTransactor) Burn ¶
func (_ClassicPool *ClassicPoolTransactor) Burn(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf66eab5b.
Solidity: function burn(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256)[] _amounts)
func (*ClassicPoolTransactor) BurnSingle ¶
func (_ClassicPool *ClassicPoolTransactor) BurnSingle(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.
Solidity: function burnSingle(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*ClassicPoolTransactor) Mint ¶
func (_ClassicPool *ClassicPoolTransactor) Mint(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x03e7286a.
Solidity: function mint(bytes _data, address _sender, address _callback, bytes _callbackData) returns(uint256)
func (*ClassicPoolTransactor) Permit ¶
func (_ClassicPool *ClassicPoolTransactor) Permit(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address _owner, address _spender, uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()
func (*ClassicPoolTransactor) Permit2 ¶
func (_ClassicPool *ClassicPoolTransactor) Permit2(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _signature []byte) (*types.Transaction, error)
Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.
Solidity: function permit2(address _owner, address _spender, uint256 _amount, uint256 _deadline, bytes _signature) returns()
func (*ClassicPoolTransactor) Swap ¶
func (_ClassicPool *ClassicPoolTransactor) Swap(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x7132bb7f.
Solidity: function swap(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*ClassicPoolTransactor) Transfer ¶
func (_ClassicPool *ClassicPoolTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _amount) returns(bool)
func (*ClassicPoolTransactor) TransferFrom ¶
func (_ClassicPool *ClassicPoolTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _amount) returns(bool)
type ClassicPoolTransactorRaw ¶
type ClassicPoolTransactorRaw struct {
Contract *ClassicPoolTransactor // Generic write-only contract binding to access the raw methods on
}
ClassicPoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ClassicPoolTransactorRaw) Transact ¶
func (_ClassicPool *ClassicPoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClassicPoolTransactorRaw) Transfer ¶
func (_ClassicPool *ClassicPoolTransactorRaw) 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 ClassicPoolTransactorSession ¶
type ClassicPoolTransactorSession struct { Contract *ClassicPoolTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ClassicPoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ClassicPoolTransactorSession) Approve ¶
func (_ClassicPool *ClassicPoolTransactorSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*ClassicPoolTransactorSession) Burn ¶
func (_ClassicPool *ClassicPoolTransactorSession) Burn(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf66eab5b.
Solidity: function burn(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256)[] _amounts)
func (*ClassicPoolTransactorSession) BurnSingle ¶
func (_ClassicPool *ClassicPoolTransactorSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.
Solidity: function burnSingle(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*ClassicPoolTransactorSession) Mint ¶
func (_ClassicPool *ClassicPoolTransactorSession) Mint(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x03e7286a.
Solidity: function mint(bytes _data, address _sender, address _callback, bytes _callbackData) returns(uint256)
func (*ClassicPoolTransactorSession) Permit ¶
func (_ClassicPool *ClassicPoolTransactorSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address _owner, address _spender, uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()
func (*ClassicPoolTransactorSession) Permit2 ¶
func (_ClassicPool *ClassicPoolTransactorSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _signature []byte) (*types.Transaction, error)
Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.
Solidity: function permit2(address _owner, address _spender, uint256 _amount, uint256 _deadline, bytes _signature) returns()
func (*ClassicPoolTransactorSession) Swap ¶
func (_ClassicPool *ClassicPoolTransactorSession) Swap(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x7132bb7f.
Solidity: function swap(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*ClassicPoolTransactorSession) Transfer ¶
func (_ClassicPool *ClassicPoolTransactorSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _amount) returns(bool)
func (*ClassicPoolTransactorSession) TransferFrom ¶
func (_ClassicPool *ClassicPoolTransactorSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _amount) returns(bool)
type ClassicPoolTransfer ¶
type ClassicPoolTransfer struct { From common.Address To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
ClassicPoolTransfer represents a Transfer event raised by the ClassicPool contract.
type ClassicPoolTransferIterator ¶
type ClassicPoolTransferIterator struct { Event *ClassicPoolTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ClassicPoolTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ClassicPool contract.
func (*ClassicPoolTransferIterator) Close ¶
func (it *ClassicPoolTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ClassicPoolTransferIterator) Error ¶
func (it *ClassicPoolTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ClassicPoolTransferIterator) Next ¶
func (it *ClassicPoolTransferIterator) 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 IPoolTokenAmount ¶
IPoolTokenAmount is an auto generated low-level Go binding around an user-defined struct.
type IRouterArrayPermitParams ¶
IRouterArrayPermitParams is an auto generated low-level Go binding around an user-defined struct.
type IRouterSplitPermitParams ¶
type IRouterSplitPermitParams struct { Token common.Address ApproveAmount *big.Int Deadline *big.Int V uint8 R [32]byte S [32]byte }
IRouterSplitPermitParams is an auto generated low-level Go binding around an user-defined struct.
type IRouterSwapPath ¶
type IRouterSwapPath struct { Steps []IRouterSwapStep TokenIn common.Address AmountIn *big.Int }
IRouterSwapPath is an auto generated low-level Go binding around an user-defined struct.
type IRouterSwapStep ¶
type IRouterSwapStep struct { Pool common.Address Data []byte Callback common.Address CallbackData []byte }
IRouterSwapStep is an auto generated low-level Go binding around an user-defined struct.
type Router ¶
type Router struct { RouterCaller // Read-only binding to the contract RouterTransactor // Write-only binding to the contract RouterFilterer // Log filterer for contract events }
Router is an auto generated Go binding around an Ethereum contract.
type RouterCaller ¶
type RouterCaller struct {
// contains filtered or unexported fields
}
RouterCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRouterCaller ¶
func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error)
NewRouterCaller creates a new read-only instance of Router, bound to a specific deployed contract.
func (*RouterCaller) EnteredPools ¶
func (_Router *RouterCaller) EnteredPools(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error)
EnteredPools is a free data retrieval call binding the contract method 0x2b4abadb.
Solidity: function enteredPools(address , uint256 ) view returns(address)
func (*RouterCaller) EnteredPoolsLength ¶
func (_Router *RouterCaller) EnteredPoolsLength(opts *bind.CallOpts, account common.Address) (*big.Int, error)
EnteredPoolsLength is a free data retrieval call binding the contract method 0xb956b3fb.
Solidity: function enteredPoolsLength(address account) view returns(uint256)
func (*RouterCaller) IsPoolEntered ¶
func (_Router *RouterCaller) IsPoolEntered(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)
IsPoolEntered is a free data retrieval call binding the contract method 0x4f25b858.
Solidity: function isPoolEntered(address , address ) view returns(bool)
type RouterCallerRaw ¶
type RouterCallerRaw struct {
Contract *RouterCaller // Generic read-only contract binding to access the raw methods on
}
RouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RouterCallerRaw) Call ¶
func (_Router *RouterCallerRaw) 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 RouterCallerSession ¶
type RouterCallerSession struct { Contract *RouterCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RouterCallerSession) EnteredPools ¶
func (_Router *RouterCallerSession) EnteredPools(arg0 common.Address, arg1 *big.Int) (common.Address, error)
EnteredPools is a free data retrieval call binding the contract method 0x2b4abadb.
Solidity: function enteredPools(address , uint256 ) view returns(address)
func (*RouterCallerSession) EnteredPoolsLength ¶
EnteredPoolsLength is a free data retrieval call binding the contract method 0xb956b3fb.
Solidity: function enteredPoolsLength(address account) view returns(uint256)
func (*RouterCallerSession) IsPoolEntered ¶
func (_Router *RouterCallerSession) IsPoolEntered(arg0 common.Address, arg1 common.Address) (bool, error)
IsPoolEntered is a free data retrieval call binding the contract method 0x4f25b858.
Solidity: function isPoolEntered(address , address ) view returns(bool)
type RouterFilterer ¶
type RouterFilterer struct {
// contains filtered or unexported fields
}
RouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRouterFilterer ¶
func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error)
NewRouterFilterer creates a new log filterer instance of Router, bound to a specific deployed contract.
type RouterRaw ¶
type RouterRaw struct {
Contract *Router // Generic contract binding to access the raw methods on
}
RouterRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RouterRaw) Call ¶
func (_Router *RouterRaw) 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 (*RouterRaw) Transact ¶
func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterRaw) Transfer ¶
func (_Router *RouterRaw) 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 RouterSession ¶
type RouterSession struct { Contract *Router // 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 }
RouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RouterSession) AddLiquidity ¶
func (_Router *RouterSession) AddLiquidity(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x6cbe96fa.
Solidity: function addLiquidity(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)
func (*RouterSession) AddLiquidity2 ¶
func (_Router *RouterSession) AddLiquidity2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
AddLiquidity2 is a paid mutator transaction binding the contract method 0x94ec6d78.
Solidity: function addLiquidity2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)
func (*RouterSession) AddLiquidityWithPermit ¶
func (_Router *RouterSession) AddLiquidityWithPermit(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)
AddLiquidityWithPermit is a paid mutator transaction binding the contract method 0xc4b3fc40.
Solidity: function addLiquidityWithPermit(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)
func (*RouterSession) AddLiquidityWithPermit2 ¶
func (_Router *RouterSession) AddLiquidityWithPermit2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)
AddLiquidityWithPermit2 is a paid mutator transaction binding the contract method 0xced78795.
Solidity: function addLiquidityWithPermit2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)
func (*RouterSession) BurnLiquidity ¶
func (_Router *RouterSession) BurnLiquidity(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
BurnLiquidity is a paid mutator transaction binding the contract method 0xad271fa3.
Solidity: function burnLiquidity(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData) returns((address,uint256)[] amounts)
func (*RouterSession) BurnLiquiditySingle ¶
func (_Router *RouterSession) BurnLiquiditySingle(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
BurnLiquiditySingle is a paid mutator transaction binding the contract method 0x53c43f15.
Solidity: function burnLiquiditySingle(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData) returns((address,uint256) amountOut)
func (*RouterSession) BurnLiquiditySingleWithPermit ¶
func (_Router *RouterSession) BurnLiquiditySingleWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)
BurnLiquiditySingleWithPermit is a paid mutator transaction binding the contract method 0x7d10c9d6.
Solidity: function burnLiquiditySingleWithPermit(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256) amountOut)
func (*RouterSession) BurnLiquidityWithPermit ¶
func (_Router *RouterSession) BurnLiquidityWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)
BurnLiquidityWithPermit is a paid mutator transaction binding the contract method 0x353766c6.
Solidity: function burnLiquidityWithPermit(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256)[] amounts)
func (*RouterSession) CreatePool ¶
func (_Router *RouterSession) CreatePool(_factory common.Address, data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x9dd41df2.
Solidity: function createPool(address _factory, bytes data) payable returns(address)
func (*RouterSession) EnteredPools ¶
func (_Router *RouterSession) EnteredPools(arg0 common.Address, arg1 *big.Int) (common.Address, error)
EnteredPools is a free data retrieval call binding the contract method 0x2b4abadb.
Solidity: function enteredPools(address , uint256 ) view returns(address)
func (*RouterSession) EnteredPoolsLength ¶
EnteredPoolsLength is a free data retrieval call binding the contract method 0xb956b3fb.
Solidity: function enteredPoolsLength(address account) view returns(uint256)
func (*RouterSession) IsPoolEntered ¶
IsPoolEntered is a free data retrieval call binding the contract method 0x4f25b858.
Solidity: function isPoolEntered(address , address ) view returns(bool)
func (*RouterSession) Multicall ¶
func (_Router *RouterSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) payable returns(bytes[] results)
func (*RouterSession) SelfPermit ¶
func (_Router *RouterSession) SelfPermit(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermit is a paid mutator transaction binding the contract method 0xf3995c67.
Solidity: function selfPermit(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterSession) SelfPermit2 ¶
func (_Router *RouterSession) SelfPermit2(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
SelfPermit2 is a paid mutator transaction binding the contract method 0x6cc781cd.
Solidity: function selfPermit2(address token, uint256 value, uint256 deadline, bytes signature) payable returns()
func (*RouterSession) SelfPermit2IfNecessary ¶
func (_Router *RouterSession) SelfPermit2IfNecessary(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
SelfPermit2IfNecessary is a paid mutator transaction binding the contract method 0x688ee44c.
Solidity: function selfPermit2IfNecessary(address token, uint256 value, uint256 deadline, bytes signature) payable returns()
func (*RouterSession) SelfPermitAllowed ¶
func (_Router *RouterSession) SelfPermitAllowed(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitAllowed is a paid mutator transaction binding the contract method 0x4659a494.
Solidity: function selfPermitAllowed(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterSession) SelfPermitAllowedIfNecessary ¶
func (_Router *RouterSession) SelfPermitAllowedIfNecessary(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitAllowedIfNecessary is a paid mutator transaction binding the contract method 0xa4a78f0c.
Solidity: function selfPermitAllowedIfNecessary(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterSession) SelfPermitIfNecessary ¶
func (_Router *RouterSession) SelfPermitIfNecessary(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitIfNecessary is a paid mutator transaction binding the contract method 0xc2e3140a.
Solidity: function selfPermitIfNecessary(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterSession) Stake ¶
func (_Router *RouterSession) Stake(stakingPool common.Address, token common.Address, amount *big.Int, onBehalf common.Address) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x6291027c.
Solidity: function stake(address stakingPool, address token, uint256 amount, address onBehalf) returns()
func (*RouterSession) Swap ¶
func (_Router *RouterSession) Swap(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x2cc4081e.
Solidity: function swap(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline) payable returns((address,uint256) amountOut)
func (*RouterSession) SwapWithPermit ¶
func (_Router *RouterSession) SwapWithPermit(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, permit IRouterSplitPermitParams) (*types.Transaction, error)
SwapWithPermit is a paid mutator transaction binding the contract method 0xe84d494b.
Solidity: function swapWithPermit(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline, (address,uint256,uint256,uint8,bytes32,bytes32) permit) payable returns((address,uint256) amountOut)
type RouterTransactor ¶
type RouterTransactor struct {
// contains filtered or unexported fields
}
RouterTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRouterTransactor ¶
func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error)
NewRouterTransactor creates a new write-only instance of Router, bound to a specific deployed contract.
func (*RouterTransactor) AddLiquidity ¶
func (_Router *RouterTransactor) AddLiquidity(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x6cbe96fa.
Solidity: function addLiquidity(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)
func (*RouterTransactor) AddLiquidity2 ¶
func (_Router *RouterTransactor) AddLiquidity2(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
AddLiquidity2 is a paid mutator transaction binding the contract method 0x94ec6d78.
Solidity: function addLiquidity2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)
func (*RouterTransactor) AddLiquidityWithPermit ¶
func (_Router *RouterTransactor) AddLiquidityWithPermit(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)
AddLiquidityWithPermit is a paid mutator transaction binding the contract method 0xc4b3fc40.
Solidity: function addLiquidityWithPermit(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)
func (*RouterTransactor) AddLiquidityWithPermit2 ¶
func (_Router *RouterTransactor) AddLiquidityWithPermit2(opts *bind.TransactOpts, pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)
AddLiquidityWithPermit2 is a paid mutator transaction binding the contract method 0xced78795.
Solidity: function addLiquidityWithPermit2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)
func (*RouterTransactor) BurnLiquidity ¶
func (_Router *RouterTransactor) BurnLiquidity(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
BurnLiquidity is a paid mutator transaction binding the contract method 0xad271fa3.
Solidity: function burnLiquidity(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData) returns((address,uint256)[] amounts)
func (*RouterTransactor) BurnLiquiditySingle ¶
func (_Router *RouterTransactor) BurnLiquiditySingle(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
BurnLiquiditySingle is a paid mutator transaction binding the contract method 0x53c43f15.
Solidity: function burnLiquiditySingle(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData) returns((address,uint256) amountOut)
func (*RouterTransactor) BurnLiquiditySingleWithPermit ¶
func (_Router *RouterTransactor) BurnLiquiditySingleWithPermit(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)
BurnLiquiditySingleWithPermit is a paid mutator transaction binding the contract method 0x7d10c9d6.
Solidity: function burnLiquiditySingleWithPermit(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256) amountOut)
func (*RouterTransactor) BurnLiquidityWithPermit ¶
func (_Router *RouterTransactor) BurnLiquidityWithPermit(opts *bind.TransactOpts, pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)
BurnLiquidityWithPermit is a paid mutator transaction binding the contract method 0x353766c6.
Solidity: function burnLiquidityWithPermit(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256)[] amounts)
func (*RouterTransactor) CreatePool ¶
func (_Router *RouterTransactor) CreatePool(opts *bind.TransactOpts, _factory common.Address, data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x9dd41df2.
Solidity: function createPool(address _factory, bytes data) payable returns(address)
func (*RouterTransactor) Multicall ¶
func (_Router *RouterTransactor) Multicall(opts *bind.TransactOpts, data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) payable returns(bytes[] results)
func (*RouterTransactor) SelfPermit ¶
func (_Router *RouterTransactor) SelfPermit(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermit is a paid mutator transaction binding the contract method 0xf3995c67.
Solidity: function selfPermit(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactor) SelfPermit2 ¶
func (_Router *RouterTransactor) SelfPermit2(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
SelfPermit2 is a paid mutator transaction binding the contract method 0x6cc781cd.
Solidity: function selfPermit2(address token, uint256 value, uint256 deadline, bytes signature) payable returns()
func (*RouterTransactor) SelfPermit2IfNecessary ¶
func (_Router *RouterTransactor) SelfPermit2IfNecessary(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
SelfPermit2IfNecessary is a paid mutator transaction binding the contract method 0x688ee44c.
Solidity: function selfPermit2IfNecessary(address token, uint256 value, uint256 deadline, bytes signature) payable returns()
func (*RouterTransactor) SelfPermitAllowed ¶
func (_Router *RouterTransactor) SelfPermitAllowed(opts *bind.TransactOpts, token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitAllowed is a paid mutator transaction binding the contract method 0x4659a494.
Solidity: function selfPermitAllowed(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactor) SelfPermitAllowedIfNecessary ¶
func (_Router *RouterTransactor) SelfPermitAllowedIfNecessary(opts *bind.TransactOpts, token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitAllowedIfNecessary is a paid mutator transaction binding the contract method 0xa4a78f0c.
Solidity: function selfPermitAllowedIfNecessary(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactor) SelfPermitIfNecessary ¶
func (_Router *RouterTransactor) SelfPermitIfNecessary(opts *bind.TransactOpts, token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitIfNecessary is a paid mutator transaction binding the contract method 0xc2e3140a.
Solidity: function selfPermitIfNecessary(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactor) Stake ¶
func (_Router *RouterTransactor) Stake(opts *bind.TransactOpts, stakingPool common.Address, token common.Address, amount *big.Int, onBehalf common.Address) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x6291027c.
Solidity: function stake(address stakingPool, address token, uint256 amount, address onBehalf) returns()
func (*RouterTransactor) Swap ¶
func (_Router *RouterTransactor) Swap(opts *bind.TransactOpts, paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x2cc4081e.
Solidity: function swap(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline) payable returns((address,uint256) amountOut)
func (*RouterTransactor) SwapWithPermit ¶
func (_Router *RouterTransactor) SwapWithPermit(opts *bind.TransactOpts, paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, permit IRouterSplitPermitParams) (*types.Transaction, error)
SwapWithPermit is a paid mutator transaction binding the contract method 0xe84d494b.
Solidity: function swapWithPermit(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline, (address,uint256,uint256,uint8,bytes32,bytes32) permit) payable returns((address,uint256) amountOut)
type RouterTransactorRaw ¶
type RouterTransactorRaw struct {
Contract *RouterTransactor // Generic write-only contract binding to access the raw methods on
}
RouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RouterTransactorRaw) Transact ¶
func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RouterTransactorRaw) Transfer ¶
func (_Router *RouterTransactorRaw) 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 RouterTransactorSession ¶
type RouterTransactorSession struct { Contract *RouterTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RouterTransactorSession) AddLiquidity ¶
func (_Router *RouterTransactorSession) AddLiquidity(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x6cbe96fa.
Solidity: function addLiquidity(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)
func (*RouterTransactorSession) AddLiquidity2 ¶
func (_Router *RouterTransactorSession) AddLiquidity2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
AddLiquidity2 is a paid mutator transaction binding the contract method 0x94ec6d78.
Solidity: function addLiquidity2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns(uint256 liquidity)
func (*RouterTransactorSession) AddLiquidityWithPermit ¶
func (_Router *RouterTransactorSession) AddLiquidityWithPermit(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)
AddLiquidityWithPermit is a paid mutator transaction binding the contract method 0xc4b3fc40.
Solidity: function addLiquidityWithPermit(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)
func (*RouterTransactorSession) AddLiquidityWithPermit2 ¶
func (_Router *RouterTransactorSession) AddLiquidityWithPermit2(pool common.Address, inputs []SyncSwapRouterTokenInput, data []byte, minLiquidity *big.Int, callback common.Address, callbackData []byte, permits []IRouterSplitPermitParams) (*types.Transaction, error)
AddLiquidityWithPermit2 is a paid mutator transaction binding the contract method 0xced78795.
Solidity: function addLiquidityWithPermit2(address pool, (address,uint256)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData, (address,uint256,uint256,uint8,bytes32,bytes32)[] permits) payable returns(uint256 liquidity)
func (*RouterTransactorSession) BurnLiquidity ¶
func (_Router *RouterTransactorSession) BurnLiquidity(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
BurnLiquidity is a paid mutator transaction binding the contract method 0xad271fa3.
Solidity: function burnLiquidity(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData) returns((address,uint256)[] amounts)
func (*RouterTransactorSession) BurnLiquiditySingle ¶
func (_Router *RouterTransactorSession) BurnLiquiditySingle(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte) (*types.Transaction, error)
BurnLiquiditySingle is a paid mutator transaction binding the contract method 0x53c43f15.
Solidity: function burnLiquiditySingle(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData) returns((address,uint256) amountOut)
func (*RouterTransactorSession) BurnLiquiditySingleWithPermit ¶
func (_Router *RouterTransactorSession) BurnLiquiditySingleWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmount *big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)
BurnLiquiditySingleWithPermit is a paid mutator transaction binding the contract method 0x7d10c9d6.
Solidity: function burnLiquiditySingleWithPermit(address pool, uint256 liquidity, bytes data, uint256 minAmount, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256) amountOut)
func (*RouterTransactorSession) BurnLiquidityWithPermit ¶
func (_Router *RouterTransactorSession) BurnLiquidityWithPermit(pool common.Address, liquidity *big.Int, data []byte, minAmounts []*big.Int, callback common.Address, callbackData []byte, permit IRouterArrayPermitParams) (*types.Transaction, error)
BurnLiquidityWithPermit is a paid mutator transaction binding the contract method 0x353766c6.
Solidity: function burnLiquidityWithPermit(address pool, uint256 liquidity, bytes data, uint256[] minAmounts, address callback, bytes callbackData, (uint256,uint256,bytes) permit) returns((address,uint256)[] amounts)
func (*RouterTransactorSession) CreatePool ¶
func (_Router *RouterTransactorSession) CreatePool(_factory common.Address, data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x9dd41df2.
Solidity: function createPool(address _factory, bytes data) payable returns(address)
func (*RouterTransactorSession) Multicall ¶
func (_Router *RouterTransactorSession) Multicall(data [][]byte) (*types.Transaction, error)
Multicall is a paid mutator transaction binding the contract method 0xac9650d8.
Solidity: function multicall(bytes[] data) payable returns(bytes[] results)
func (*RouterTransactorSession) SelfPermit ¶
func (_Router *RouterTransactorSession) SelfPermit(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermit is a paid mutator transaction binding the contract method 0xf3995c67.
Solidity: function selfPermit(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactorSession) SelfPermit2 ¶
func (_Router *RouterTransactorSession) SelfPermit2(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
SelfPermit2 is a paid mutator transaction binding the contract method 0x6cc781cd.
Solidity: function selfPermit2(address token, uint256 value, uint256 deadline, bytes signature) payable returns()
func (*RouterTransactorSession) SelfPermit2IfNecessary ¶
func (_Router *RouterTransactorSession) SelfPermit2IfNecessary(token common.Address, value *big.Int, deadline *big.Int, signature []byte) (*types.Transaction, error)
SelfPermit2IfNecessary is a paid mutator transaction binding the contract method 0x688ee44c.
Solidity: function selfPermit2IfNecessary(address token, uint256 value, uint256 deadline, bytes signature) payable returns()
func (*RouterTransactorSession) SelfPermitAllowed ¶
func (_Router *RouterTransactorSession) SelfPermitAllowed(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitAllowed is a paid mutator transaction binding the contract method 0x4659a494.
Solidity: function selfPermitAllowed(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactorSession) SelfPermitAllowedIfNecessary ¶
func (_Router *RouterTransactorSession) SelfPermitAllowedIfNecessary(token common.Address, nonce *big.Int, expiry *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitAllowedIfNecessary is a paid mutator transaction binding the contract method 0xa4a78f0c.
Solidity: function selfPermitAllowedIfNecessary(address token, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactorSession) SelfPermitIfNecessary ¶
func (_Router *RouterTransactorSession) SelfPermitIfNecessary(token common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
SelfPermitIfNecessary is a paid mutator transaction binding the contract method 0xc2e3140a.
Solidity: function selfPermitIfNecessary(address token, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) payable returns()
func (*RouterTransactorSession) Stake ¶
func (_Router *RouterTransactorSession) Stake(stakingPool common.Address, token common.Address, amount *big.Int, onBehalf common.Address) (*types.Transaction, error)
Stake is a paid mutator transaction binding the contract method 0x6291027c.
Solidity: function stake(address stakingPool, address token, uint256 amount, address onBehalf) returns()
func (*RouterTransactorSession) Swap ¶
func (_Router *RouterTransactorSession) Swap(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x2cc4081e.
Solidity: function swap(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline) payable returns((address,uint256) amountOut)
func (*RouterTransactorSession) SwapWithPermit ¶
func (_Router *RouterTransactorSession) SwapWithPermit(paths []IRouterSwapPath, amountOutMin *big.Int, deadline *big.Int, permit IRouterSplitPermitParams) (*types.Transaction, error)
SwapWithPermit is a paid mutator transaction binding the contract method 0xe84d494b.
Solidity: function swapWithPermit(((address,bytes,address,bytes)[],address,uint256)[] paths, uint256 amountOutMin, uint256 deadline, (address,uint256,uint256,uint8,bytes32,bytes32) permit) payable returns((address,uint256) amountOut)
type StablePool ¶
type StablePool struct { StablePoolCaller // Read-only binding to the contract StablePoolTransactor // Write-only binding to the contract StablePoolFilterer // Log filterer for contract events }
StablePool is an auto generated Go binding around an Ethereum contract.
func NewStablePool ¶
func NewStablePool(address common.Address, backend bind.ContractBackend) (*StablePool, error)
NewStablePool creates a new instance of StablePool, bound to a specific deployed contract.
type StablePoolApproval ¶
type StablePoolApproval struct { Owner common.Address Spender common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
StablePoolApproval represents a Approval event raised by the StablePool contract.
type StablePoolApprovalIterator ¶
type StablePoolApprovalIterator struct { Event *StablePoolApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the StablePool contract.
func (*StablePoolApprovalIterator) Close ¶
func (it *StablePoolApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolApprovalIterator) Error ¶
func (it *StablePoolApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolApprovalIterator) Next ¶
func (it *StablePoolApprovalIterator) 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 StablePoolBurn ¶
type StablePoolBurn struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Liquidity *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
StablePoolBurn represents a Burn event raised by the StablePool contract.
type StablePoolBurnIterator ¶
type StablePoolBurnIterator struct { Event *StablePoolBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the StablePool contract.
func (*StablePoolBurnIterator) Close ¶
func (it *StablePoolBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolBurnIterator) Error ¶
func (it *StablePoolBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolBurnIterator) Next ¶
func (it *StablePoolBurnIterator) 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 StablePoolCaller ¶
type StablePoolCaller struct {
// contains filtered or unexported fields
}
StablePoolCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStablePoolCaller ¶
func NewStablePoolCaller(address common.Address, caller bind.ContractCaller) (*StablePoolCaller, error)
NewStablePoolCaller creates a new read-only instance of StablePool, bound to a specific deployed contract.
func (*StablePoolCaller) Allowance ¶
func (_StablePool *StablePoolCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*StablePoolCaller) BalanceOf ¶
func (_StablePool *StablePoolCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*StablePoolCaller) DOMAINSEPARATOR ¶
func (_StablePool *StablePoolCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*StablePoolCaller) Decimals ¶
func (_StablePool *StablePoolCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*StablePoolCaller) GetAmountIn ¶
func (_StablePool *StablePoolCaller) GetAmountIn(opts *bind.CallOpts, _tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.
Solidity: function getAmountIn(address _tokenOut, uint256 _amountOut, address _sender) view returns(uint256 _amountIn)
func (*StablePoolCaller) GetAmountOut ¶
func (_StablePool *StablePoolCaller) GetAmountOut(opts *bind.CallOpts, _tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.
Solidity: function getAmountOut(address _tokenIn, uint256 _amountIn, address _sender) view returns(uint256 _amountOut)
func (*StablePoolCaller) GetAssets ¶
GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.
Solidity: function getAssets() view returns(address[] assets)
func (*StablePoolCaller) GetProtocolFee ¶
GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.
Solidity: function getProtocolFee() view returns(uint24 _protocolFee)
func (*StablePoolCaller) GetReserves ¶
func (_StablePool *StablePoolCaller) GetReserves(opts *bind.CallOpts) (struct { Reserve0 *big.Int Reserve1 *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1)
func (*StablePoolCaller) GetSwapFee ¶
func (_StablePool *StablePoolCaller) GetSwapFee(opts *bind.CallOpts, _sender common.Address, _tokenIn common.Address, _tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.
Solidity: function getSwapFee(address _sender, address _tokenIn, address _tokenOut, bytes data) view returns(uint24 _swapFee)
func (*StablePoolCaller) InvariantLast ¶
InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.
Solidity: function invariantLast() view returns(uint256)
func (*StablePoolCaller) Master ¶
Master is a free data retrieval call binding the contract method 0xee97f7f3.
Solidity: function master() view returns(address)
func (*StablePoolCaller) Name ¶
func (_StablePool *StablePoolCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*StablePoolCaller) Nonces ¶
func (_StablePool *StablePoolCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*StablePoolCaller) PoolType ¶
func (_StablePool *StablePoolCaller) PoolType(opts *bind.CallOpts) (uint16, error)
PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.
Solidity: function poolType() view returns(uint16)
func (*StablePoolCaller) Reserve0 ¶
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*StablePoolCaller) Reserve1 ¶
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*StablePoolCaller) SupportsInterface ¶
func (_StablePool *StablePoolCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (*StablePoolCaller) Symbol ¶
func (_StablePool *StablePoolCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*StablePoolCaller) Token0 ¶
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*StablePoolCaller) Token0PrecisionMultiplier ¶
func (_StablePool *StablePoolCaller) Token0PrecisionMultiplier(opts *bind.CallOpts) (*big.Int, error)
Token0PrecisionMultiplier is a free data retrieval call binding the contract method 0xbaa8c7cb.
Solidity: function token0PrecisionMultiplier() view returns(uint256)
func (*StablePoolCaller) Token1 ¶
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*StablePoolCaller) Token1PrecisionMultiplier ¶
func (_StablePool *StablePoolCaller) Token1PrecisionMultiplier(opts *bind.CallOpts) (*big.Int, error)
Token1PrecisionMultiplier is a free data retrieval call binding the contract method 0x4e25dc47.
Solidity: function token1PrecisionMultiplier() view returns(uint256)
func (*StablePoolCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type StablePoolCallerRaw ¶
type StablePoolCallerRaw struct {
Contract *StablePoolCaller // Generic read-only contract binding to access the raw methods on
}
StablePoolCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StablePoolCallerRaw) Call ¶
func (_StablePool *StablePoolCallerRaw) 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 StablePoolCallerSession ¶
type StablePoolCallerSession struct { Contract *StablePoolCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StablePoolCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StablePoolCallerSession) Allowance ¶
func (_StablePool *StablePoolCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*StablePoolCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*StablePoolCallerSession) DOMAINSEPARATOR ¶
func (_StablePool *StablePoolCallerSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*StablePoolCallerSession) Decimals ¶
func (_StablePool *StablePoolCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*StablePoolCallerSession) GetAmountIn ¶
func (_StablePool *StablePoolCallerSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.
Solidity: function getAmountIn(address _tokenOut, uint256 _amountOut, address _sender) view returns(uint256 _amountIn)
func (*StablePoolCallerSession) GetAmountOut ¶
func (_StablePool *StablePoolCallerSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.
Solidity: function getAmountOut(address _tokenIn, uint256 _amountIn, address _sender) view returns(uint256 _amountOut)
func (*StablePoolCallerSession) GetAssets ¶
func (_StablePool *StablePoolCallerSession) GetAssets() ([]common.Address, error)
GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.
Solidity: function getAssets() view returns(address[] assets)
func (*StablePoolCallerSession) GetProtocolFee ¶
func (_StablePool *StablePoolCallerSession) GetProtocolFee() (*big.Int, error)
GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.
Solidity: function getProtocolFee() view returns(uint24 _protocolFee)
func (*StablePoolCallerSession) GetReserves ¶
func (_StablePool *StablePoolCallerSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1)
func (*StablePoolCallerSession) GetSwapFee ¶
func (_StablePool *StablePoolCallerSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.
Solidity: function getSwapFee(address _sender, address _tokenIn, address _tokenOut, bytes data) view returns(uint24 _swapFee)
func (*StablePoolCallerSession) InvariantLast ¶
func (_StablePool *StablePoolCallerSession) InvariantLast() (*big.Int, error)
InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.
Solidity: function invariantLast() view returns(uint256)
func (*StablePoolCallerSession) Master ¶
func (_StablePool *StablePoolCallerSession) Master() (common.Address, error)
Master is a free data retrieval call binding the contract method 0xee97f7f3.
Solidity: function master() view returns(address)
func (*StablePoolCallerSession) Name ¶
func (_StablePool *StablePoolCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*StablePoolCallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*StablePoolCallerSession) PoolType ¶
func (_StablePool *StablePoolCallerSession) PoolType() (uint16, error)
PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.
Solidity: function poolType() view returns(uint16)
func (*StablePoolCallerSession) Reserve0 ¶
func (_StablePool *StablePoolCallerSession) Reserve0() (*big.Int, error)
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*StablePoolCallerSession) Reserve1 ¶
func (_StablePool *StablePoolCallerSession) Reserve1() (*big.Int, error)
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*StablePoolCallerSession) SupportsInterface ¶
func (_StablePool *StablePoolCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (*StablePoolCallerSession) Symbol ¶
func (_StablePool *StablePoolCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*StablePoolCallerSession) Token0 ¶
func (_StablePool *StablePoolCallerSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*StablePoolCallerSession) Token0PrecisionMultiplier ¶
func (_StablePool *StablePoolCallerSession) Token0PrecisionMultiplier() (*big.Int, error)
Token0PrecisionMultiplier is a free data retrieval call binding the contract method 0xbaa8c7cb.
Solidity: function token0PrecisionMultiplier() view returns(uint256)
func (*StablePoolCallerSession) Token1 ¶
func (_StablePool *StablePoolCallerSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*StablePoolCallerSession) Token1PrecisionMultiplier ¶
func (_StablePool *StablePoolCallerSession) Token1PrecisionMultiplier() (*big.Int, error)
Token1PrecisionMultiplier is a free data retrieval call binding the contract method 0x4e25dc47.
Solidity: function token1PrecisionMultiplier() view returns(uint256)
func (*StablePoolCallerSession) TotalSupply ¶
func (_StablePool *StablePoolCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type StablePoolFactory ¶
type StablePoolFactory struct { StablePoolFactoryCaller // Read-only binding to the contract StablePoolFactoryTransactor // Write-only binding to the contract StablePoolFactoryFilterer // Log filterer for contract events }
StablePoolFactory is an auto generated Go binding around an Ethereum contract.
func NewStablePoolFactory ¶
func NewStablePoolFactory(address common.Address, backend bind.ContractBackend) (*StablePoolFactory, error)
NewStablePoolFactory creates a new instance of StablePoolFactory, bound to a specific deployed contract.
type StablePoolFactoryCaller ¶
type StablePoolFactoryCaller struct {
// contains filtered or unexported fields
}
StablePoolFactoryCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStablePoolFactoryCaller ¶
func NewStablePoolFactoryCaller(address common.Address, caller bind.ContractCaller) (*StablePoolFactoryCaller, error)
NewStablePoolFactoryCaller creates a new read-only instance of StablePoolFactory, bound to a specific deployed contract.
func (*StablePoolFactoryCaller) GetDeployData ¶
func (_StablePoolFactory *StablePoolFactoryCaller) GetDeployData(opts *bind.CallOpts) ([]byte, error)
GetDeployData is a free data retrieval call binding the contract method 0xd039f622.
Solidity: function getDeployData() view returns(bytes deployData)
func (*StablePoolFactoryCaller) GetPool ¶
func (_StablePoolFactory *StablePoolFactoryCaller) GetPool(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPool is a free data retrieval call binding the contract method 0x531aa03e.
Solidity: function getPool(address , address ) view returns(address)
func (*StablePoolFactoryCaller) GetSwapFee ¶
func (_StablePoolFactory *StablePoolFactoryCaller) GetSwapFee(opts *bind.CallOpts, pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.
Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)
type StablePoolFactoryCallerRaw ¶
type StablePoolFactoryCallerRaw struct {
Contract *StablePoolFactoryCaller // Generic read-only contract binding to access the raw methods on
}
StablePoolFactoryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StablePoolFactoryCallerRaw) Call ¶
func (_StablePoolFactory *StablePoolFactoryCallerRaw) 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 StablePoolFactoryCallerSession ¶
type StablePoolFactoryCallerSession struct { Contract *StablePoolFactoryCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StablePoolFactoryCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*StablePoolFactoryCallerSession) GetDeployData ¶
func (_StablePoolFactory *StablePoolFactoryCallerSession) GetDeployData() ([]byte, error)
GetDeployData is a free data retrieval call binding the contract method 0xd039f622.
Solidity: function getDeployData() view returns(bytes deployData)
func (*StablePoolFactoryCallerSession) GetPool ¶
func (_StablePoolFactory *StablePoolFactoryCallerSession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPool is a free data retrieval call binding the contract method 0x531aa03e.
Solidity: function getPool(address , address ) view returns(address)
func (*StablePoolFactoryCallerSession) GetSwapFee ¶
func (_StablePoolFactory *StablePoolFactoryCallerSession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.
Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)
type StablePoolFactoryFilterer ¶
type StablePoolFactoryFilterer struct {
// contains filtered or unexported fields
}
StablePoolFactoryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStablePoolFactoryFilterer ¶
func NewStablePoolFactoryFilterer(address common.Address, filterer bind.ContractFilterer) (*StablePoolFactoryFilterer, error)
NewStablePoolFactoryFilterer creates a new log filterer instance of StablePoolFactory, bound to a specific deployed contract.
func (*StablePoolFactoryFilterer) FilterPoolCreated ¶
func (_StablePoolFactory *StablePoolFactoryFilterer) FilterPoolCreated(opts *bind.FilterOpts, token0 []common.Address, token1 []common.Address) (*StablePoolFactoryPoolCreatedIterator, error)
FilterPoolCreated is a free log retrieval operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.
Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)
func (*StablePoolFactoryFilterer) ParsePoolCreated ¶
func (_StablePoolFactory *StablePoolFactoryFilterer) ParsePoolCreated(log types.Log) (*StablePoolFactoryPoolCreated, error)
ParsePoolCreated is a log parse operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.
Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)
func (*StablePoolFactoryFilterer) WatchPoolCreated ¶
func (_StablePoolFactory *StablePoolFactoryFilterer) WatchPoolCreated(opts *bind.WatchOpts, sink chan<- *StablePoolFactoryPoolCreated, token0 []common.Address, token1 []common.Address) (event.Subscription, error)
WatchPoolCreated is a free log subscription operation binding the contract event 0x9c5d829b9b23efc461f9aeef91979ec04bb903feb3bee4f26d22114abfc7335b.
Solidity: event PoolCreated(address indexed token0, address indexed token1, address pool)
type StablePoolFactoryPoolCreated ¶
type StablePoolFactoryPoolCreated struct { Token0 common.Address Token1 common.Address Pool common.Address Raw types.Log // Blockchain specific contextual infos }
StablePoolFactoryPoolCreated represents a PoolCreated event raised by the StablePoolFactory contract.
type StablePoolFactoryPoolCreatedIterator ¶
type StablePoolFactoryPoolCreatedIterator struct { Event *StablePoolFactoryPoolCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolFactoryPoolCreatedIterator is returned from FilterPoolCreated and is used to iterate over the raw logs and unpacked data for PoolCreated events raised by the StablePoolFactory contract.
func (*StablePoolFactoryPoolCreatedIterator) Close ¶
func (it *StablePoolFactoryPoolCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolFactoryPoolCreatedIterator) Error ¶
func (it *StablePoolFactoryPoolCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolFactoryPoolCreatedIterator) Next ¶
func (it *StablePoolFactoryPoolCreatedIterator) 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 StablePoolFactoryRaw ¶
type StablePoolFactoryRaw struct {
Contract *StablePoolFactory // Generic contract binding to access the raw methods on
}
StablePoolFactoryRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StablePoolFactoryRaw) Call ¶
func (_StablePoolFactory *StablePoolFactoryRaw) 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 (*StablePoolFactoryRaw) Transact ¶
func (_StablePoolFactory *StablePoolFactoryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StablePoolFactoryRaw) Transfer ¶
func (_StablePoolFactory *StablePoolFactoryRaw) 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 StablePoolFactorySession ¶
type StablePoolFactorySession struct { Contract *StablePoolFactory // 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 }
StablePoolFactorySession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StablePoolFactorySession) CreatePool ¶
func (_StablePoolFactory *StablePoolFactorySession) CreatePool(data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.
Solidity: function createPool(bytes data) returns(address pool)
func (*StablePoolFactorySession) GetDeployData ¶
func (_StablePoolFactory *StablePoolFactorySession) GetDeployData() ([]byte, error)
GetDeployData is a free data retrieval call binding the contract method 0xd039f622.
Solidity: function getDeployData() view returns(bytes deployData)
func (*StablePoolFactorySession) GetPool ¶
func (_StablePoolFactory *StablePoolFactorySession) GetPool(arg0 common.Address, arg1 common.Address) (common.Address, error)
GetPool is a free data retrieval call binding the contract method 0x531aa03e.
Solidity: function getPool(address , address ) view returns(address)
func (*StablePoolFactorySession) GetSwapFee ¶
func (_StablePoolFactory *StablePoolFactorySession) GetSwapFee(pool common.Address, sender common.Address, tokenIn common.Address, tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x4625a94d.
Solidity: function getSwapFee(address pool, address sender, address tokenIn, address tokenOut, bytes data) view returns(uint24 swapFee)
type StablePoolFactoryTransactor ¶
type StablePoolFactoryTransactor struct {
// contains filtered or unexported fields
}
StablePoolFactoryTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStablePoolFactoryTransactor ¶
func NewStablePoolFactoryTransactor(address common.Address, transactor bind.ContractTransactor) (*StablePoolFactoryTransactor, error)
NewStablePoolFactoryTransactor creates a new write-only instance of StablePoolFactory, bound to a specific deployed contract.
func (*StablePoolFactoryTransactor) CreatePool ¶
func (_StablePoolFactory *StablePoolFactoryTransactor) CreatePool(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.
Solidity: function createPool(bytes data) returns(address pool)
type StablePoolFactoryTransactorRaw ¶
type StablePoolFactoryTransactorRaw struct {
Contract *StablePoolFactoryTransactor // Generic write-only contract binding to access the raw methods on
}
StablePoolFactoryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StablePoolFactoryTransactorRaw) Transact ¶
func (_StablePoolFactory *StablePoolFactoryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StablePoolFactoryTransactorRaw) Transfer ¶
func (_StablePoolFactory *StablePoolFactoryTransactorRaw) 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 StablePoolFactoryTransactorSession ¶
type StablePoolFactoryTransactorSession struct { Contract *StablePoolFactoryTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StablePoolFactoryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StablePoolFactoryTransactorSession) CreatePool ¶
func (_StablePoolFactory *StablePoolFactoryTransactorSession) CreatePool(data []byte) (*types.Transaction, error)
CreatePool is a paid mutator transaction binding the contract method 0x13b8683f.
Solidity: function createPool(bytes data) returns(address pool)
type StablePoolFilterer ¶
type StablePoolFilterer struct {
// contains filtered or unexported fields
}
StablePoolFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStablePoolFilterer ¶
func NewStablePoolFilterer(address common.Address, filterer bind.ContractFilterer) (*StablePoolFilterer, error)
NewStablePoolFilterer creates a new log filterer instance of StablePool, bound to a specific deployed contract.
func (*StablePoolFilterer) FilterApproval ¶
func (_StablePool *StablePoolFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StablePoolApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*StablePoolFilterer) FilterBurn ¶
func (_StablePool *StablePoolFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*StablePoolBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xd175a80c109434bb89948928ab2475a6647c94244cb70002197896423c883363.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*StablePoolFilterer) FilterMint ¶
func (_StablePool *StablePoolFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*StablePoolMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0xa8137fff86647d8a402117b9c5dbda627f721d3773338fb9678c83e54ed39080.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*StablePoolFilterer) FilterSwap ¶
func (_StablePool *StablePoolFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*StablePoolSwapIterator, error)
FilterSwap is a free log retrieval operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*StablePoolFilterer) FilterSync ¶
func (_StablePool *StablePoolFilterer) FilterSync(opts *bind.FilterOpts) (*StablePoolSyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*StablePoolFilterer) FilterTransfer ¶
func (_StablePool *StablePoolFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StablePoolTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*StablePoolFilterer) ParseApproval ¶
func (_StablePool *StablePoolFilterer) ParseApproval(log types.Log) (*StablePoolApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*StablePoolFilterer) ParseBurn ¶
func (_StablePool *StablePoolFilterer) ParseBurn(log types.Log) (*StablePoolBurn, error)
ParseBurn is a log parse operation binding the contract event 0xd175a80c109434bb89948928ab2475a6647c94244cb70002197896423c883363.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*StablePoolFilterer) ParseMint ¶
func (_StablePool *StablePoolFilterer) ParseMint(log types.Log) (*StablePoolMint, error)
ParseMint is a log parse operation binding the contract event 0xa8137fff86647d8a402117b9c5dbda627f721d3773338fb9678c83e54ed39080.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*StablePoolFilterer) ParseSwap ¶
func (_StablePool *StablePoolFilterer) ParseSwap(log types.Log) (*StablePoolSwap, error)
ParseSwap is a log parse operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*StablePoolFilterer) ParseSync ¶
func (_StablePool *StablePoolFilterer) ParseSync(log types.Log) (*StablePoolSync, error)
ParseSync is a log parse operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*StablePoolFilterer) ParseTransfer ¶
func (_StablePool *StablePoolFilterer) ParseTransfer(log types.Log) (*StablePoolTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*StablePoolFilterer) WatchApproval ¶
func (_StablePool *StablePoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StablePoolApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*StablePoolFilterer) WatchBurn ¶
func (_StablePool *StablePoolFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *StablePoolBurn, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xd175a80c109434bb89948928ab2475a6647c94244cb70002197896423c883363.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*StablePoolFilterer) WatchMint ¶
func (_StablePool *StablePoolFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *StablePoolMint, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0xa8137fff86647d8a402117b9c5dbda627f721d3773338fb9678c83e54ed39080.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1, uint256 liquidity, address indexed to)
func (*StablePoolFilterer) WatchSwap ¶
func (_StablePool *StablePoolFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *StablePoolSwap, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchSwap is a free log subscription operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*StablePoolFilterer) WatchSync ¶
func (_StablePool *StablePoolFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *StablePoolSync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*StablePoolFilterer) WatchTransfer ¶
func (_StablePool *StablePoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StablePoolTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
type StablePoolMint ¶
type StablePoolMint struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Liquidity *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
StablePoolMint represents a Mint event raised by the StablePool contract.
type StablePoolMintIterator ¶
type StablePoolMintIterator struct { Event *StablePoolMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the StablePool contract.
func (*StablePoolMintIterator) Close ¶
func (it *StablePoolMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolMintIterator) Error ¶
func (it *StablePoolMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolMintIterator) Next ¶
func (it *StablePoolMintIterator) 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 StablePoolRaw ¶
type StablePoolRaw struct {
Contract *StablePool // Generic contract binding to access the raw methods on
}
StablePoolRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StablePoolRaw) Call ¶
func (_StablePool *StablePoolRaw) 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 (*StablePoolRaw) Transact ¶
func (_StablePool *StablePoolRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StablePoolRaw) Transfer ¶
func (_StablePool *StablePoolRaw) 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 StablePoolSession ¶
type StablePoolSession struct { Contract *StablePool // 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 }
StablePoolSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StablePoolSession) Allowance ¶
func (_StablePool *StablePoolSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*StablePoolSession) Approve ¶
func (_StablePool *StablePoolSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*StablePoolSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*StablePoolSession) Burn ¶
func (_StablePool *StablePoolSession) Burn(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf66eab5b.
Solidity: function burn(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256)[] _amounts)
func (*StablePoolSession) BurnSingle ¶
func (_StablePool *StablePoolSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.
Solidity: function burnSingle(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*StablePoolSession) DOMAINSEPARATOR ¶
func (_StablePool *StablePoolSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*StablePoolSession) Decimals ¶
func (_StablePool *StablePoolSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*StablePoolSession) GetAmountIn ¶
func (_StablePool *StablePoolSession) GetAmountIn(_tokenOut common.Address, _amountOut *big.Int, _sender common.Address) (*big.Int, error)
GetAmountIn is a free data retrieval call binding the contract method 0xa287c795.
Solidity: function getAmountIn(address _tokenOut, uint256 _amountOut, address _sender) view returns(uint256 _amountIn)
func (*StablePoolSession) GetAmountOut ¶
func (_StablePool *StablePoolSession) GetAmountOut(_tokenIn common.Address, _amountIn *big.Int, _sender common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xff9c8ac6.
Solidity: function getAmountOut(address _tokenIn, uint256 _amountIn, address _sender) view returns(uint256 _amountOut)
func (*StablePoolSession) GetAssets ¶
func (_StablePool *StablePoolSession) GetAssets() ([]common.Address, error)
GetAssets is a free data retrieval call binding the contract method 0x67e4ac2c.
Solidity: function getAssets() view returns(address[] assets)
func (*StablePoolSession) GetProtocolFee ¶
func (_StablePool *StablePoolSession) GetProtocolFee() (*big.Int, error)
GetProtocolFee is a free data retrieval call binding the contract method 0xa5a41031.
Solidity: function getProtocolFee() view returns(uint24 _protocolFee)
func (*StablePoolSession) GetReserves ¶
func (_StablePool *StablePoolSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1)
func (*StablePoolSession) GetSwapFee ¶
func (_StablePool *StablePoolSession) GetSwapFee(_sender common.Address, _tokenIn common.Address, _tokenOut common.Address, data []byte) (*big.Int, error)
GetSwapFee is a free data retrieval call binding the contract method 0x8b4c5470.
Solidity: function getSwapFee(address _sender, address _tokenIn, address _tokenOut, bytes data) view returns(uint24 _swapFee)
func (*StablePoolSession) InvariantLast ¶
func (_StablePool *StablePoolSession) InvariantLast() (*big.Int, error)
InvariantLast is a free data retrieval call binding the contract method 0x07f293f7.
Solidity: function invariantLast() view returns(uint256)
func (*StablePoolSession) Master ¶
func (_StablePool *StablePoolSession) Master() (common.Address, error)
Master is a free data retrieval call binding the contract method 0xee97f7f3.
Solidity: function master() view returns(address)
func (*StablePoolSession) Mint ¶
func (_StablePool *StablePoolSession) Mint(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x03e7286a.
Solidity: function mint(bytes _data, address _sender, address _callback, bytes _callbackData) returns(uint256)
func (*StablePoolSession) Name ¶
func (_StablePool *StablePoolSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*StablePoolSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*StablePoolSession) Permit ¶
func (_StablePool *StablePoolSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address _owner, address _spender, uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()
func (*StablePoolSession) Permit2 ¶
func (_StablePool *StablePoolSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _signature []byte) (*types.Transaction, error)
Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.
Solidity: function permit2(address _owner, address _spender, uint256 _amount, uint256 _deadline, bytes _signature) returns()
func (*StablePoolSession) PoolType ¶
func (_StablePool *StablePoolSession) PoolType() (uint16, error)
PoolType is a free data retrieval call binding the contract method 0xb1dd61b6.
Solidity: function poolType() view returns(uint16)
func (*StablePoolSession) Reserve0 ¶
func (_StablePool *StablePoolSession) Reserve0() (*big.Int, error)
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*StablePoolSession) Reserve1 ¶
func (_StablePool *StablePoolSession) Reserve1() (*big.Int, error)
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*StablePoolSession) SupportsInterface ¶
func (_StablePool *StablePoolSession) SupportsInterface(interfaceID [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)
func (*StablePoolSession) Swap ¶
func (_StablePool *StablePoolSession) Swap(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x7132bb7f.
Solidity: function swap(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*StablePoolSession) Symbol ¶
func (_StablePool *StablePoolSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*StablePoolSession) Token0 ¶
func (_StablePool *StablePoolSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*StablePoolSession) Token0PrecisionMultiplier ¶
func (_StablePool *StablePoolSession) Token0PrecisionMultiplier() (*big.Int, error)
Token0PrecisionMultiplier is a free data retrieval call binding the contract method 0xbaa8c7cb.
Solidity: function token0PrecisionMultiplier() view returns(uint256)
func (*StablePoolSession) Token1 ¶
func (_StablePool *StablePoolSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*StablePoolSession) Token1PrecisionMultiplier ¶
func (_StablePool *StablePoolSession) Token1PrecisionMultiplier() (*big.Int, error)
Token1PrecisionMultiplier is a free data retrieval call binding the contract method 0x4e25dc47.
Solidity: function token1PrecisionMultiplier() view returns(uint256)
func (*StablePoolSession) TotalSupply ¶
func (_StablePool *StablePoolSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*StablePoolSession) Transfer ¶
func (_StablePool *StablePoolSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _amount) returns(bool)
func (*StablePoolSession) TransferFrom ¶
func (_StablePool *StablePoolSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _amount) returns(bool)
type StablePoolSwap ¶
type StablePoolSwap struct { Sender common.Address Amount0In *big.Int Amount1In *big.Int Amount0Out *big.Int Amount1Out *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
StablePoolSwap represents a Swap event raised by the StablePool contract.
type StablePoolSwapIterator ¶
type StablePoolSwapIterator struct { Event *StablePoolSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the StablePool contract.
func (*StablePoolSwapIterator) Close ¶
func (it *StablePoolSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolSwapIterator) Error ¶
func (it *StablePoolSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolSwapIterator) Next ¶
func (it *StablePoolSwapIterator) 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 StablePoolSync ¶
type StablePoolSync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
StablePoolSync represents a Sync event raised by the StablePool contract.
type StablePoolSyncIterator ¶
type StablePoolSyncIterator struct { Event *StablePoolSync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the StablePool contract.
func (*StablePoolSyncIterator) Close ¶
func (it *StablePoolSyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolSyncIterator) Error ¶
func (it *StablePoolSyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolSyncIterator) Next ¶
func (it *StablePoolSyncIterator) 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 StablePoolTransactor ¶
type StablePoolTransactor struct {
// contains filtered or unexported fields
}
StablePoolTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStablePoolTransactor ¶
func NewStablePoolTransactor(address common.Address, transactor bind.ContractTransactor) (*StablePoolTransactor, error)
NewStablePoolTransactor creates a new write-only instance of StablePool, bound to a specific deployed contract.
func (*StablePoolTransactor) Approve ¶
func (_StablePool *StablePoolTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*StablePoolTransactor) Burn ¶
func (_StablePool *StablePoolTransactor) Burn(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf66eab5b.
Solidity: function burn(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256)[] _amounts)
func (*StablePoolTransactor) BurnSingle ¶
func (_StablePool *StablePoolTransactor) BurnSingle(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.
Solidity: function burnSingle(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*StablePoolTransactor) Mint ¶
func (_StablePool *StablePoolTransactor) Mint(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x03e7286a.
Solidity: function mint(bytes _data, address _sender, address _callback, bytes _callbackData) returns(uint256)
func (*StablePoolTransactor) Permit ¶
func (_StablePool *StablePoolTransactor) Permit(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address _owner, address _spender, uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()
func (*StablePoolTransactor) Permit2 ¶
func (_StablePool *StablePoolTransactor) Permit2(opts *bind.TransactOpts, _owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _signature []byte) (*types.Transaction, error)
Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.
Solidity: function permit2(address _owner, address _spender, uint256 _amount, uint256 _deadline, bytes _signature) returns()
func (*StablePoolTransactor) Swap ¶
func (_StablePool *StablePoolTransactor) Swap(opts *bind.TransactOpts, _data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x7132bb7f.
Solidity: function swap(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*StablePoolTransactor) Transfer ¶
func (_StablePool *StablePoolTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _amount) returns(bool)
func (*StablePoolTransactor) TransferFrom ¶
func (_StablePool *StablePoolTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _amount) returns(bool)
type StablePoolTransactorRaw ¶
type StablePoolTransactorRaw struct {
Contract *StablePoolTransactor // Generic write-only contract binding to access the raw methods on
}
StablePoolTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StablePoolTransactorRaw) Transact ¶
func (_StablePool *StablePoolTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StablePoolTransactorRaw) Transfer ¶
func (_StablePool *StablePoolTransactorRaw) 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 StablePoolTransactorSession ¶
type StablePoolTransactorSession struct { Contract *StablePoolTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StablePoolTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StablePoolTransactorSession) Approve ¶
func (_StablePool *StablePoolTransactorSession) Approve(_spender common.Address, _amount *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address _spender, uint256 _amount) returns(bool)
func (*StablePoolTransactorSession) Burn ¶
func (_StablePool *StablePoolTransactorSession) Burn(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0xf66eab5b.
Solidity: function burn(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256)[] _amounts)
func (*StablePoolTransactorSession) BurnSingle ¶
func (_StablePool *StablePoolTransactorSession) BurnSingle(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
BurnSingle is a paid mutator transaction binding the contract method 0x27b0bcea.
Solidity: function burnSingle(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*StablePoolTransactorSession) Mint ¶
func (_StablePool *StablePoolTransactorSession) Mint(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x03e7286a.
Solidity: function mint(bytes _data, address _sender, address _callback, bytes _callbackData) returns(uint256)
func (*StablePoolTransactorSession) Permit ¶
func (_StablePool *StablePoolTransactorSession) Permit(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _v uint8, _r [32]byte, _s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address _owner, address _spender, uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s) returns()
func (*StablePoolTransactorSession) Permit2 ¶
func (_StablePool *StablePoolTransactorSession) Permit2(_owner common.Address, _spender common.Address, _amount *big.Int, _deadline *big.Int, _signature []byte) (*types.Transaction, error)
Permit2 is a paid mutator transaction binding the contract method 0x2c0198cc.
Solidity: function permit2(address _owner, address _spender, uint256 _amount, uint256 _deadline, bytes _signature) returns()
func (*StablePoolTransactorSession) Swap ¶
func (_StablePool *StablePoolTransactorSession) Swap(_data []byte, _sender common.Address, _callback common.Address, _callbackData []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x7132bb7f.
Solidity: function swap(bytes _data, address _sender, address _callback, bytes _callbackData) returns((address,uint256) _tokenAmount)
func (*StablePoolTransactorSession) Transfer ¶
func (_StablePool *StablePoolTransactorSession) Transfer(_to common.Address, _amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address _to, uint256 _amount) returns(bool)
func (*StablePoolTransactorSession) TransferFrom ¶
func (_StablePool *StablePoolTransactorSession) TransferFrom(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address _from, address _to, uint256 _amount) returns(bool)
type StablePoolTransfer ¶
type StablePoolTransfer struct { From common.Address To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
StablePoolTransfer represents a Transfer event raised by the StablePool contract.
type StablePoolTransferIterator ¶
type StablePoolTransferIterator struct { Event *StablePoolTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StablePoolTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the StablePool contract.
func (*StablePoolTransferIterator) Close ¶
func (it *StablePoolTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StablePoolTransferIterator) Error ¶
func (it *StablePoolTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StablePoolTransferIterator) Next ¶
func (it *StablePoolTransferIterator) 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 SyncSwapRouterTokenInput ¶
SyncSwapRouterTokenInput is an auto generated low-level Go binding around an user-defined struct.
type Vault ¶
type Vault struct { VaultCaller // Read-only binding to the contract VaultTransactor // Write-only binding to the contract VaultFilterer // Log filterer for contract events }
Vault is an auto generated Go binding around an Ethereum contract.
type VaultCaller ¶
type VaultCaller struct {
// contains filtered or unexported fields
}
VaultCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewVaultCaller ¶
func NewVaultCaller(address common.Address, caller bind.ContractCaller) (*VaultCaller, error)
NewVaultCaller creates a new read-only instance of Vault, bound to a specific deployed contract.
func (*VaultCaller) BalanceOf ¶
func (_Vault *VaultCaller) BalanceOf(opts *bind.CallOpts, token common.Address, account common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0xf7888aec.
Solidity: function balanceOf(address token, address account) view returns(uint256 balance)
func (*VaultCaller) ERC3156CALLBACKSUCCESS ¶
func (_Vault *VaultCaller) ERC3156CALLBACKSUCCESS(opts *bind.CallOpts) ([32]byte, error)
ERC3156CALLBACKSUCCESS is a free data retrieval call binding the contract method 0xec85b12b.
Solidity: function ERC3156_CALLBACK_SUCCESS() view returns(bytes32)
func (*VaultCaller) FlashFee ¶
func (_Vault *VaultCaller) FlashFee(opts *bind.CallOpts, arg0 common.Address, amount *big.Int) (*big.Int, error)
FlashFee is a free data retrieval call binding the contract method 0xd9d98ce4.
Solidity: function flashFee(address , uint256 amount) view returns(uint256)
func (*VaultCaller) FlashLoanFeePercentage ¶
FlashLoanFeePercentage is a free data retrieval call binding the contract method 0xc499f8ce.
Solidity: function flashLoanFeePercentage() view returns(uint256)
func (*VaultCaller) FlashLoanFeeRecipient ¶
FlashLoanFeeRecipient is a free data retrieval call binding the contract method 0xa16e5112.
Solidity: function flashLoanFeeRecipient() view returns(address)
func (*VaultCaller) MaxFlashLoan ¶
func (_Vault *VaultCaller) MaxFlashLoan(opts *bind.CallOpts, token common.Address) (*big.Int, error)
MaxFlashLoan is a free data retrieval call binding the contract method 0x613255ab.
Solidity: function maxFlashLoan(address token) view returns(uint256)
func (*VaultCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*VaultCaller) Paused ¶
func (_Vault *VaultCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
type VaultCallerRaw ¶
type VaultCallerRaw struct {
Contract *VaultCaller // Generic read-only contract binding to access the raw methods on
}
VaultCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*VaultCallerRaw) Call ¶
func (_Vault *VaultCallerRaw) 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 VaultCallerSession ¶
type VaultCallerSession struct { Contract *VaultCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
VaultCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*VaultCallerSession) BalanceOf ¶
func (_Vault *VaultCallerSession) BalanceOf(token common.Address, account common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0xf7888aec.
Solidity: function balanceOf(address token, address account) view returns(uint256 balance)
func (*VaultCallerSession) ERC3156CALLBACKSUCCESS ¶
func (_Vault *VaultCallerSession) ERC3156CALLBACKSUCCESS() ([32]byte, error)
ERC3156CALLBACKSUCCESS is a free data retrieval call binding the contract method 0xec85b12b.
Solidity: function ERC3156_CALLBACK_SUCCESS() view returns(bytes32)
func (*VaultCallerSession) FlashFee ¶
FlashFee is a free data retrieval call binding the contract method 0xd9d98ce4.
Solidity: function flashFee(address , uint256 amount) view returns(uint256)
func (*VaultCallerSession) FlashLoanFeePercentage ¶
func (_Vault *VaultCallerSession) FlashLoanFeePercentage() (*big.Int, error)
FlashLoanFeePercentage is a free data retrieval call binding the contract method 0xc499f8ce.
Solidity: function flashLoanFeePercentage() view returns(uint256)
func (*VaultCallerSession) FlashLoanFeeRecipient ¶
func (_Vault *VaultCallerSession) FlashLoanFeeRecipient() (common.Address, error)
FlashLoanFeeRecipient is a free data retrieval call binding the contract method 0xa16e5112.
Solidity: function flashLoanFeeRecipient() view returns(address)
func (*VaultCallerSession) MaxFlashLoan ¶
MaxFlashLoan is a free data retrieval call binding the contract method 0x613255ab.
Solidity: function maxFlashLoan(address token) view returns(uint256)
func (*VaultCallerSession) Owner ¶
func (_Vault *VaultCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*VaultCallerSession) Paused ¶
func (_Vault *VaultCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
type VaultFilterer ¶
type VaultFilterer struct {
// contains filtered or unexported fields
}
VaultFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewVaultFilterer ¶
func NewVaultFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultFilterer, error)
NewVaultFilterer creates a new log filterer instance of Vault, bound to a specific deployed contract.
func (*VaultFilterer) FilterFlashLoan ¶
func (_Vault *VaultFilterer) FilterFlashLoan(opts *bind.FilterOpts, recipient []common.Address, token []common.Address) (*VaultFlashLoanIterator, error)
FilterFlashLoan is a free log retrieval operation binding the contract event 0x0d7d75e01ab95780d3cd1c8ec0dd6c2ce19e3a20427eec8bf53283b6fb8e95f0.
Solidity: event FlashLoan(address indexed recipient, address indexed token, uint256 amount, uint256 feeAmount)
func (*VaultFilterer) FilterFlashLoanFeePercentageChanged ¶
func (_Vault *VaultFilterer) FilterFlashLoanFeePercentageChanged(opts *bind.FilterOpts) (*VaultFlashLoanFeePercentageChangedIterator, error)
FilterFlashLoanFeePercentageChanged is a free log retrieval operation binding the contract event 0x36e8f57c180167765b2da71700ae4d0d3237d63cd1552cefa8bafca7c1d3fc3d.
Solidity: event FlashLoanFeePercentageChanged(uint256 oldFlashLoanFeePercentage, uint256 newFlashLoanFeePercentage)
func (*VaultFilterer) FilterOwnershipTransferred ¶
func (_Vault *VaultFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*VaultOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*VaultFilterer) FilterPaused ¶
func (_Vault *VaultFilterer) FilterPaused(opts *bind.FilterOpts) (*VaultPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*VaultFilterer) FilterUnpaused ¶
func (_Vault *VaultFilterer) FilterUnpaused(opts *bind.FilterOpts) (*VaultUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*VaultFilterer) ParseFlashLoan ¶
func (_Vault *VaultFilterer) ParseFlashLoan(log types.Log) (*VaultFlashLoan, error)
ParseFlashLoan is a log parse operation binding the contract event 0x0d7d75e01ab95780d3cd1c8ec0dd6c2ce19e3a20427eec8bf53283b6fb8e95f0.
Solidity: event FlashLoan(address indexed recipient, address indexed token, uint256 amount, uint256 feeAmount)
func (*VaultFilterer) ParseFlashLoanFeePercentageChanged ¶
func (_Vault *VaultFilterer) ParseFlashLoanFeePercentageChanged(log types.Log) (*VaultFlashLoanFeePercentageChanged, error)
ParseFlashLoanFeePercentageChanged is a log parse operation binding the contract event 0x36e8f57c180167765b2da71700ae4d0d3237d63cd1552cefa8bafca7c1d3fc3d.
Solidity: event FlashLoanFeePercentageChanged(uint256 oldFlashLoanFeePercentage, uint256 newFlashLoanFeePercentage)
func (*VaultFilterer) ParseOwnershipTransferred ¶
func (_Vault *VaultFilterer) ParseOwnershipTransferred(log types.Log) (*VaultOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*VaultFilterer) ParsePaused ¶
func (_Vault *VaultFilterer) ParsePaused(log types.Log) (*VaultPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*VaultFilterer) ParseUnpaused ¶
func (_Vault *VaultFilterer) ParseUnpaused(log types.Log) (*VaultUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*VaultFilterer) WatchFlashLoan ¶
func (_Vault *VaultFilterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *VaultFlashLoan, recipient []common.Address, token []common.Address) (event.Subscription, error)
WatchFlashLoan is a free log subscription operation binding the contract event 0x0d7d75e01ab95780d3cd1c8ec0dd6c2ce19e3a20427eec8bf53283b6fb8e95f0.
Solidity: event FlashLoan(address indexed recipient, address indexed token, uint256 amount, uint256 feeAmount)
func (*VaultFilterer) WatchFlashLoanFeePercentageChanged ¶
func (_Vault *VaultFilterer) WatchFlashLoanFeePercentageChanged(opts *bind.WatchOpts, sink chan<- *VaultFlashLoanFeePercentageChanged) (event.Subscription, error)
WatchFlashLoanFeePercentageChanged is a free log subscription operation binding the contract event 0x36e8f57c180167765b2da71700ae4d0d3237d63cd1552cefa8bafca7c1d3fc3d.
Solidity: event FlashLoanFeePercentageChanged(uint256 oldFlashLoanFeePercentage, uint256 newFlashLoanFeePercentage)
func (*VaultFilterer) WatchOwnershipTransferred ¶
func (_Vault *VaultFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *VaultOwnershipTransferred, 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 (*VaultFilterer) WatchPaused ¶
func (_Vault *VaultFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *VaultPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*VaultFilterer) WatchUnpaused ¶
func (_Vault *VaultFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *VaultUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
type VaultFlashLoan ¶
type VaultFlashLoan struct { Recipient common.Address Token common.Address Amount *big.Int FeeAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultFlashLoan represents a FlashLoan event raised by the Vault contract.
type VaultFlashLoanFeePercentageChanged ¶
type VaultFlashLoanFeePercentageChanged struct { OldFlashLoanFeePercentage *big.Int NewFlashLoanFeePercentage *big.Int Raw types.Log // Blockchain specific contextual infos }
VaultFlashLoanFeePercentageChanged represents a FlashLoanFeePercentageChanged event raised by the Vault contract.
type VaultFlashLoanFeePercentageChangedIterator ¶
type VaultFlashLoanFeePercentageChangedIterator struct { Event *VaultFlashLoanFeePercentageChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultFlashLoanFeePercentageChangedIterator is returned from FilterFlashLoanFeePercentageChanged and is used to iterate over the raw logs and unpacked data for FlashLoanFeePercentageChanged events raised by the Vault contract.
func (*VaultFlashLoanFeePercentageChangedIterator) Close ¶
func (it *VaultFlashLoanFeePercentageChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultFlashLoanFeePercentageChangedIterator) Error ¶
func (it *VaultFlashLoanFeePercentageChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultFlashLoanFeePercentageChangedIterator) Next ¶
func (it *VaultFlashLoanFeePercentageChangedIterator) 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 VaultFlashLoanIterator ¶
type VaultFlashLoanIterator struct { Event *VaultFlashLoan // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultFlashLoanIterator is returned from FilterFlashLoan and is used to iterate over the raw logs and unpacked data for FlashLoan events raised by the Vault contract.
func (*VaultFlashLoanIterator) Close ¶
func (it *VaultFlashLoanIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultFlashLoanIterator) Error ¶
func (it *VaultFlashLoanIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultFlashLoanIterator) Next ¶
func (it *VaultFlashLoanIterator) 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 VaultOwnershipTransferred ¶
type VaultOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
VaultOwnershipTransferred represents a OwnershipTransferred event raised by the Vault contract.
type VaultOwnershipTransferredIterator ¶
type VaultOwnershipTransferredIterator struct { Event *VaultOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Vault contract.
func (*VaultOwnershipTransferredIterator) Close ¶
func (it *VaultOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultOwnershipTransferredIterator) Error ¶
func (it *VaultOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultOwnershipTransferredIterator) Next ¶
func (it *VaultOwnershipTransferredIterator) 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 VaultPaused ¶
type VaultPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
VaultPaused represents a Paused event raised by the Vault contract.
type VaultPausedIterator ¶
type VaultPausedIterator struct { Event *VaultPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Vault contract.
func (*VaultPausedIterator) Close ¶
func (it *VaultPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultPausedIterator) Error ¶
func (it *VaultPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultPausedIterator) Next ¶
func (it *VaultPausedIterator) 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 VaultRaw ¶
type VaultRaw struct {
Contract *Vault // Generic contract binding to access the raw methods on
}
VaultRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*VaultRaw) Call ¶
func (_Vault *VaultRaw) 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 (*VaultRaw) Transact ¶
func (_Vault *VaultRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VaultRaw) Transfer ¶
func (_Vault *VaultRaw) 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 VaultSession ¶
type VaultSession struct { Contract *Vault // 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 }
VaultSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*VaultSession) BalanceOf ¶
func (_Vault *VaultSession) BalanceOf(token common.Address, account common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0xf7888aec.
Solidity: function balanceOf(address token, address account) view returns(uint256 balance)
func (*VaultSession) Deposit ¶
func (_Vault *VaultSession) Deposit(token common.Address, to common.Address) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xf9609f08.
Solidity: function deposit(address token, address to) payable returns(uint256 amount)
func (*VaultSession) DepositETH ¶
func (_Vault *VaultSession) DepositETH(to common.Address) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0x2d2da806.
Solidity: function depositETH(address to) payable returns(uint256 amount)
func (*VaultSession) ERC3156CALLBACKSUCCESS ¶
func (_Vault *VaultSession) ERC3156CALLBACKSUCCESS() ([32]byte, error)
ERC3156CALLBACKSUCCESS is a free data retrieval call binding the contract method 0xec85b12b.
Solidity: function ERC3156_CALLBACK_SUCCESS() view returns(bytes32)
func (*VaultSession) FlashFee ¶
FlashFee is a free data retrieval call binding the contract method 0xd9d98ce4.
Solidity: function flashFee(address , uint256 amount) view returns(uint256)
func (*VaultSession) FlashLoan ¶
func (_Vault *VaultSession) FlashLoan(receiver common.Address, token common.Address, amount *big.Int, userData []byte) (*types.Transaction, error)
FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.
Solidity: function flashLoan(address receiver, address token, uint256 amount, bytes userData) returns(bool)
func (*VaultSession) FlashLoanFeePercentage ¶
func (_Vault *VaultSession) FlashLoanFeePercentage() (*big.Int, error)
FlashLoanFeePercentage is a free data retrieval call binding the contract method 0xc499f8ce.
Solidity: function flashLoanFeePercentage() view returns(uint256)
func (*VaultSession) FlashLoanFeeRecipient ¶
func (_Vault *VaultSession) FlashLoanFeeRecipient() (common.Address, error)
FlashLoanFeeRecipient is a free data retrieval call binding the contract method 0xa16e5112.
Solidity: function flashLoanFeeRecipient() view returns(address)
func (*VaultSession) FlashLoanMultiple ¶
func (_Vault *VaultSession) FlashLoanMultiple(recipient common.Address, tokens []common.Address, amounts []*big.Int, userData []byte) (*types.Transaction, error)
FlashLoanMultiple is a paid mutator transaction binding the contract method 0xcfaa541e.
Solidity: function flashLoanMultiple(address recipient, address[] tokens, uint256[] amounts, bytes userData) returns()
func (*VaultSession) MaxFlashLoan ¶
MaxFlashLoan is a free data retrieval call binding the contract method 0x613255ab.
Solidity: function maxFlashLoan(address token) view returns(uint256)
func (*VaultSession) Owner ¶
func (_Vault *VaultSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*VaultSession) Paused ¶
func (_Vault *VaultSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*VaultSession) Receive ¶
func (_Vault *VaultSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*VaultSession) RenounceOwnership ¶
func (_Vault *VaultSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*VaultSession) Reserves ¶
Reserves is a free data retrieval call binding the contract method 0xd66bd524.
Solidity: function reserves(address ) view returns(uint256)
func (*VaultSession) SetFlashLoanFeePercentage ¶
func (_Vault *VaultSession) SetFlashLoanFeePercentage(newFlashLoanFeePercentage *big.Int) (*types.Transaction, error)
SetFlashLoanFeePercentage is a paid mutator transaction binding the contract method 0x6b6b9f69.
Solidity: function setFlashLoanFeePercentage(uint256 newFlashLoanFeePercentage) returns()
func (*VaultSession) SetFlashLoanFeeRecipient ¶
func (_Vault *VaultSession) SetFlashLoanFeeRecipient(_flashLoanFeeRecipient common.Address) (*types.Transaction, error)
SetFlashLoanFeeRecipient is a paid mutator transaction binding the contract method 0xb914cc64.
Solidity: function setFlashLoanFeeRecipient(address _flashLoanFeeRecipient) returns()
func (*VaultSession) SetPaused ¶
func (_Vault *VaultSession) SetPaused(_status bool) (*types.Transaction, error)
SetPaused is a paid mutator transaction binding the contract method 0x16c38b3c.
Solidity: function setPaused(bool _status) returns()
func (*VaultSession) Transfer ¶
func (_Vault *VaultSession) Transfer(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xbeabacc8.
Solidity: function transfer(address token, address to, uint256 amount) returns()
func (*VaultSession) TransferAndDeposit ¶
func (_Vault *VaultSession) TransferAndDeposit(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferAndDeposit is a paid mutator transaction binding the contract method 0x511de15b.
Solidity: function transferAndDeposit(address token, address to, uint256 amount) payable returns(uint256)
func (*VaultSession) TransferOwnership ¶
func (_Vault *VaultSession) 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 (*VaultSession) WETH ¶
func (_Vault *VaultSession) WETH() (common.Address, error)
WETH is a free data retrieval call binding the contract method 0xf2428621.
Solidity: function wETH() view returns(address)
func (*VaultSession) Withdraw ¶
func (_Vault *VaultSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.
Solidity: function withdraw(address token, address to, uint256 amount) returns()
func (*VaultSession) WithdrawAlternative ¶
func (_Vault *VaultSession) WithdrawAlternative(token common.Address, to common.Address, amount *big.Int, mode uint8) (*types.Transaction, error)
WithdrawAlternative is a paid mutator transaction binding the contract method 0x6cb568c1.
Solidity: function withdrawAlternative(address token, address to, uint256 amount, uint8 mode) returns()
func (*VaultSession) WithdrawETH ¶
func (_Vault *VaultSession) WithdrawETH(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address to, uint256 amount) returns()
type VaultTransactor ¶
type VaultTransactor struct {
// contains filtered or unexported fields
}
VaultTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewVaultTransactor ¶
func NewVaultTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultTransactor, error)
NewVaultTransactor creates a new write-only instance of Vault, bound to a specific deployed contract.
func (*VaultTransactor) Deposit ¶
func (_Vault *VaultTransactor) Deposit(opts *bind.TransactOpts, token common.Address, to common.Address) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xf9609f08.
Solidity: function deposit(address token, address to) payable returns(uint256 amount)
func (*VaultTransactor) DepositETH ¶
func (_Vault *VaultTransactor) DepositETH(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0x2d2da806.
Solidity: function depositETH(address to) payable returns(uint256 amount)
func (*VaultTransactor) FlashLoan ¶
func (_Vault *VaultTransactor) FlashLoan(opts *bind.TransactOpts, receiver common.Address, token common.Address, amount *big.Int, userData []byte) (*types.Transaction, error)
FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.
Solidity: function flashLoan(address receiver, address token, uint256 amount, bytes userData) returns(bool)
func (*VaultTransactor) FlashLoanMultiple ¶
func (_Vault *VaultTransactor) FlashLoanMultiple(opts *bind.TransactOpts, recipient common.Address, tokens []common.Address, amounts []*big.Int, userData []byte) (*types.Transaction, error)
FlashLoanMultiple is a paid mutator transaction binding the contract method 0xcfaa541e.
Solidity: function flashLoanMultiple(address recipient, address[] tokens, uint256[] amounts, bytes userData) returns()
func (*VaultTransactor) Receive ¶
func (_Vault *VaultTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*VaultTransactor) RenounceOwnership ¶
func (_Vault *VaultTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*VaultTransactor) SetFlashLoanFeePercentage ¶
func (_Vault *VaultTransactor) SetFlashLoanFeePercentage(opts *bind.TransactOpts, newFlashLoanFeePercentage *big.Int) (*types.Transaction, error)
SetFlashLoanFeePercentage is a paid mutator transaction binding the contract method 0x6b6b9f69.
Solidity: function setFlashLoanFeePercentage(uint256 newFlashLoanFeePercentage) returns()
func (*VaultTransactor) SetFlashLoanFeeRecipient ¶
func (_Vault *VaultTransactor) SetFlashLoanFeeRecipient(opts *bind.TransactOpts, _flashLoanFeeRecipient common.Address) (*types.Transaction, error)
SetFlashLoanFeeRecipient is a paid mutator transaction binding the contract method 0xb914cc64.
Solidity: function setFlashLoanFeeRecipient(address _flashLoanFeeRecipient) returns()
func (*VaultTransactor) SetPaused ¶
func (_Vault *VaultTransactor) SetPaused(opts *bind.TransactOpts, _status bool) (*types.Transaction, error)
SetPaused is a paid mutator transaction binding the contract method 0x16c38b3c.
Solidity: function setPaused(bool _status) returns()
func (*VaultTransactor) Transfer ¶
func (_Vault *VaultTransactor) Transfer(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xbeabacc8.
Solidity: function transfer(address token, address to, uint256 amount) returns()
func (*VaultTransactor) TransferAndDeposit ¶
func (_Vault *VaultTransactor) TransferAndDeposit(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferAndDeposit is a paid mutator transaction binding the contract method 0x511de15b.
Solidity: function transferAndDeposit(address token, address to, uint256 amount) payable returns(uint256)
func (*VaultTransactor) TransferOwnership ¶
func (_Vault *VaultTransactor) 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 (*VaultTransactor) Withdraw ¶
func (_Vault *VaultTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.
Solidity: function withdraw(address token, address to, uint256 amount) returns()
func (*VaultTransactor) WithdrawAlternative ¶
func (_Vault *VaultTransactor) WithdrawAlternative(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int, mode uint8) (*types.Transaction, error)
WithdrawAlternative is a paid mutator transaction binding the contract method 0x6cb568c1.
Solidity: function withdrawAlternative(address token, address to, uint256 amount, uint8 mode) returns()
func (*VaultTransactor) WithdrawETH ¶
func (_Vault *VaultTransactor) WithdrawETH(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address to, uint256 amount) returns()
type VaultTransactorRaw ¶
type VaultTransactorRaw struct {
Contract *VaultTransactor // Generic write-only contract binding to access the raw methods on
}
VaultTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*VaultTransactorRaw) Transact ¶
func (_Vault *VaultTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*VaultTransactorRaw) Transfer ¶
func (_Vault *VaultTransactorRaw) 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 VaultTransactorSession ¶
type VaultTransactorSession struct { Contract *VaultTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
VaultTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*VaultTransactorSession) Deposit ¶
func (_Vault *VaultTransactorSession) Deposit(token common.Address, to common.Address) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xf9609f08.
Solidity: function deposit(address token, address to) payable returns(uint256 amount)
func (*VaultTransactorSession) DepositETH ¶
func (_Vault *VaultTransactorSession) DepositETH(to common.Address) (*types.Transaction, error)
DepositETH is a paid mutator transaction binding the contract method 0x2d2da806.
Solidity: function depositETH(address to) payable returns(uint256 amount)
func (*VaultTransactorSession) FlashLoan ¶
func (_Vault *VaultTransactorSession) FlashLoan(receiver common.Address, token common.Address, amount *big.Int, userData []byte) (*types.Transaction, error)
FlashLoan is a paid mutator transaction binding the contract method 0x5cffe9de.
Solidity: function flashLoan(address receiver, address token, uint256 amount, bytes userData) returns(bool)
func (*VaultTransactorSession) FlashLoanMultiple ¶
func (_Vault *VaultTransactorSession) FlashLoanMultiple(recipient common.Address, tokens []common.Address, amounts []*big.Int, userData []byte) (*types.Transaction, error)
FlashLoanMultiple is a paid mutator transaction binding the contract method 0xcfaa541e.
Solidity: function flashLoanMultiple(address recipient, address[] tokens, uint256[] amounts, bytes userData) returns()
func (*VaultTransactorSession) Receive ¶
func (_Vault *VaultTransactorSession) Receive() (*types.Transaction, error)
Receive is a paid mutator transaction binding the contract receive function.
Solidity: receive() payable returns()
func (*VaultTransactorSession) RenounceOwnership ¶
func (_Vault *VaultTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*VaultTransactorSession) SetFlashLoanFeePercentage ¶
func (_Vault *VaultTransactorSession) SetFlashLoanFeePercentage(newFlashLoanFeePercentage *big.Int) (*types.Transaction, error)
SetFlashLoanFeePercentage is a paid mutator transaction binding the contract method 0x6b6b9f69.
Solidity: function setFlashLoanFeePercentage(uint256 newFlashLoanFeePercentage) returns()
func (*VaultTransactorSession) SetFlashLoanFeeRecipient ¶
func (_Vault *VaultTransactorSession) SetFlashLoanFeeRecipient(_flashLoanFeeRecipient common.Address) (*types.Transaction, error)
SetFlashLoanFeeRecipient is a paid mutator transaction binding the contract method 0xb914cc64.
Solidity: function setFlashLoanFeeRecipient(address _flashLoanFeeRecipient) returns()
func (*VaultTransactorSession) SetPaused ¶
func (_Vault *VaultTransactorSession) SetPaused(_status bool) (*types.Transaction, error)
SetPaused is a paid mutator transaction binding the contract method 0x16c38b3c.
Solidity: function setPaused(bool _status) returns()
func (*VaultTransactorSession) Transfer ¶
func (_Vault *VaultTransactorSession) Transfer(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xbeabacc8.
Solidity: function transfer(address token, address to, uint256 amount) returns()
func (*VaultTransactorSession) TransferAndDeposit ¶
func (_Vault *VaultTransactorSession) TransferAndDeposit(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
TransferAndDeposit is a paid mutator transaction binding the contract method 0x511de15b.
Solidity: function transferAndDeposit(address token, address to, uint256 amount) payable returns(uint256)
func (*VaultTransactorSession) TransferOwnership ¶
func (_Vault *VaultTransactorSession) 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 (*VaultTransactorSession) Withdraw ¶
func (_Vault *VaultTransactorSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.
Solidity: function withdraw(address token, address to, uint256 amount) returns()
func (*VaultTransactorSession) WithdrawAlternative ¶
func (_Vault *VaultTransactorSession) WithdrawAlternative(token common.Address, to common.Address, amount *big.Int, mode uint8) (*types.Transaction, error)
WithdrawAlternative is a paid mutator transaction binding the contract method 0x6cb568c1.
Solidity: function withdrawAlternative(address token, address to, uint256 amount, uint8 mode) returns()
func (*VaultTransactorSession) WithdrawETH ¶
func (_Vault *VaultTransactorSession) WithdrawETH(to common.Address, amount *big.Int) (*types.Transaction, error)
WithdrawETH is a paid mutator transaction binding the contract method 0x4782f779.
Solidity: function withdrawETH(address to, uint256 amount) returns()
type VaultUnpaused ¶
type VaultUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
VaultUnpaused represents a Unpaused event raised by the Vault contract.
type VaultUnpausedIterator ¶
type VaultUnpausedIterator struct { Event *VaultUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
VaultUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Vault contract.
func (*VaultUnpausedIterator) Close ¶
func (it *VaultUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*VaultUnpausedIterator) Error ¶
func (it *VaultUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*VaultUnpausedIterator) Next ¶
func (it *VaultUnpausedIterator) 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.