Documentation ¶
Index ¶
- Variables
- type Pair
- type PairApproval
- type PairApprovalIterator
- type PairBurn
- type PairBurnIterator
- type PairCaller
- func (_Pair *PairCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) BlockTimestampLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Claimable0(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) Claimable1(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) Current(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int) (*big.Int, error)
- func (_Pair *PairCaller) CurrentCumulativePrices(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Pair *PairCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Pair *PairCaller) Fees(opts *bind.CallOpts) (common.Address, error)
- func (_Pair *PairCaller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, tokenIn common.Address) (*big.Int, error)
- func (_Pair *PairCaller) GetReserves(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Pair *PairCaller) Index0(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Index1(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) IsStable(opts *bind.CallOpts) (bool, error)
- func (_Pair *PairCaller) LastObservation(opts *bind.CallOpts) (PairObservation, error)
- func (_Pair *PairCaller) Metadata(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Pair *PairCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Pair *PairCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) ObservationLength(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Observations(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_Pair *PairCaller) Prices(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, ...) ([]*big.Int, error)
- func (_Pair *PairCaller) Quote(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, ...) (*big.Int, error)
- func (_Pair *PairCaller) Reserve0(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Reserve0CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Reserve1(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Reserve1CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Sample(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, ...) ([]*big.Int, error)
- func (_Pair *PairCaller) Stable(opts *bind.CallOpts) (bool, error)
- func (_Pair *PairCaller) SupplyIndex0(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) SupplyIndex1(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Pair *PairCaller) Token0(opts *bind.CallOpts) (common.Address, error)
- func (_Pair *PairCaller) Token1(opts *bind.CallOpts) (common.Address, error)
- func (_Pair *PairCaller) Tokens(opts *bind.CallOpts) (common.Address, common.Address, error)
- func (_Pair *PairCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type PairCallerRaw
- type PairCallerSession
- func (_Pair *PairCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) BlockTimestampLast() (*big.Int, error)
- func (_Pair *PairCallerSession) Claimable0(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) Claimable1(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) Current(tokenIn common.Address, amountIn *big.Int) (*big.Int, error)
- func (_Pair *PairCallerSession) CurrentCumulativePrices() (struct{ ... }, error)
- func (_Pair *PairCallerSession) Decimals() (uint8, error)
- func (_Pair *PairCallerSession) Fees() (common.Address, error)
- func (_Pair *PairCallerSession) GetAmountOut(amountIn *big.Int, tokenIn common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) GetReserves() (struct{ ... }, error)
- func (_Pair *PairCallerSession) Index0() (*big.Int, error)
- func (_Pair *PairCallerSession) Index1() (*big.Int, error)
- func (_Pair *PairCallerSession) IsStable() (bool, error)
- func (_Pair *PairCallerSession) LastObservation() (PairObservation, error)
- func (_Pair *PairCallerSession) Metadata() (struct{ ... }, error)
- func (_Pair *PairCallerSession) Name() (string, error)
- func (_Pair *PairCallerSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) ObservationLength() (*big.Int, error)
- func (_Pair *PairCallerSession) Observations(arg0 *big.Int) (struct{ ... }, error)
- func (_Pair *PairCallerSession) Prices(tokenIn common.Address, amountIn *big.Int, points *big.Int) ([]*big.Int, error)
- func (_Pair *PairCallerSession) Quote(tokenIn common.Address, amountIn *big.Int, granularity *big.Int) (*big.Int, error)
- func (_Pair *PairCallerSession) Reserve0() (*big.Int, error)
- func (_Pair *PairCallerSession) Reserve0CumulativeLast() (*big.Int, error)
- func (_Pair *PairCallerSession) Reserve1() (*big.Int, error)
- func (_Pair *PairCallerSession) Reserve1CumulativeLast() (*big.Int, error)
- func (_Pair *PairCallerSession) Sample(tokenIn common.Address, amountIn *big.Int, points *big.Int, window *big.Int) ([]*big.Int, error)
- func (_Pair *PairCallerSession) Stable() (bool, error)
- func (_Pair *PairCallerSession) SupplyIndex0(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) SupplyIndex1(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) Symbol() (string, error)
- func (_Pair *PairCallerSession) Token0() (common.Address, error)
- func (_Pair *PairCallerSession) Token1() (common.Address, error)
- func (_Pair *PairCallerSession) Tokens() (common.Address, common.Address, error)
- func (_Pair *PairCallerSession) TotalSupply() (*big.Int, error)
- type PairClaim
- type PairClaimIterator
- type PairFees
- type PairFeesIterator
- type PairFilterer
- func (_Pair *PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PairApprovalIterator, error)
- func (_Pair *PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairBurnIterator, error)
- func (_Pair *PairFilterer) FilterClaim(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*PairClaimIterator, error)
- func (_Pair *PairFilterer) FilterFees(opts *bind.FilterOpts, sender []common.Address) (*PairFeesIterator, error)
- func (_Pair *PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*PairMintIterator, error)
- func (_Pair *PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairSwapIterator, error)
- func (_Pair *PairFilterer) FilterSync(opts *bind.FilterOpts) (*PairSyncIterator, error)
- func (_Pair *PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*PairTransferIterator, error)
- func (_Pair *PairFilterer) ParseApproval(log types.Log) (*PairApproval, error)
- func (_Pair *PairFilterer) ParseBurn(log types.Log) (*PairBurn, error)
- func (_Pair *PairFilterer) ParseClaim(log types.Log) (*PairClaim, error)
- func (_Pair *PairFilterer) ParseFees(log types.Log) (*PairFees, error)
- func (_Pair *PairFilterer) ParseMint(log types.Log) (*PairMint, error)
- func (_Pair *PairFilterer) ParseSwap(log types.Log) (*PairSwap, error)
- func (_Pair *PairFilterer) ParseSync(log types.Log) (*PairSync, error)
- func (_Pair *PairFilterer) ParseTransfer(log types.Log) (*PairTransfer, error)
- func (_Pair *PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PairApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *PairBurn, sender []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *PairClaim, sender []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchFees(opts *bind.WatchOpts, sink chan<- *PairFees, sender []common.Address) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *PairMint, sender []common.Address) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PairSwap, sender []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *PairSync) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PairTransfer, from []common.Address, ...) (event.Subscription, error)
- type PairMint
- type PairMintIterator
- type PairObservation
- type PairRaw
- func (_Pair *PairRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Pair *PairRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Pair *PairRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PairSession
- func (_Pair *PairSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Pair *PairSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Pair *PairSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) BlockTimestampLast() (*big.Int, error)
- func (_Pair *PairSession) Burn(to common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) ClaimFees() (*types.Transaction, error)
- func (_Pair *PairSession) ClaimStakingFees() (*types.Transaction, error)
- func (_Pair *PairSession) Claimable0(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) Claimable1(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) Current(tokenIn common.Address, amountIn *big.Int) (*big.Int, error)
- func (_Pair *PairSession) CurrentCumulativePrices() (struct{ ... }, error)
- func (_Pair *PairSession) Decimals() (uint8, error)
- func (_Pair *PairSession) Fees() (common.Address, error)
- func (_Pair *PairSession) GetAmountOut(amountIn *big.Int, tokenIn common.Address) (*big.Int, error)
- func (_Pair *PairSession) GetReserves() (struct{ ... }, error)
- func (_Pair *PairSession) Index0() (*big.Int, error)
- func (_Pair *PairSession) Index1() (*big.Int, error)
- func (_Pair *PairSession) IsStable() (bool, error)
- func (_Pair *PairSession) LastObservation() (PairObservation, error)
- func (_Pair *PairSession) Metadata() (struct{ ... }, error)
- func (_Pair *PairSession) Mint(to common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) Name() (string, error)
- func (_Pair *PairSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) ObservationLength() (*big.Int, error)
- func (_Pair *PairSession) Observations(arg0 *big.Int) (struct{ ... }, error)
- func (_Pair *PairSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Pair *PairSession) Prices(tokenIn common.Address, amountIn *big.Int, points *big.Int) ([]*big.Int, error)
- func (_Pair *PairSession) Quote(tokenIn common.Address, amountIn *big.Int, granularity *big.Int) (*big.Int, error)
- func (_Pair *PairSession) Reserve0() (*big.Int, error)
- func (_Pair *PairSession) Reserve0CumulativeLast() (*big.Int, error)
- func (_Pair *PairSession) Reserve1() (*big.Int, error)
- func (_Pair *PairSession) Reserve1CumulativeLast() (*big.Int, error)
- func (_Pair *PairSession) Sample(tokenIn common.Address, amountIn *big.Int, points *big.Int, window *big.Int) ([]*big.Int, error)
- func (_Pair *PairSession) Skim(to common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) Stable() (bool, error)
- func (_Pair *PairSession) SupplyIndex0(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) SupplyIndex1(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_Pair *PairSession) Symbol() (string, error)
- func (_Pair *PairSession) Sync() (*types.Transaction, error)
- func (_Pair *PairSession) Token0() (common.Address, error)
- func (_Pair *PairSession) Token1() (common.Address, error)
- func (_Pair *PairSession) Tokens() (common.Address, common.Address, error)
- func (_Pair *PairSession) TotalSupply() (*big.Int, error)
- func (_Pair *PairSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Pair *PairSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
- type PairSwap
- type PairSwapIterator
- type PairSync
- type PairSyncIterator
- type PairTransactor
- func (_Pair *PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) ClaimFees(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pair *PairTransactor) ClaimStakingFees(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pair *PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, ...) (*types.Transaction, error)
- func (_Pair *PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, ...) (*types.Transaction, error)
- func (_Pair *PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pair *PairTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, ...) (*types.Transaction, error)
- type PairTransactorRaw
- type PairTransactorSession
- func (_Pair *PairTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Burn(to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) ClaimFees() (*types.Transaction, error)
- func (_Pair *PairTransactorSession) ClaimStakingFees() (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Mint(to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Skim(to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Sync() (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
- type PairTransfer
- type PairTransferIterator
Constants ¶
This section is empty.
Variables ¶
var PairABI = PairMetaData.ABI
PairABI is the input ABI used to generate the binding from. Deprecated: Use PairMetaData.ABI instead.
var PairMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"Burn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"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\"}],\"name\":\"Fees\",\"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\"}],\"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\":[{\"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\":[],\"name\":\"blockTimestampLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"claimed0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"claimed1\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimStakingFees\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimable0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimable1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"}],\"name\":\"current\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentCumulativePrices\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"reserve0Cumulative\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserve1Cumulative\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blockTimestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"fees\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"}],\"name\":\"getAmountOut\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_reserve0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_reserve1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_blockTimestampLast\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"index0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"index1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isStable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastObservation\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserve0Cumulative\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserve1Cumulative\",\"type\":\"uint256\"}],\"internalType\":\"structPair.Observation\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"metadata\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"dec0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"dec1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"r0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"r1\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"st\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"t0\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"t1\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"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\":[],\"name\":\"observationLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"observations\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserve0Cumulative\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"reserve1Cumulative\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"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\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"points\",\"type\":\"uint256\"}],\"name\":\"prices\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"granularity\",\"type\":\"uint256\"}],\"name\":\"quote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserve1CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenIn\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"points\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"window\",\"type\":\"uint256\"}],\"name\":\"sample\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"skim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"supplyIndex0\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"supplyIndex1\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount0Out\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1Out\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"swap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sync\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":\"tokens\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"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\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
PairMetaData contains all meta data concerning the Pair contract.
Functions ¶
This section is empty.
Types ¶
type Pair ¶
type Pair struct { PairCaller // Read-only binding to the contract PairTransactor // Write-only binding to the contract PairFilterer // Log filterer for contract events }
Pair is an auto generated Go binding around an Ethereum contract.
type PairApproval ¶
type PairApproval struct { Owner common.Address Spender common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PairApproval represents a Approval event raised by the Pair contract.
type PairApprovalIterator ¶
type PairApprovalIterator struct { Event *PairApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Pair contract.
func (*PairApprovalIterator) Close ¶
func (it *PairApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairApprovalIterator) Error ¶
func (it *PairApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairApprovalIterator) Next ¶
func (it *PairApprovalIterator) 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 PairBurn ¶
type PairBurn struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
PairBurn represents a Burn event raised by the Pair contract.
type PairBurnIterator ¶
type PairBurnIterator struct { Event *PairBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Pair contract.
func (*PairBurnIterator) Close ¶
func (it *PairBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairBurnIterator) Error ¶
func (it *PairBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairBurnIterator) Next ¶
func (it *PairBurnIterator) 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 PairCaller ¶
type PairCaller struct {
// contains filtered or unexported fields
}
PairCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPairCaller ¶
func NewPairCaller(address common.Address, caller bind.ContractCaller) (*PairCaller, error)
NewPairCaller creates a new read-only instance of Pair, bound to a specific deployed contract.
func (*PairCaller) Allowance ¶
func (_Pair *PairCaller) 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 (*PairCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*PairCaller) BlockTimestampLast ¶
BlockTimestampLast is a free data retrieval call binding the contract method 0xc5700a02.
Solidity: function blockTimestampLast() view returns(uint256)
func (*PairCaller) Claimable0 ¶
Claimable0 is a free data retrieval call binding the contract method 0x4d5a9f8a.
Solidity: function claimable0(address ) view returns(uint256)
func (*PairCaller) Claimable1 ¶
Claimable1 is a free data retrieval call binding the contract method 0xa1ac4d13.
Solidity: function claimable1(address ) view returns(uint256)
func (*PairCaller) Current ¶
func (_Pair *PairCaller) Current(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int) (*big.Int, error)
Current is a free data retrieval call binding the contract method 0x517b3f82.
Solidity: function current(address tokenIn, uint256 amountIn) view returns(uint256 amountOut)
func (*PairCaller) CurrentCumulativePrices ¶
func (_Pair *PairCaller) CurrentCumulativePrices(opts *bind.CallOpts) (struct { Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int BlockTimestamp *big.Int }, error)
CurrentCumulativePrices is a free data retrieval call binding the contract method 0x1df8c717.
Solidity: function currentCumulativePrices() view returns(uint256 reserve0Cumulative, uint256 reserve1Cumulative, uint256 blockTimestamp)
func (*PairCaller) Decimals ¶
func (_Pair *PairCaller) 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 (*PairCaller) Fees ¶
Fees is a free data retrieval call binding the contract method 0x9af1d35a.
Solidity: function fees() view returns(address)
func (*PairCaller) GetAmountOut ¶
func (_Pair *PairCaller) GetAmountOut(opts *bind.CallOpts, amountIn *big.Int, tokenIn common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xf140a35a.
Solidity: function getAmountOut(uint256 amountIn, address tokenIn) view returns(uint256)
func (*PairCaller) GetReserves ¶
func (_Pair *PairCaller) GetReserves(opts *bind.CallOpts) (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1, uint256 _blockTimestampLast)
func (*PairCaller) Index0 ¶
Index0 is a free data retrieval call binding the contract method 0x32c0defd.
Solidity: function index0() view returns(uint256)
func (*PairCaller) Index1 ¶
Index1 is a free data retrieval call binding the contract method 0xbda39cad.
Solidity: function index1() view returns(uint256)
func (*PairCaller) IsStable ¶
func (_Pair *PairCaller) IsStable(opts *bind.CallOpts) (bool, error)
IsStable is a free data retrieval call binding the contract method 0x09047bdd.
Solidity: function isStable() view returns(bool)
func (*PairCaller) LastObservation ¶
func (_Pair *PairCaller) LastObservation(opts *bind.CallOpts) (PairObservation, error)
LastObservation is a free data retrieval call binding the contract method 0x8a7b8cf2.
Solidity: function lastObservation() view returns((uint256,uint256,uint256))
func (*PairCaller) Metadata ¶
func (_Pair *PairCaller) Metadata(opts *bind.CallOpts) (struct { Dec0 *big.Int Dec1 *big.Int R0 *big.Int R1 *big.Int St bool T0 common.Address T1 common.Address }, error)
Metadata is a free data retrieval call binding the contract method 0x392f37e9.
Solidity: function metadata() view returns(uint256 dec0, uint256 dec1, uint256 r0, uint256 r1, bool st, address t0, address t1)
func (*PairCaller) Name ¶
func (_Pair *PairCaller) 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 (*PairCaller) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*PairCaller) ObservationLength ¶
ObservationLength is a free data retrieval call binding the contract method 0xebeb31db.
Solidity: function observationLength() view returns(uint256)
func (*PairCaller) Observations ¶
func (_Pair *PairCaller) Observations(opts *bind.CallOpts, arg0 *big.Int) (struct { Timestamp *big.Int Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int }, error)
Observations is a free data retrieval call binding the contract method 0x252c09d7.
Solidity: function observations(uint256 ) view returns(uint256 timestamp, uint256 reserve0Cumulative, uint256 reserve1Cumulative)
func (*PairCaller) Prices ¶
func (_Pair *PairCaller) Prices(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, points *big.Int) ([]*big.Int, error)
Prices is a free data retrieval call binding the contract method 0x5881c475.
Solidity: function prices(address tokenIn, uint256 amountIn, uint256 points) view returns(uint256[])
func (*PairCaller) Quote ¶
func (_Pair *PairCaller) Quote(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, granularity *big.Int) (*big.Int, error)
Quote is a free data retrieval call binding the contract method 0x9e8cc04b.
Solidity: function quote(address tokenIn, uint256 amountIn, uint256 granularity) view returns(uint256 amountOut)
func (*PairCaller) Reserve0 ¶
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*PairCaller) Reserve0CumulativeLast ¶
Reserve0CumulativeLast is a free data retrieval call binding the contract method 0xbf944dbc.
Solidity: function reserve0CumulativeLast() view returns(uint256)
func (*PairCaller) Reserve1 ¶
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*PairCaller) Reserve1CumulativeLast ¶
Reserve1CumulativeLast is a free data retrieval call binding the contract method 0xc245febc.
Solidity: function reserve1CumulativeLast() view returns(uint256)
func (*PairCaller) Sample ¶
func (_Pair *PairCaller) Sample(opts *bind.CallOpts, tokenIn common.Address, amountIn *big.Int, points *big.Int, window *big.Int) ([]*big.Int, error)
Sample is a free data retrieval call binding the contract method 0x13345fe1.
Solidity: function sample(address tokenIn, uint256 amountIn, uint256 points, uint256 window) view returns(uint256[])
func (*PairCaller) Stable ¶
func (_Pair *PairCaller) Stable(opts *bind.CallOpts) (bool, error)
Stable is a free data retrieval call binding the contract method 0x22be3de1.
Solidity: function stable() view returns(bool)
func (*PairCaller) SupplyIndex0 ¶
SupplyIndex0 is a free data retrieval call binding the contract method 0x9f767c88.
Solidity: function supplyIndex0(address ) view returns(uint256)
func (*PairCaller) SupplyIndex1 ¶
SupplyIndex1 is a free data retrieval call binding the contract method 0x205aabf1.
Solidity: function supplyIndex1(address ) view returns(uint256)
func (*PairCaller) Symbol ¶
func (_Pair *PairCaller) 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 (*PairCaller) Token0 ¶
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*PairCaller) Token1 ¶
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*PairCaller) Tokens ¶
Tokens is a free data retrieval call binding the contract method 0x9d63848a.
Solidity: function tokens() view returns(address, address)
func (*PairCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type PairCallerRaw ¶
type PairCallerRaw struct {
Contract *PairCaller // Generic read-only contract binding to access the raw methods on
}
PairCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PairCallerRaw) Call ¶
func (_Pair *PairCallerRaw) 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 PairCallerSession ¶
type PairCallerSession struct { Contract *PairCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PairCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PairCallerSession) Allowance ¶
func (_Pair *PairCallerSession) 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 (*PairCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*PairCallerSession) BlockTimestampLast ¶
func (_Pair *PairCallerSession) BlockTimestampLast() (*big.Int, error)
BlockTimestampLast is a free data retrieval call binding the contract method 0xc5700a02.
Solidity: function blockTimestampLast() view returns(uint256)
func (*PairCallerSession) Claimable0 ¶
Claimable0 is a free data retrieval call binding the contract method 0x4d5a9f8a.
Solidity: function claimable0(address ) view returns(uint256)
func (*PairCallerSession) Claimable1 ¶
Claimable1 is a free data retrieval call binding the contract method 0xa1ac4d13.
Solidity: function claimable1(address ) view returns(uint256)
func (*PairCallerSession) Current ¶
func (_Pair *PairCallerSession) Current(tokenIn common.Address, amountIn *big.Int) (*big.Int, error)
Current is a free data retrieval call binding the contract method 0x517b3f82.
Solidity: function current(address tokenIn, uint256 amountIn) view returns(uint256 amountOut)
func (*PairCallerSession) CurrentCumulativePrices ¶
func (_Pair *PairCallerSession) CurrentCumulativePrices() (struct { Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int BlockTimestamp *big.Int }, error)
CurrentCumulativePrices is a free data retrieval call binding the contract method 0x1df8c717.
Solidity: function currentCumulativePrices() view returns(uint256 reserve0Cumulative, uint256 reserve1Cumulative, uint256 blockTimestamp)
func (*PairCallerSession) Decimals ¶
func (_Pair *PairCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*PairCallerSession) Fees ¶
func (_Pair *PairCallerSession) Fees() (common.Address, error)
Fees is a free data retrieval call binding the contract method 0x9af1d35a.
Solidity: function fees() view returns(address)
func (*PairCallerSession) GetAmountOut ¶
func (_Pair *PairCallerSession) GetAmountOut(amountIn *big.Int, tokenIn common.Address) (*big.Int, error)
GetAmountOut is a free data retrieval call binding the contract method 0xf140a35a.
Solidity: function getAmountOut(uint256 amountIn, address tokenIn) view returns(uint256)
func (*PairCallerSession) GetReserves ¶
func (_Pair *PairCallerSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1, uint256 _blockTimestampLast)
func (*PairCallerSession) Index0 ¶
func (_Pair *PairCallerSession) Index0() (*big.Int, error)
Index0 is a free data retrieval call binding the contract method 0x32c0defd.
Solidity: function index0() view returns(uint256)
func (*PairCallerSession) Index1 ¶
func (_Pair *PairCallerSession) Index1() (*big.Int, error)
Index1 is a free data retrieval call binding the contract method 0xbda39cad.
Solidity: function index1() view returns(uint256)
func (*PairCallerSession) IsStable ¶
func (_Pair *PairCallerSession) IsStable() (bool, error)
IsStable is a free data retrieval call binding the contract method 0x09047bdd.
Solidity: function isStable() view returns(bool)
func (*PairCallerSession) LastObservation ¶
func (_Pair *PairCallerSession) LastObservation() (PairObservation, error)
LastObservation is a free data retrieval call binding the contract method 0x8a7b8cf2.
Solidity: function lastObservation() view returns((uint256,uint256,uint256))
func (*PairCallerSession) Metadata ¶
func (_Pair *PairCallerSession) Metadata() (struct { Dec0 *big.Int Dec1 *big.Int R0 *big.Int R1 *big.Int St bool T0 common.Address T1 common.Address }, error)
Metadata is a free data retrieval call binding the contract method 0x392f37e9.
Solidity: function metadata() view returns(uint256 dec0, uint256 dec1, uint256 r0, uint256 r1, bool st, address t0, address t1)
func (*PairCallerSession) Name ¶
func (_Pair *PairCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*PairCallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*PairCallerSession) ObservationLength ¶
func (_Pair *PairCallerSession) ObservationLength() (*big.Int, error)
ObservationLength is a free data retrieval call binding the contract method 0xebeb31db.
Solidity: function observationLength() view returns(uint256)
func (*PairCallerSession) Observations ¶
func (_Pair *PairCallerSession) Observations(arg0 *big.Int) (struct { Timestamp *big.Int Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int }, error)
Observations is a free data retrieval call binding the contract method 0x252c09d7.
Solidity: function observations(uint256 ) view returns(uint256 timestamp, uint256 reserve0Cumulative, uint256 reserve1Cumulative)
func (*PairCallerSession) Prices ¶
func (_Pair *PairCallerSession) Prices(tokenIn common.Address, amountIn *big.Int, points *big.Int) ([]*big.Int, error)
Prices is a free data retrieval call binding the contract method 0x5881c475.
Solidity: function prices(address tokenIn, uint256 amountIn, uint256 points) view returns(uint256[])
func (*PairCallerSession) Quote ¶
func (_Pair *PairCallerSession) Quote(tokenIn common.Address, amountIn *big.Int, granularity *big.Int) (*big.Int, error)
Quote is a free data retrieval call binding the contract method 0x9e8cc04b.
Solidity: function quote(address tokenIn, uint256 amountIn, uint256 granularity) view returns(uint256 amountOut)
func (*PairCallerSession) Reserve0 ¶
func (_Pair *PairCallerSession) Reserve0() (*big.Int, error)
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*PairCallerSession) Reserve0CumulativeLast ¶
func (_Pair *PairCallerSession) Reserve0CumulativeLast() (*big.Int, error)
Reserve0CumulativeLast is a free data retrieval call binding the contract method 0xbf944dbc.
Solidity: function reserve0CumulativeLast() view returns(uint256)
func (*PairCallerSession) Reserve1 ¶
func (_Pair *PairCallerSession) Reserve1() (*big.Int, error)
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*PairCallerSession) Reserve1CumulativeLast ¶
func (_Pair *PairCallerSession) Reserve1CumulativeLast() (*big.Int, error)
Reserve1CumulativeLast is a free data retrieval call binding the contract method 0xc245febc.
Solidity: function reserve1CumulativeLast() view returns(uint256)
func (*PairCallerSession) Sample ¶
func (_Pair *PairCallerSession) Sample(tokenIn common.Address, amountIn *big.Int, points *big.Int, window *big.Int) ([]*big.Int, error)
Sample is a free data retrieval call binding the contract method 0x13345fe1.
Solidity: function sample(address tokenIn, uint256 amountIn, uint256 points, uint256 window) view returns(uint256[])
func (*PairCallerSession) Stable ¶
func (_Pair *PairCallerSession) Stable() (bool, error)
Stable is a free data retrieval call binding the contract method 0x22be3de1.
Solidity: function stable() view returns(bool)
func (*PairCallerSession) SupplyIndex0 ¶
SupplyIndex0 is a free data retrieval call binding the contract method 0x9f767c88.
Solidity: function supplyIndex0(address ) view returns(uint256)
func (*PairCallerSession) SupplyIndex1 ¶
SupplyIndex1 is a free data retrieval call binding the contract method 0x205aabf1.
Solidity: function supplyIndex1(address ) view returns(uint256)
func (*PairCallerSession) Symbol ¶
func (_Pair *PairCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*PairCallerSession) Token0 ¶
func (_Pair *PairCallerSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*PairCallerSession) Token1 ¶
func (_Pair *PairCallerSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*PairCallerSession) Tokens ¶
Tokens is a free data retrieval call binding the contract method 0x9d63848a.
Solidity: function tokens() view returns(address, address)
func (*PairCallerSession) TotalSupply ¶
func (_Pair *PairCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type PairClaim ¶
type PairClaim struct { Sender common.Address Recipient common.Address Amount0 *big.Int Amount1 *big.Int Raw types.Log // Blockchain specific contextual infos }
PairClaim represents a Claim event raised by the Pair contract.
type PairClaimIterator ¶
type PairClaimIterator struct { Event *PairClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the Pair contract.
func (*PairClaimIterator) Close ¶
func (it *PairClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairClaimIterator) Error ¶
func (it *PairClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairClaimIterator) Next ¶
func (it *PairClaimIterator) 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 PairFees ¶
type PairFees struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Raw types.Log // Blockchain specific contextual infos }
PairFees represents a Fees event raised by the Pair contract.
type PairFeesIterator ¶
type PairFeesIterator struct { Event *PairFees // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairFeesIterator is returned from FilterFees and is used to iterate over the raw logs and unpacked data for Fees events raised by the Pair contract.
func (*PairFeesIterator) Close ¶
func (it *PairFeesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairFeesIterator) Error ¶
func (it *PairFeesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairFeesIterator) Next ¶
func (it *PairFeesIterator) 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 PairFilterer ¶
type PairFilterer struct {
// contains filtered or unexported fields
}
PairFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPairFilterer ¶
func NewPairFilterer(address common.Address, filterer bind.ContractFilterer) (*PairFilterer, error)
NewPairFilterer creates a new log filterer instance of Pair, bound to a specific deployed contract.
func (*PairFilterer) FilterApproval ¶
func (_Pair *PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PairApprovalIterator, 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 (*PairFilterer) FilterBurn ¶
func (_Pair *PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
func (*PairFilterer) FilterClaim ¶
func (_Pair *PairFilterer) FilterClaim(opts *bind.FilterOpts, sender []common.Address, recipient []common.Address) (*PairClaimIterator, error)
FilterClaim is a free log retrieval operation binding the contract event 0x865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645.
Solidity: event Claim(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1)
func (*PairFilterer) FilterFees ¶
func (_Pair *PairFilterer) FilterFees(opts *bind.FilterOpts, sender []common.Address) (*PairFeesIterator, error)
FilterFees is a free log retrieval operation binding the contract event 0x112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a8602.
Solidity: event Fees(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) FilterMint ¶
func (_Pair *PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*PairMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) FilterSwap ¶
func (_Pair *PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairSwapIterator, 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 (*PairFilterer) FilterSync ¶
func (_Pair *PairFilterer) FilterSync(opts *bind.FilterOpts) (*PairSyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*PairFilterer) FilterTransfer ¶
func (_Pair *PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*PairTransferIterator, 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 (*PairFilterer) ParseApproval ¶
func (_Pair *PairFilterer) ParseApproval(log types.Log) (*PairApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 amount)
func (*PairFilterer) ParseBurn ¶
func (_Pair *PairFilterer) ParseBurn(log types.Log) (*PairBurn, error)
ParseBurn is a log parse operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
func (*PairFilterer) ParseClaim ¶
func (_Pair *PairFilterer) ParseClaim(log types.Log) (*PairClaim, error)
ParseClaim is a log parse operation binding the contract event 0x865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645.
Solidity: event Claim(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1)
func (*PairFilterer) ParseFees ¶
func (_Pair *PairFilterer) ParseFees(log types.Log) (*PairFees, error)
ParseFees is a log parse operation binding the contract event 0x112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a8602.
Solidity: event Fees(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) ParseMint ¶
func (_Pair *PairFilterer) ParseMint(log types.Log) (*PairMint, error)
ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) ParseSwap ¶
func (_Pair *PairFilterer) ParseSwap(log types.Log) (*PairSwap, 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 (*PairFilterer) ParseSync ¶
func (_Pair *PairFilterer) ParseSync(log types.Log) (*PairSync, error)
ParseSync is a log parse operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*PairFilterer) ParseTransfer ¶
func (_Pair *PairFilterer) ParseTransfer(log types.Log) (*PairTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 amount)
func (*PairFilterer) WatchApproval ¶
func (_Pair *PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PairApproval, 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 (*PairFilterer) WatchBurn ¶
func (_Pair *PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *PairBurn, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
func (*PairFilterer) WatchClaim ¶
func (_Pair *PairFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *PairClaim, sender []common.Address, recipient []common.Address) (event.Subscription, error)
WatchClaim is a free log subscription operation binding the contract event 0x865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645.
Solidity: event Claim(address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1)
func (*PairFilterer) WatchFees ¶
func (_Pair *PairFilterer) WatchFees(opts *bind.WatchOpts, sink chan<- *PairFees, sender []common.Address) (event.Subscription, error)
WatchFees is a free log subscription operation binding the contract event 0x112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a8602.
Solidity: event Fees(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) WatchMint ¶
func (_Pair *PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *PairMint, sender []common.Address) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) WatchSwap ¶
func (_Pair *PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PairSwap, 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 (*PairFilterer) WatchSync ¶
func (_Pair *PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *PairSync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0xcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a.
Solidity: event Sync(uint256 reserve0, uint256 reserve1)
func (*PairFilterer) WatchTransfer ¶
func (_Pair *PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PairTransfer, 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 PairMint ¶
type PairMint struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Raw types.Log // Blockchain specific contextual infos }
PairMint represents a Mint event raised by the Pair contract.
type PairMintIterator ¶
type PairMintIterator struct { Event *PairMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Pair contract.
func (*PairMintIterator) Close ¶
func (it *PairMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairMintIterator) Error ¶
func (it *PairMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairMintIterator) Next ¶
func (it *PairMintIterator) 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 PairObservation ¶
type PairObservation struct { Timestamp *big.Int Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int }
PairObservation is an auto generated low-level Go binding around an user-defined struct.
type PairRaw ¶
type PairRaw struct {
Contract *Pair // Generic contract binding to access the raw methods on
}
PairRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PairRaw) Call ¶
func (_Pair *PairRaw) 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 (*PairRaw) Transact ¶
func (_Pair *PairRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PairRaw) Transfer ¶
func (_Pair *PairRaw) 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 PairSession ¶
type PairSession struct { Contract *Pair // 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 }
PairSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PairSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*PairSession) Approve ¶
func (_Pair *PairSession) 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 (*PairSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*PairSession) BlockTimestampLast ¶
func (_Pair *PairSession) BlockTimestampLast() (*big.Int, error)
BlockTimestampLast is a free data retrieval call binding the contract method 0xc5700a02.
Solidity: function blockTimestampLast() view returns(uint256)
func (*PairSession) Burn ¶
func (_Pair *PairSession) Burn(to common.Address) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x89afcb44.
Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)
func (*PairSession) ClaimFees ¶
func (_Pair *PairSession) ClaimFees() (*types.Transaction, error)
ClaimFees is a paid mutator transaction binding the contract method 0xd294f093.
Solidity: function claimFees() returns(uint256 claimed0, uint256 claimed1)
func (*PairSession) ClaimStakingFees ¶
func (_Pair *PairSession) ClaimStakingFees() (*types.Transaction, error)
ClaimStakingFees is a paid mutator transaction binding the contract method 0xf083be3b.
Solidity: function claimStakingFees() returns()
func (*PairSession) Claimable0 ¶
Claimable0 is a free data retrieval call binding the contract method 0x4d5a9f8a.
Solidity: function claimable0(address ) view returns(uint256)
func (*PairSession) Claimable1 ¶
Claimable1 is a free data retrieval call binding the contract method 0xa1ac4d13.
Solidity: function claimable1(address ) view returns(uint256)
func (*PairSession) Current ¶
Current is a free data retrieval call binding the contract method 0x517b3f82.
Solidity: function current(address tokenIn, uint256 amountIn) view returns(uint256 amountOut)
func (*PairSession) CurrentCumulativePrices ¶
func (_Pair *PairSession) CurrentCumulativePrices() (struct { Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int BlockTimestamp *big.Int }, error)
CurrentCumulativePrices is a free data retrieval call binding the contract method 0x1df8c717.
Solidity: function currentCumulativePrices() view returns(uint256 reserve0Cumulative, uint256 reserve1Cumulative, uint256 blockTimestamp)
func (*PairSession) Decimals ¶
func (_Pair *PairSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*PairSession) Fees ¶
func (_Pair *PairSession) Fees() (common.Address, error)
Fees is a free data retrieval call binding the contract method 0x9af1d35a.
Solidity: function fees() view returns(address)
func (*PairSession) GetAmountOut ¶
GetAmountOut is a free data retrieval call binding the contract method 0xf140a35a.
Solidity: function getAmountOut(uint256 amountIn, address tokenIn) view returns(uint256)
func (*PairSession) GetReserves ¶
func (_Pair *PairSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast *big.Int }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint256 _reserve0, uint256 _reserve1, uint256 _blockTimestampLast)
func (*PairSession) Index0 ¶
func (_Pair *PairSession) Index0() (*big.Int, error)
Index0 is a free data retrieval call binding the contract method 0x32c0defd.
Solidity: function index0() view returns(uint256)
func (*PairSession) Index1 ¶
func (_Pair *PairSession) Index1() (*big.Int, error)
Index1 is a free data retrieval call binding the contract method 0xbda39cad.
Solidity: function index1() view returns(uint256)
func (*PairSession) IsStable ¶
func (_Pair *PairSession) IsStable() (bool, error)
IsStable is a free data retrieval call binding the contract method 0x09047bdd.
Solidity: function isStable() view returns(bool)
func (*PairSession) LastObservation ¶
func (_Pair *PairSession) LastObservation() (PairObservation, error)
LastObservation is a free data retrieval call binding the contract method 0x8a7b8cf2.
Solidity: function lastObservation() view returns((uint256,uint256,uint256))
func (*PairSession) Metadata ¶
func (_Pair *PairSession) Metadata() (struct { Dec0 *big.Int Dec1 *big.Int R0 *big.Int R1 *big.Int St bool T0 common.Address T1 common.Address }, error)
Metadata is a free data retrieval call binding the contract method 0x392f37e9.
Solidity: function metadata() view returns(uint256 dec0, uint256 dec1, uint256 r0, uint256 r1, bool st, address t0, address t1)
func (*PairSession) Mint ¶
func (_Pair *PairSession) Mint(to common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address to) returns(uint256 liquidity)
func (*PairSession) Name ¶
func (_Pair *PairSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*PairSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*PairSession) ObservationLength ¶
func (_Pair *PairSession) ObservationLength() (*big.Int, error)
ObservationLength is a free data retrieval call binding the contract method 0xebeb31db.
Solidity: function observationLength() view returns(uint256)
func (*PairSession) Observations ¶
func (_Pair *PairSession) Observations(arg0 *big.Int) (struct { Timestamp *big.Int Reserve0Cumulative *big.Int Reserve1Cumulative *big.Int }, error)
Observations is a free data retrieval call binding the contract method 0x252c09d7.
Solidity: function observations(uint256 ) view returns(uint256 timestamp, uint256 reserve0Cumulative, uint256 reserve1Cumulative)
func (*PairSession) Permit ¶
func (_Pair *PairSession) Permit(owner common.Address, spender common.Address, value *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 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*PairSession) Prices ¶
func (_Pair *PairSession) Prices(tokenIn common.Address, amountIn *big.Int, points *big.Int) ([]*big.Int, error)
Prices is a free data retrieval call binding the contract method 0x5881c475.
Solidity: function prices(address tokenIn, uint256 amountIn, uint256 points) view returns(uint256[])
func (*PairSession) Quote ¶
func (_Pair *PairSession) Quote(tokenIn common.Address, amountIn *big.Int, granularity *big.Int) (*big.Int, error)
Quote is a free data retrieval call binding the contract method 0x9e8cc04b.
Solidity: function quote(address tokenIn, uint256 amountIn, uint256 granularity) view returns(uint256 amountOut)
func (*PairSession) Reserve0 ¶
func (_Pair *PairSession) Reserve0() (*big.Int, error)
Reserve0 is a free data retrieval call binding the contract method 0x443cb4bc.
Solidity: function reserve0() view returns(uint256)
func (*PairSession) Reserve0CumulativeLast ¶
func (_Pair *PairSession) Reserve0CumulativeLast() (*big.Int, error)
Reserve0CumulativeLast is a free data retrieval call binding the contract method 0xbf944dbc.
Solidity: function reserve0CumulativeLast() view returns(uint256)
func (*PairSession) Reserve1 ¶
func (_Pair *PairSession) Reserve1() (*big.Int, error)
Reserve1 is a free data retrieval call binding the contract method 0x5a76f25e.
Solidity: function reserve1() view returns(uint256)
func (*PairSession) Reserve1CumulativeLast ¶
func (_Pair *PairSession) Reserve1CumulativeLast() (*big.Int, error)
Reserve1CumulativeLast is a free data retrieval call binding the contract method 0xc245febc.
Solidity: function reserve1CumulativeLast() view returns(uint256)
func (*PairSession) Sample ¶
func (_Pair *PairSession) Sample(tokenIn common.Address, amountIn *big.Int, points *big.Int, window *big.Int) ([]*big.Int, error)
Sample is a free data retrieval call binding the contract method 0x13345fe1.
Solidity: function sample(address tokenIn, uint256 amountIn, uint256 points, uint256 window) view returns(uint256[])
func (*PairSession) Skim ¶
func (_Pair *PairSession) Skim(to common.Address) (*types.Transaction, error)
Skim is a paid mutator transaction binding the contract method 0xbc25cf77.
Solidity: function skim(address to) returns()
func (*PairSession) Stable ¶
func (_Pair *PairSession) Stable() (bool, error)
Stable is a free data retrieval call binding the contract method 0x22be3de1.
Solidity: function stable() view returns(bool)
func (*PairSession) SupplyIndex0 ¶
SupplyIndex0 is a free data retrieval call binding the contract method 0x9f767c88.
Solidity: function supplyIndex0(address ) view returns(uint256)
func (*PairSession) SupplyIndex1 ¶
SupplyIndex1 is a free data retrieval call binding the contract method 0x205aabf1.
Solidity: function supplyIndex1(address ) view returns(uint256)
func (*PairSession) Swap ¶
func (_Pair *PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x022c0d9f.
Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()
func (*PairSession) Symbol ¶
func (_Pair *PairSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*PairSession) Sync ¶
func (_Pair *PairSession) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*PairSession) Token0 ¶
func (_Pair *PairSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*PairSession) Token1 ¶
func (_Pair *PairSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*PairSession) Tokens ¶
Tokens is a free data retrieval call binding the contract method 0x9d63848a.
Solidity: function tokens() view returns(address, address)
func (*PairSession) TotalSupply ¶
func (_Pair *PairSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*PairSession) Transfer ¶
func (_Pair *PairSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 amount) returns(bool)
func (*PairSession) TransferFrom ¶
func (_Pair *PairSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 amount) returns(bool)
type PairSwap ¶
type PairSwap 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 }
PairSwap represents a Swap event raised by the Pair contract.
type PairSwapIterator ¶
type PairSwapIterator struct { Event *PairSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Pair contract.
func (*PairSwapIterator) Close ¶
func (it *PairSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairSwapIterator) Error ¶
func (it *PairSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairSwapIterator) Next ¶
func (it *PairSwapIterator) 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 PairSync ¶
type PairSync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
PairSync represents a Sync event raised by the Pair contract.
type PairSyncIterator ¶
type PairSyncIterator struct { Event *PairSync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the Pair contract.
func (*PairSyncIterator) Close ¶
func (it *PairSyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairSyncIterator) Error ¶
func (it *PairSyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairSyncIterator) Next ¶
func (it *PairSyncIterator) 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 PairTransactor ¶
type PairTransactor struct {
// contains filtered or unexported fields
}
PairTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPairTransactor ¶
func NewPairTransactor(address common.Address, transactor bind.ContractTransactor) (*PairTransactor, error)
NewPairTransactor creates a new write-only instance of Pair, bound to a specific deployed contract.
func (*PairTransactor) Approve ¶
func (_Pair *PairTransactor) 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 (*PairTransactor) Burn ¶
func (_Pair *PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x89afcb44.
Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)
func (*PairTransactor) ClaimFees ¶
func (_Pair *PairTransactor) ClaimFees(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimFees is a paid mutator transaction binding the contract method 0xd294f093.
Solidity: function claimFees() returns(uint256 claimed0, uint256 claimed1)
func (*PairTransactor) ClaimStakingFees ¶
func (_Pair *PairTransactor) ClaimStakingFees(opts *bind.TransactOpts) (*types.Transaction, error)
ClaimStakingFees is a paid mutator transaction binding the contract method 0xf083be3b.
Solidity: function claimStakingFees() returns()
func (*PairTransactor) Mint ¶
func (_Pair *PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address to) returns(uint256 liquidity)
func (*PairTransactor) Permit ¶
func (_Pair *PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *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 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*PairTransactor) Skim ¶
func (_Pair *PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
Skim is a paid mutator transaction binding the contract method 0xbc25cf77.
Solidity: function skim(address to) returns()
func (*PairTransactor) Swap ¶
func (_Pair *PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x022c0d9f.
Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()
func (*PairTransactor) Sync ¶
func (_Pair *PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*PairTransactor) Transfer ¶
func (_Pair *PairTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 amount) returns(bool)
func (*PairTransactor) TransferFrom ¶
func (_Pair *PairTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 amount) returns(bool)
type PairTransactorRaw ¶
type PairTransactorRaw struct {
Contract *PairTransactor // Generic write-only contract binding to access the raw methods on
}
PairTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PairTransactorRaw) Transact ¶
func (_Pair *PairTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PairTransactorRaw) Transfer ¶
func (_Pair *PairTransactorRaw) 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 PairTransactorSession ¶
type PairTransactorSession struct { Contract *PairTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PairTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PairTransactorSession) Approve ¶
func (_Pair *PairTransactorSession) 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 (*PairTransactorSession) Burn ¶
func (_Pair *PairTransactorSession) Burn(to common.Address) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x89afcb44.
Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)
func (*PairTransactorSession) ClaimFees ¶
func (_Pair *PairTransactorSession) ClaimFees() (*types.Transaction, error)
ClaimFees is a paid mutator transaction binding the contract method 0xd294f093.
Solidity: function claimFees() returns(uint256 claimed0, uint256 claimed1)
func (*PairTransactorSession) ClaimStakingFees ¶
func (_Pair *PairTransactorSession) ClaimStakingFees() (*types.Transaction, error)
ClaimStakingFees is a paid mutator transaction binding the contract method 0xf083be3b.
Solidity: function claimStakingFees() returns()
func (*PairTransactorSession) Mint ¶
func (_Pair *PairTransactorSession) Mint(to common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address to) returns(uint256 liquidity)
func (*PairTransactorSession) Permit ¶
func (_Pair *PairTransactorSession) Permit(owner common.Address, spender common.Address, value *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 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*PairTransactorSession) Skim ¶
func (_Pair *PairTransactorSession) Skim(to common.Address) (*types.Transaction, error)
Skim is a paid mutator transaction binding the contract method 0xbc25cf77.
Solidity: function skim(address to) returns()
func (*PairTransactorSession) Swap ¶
func (_Pair *PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x022c0d9f.
Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()
func (*PairTransactorSession) Sync ¶
func (_Pair *PairTransactorSession) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*PairTransactorSession) Transfer ¶
func (_Pair *PairTransactorSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 amount) returns(bool)
func (*PairTransactorSession) TransferFrom ¶
func (_Pair *PairTransactorSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 amount) returns(bool)
type PairTransfer ¶
type PairTransfer struct { From common.Address To common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
PairTransfer represents a Transfer event raised by the Pair contract.
type PairTransferIterator ¶
type PairTransferIterator struct { Event *PairTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Pair contract.
func (*PairTransferIterator) Close ¶
func (it *PairTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairTransferIterator) Error ¶
func (it *PairTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairTransferIterator) Next ¶
func (it *PairTransferIterator) 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.