Documentation ¶
Index ¶
- Variables
- type Uniswapv2
- type Uniswapv2Approval
- type Uniswapv2ApprovalIterator
- type Uniswapv2Burn
- type Uniswapv2BurnIterator
- type Uniswapv2Caller
- func (_Uniswapv2 *Uniswapv2Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
- func (_Uniswapv2 *Uniswapv2Caller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Uniswapv2 *Uniswapv2Caller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_Uniswapv2 *Uniswapv2Caller) GetReserves(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Uniswapv2 *Uniswapv2Caller) KLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) Name(opts *bind.CallOpts) (string, error)
- func (_Uniswapv2 *Uniswapv2Caller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
- func (_Uniswapv2 *Uniswapv2Caller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Uniswapv2 *Uniswapv2Caller) Token0(opts *bind.CallOpts) (common.Address, error)
- func (_Uniswapv2 *Uniswapv2Caller) Token1(opts *bind.CallOpts) (common.Address, error)
- func (_Uniswapv2 *Uniswapv2Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type Uniswapv2CallerRaw
- type Uniswapv2CallerSession
- func (_Uniswapv2 *Uniswapv2CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Decimals() (uint8, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Factory() (common.Address, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) GetReserves() (struct{ ... }, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) KLast() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) MINIMUMLIQUIDITY() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Name() (string, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Nonces(owner common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) PERMITTYPEHASH() ([32]byte, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Price0CumulativeLast() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Price1CumulativeLast() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Symbol() (string, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Token0() (common.Address, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) Token1() (common.Address, error)
- func (_Uniswapv2 *Uniswapv2CallerSession) TotalSupply() (*big.Int, error)
- type Uniswapv2Filterer
- func (_Uniswapv2 *Uniswapv2Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Uniswapv2ApprovalIterator, error)
- func (_Uniswapv2 *Uniswapv2Filterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*Uniswapv2BurnIterator, error)
- func (_Uniswapv2 *Uniswapv2Filterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*Uniswapv2MintIterator, error)
- func (_Uniswapv2 *Uniswapv2Filterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*Uniswapv2SwapIterator, error)
- func (_Uniswapv2 *Uniswapv2Filterer) FilterSync(opts *bind.FilterOpts) (*Uniswapv2SyncIterator, error)
- func (_Uniswapv2 *Uniswapv2Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Uniswapv2TransferIterator, error)
- func (_Uniswapv2 *Uniswapv2Filterer) ParseApproval(log types.Log) (*Uniswapv2Approval, error)
- func (_Uniswapv2 *Uniswapv2Filterer) ParseBurn(log types.Log) (*Uniswapv2Burn, error)
- func (_Uniswapv2 *Uniswapv2Filterer) ParseMint(log types.Log) (*Uniswapv2Mint, error)
- func (_Uniswapv2 *Uniswapv2Filterer) ParseSwap(log types.Log) (*Uniswapv2Swap, error)
- func (_Uniswapv2 *Uniswapv2Filterer) ParseSync(log types.Log) (*Uniswapv2Sync, error)
- func (_Uniswapv2 *Uniswapv2Filterer) ParseTransfer(log types.Log) (*Uniswapv2Transfer, error)
- func (_Uniswapv2 *Uniswapv2Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Uniswapv2Approval, owner []common.Address, ...) (event.Subscription, error)
- func (_Uniswapv2 *Uniswapv2Filterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *Uniswapv2Burn, sender []common.Address, ...) (event.Subscription, error)
- func (_Uniswapv2 *Uniswapv2Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *Uniswapv2Mint, sender []common.Address) (event.Subscription, error)
- func (_Uniswapv2 *Uniswapv2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *Uniswapv2Swap, sender []common.Address, ...) (event.Subscription, error)
- func (_Uniswapv2 *Uniswapv2Filterer) WatchSync(opts *bind.WatchOpts, sink chan<- *Uniswapv2Sync) (event.Subscription, error)
- func (_Uniswapv2 *Uniswapv2Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Uniswapv2Transfer, from []common.Address, ...) (event.Subscription, error)
- type Uniswapv2Mint
- type Uniswapv2MintIterator
- type Uniswapv2Raw
- func (_Uniswapv2 *Uniswapv2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Uniswapv2 *Uniswapv2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Uniswapv2Session
- func (_Uniswapv2 *Uniswapv2Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) BalanceOf(owner common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) Burn(to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) DOMAINSEPARATOR() ([32]byte, error)
- func (_Uniswapv2 *Uniswapv2Session) Decimals() (uint8, error)
- func (_Uniswapv2 *Uniswapv2Session) Factory() (common.Address, error)
- func (_Uniswapv2 *Uniswapv2Session) GetReserves() (struct{ ... }, error)
- func (_Uniswapv2 *Uniswapv2Session) Initialize(arg0 common.Address, arg1 common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) KLast() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) MINIMUMLIQUIDITY() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) Mint(to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) Name() (string, error)
- func (_Uniswapv2 *Uniswapv2Session) Nonces(owner common.Address) (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) PERMITTYPEHASH() ([32]byte, error)
- func (_Uniswapv2 *Uniswapv2Session) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) Price0CumulativeLast() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) Price1CumulativeLast() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) Skim(to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) Symbol() (string, error)
- func (_Uniswapv2 *Uniswapv2Session) Sync() (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) Token0() (common.Address, error)
- func (_Uniswapv2 *Uniswapv2Session) Token1() (common.Address, error)
- func (_Uniswapv2 *Uniswapv2Session) TotalSupply() (*big.Int, error)
- func (_Uniswapv2 *Uniswapv2Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type Uniswapv2Swap
- type Uniswapv2SwapIterator
- type Uniswapv2Sync
- type Uniswapv2SyncIterator
- type Uniswapv2Transactor
- func (_Uniswapv2 *Uniswapv2Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Initialize(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, ...) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, ...) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type Uniswapv2TransactorRaw
- type Uniswapv2TransactorSession
- func (_Uniswapv2 *Uniswapv2TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Burn(to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Initialize(arg0 common.Address, arg1 common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Mint(to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Skim(to common.Address) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Sync() (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Uniswapv2 *Uniswapv2TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type Uniswapv2Transfer
- type Uniswapv2TransferIterator
Constants ¶
This section is empty.
Variables ¶
var Uniswapv2ABI = Uniswapv2MetaData.ABI
Uniswapv2ABI is the input ABI used to generate the binding from. Deprecated: Use Uniswapv2MetaData.ABI instead.
var Uniswapv2MetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"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\":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\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"}],\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINIMUM_LIQUIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"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\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"blockTimestampLast\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"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\":\"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\":[],\"name\":\"price0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price1CumulativeLast\",\"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\":[{\"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\":\"pure\",\"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\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"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\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
Uniswapv2MetaData contains all meta data concerning the Uniswapv2 contract.
Functions ¶
This section is empty.
Types ¶
type Uniswapv2 ¶
type Uniswapv2 struct { Uniswapv2Caller // Read-only binding to the contract Uniswapv2Transactor // Write-only binding to the contract Uniswapv2Filterer // Log filterer for contract events }
Uniswapv2 is an auto generated Go binding around an Ethereum contract.
func NewUniswapv2 ¶
NewUniswapv2 creates a new instance of Uniswapv2, bound to a specific deployed contract.
type Uniswapv2Approval ¶
type Uniswapv2Approval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
Uniswapv2Approval represents a Approval event raised by the Uniswapv2 contract.
type Uniswapv2ApprovalIterator ¶
type Uniswapv2ApprovalIterator struct { Event *Uniswapv2Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Uniswapv2ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Uniswapv2 contract.
func (*Uniswapv2ApprovalIterator) Close ¶
func (it *Uniswapv2ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Uniswapv2ApprovalIterator) Error ¶
func (it *Uniswapv2ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Uniswapv2ApprovalIterator) Next ¶
func (it *Uniswapv2ApprovalIterator) 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 Uniswapv2Burn ¶
type Uniswapv2Burn struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
Uniswapv2Burn represents a Burn event raised by the Uniswapv2 contract.
type Uniswapv2BurnIterator ¶
type Uniswapv2BurnIterator struct { Event *Uniswapv2Burn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Uniswapv2BurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Uniswapv2 contract.
func (*Uniswapv2BurnIterator) Close ¶
func (it *Uniswapv2BurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Uniswapv2BurnIterator) Error ¶
func (it *Uniswapv2BurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Uniswapv2BurnIterator) Next ¶
func (it *Uniswapv2BurnIterator) 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 Uniswapv2Caller ¶
type Uniswapv2Caller struct {
// contains filtered or unexported fields
}
Uniswapv2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewUniswapv2Caller ¶
func NewUniswapv2Caller(address common.Address, caller bind.ContractCaller) (*Uniswapv2Caller, error)
NewUniswapv2Caller creates a new read-only instance of Uniswapv2, bound to a specific deployed contract.
func (*Uniswapv2Caller) Allowance ¶
func (_Uniswapv2 *Uniswapv2Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*Uniswapv2Caller) BalanceOf ¶
func (_Uniswapv2 *Uniswapv2Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*Uniswapv2Caller) DOMAINSEPARATOR ¶
func (_Uniswapv2 *Uniswapv2Caller) 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 (*Uniswapv2Caller) Decimals ¶
func (_Uniswapv2 *Uniswapv2Caller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() pure returns(uint8)
func (*Uniswapv2Caller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*Uniswapv2Caller) GetReserves ¶
func (_Uniswapv2 *Uniswapv2Caller) GetReserves(opts *bind.CallOpts) (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast uint32 }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)
func (*Uniswapv2Caller) KLast ¶
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*Uniswapv2Caller) MINIMUMLIQUIDITY ¶
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256)
func (*Uniswapv2Caller) Name ¶
func (_Uniswapv2 *Uniswapv2Caller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() pure returns(string)
func (*Uniswapv2Caller) Nonces ¶
func (_Uniswapv2 *Uniswapv2Caller) Nonces(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address owner) view returns(uint256)
func (*Uniswapv2Caller) PERMITTYPEHASH ¶
func (_Uniswapv2 *Uniswapv2Caller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() pure returns(bytes32)
func (*Uniswapv2Caller) Price0CumulativeLast ¶
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*Uniswapv2Caller) Price1CumulativeLast ¶
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*Uniswapv2Caller) Symbol ¶
func (_Uniswapv2 *Uniswapv2Caller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() pure returns(string)
func (*Uniswapv2Caller) Token0 ¶
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*Uniswapv2Caller) Token1 ¶
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*Uniswapv2Caller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type Uniswapv2CallerRaw ¶
type Uniswapv2CallerRaw struct {
Contract *Uniswapv2Caller // Generic read-only contract binding to access the raw methods on
}
Uniswapv2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Uniswapv2CallerRaw) Call ¶
func (_Uniswapv2 *Uniswapv2CallerRaw) 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 Uniswapv2CallerSession ¶
type Uniswapv2CallerSession struct { Contract *Uniswapv2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Uniswapv2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Uniswapv2CallerSession) Allowance ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*Uniswapv2CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*Uniswapv2CallerSession) DOMAINSEPARATOR ¶
func (_Uniswapv2 *Uniswapv2CallerSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*Uniswapv2CallerSession) Decimals ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() pure returns(uint8)
func (*Uniswapv2CallerSession) Factory ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*Uniswapv2CallerSession) GetReserves ¶
func (_Uniswapv2 *Uniswapv2CallerSession) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast uint32 }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)
func (*Uniswapv2CallerSession) KLast ¶
func (_Uniswapv2 *Uniswapv2CallerSession) KLast() (*big.Int, error)
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*Uniswapv2CallerSession) MINIMUMLIQUIDITY ¶
func (_Uniswapv2 *Uniswapv2CallerSession) MINIMUMLIQUIDITY() (*big.Int, error)
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256)
func (*Uniswapv2CallerSession) Name ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() pure returns(string)
func (*Uniswapv2CallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address owner) view returns(uint256)
func (*Uniswapv2CallerSession) PERMITTYPEHASH ¶
func (_Uniswapv2 *Uniswapv2CallerSession) PERMITTYPEHASH() ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() pure returns(bytes32)
func (*Uniswapv2CallerSession) Price0CumulativeLast ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Price0CumulativeLast() (*big.Int, error)
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*Uniswapv2CallerSession) Price1CumulativeLast ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Price1CumulativeLast() (*big.Int, error)
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*Uniswapv2CallerSession) Symbol ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() pure returns(string)
func (*Uniswapv2CallerSession) Token0 ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*Uniswapv2CallerSession) Token1 ¶
func (_Uniswapv2 *Uniswapv2CallerSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*Uniswapv2CallerSession) TotalSupply ¶
func (_Uniswapv2 *Uniswapv2CallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type Uniswapv2Filterer ¶
type Uniswapv2Filterer struct {
// contains filtered or unexported fields
}
Uniswapv2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUniswapv2Filterer ¶
func NewUniswapv2Filterer(address common.Address, filterer bind.ContractFilterer) (*Uniswapv2Filterer, error)
NewUniswapv2Filterer creates a new log filterer instance of Uniswapv2, bound to a specific deployed contract.
func (*Uniswapv2Filterer) FilterApproval ¶
func (_Uniswapv2 *Uniswapv2Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Uniswapv2ApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*Uniswapv2Filterer) FilterBurn ¶
func (_Uniswapv2 *Uniswapv2Filterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*Uniswapv2BurnIterator, 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 (*Uniswapv2Filterer) FilterMint ¶
func (_Uniswapv2 *Uniswapv2Filterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*Uniswapv2MintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*Uniswapv2Filterer) FilterSwap ¶
func (_Uniswapv2 *Uniswapv2Filterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*Uniswapv2SwapIterator, 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 (*Uniswapv2Filterer) FilterSync ¶
func (_Uniswapv2 *Uniswapv2Filterer) FilterSync(opts *bind.FilterOpts) (*Uniswapv2SyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*Uniswapv2Filterer) FilterTransfer ¶
func (_Uniswapv2 *Uniswapv2Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Uniswapv2TransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*Uniswapv2Filterer) ParseApproval ¶
func (_Uniswapv2 *Uniswapv2Filterer) ParseApproval(log types.Log) (*Uniswapv2Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*Uniswapv2Filterer) ParseBurn ¶
func (_Uniswapv2 *Uniswapv2Filterer) ParseBurn(log types.Log) (*Uniswapv2Burn, 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 (*Uniswapv2Filterer) ParseMint ¶
func (_Uniswapv2 *Uniswapv2Filterer) ParseMint(log types.Log) (*Uniswapv2Mint, error)
ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*Uniswapv2Filterer) ParseSwap ¶
func (_Uniswapv2 *Uniswapv2Filterer) ParseSwap(log types.Log) (*Uniswapv2Swap, 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 (*Uniswapv2Filterer) ParseSync ¶
func (_Uniswapv2 *Uniswapv2Filterer) ParseSync(log types.Log) (*Uniswapv2Sync, error)
ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*Uniswapv2Filterer) ParseTransfer ¶
func (_Uniswapv2 *Uniswapv2Filterer) ParseTransfer(log types.Log) (*Uniswapv2Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*Uniswapv2Filterer) WatchApproval ¶
func (_Uniswapv2 *Uniswapv2Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Uniswapv2Approval, 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 value)
func (*Uniswapv2Filterer) WatchBurn ¶
func (_Uniswapv2 *Uniswapv2Filterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *Uniswapv2Burn, 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 (*Uniswapv2Filterer) WatchMint ¶
func (_Uniswapv2 *Uniswapv2Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *Uniswapv2Mint, 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 (*Uniswapv2Filterer) WatchSwap ¶
func (_Uniswapv2 *Uniswapv2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *Uniswapv2Swap, 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 (*Uniswapv2Filterer) WatchSync ¶
func (_Uniswapv2 *Uniswapv2Filterer) WatchSync(opts *bind.WatchOpts, sink chan<- *Uniswapv2Sync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*Uniswapv2Filterer) WatchTransfer ¶
func (_Uniswapv2 *Uniswapv2Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Uniswapv2Transfer, 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 value)
type Uniswapv2Mint ¶
type Uniswapv2Mint struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Raw types.Log // Blockchain specific contextual infos }
Uniswapv2Mint represents a Mint event raised by the Uniswapv2 contract.
type Uniswapv2MintIterator ¶
type Uniswapv2MintIterator struct { Event *Uniswapv2Mint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Uniswapv2MintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Uniswapv2 contract.
func (*Uniswapv2MintIterator) Close ¶
func (it *Uniswapv2MintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Uniswapv2MintIterator) Error ¶
func (it *Uniswapv2MintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Uniswapv2MintIterator) Next ¶
func (it *Uniswapv2MintIterator) 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 Uniswapv2Raw ¶
type Uniswapv2Raw struct {
Contract *Uniswapv2 // Generic contract binding to access the raw methods on
}
Uniswapv2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*Uniswapv2Raw) Call ¶
func (_Uniswapv2 *Uniswapv2Raw) 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 (*Uniswapv2Raw) Transact ¶
func (_Uniswapv2 *Uniswapv2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Uniswapv2Raw) Transfer ¶
func (_Uniswapv2 *Uniswapv2Raw) 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 Uniswapv2Session ¶
type Uniswapv2Session struct { Contract *Uniswapv2 // 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 }
Uniswapv2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Uniswapv2Session) Allowance ¶
func (_Uniswapv2 *Uniswapv2Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address owner, address spender) view returns(uint256)
func (*Uniswapv2Session) Approve ¶
func (_Uniswapv2 *Uniswapv2Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*Uniswapv2Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*Uniswapv2Session) Burn ¶
func (_Uniswapv2 *Uniswapv2Session) 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 (*Uniswapv2Session) DOMAINSEPARATOR ¶
func (_Uniswapv2 *Uniswapv2Session) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*Uniswapv2Session) Decimals ¶
func (_Uniswapv2 *Uniswapv2Session) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() pure returns(uint8)
func (*Uniswapv2Session) Factory ¶
func (_Uniswapv2 *Uniswapv2Session) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*Uniswapv2Session) GetReserves ¶
func (_Uniswapv2 *Uniswapv2Session) GetReserves() (struct { Reserve0 *big.Int Reserve1 *big.Int BlockTimestampLast uint32 }, error)
GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.
Solidity: function getReserves() view returns(uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)
func (*Uniswapv2Session) Initialize ¶
func (_Uniswapv2 *Uniswapv2Session) Initialize(arg0 common.Address, arg1 common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address , address ) returns()
func (*Uniswapv2Session) KLast ¶
func (_Uniswapv2 *Uniswapv2Session) KLast() (*big.Int, error)
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*Uniswapv2Session) MINIMUMLIQUIDITY ¶
func (_Uniswapv2 *Uniswapv2Session) MINIMUMLIQUIDITY() (*big.Int, error)
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() pure returns(uint256)
func (*Uniswapv2Session) Mint ¶
func (_Uniswapv2 *Uniswapv2Session) 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 (*Uniswapv2Session) Name ¶
func (_Uniswapv2 *Uniswapv2Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() pure returns(string)
func (*Uniswapv2Session) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address owner) view returns(uint256)
func (*Uniswapv2Session) PERMITTYPEHASH ¶
func (_Uniswapv2 *Uniswapv2Session) PERMITTYPEHASH() ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() pure returns(bytes32)
func (*Uniswapv2Session) Permit ¶
func (_Uniswapv2 *Uniswapv2Session) 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 (*Uniswapv2Session) Price0CumulativeLast ¶
func (_Uniswapv2 *Uniswapv2Session) Price0CumulativeLast() (*big.Int, error)
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*Uniswapv2Session) Price1CumulativeLast ¶
func (_Uniswapv2 *Uniswapv2Session) Price1CumulativeLast() (*big.Int, error)
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*Uniswapv2Session) Skim ¶
func (_Uniswapv2 *Uniswapv2Session) 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 (*Uniswapv2Session) Swap ¶
func (_Uniswapv2 *Uniswapv2Session) 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 (*Uniswapv2Session) Symbol ¶
func (_Uniswapv2 *Uniswapv2Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() pure returns(string)
func (*Uniswapv2Session) Sync ¶
func (_Uniswapv2 *Uniswapv2Session) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*Uniswapv2Session) Token0 ¶
func (_Uniswapv2 *Uniswapv2Session) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*Uniswapv2Session) Token1 ¶
func (_Uniswapv2 *Uniswapv2Session) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*Uniswapv2Session) TotalSupply ¶
func (_Uniswapv2 *Uniswapv2Session) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*Uniswapv2Session) Transfer ¶
func (_Uniswapv2 *Uniswapv2Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*Uniswapv2Session) TransferFrom ¶
func (_Uniswapv2 *Uniswapv2Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
type Uniswapv2Swap ¶
type Uniswapv2Swap 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 }
Uniswapv2Swap represents a Swap event raised by the Uniswapv2 contract.
type Uniswapv2SwapIterator ¶
type Uniswapv2SwapIterator struct { Event *Uniswapv2Swap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Uniswapv2SwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Uniswapv2 contract.
func (*Uniswapv2SwapIterator) Close ¶
func (it *Uniswapv2SwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Uniswapv2SwapIterator) Error ¶
func (it *Uniswapv2SwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Uniswapv2SwapIterator) Next ¶
func (it *Uniswapv2SwapIterator) 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 Uniswapv2Sync ¶
type Uniswapv2Sync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
Uniswapv2Sync represents a Sync event raised by the Uniswapv2 contract.
type Uniswapv2SyncIterator ¶
type Uniswapv2SyncIterator struct { Event *Uniswapv2Sync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Uniswapv2SyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the Uniswapv2 contract.
func (*Uniswapv2SyncIterator) Close ¶
func (it *Uniswapv2SyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Uniswapv2SyncIterator) Error ¶
func (it *Uniswapv2SyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Uniswapv2SyncIterator) Next ¶
func (it *Uniswapv2SyncIterator) 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 Uniswapv2Transactor ¶
type Uniswapv2Transactor struct {
// contains filtered or unexported fields
}
Uniswapv2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUniswapv2Transactor ¶
func NewUniswapv2Transactor(address common.Address, transactor bind.ContractTransactor) (*Uniswapv2Transactor, error)
NewUniswapv2Transactor creates a new write-only instance of Uniswapv2, bound to a specific deployed contract.
func (*Uniswapv2Transactor) Approve ¶
func (_Uniswapv2 *Uniswapv2Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*Uniswapv2Transactor) Burn ¶
func (_Uniswapv2 *Uniswapv2Transactor) 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 (*Uniswapv2Transactor) Initialize ¶
func (_Uniswapv2 *Uniswapv2Transactor) Initialize(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address , address ) returns()
func (*Uniswapv2Transactor) Mint ¶
func (_Uniswapv2 *Uniswapv2Transactor) 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 (*Uniswapv2Transactor) Permit ¶
func (_Uniswapv2 *Uniswapv2Transactor) 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 (*Uniswapv2Transactor) Skim ¶
func (_Uniswapv2 *Uniswapv2Transactor) 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 (*Uniswapv2Transactor) Swap ¶
func (_Uniswapv2 *Uniswapv2Transactor) 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 (*Uniswapv2Transactor) Sync ¶
func (_Uniswapv2 *Uniswapv2Transactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*Uniswapv2Transactor) Transfer ¶
func (_Uniswapv2 *Uniswapv2Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*Uniswapv2Transactor) TransferFrom ¶
func (_Uniswapv2 *Uniswapv2Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
type Uniswapv2TransactorRaw ¶
type Uniswapv2TransactorRaw struct {
Contract *Uniswapv2Transactor // Generic write-only contract binding to access the raw methods on
}
Uniswapv2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Uniswapv2TransactorRaw) Transact ¶
func (_Uniswapv2 *Uniswapv2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Uniswapv2TransactorRaw) Transfer ¶
func (_Uniswapv2 *Uniswapv2TransactorRaw) 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 Uniswapv2TransactorSession ¶
type Uniswapv2TransactorSession struct { Contract *Uniswapv2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Uniswapv2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Uniswapv2TransactorSession) Approve ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address spender, uint256 value) returns(bool)
func (*Uniswapv2TransactorSession) Burn ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) 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 (*Uniswapv2TransactorSession) Initialize ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) Initialize(arg0 common.Address, arg1 common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x485cc955.
Solidity: function initialize(address , address ) returns()
func (*Uniswapv2TransactorSession) Mint ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) 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 (*Uniswapv2TransactorSession) Permit ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) 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 (*Uniswapv2TransactorSession) Skim ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) 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 (*Uniswapv2TransactorSession) Swap ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) 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 (*Uniswapv2TransactorSession) Sync ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*Uniswapv2TransactorSession) Transfer ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address to, uint256 value) returns(bool)
func (*Uniswapv2TransactorSession) TransferFrom ¶
func (_Uniswapv2 *Uniswapv2TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
type Uniswapv2Transfer ¶
type Uniswapv2Transfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
Uniswapv2Transfer represents a Transfer event raised by the Uniswapv2 contract.
type Uniswapv2TransferIterator ¶
type Uniswapv2TransferIterator struct { Event *Uniswapv2Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Uniswapv2TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Uniswapv2 contract.
func (*Uniswapv2TransferIterator) Close ¶
func (it *Uniswapv2TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Uniswapv2TransferIterator) Error ¶
func (it *Uniswapv2TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Uniswapv2TransferIterator) Next ¶
func (it *Uniswapv2TransferIterator) 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.