lptoken

package
v1.4.1-rc-152 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LptokenABI = "" /* 9821-byte string literal not displayed */

LptokenABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lptoken

type Lptoken struct {
	LptokenCaller     // Read-only binding to the contract
	LptokenTransactor // Write-only binding to the contract
	LptokenFilterer   // Log filterer for contract events
}

Lptoken is an auto generated Go binding around an Ethereum contract.

func NewLptoken

func NewLptoken(address common.Address, backend bind.ContractBackend) (*Lptoken, error)

NewLptoken creates a new instance of Lptoken, bound to a specific deployed contract.

type LptokenApproval

type LptokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

LptokenApproval represents a Approval event raised by the Lptoken contract.

type LptokenApprovalIterator

type LptokenApprovalIterator struct {
	Event *LptokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LptokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Lptoken contract.

func (*LptokenApprovalIterator) Close

func (it *LptokenApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LptokenApprovalIterator) Error

func (it *LptokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LptokenApprovalIterator) Next

func (it *LptokenApprovalIterator) 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 LptokenBurn

type LptokenBurn struct {
	Sender  common.Address
	Amount0 *big.Int
	Amount1 *big.Int
	To      common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

LptokenBurn represents a Burn event raised by the Lptoken contract.

type LptokenBurnIterator

type LptokenBurnIterator struct {
	Event *LptokenBurn // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LptokenBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Lptoken contract.

func (*LptokenBurnIterator) Close

func (it *LptokenBurnIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LptokenBurnIterator) Error

func (it *LptokenBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LptokenBurnIterator) Next

func (it *LptokenBurnIterator) 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 LptokenCaller

type LptokenCaller struct {
	// contains filtered or unexported fields
}

LptokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewLptokenCaller

func NewLptokenCaller(address common.Address, caller bind.ContractCaller) (*LptokenCaller, error)

NewLptokenCaller creates a new read-only instance of Lptoken, bound to a specific deployed contract.

func (*LptokenCaller) Allowance

func (_Lptoken *LptokenCaller) 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 (*LptokenCaller) BalanceOf

func (_Lptoken *LptokenCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address ) view returns(uint256)

func (*LptokenCaller) DOMAINSEPARATOR

func (_Lptoken *LptokenCaller) 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 (*LptokenCaller) Decimals

func (_Lptoken *LptokenCaller) 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 (*LptokenCaller) Factory

func (_Lptoken *LptokenCaller) Factory(opts *bind.CallOpts) (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*LptokenCaller) GetReserves

func (_Lptoken *LptokenCaller) 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 (*LptokenCaller) KLast

func (_Lptoken *LptokenCaller) KLast(opts *bind.CallOpts) (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*LptokenCaller) MINIMUMLIQUIDITY

func (_Lptoken *LptokenCaller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*LptokenCaller) Name

func (_Lptoken *LptokenCaller) 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 (*LptokenCaller) Nonces

func (_Lptoken *LptokenCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*LptokenCaller) PERMITTYPEHASH

func (_Lptoken *LptokenCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*LptokenCaller) Price0CumulativeLast

func (_Lptoken *LptokenCaller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error)

Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.

Solidity: function price0CumulativeLast() view returns(uint256)

func (*LptokenCaller) Price1CumulativeLast

func (_Lptoken *LptokenCaller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error)

Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.

Solidity: function price1CumulativeLast() view returns(uint256)

func (*LptokenCaller) Symbol

func (_Lptoken *LptokenCaller) 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 (*LptokenCaller) Token0

func (_Lptoken *LptokenCaller) Token0(opts *bind.CallOpts) (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*LptokenCaller) Token1

func (_Lptoken *LptokenCaller) Token1(opts *bind.CallOpts) (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*LptokenCaller) TotalSupply

func (_Lptoken *LptokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type LptokenCallerRaw

type LptokenCallerRaw struct {
	Contract *LptokenCaller // Generic read-only contract binding to access the raw methods on
}

LptokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*LptokenCallerRaw) Call

func (_Lptoken *LptokenCallerRaw) 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 LptokenCallerSession

type LptokenCallerSession struct {
	Contract *LptokenCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

LptokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*LptokenCallerSession) Allowance

func (_Lptoken *LptokenCallerSession) 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 (*LptokenCallerSession) BalanceOf

func (_Lptoken *LptokenCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address ) view returns(uint256)

func (*LptokenCallerSession) DOMAINSEPARATOR

func (_Lptoken *LptokenCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*LptokenCallerSession) Decimals

func (_Lptoken *LptokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*LptokenCallerSession) Factory

func (_Lptoken *LptokenCallerSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*LptokenCallerSession) GetReserves

func (_Lptoken *LptokenCallerSession) 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 (*LptokenCallerSession) KLast

func (_Lptoken *LptokenCallerSession) KLast() (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*LptokenCallerSession) MINIMUMLIQUIDITY

func (_Lptoken *LptokenCallerSession) MINIMUMLIQUIDITY() (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*LptokenCallerSession) Name

func (_Lptoken *LptokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*LptokenCallerSession) Nonces

func (_Lptoken *LptokenCallerSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*LptokenCallerSession) PERMITTYPEHASH

func (_Lptoken *LptokenCallerSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*LptokenCallerSession) Price0CumulativeLast

func (_Lptoken *LptokenCallerSession) Price0CumulativeLast() (*big.Int, error)

Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.

Solidity: function price0CumulativeLast() view returns(uint256)

func (*LptokenCallerSession) Price1CumulativeLast

func (_Lptoken *LptokenCallerSession) Price1CumulativeLast() (*big.Int, error)

Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.

Solidity: function price1CumulativeLast() view returns(uint256)

func (*LptokenCallerSession) Symbol

func (_Lptoken *LptokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*LptokenCallerSession) Token0

func (_Lptoken *LptokenCallerSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*LptokenCallerSession) Token1

func (_Lptoken *LptokenCallerSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*LptokenCallerSession) TotalSupply

func (_Lptoken *LptokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type LptokenFilterer

type LptokenFilterer struct {
	// contains filtered or unexported fields
}

LptokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewLptokenFilterer

func NewLptokenFilterer(address common.Address, filterer bind.ContractFilterer) (*LptokenFilterer, error)

NewLptokenFilterer creates a new log filterer instance of Lptoken, bound to a specific deployed contract.

func (*LptokenFilterer) FilterApproval

func (_Lptoken *LptokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*LptokenApprovalIterator, 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 (*LptokenFilterer) FilterBurn

func (_Lptoken *LptokenFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*LptokenBurnIterator, 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 (*LptokenFilterer) FilterMint

func (_Lptoken *LptokenFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*LptokenMintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)

func (*LptokenFilterer) FilterSwap

func (_Lptoken *LptokenFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*LptokenSwapIterator, 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 (*LptokenFilterer) FilterSync

func (_Lptoken *LptokenFilterer) FilterSync(opts *bind.FilterOpts) (*LptokenSyncIterator, error)

FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.

Solidity: event Sync(uint112 reserve0, uint112 reserve1)

func (*LptokenFilterer) FilterTransfer

func (_Lptoken *LptokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*LptokenTransferIterator, 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 (*LptokenFilterer) ParseApproval

func (_Lptoken *LptokenFilterer) ParseApproval(log types.Log) (*LptokenApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*LptokenFilterer) ParseBurn

func (_Lptoken *LptokenFilterer) ParseBurn(log types.Log) (*LptokenBurn, 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 (*LptokenFilterer) ParseMint

func (_Lptoken *LptokenFilterer) ParseMint(log types.Log) (*LptokenMint, error)

ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)

func (*LptokenFilterer) ParseSwap

func (_Lptoken *LptokenFilterer) ParseSwap(log types.Log) (*LptokenSwap, 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 (*LptokenFilterer) ParseSync

func (_Lptoken *LptokenFilterer) ParseSync(log types.Log) (*LptokenSync, error)

ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.

Solidity: event Sync(uint112 reserve0, uint112 reserve1)

func (*LptokenFilterer) ParseTransfer

func (_Lptoken *LptokenFilterer) ParseTransfer(log types.Log) (*LptokenTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*LptokenFilterer) WatchApproval

func (_Lptoken *LptokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *LptokenApproval, 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 (*LptokenFilterer) WatchBurn

func (_Lptoken *LptokenFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *LptokenBurn, 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 (*LptokenFilterer) WatchMint

func (_Lptoken *LptokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *LptokenMint, 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 (*LptokenFilterer) WatchSwap

func (_Lptoken *LptokenFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *LptokenSwap, 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 (*LptokenFilterer) WatchSync

func (_Lptoken *LptokenFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *LptokenSync) (event.Subscription, error)

WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.

Solidity: event Sync(uint112 reserve0, uint112 reserve1)

func (*LptokenFilterer) WatchTransfer

func (_Lptoken *LptokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *LptokenTransfer, 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 LptokenMint

type LptokenMint struct {
	Sender  common.Address
	Amount0 *big.Int
	Amount1 *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

LptokenMint represents a Mint event raised by the Lptoken contract.

type LptokenMintIterator

type LptokenMintIterator struct {
	Event *LptokenMint // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LptokenMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Lptoken contract.

func (*LptokenMintIterator) Close

func (it *LptokenMintIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LptokenMintIterator) Error

func (it *LptokenMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LptokenMintIterator) Next

func (it *LptokenMintIterator) 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 LptokenRaw

type LptokenRaw struct {
	Contract *Lptoken // Generic contract binding to access the raw methods on
}

LptokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*LptokenRaw) Call

func (_Lptoken *LptokenRaw) 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 (*LptokenRaw) Transact

func (_Lptoken *LptokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*LptokenRaw) Transfer

func (_Lptoken *LptokenRaw) 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 LptokenSession

type LptokenSession struct {
	Contract     *Lptoken          // 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
}

LptokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*LptokenSession) Allowance

func (_Lptoken *LptokenSession) 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 (*LptokenSession) Approve

func (_Lptoken *LptokenSession) 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 (*LptokenSession) BalanceOf

func (_Lptoken *LptokenSession) BalanceOf(arg0 common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address ) view returns(uint256)

func (*LptokenSession) Burn

func (_Lptoken *LptokenSession) 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 (*LptokenSession) DOMAINSEPARATOR

func (_Lptoken *LptokenSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)

func (*LptokenSession) Decimals

func (_Lptoken *LptokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*LptokenSession) Factory

func (_Lptoken *LptokenSession) Factory() (common.Address, error)

Factory is a free data retrieval call binding the contract method 0xc45a0155.

Solidity: function factory() view returns(address)

func (*LptokenSession) GetReserves

func (_Lptoken *LptokenSession) 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 (*LptokenSession) Initialize

func (_Lptoken *LptokenSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address _token0, address _token1) returns()

func (*LptokenSession) KLast

func (_Lptoken *LptokenSession) KLast() (*big.Int, error)

KLast is a free data retrieval call binding the contract method 0x7464fc3d.

Solidity: function kLast() view returns(uint256)

func (*LptokenSession) MINIMUMLIQUIDITY

func (_Lptoken *LptokenSession) MINIMUMLIQUIDITY() (*big.Int, error)

MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.

Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)

func (*LptokenSession) Mint

func (_Lptoken *LptokenSession) 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 (*LptokenSession) Name

func (_Lptoken *LptokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*LptokenSession) Nonces

func (_Lptoken *LptokenSession) Nonces(arg0 common.Address) (*big.Int, error)

Nonces is a free data retrieval call binding the contract method 0x7ecebe00.

Solidity: function nonces(address ) view returns(uint256)

func (*LptokenSession) PERMITTYPEHASH

func (_Lptoken *LptokenSession) PERMITTYPEHASH() ([32]byte, error)

PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.

Solidity: function PERMIT_TYPEHASH() view returns(bytes32)

func (*LptokenSession) Permit

func (_Lptoken *LptokenSession) 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 (*LptokenSession) Price0CumulativeLast

func (_Lptoken *LptokenSession) Price0CumulativeLast() (*big.Int, error)

Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.

Solidity: function price0CumulativeLast() view returns(uint256)

func (*LptokenSession) Price1CumulativeLast

func (_Lptoken *LptokenSession) Price1CumulativeLast() (*big.Int, error)

Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.

Solidity: function price1CumulativeLast() view returns(uint256)

func (*LptokenSession) Skim

func (_Lptoken *LptokenSession) 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 (*LptokenSession) Swap

func (_Lptoken *LptokenSession) 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 (*LptokenSession) Symbol

func (_Lptoken *LptokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*LptokenSession) Sync

func (_Lptoken *LptokenSession) Sync() (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*LptokenSession) Token0

func (_Lptoken *LptokenSession) Token0() (common.Address, error)

Token0 is a free data retrieval call binding the contract method 0x0dfe1681.

Solidity: function token0() view returns(address)

func (*LptokenSession) Token1

func (_Lptoken *LptokenSession) Token1() (common.Address, error)

Token1 is a free data retrieval call binding the contract method 0xd21220a7.

Solidity: function token1() view returns(address)

func (*LptokenSession) TotalSupply

func (_Lptoken *LptokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*LptokenSession) Transfer

func (_Lptoken *LptokenSession) 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 (*LptokenSession) TransferFrom

func (_Lptoken *LptokenSession) 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 LptokenSwap

type LptokenSwap 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
}

LptokenSwap represents a Swap event raised by the Lptoken contract.

type LptokenSwapIterator

type LptokenSwapIterator struct {
	Event *LptokenSwap // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LptokenSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Lptoken contract.

func (*LptokenSwapIterator) Close

func (it *LptokenSwapIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LptokenSwapIterator) Error

func (it *LptokenSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LptokenSwapIterator) Next

func (it *LptokenSwapIterator) 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 LptokenSync

type LptokenSync struct {
	Reserve0 *big.Int
	Reserve1 *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

LptokenSync represents a Sync event raised by the Lptoken contract.

type LptokenSyncIterator

type LptokenSyncIterator struct {
	Event *LptokenSync // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LptokenSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the Lptoken contract.

func (*LptokenSyncIterator) Close

func (it *LptokenSyncIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LptokenSyncIterator) Error

func (it *LptokenSyncIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LptokenSyncIterator) Next

func (it *LptokenSyncIterator) 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 LptokenTransactor

type LptokenTransactor struct {
	// contains filtered or unexported fields
}

LptokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewLptokenTransactor

func NewLptokenTransactor(address common.Address, transactor bind.ContractTransactor) (*LptokenTransactor, error)

NewLptokenTransactor creates a new write-only instance of Lptoken, bound to a specific deployed contract.

func (*LptokenTransactor) Approve

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) Burn

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) Initialize

func (_Lptoken *LptokenTransactor) Initialize(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address _token0, address _token1) returns()

func (*LptokenTransactor) Mint

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) Permit

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) Skim

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) Swap

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) Sync

func (_Lptoken *LptokenTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*LptokenTransactor) Transfer

func (_Lptoken *LptokenTransactor) 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 (*LptokenTransactor) TransferFrom

func (_Lptoken *LptokenTransactor) 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 LptokenTransactorRaw

type LptokenTransactorRaw struct {
	Contract *LptokenTransactor // Generic write-only contract binding to access the raw methods on
}

LptokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*LptokenTransactorRaw) Transact

func (_Lptoken *LptokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*LptokenTransactorRaw) Transfer

func (_Lptoken *LptokenTransactorRaw) 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 LptokenTransactorSession

type LptokenTransactorSession struct {
	Contract     *LptokenTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

LptokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*LptokenTransactorSession) Approve

func (_Lptoken *LptokenTransactorSession) 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 (*LptokenTransactorSession) Burn

Burn is a paid mutator transaction binding the contract method 0x89afcb44.

Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)

func (*LptokenTransactorSession) Initialize

func (_Lptoken *LptokenTransactorSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x485cc955.

Solidity: function initialize(address _token0, address _token1) returns()

func (*LptokenTransactorSession) Mint

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address to) returns(uint256 liquidity)

func (*LptokenTransactorSession) Permit

func (_Lptoken *LptokenTransactorSession) 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 (*LptokenTransactorSession) Skim

Skim is a paid mutator transaction binding the contract method 0xbc25cf77.

Solidity: function skim(address to) returns()

func (*LptokenTransactorSession) Swap

func (_Lptoken *LptokenTransactorSession) 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 (*LptokenTransactorSession) Sync

func (_Lptoken *LptokenTransactorSession) Sync() (*types.Transaction, error)

Sync is a paid mutator transaction binding the contract method 0xfff6cae9.

Solidity: function sync() returns()

func (*LptokenTransactorSession) Transfer

func (_Lptoken *LptokenTransactorSession) 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 (*LptokenTransactorSession) TransferFrom

func (_Lptoken *LptokenTransactorSession) 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 LptokenTransfer

type LptokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

LptokenTransfer represents a Transfer event raised by the Lptoken contract.

type LptokenTransferIterator

type LptokenTransferIterator struct {
	Event *LptokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

LptokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Lptoken contract.

func (*LptokenTransferIterator) Close

func (it *LptokenTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*LptokenTransferIterator) Error

func (it *LptokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*LptokenTransferIterator) Next

func (it *LptokenTransferIterator) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL