Documentation ¶
Index ¶
- Constants
- Variables
- type Approval
- func (*Approval) Descriptor() ([]byte, []int)deprecated
- func (x *Approval) GetOwner() []byte
- func (x *Approval) GetSpender() []byte
- func (x *Approval) GetTs() *timestamppb.Timestamp
- func (x *Approval) GetValue() []byte
- func (*Approval) ProtoMessage()
- func (x *Approval) ProtoReflect() protoreflect.Message
- func (x *Approval) Reset()
- func (x *Approval) String() string
- type Burn
- func (*Burn) Descriptor() ([]byte, []int)deprecated
- func (x *Burn) GetAmount0() []byte
- func (x *Burn) GetAmount1() []byte
- func (x *Burn) GetSender() []byte
- func (x *Burn) GetTo() []byte
- func (x *Burn) GetTs() *timestamppb.Timestamp
- func (*Burn) ProtoMessage()
- func (x *Burn) ProtoReflect() protoreflect.Message
- func (x *Burn) Reset()
- func (x *Burn) String() string
- type Mint
- func (*Mint) Descriptor() ([]byte, []int)deprecated
- func (x *Mint) GetAmount0() []byte
- func (x *Mint) GetAmount1() []byte
- func (x *Mint) GetSender() []byte
- func (x *Mint) GetTs() *timestamppb.Timestamp
- func (*Mint) ProtoMessage()
- func (x *Mint) ProtoReflect() protoreflect.Message
- func (x *Mint) Reset()
- func (x *Mint) String() string
- type SmartContract
- type Swap
- func (*Swap) Descriptor() ([]byte, []int)deprecated
- func (x *Swap) GetAmount0In() []byte
- func (x *Swap) GetAmount0Out() []byte
- func (x *Swap) GetAmount1In() []byte
- func (x *Swap) GetAmount1Out() []byte
- func (x *Swap) GetSender() []byte
- func (x *Swap) GetTo() []byte
- func (x *Swap) GetTs() *timestamppb.Timestamp
- func (*Swap) ProtoMessage()
- func (x *Swap) ProtoReflect() protoreflect.Message
- func (x *Swap) Reset()
- func (x *Swap) String() string
- type Sync
- func (*Sync) Descriptor() ([]byte, []int)deprecated
- func (x *Sync) GetReserve0() []byte
- func (x *Sync) GetReserve1() []byte
- func (x *Sync) GetTs() *timestamppb.Timestamp
- func (*Sync) ProtoMessage()
- func (x *Sync) ProtoReflect() protoreflect.Message
- func (x *Sync) Reset()
- func (x *Sync) String() string
- type Transfer
- func (*Transfer) Descriptor() ([]byte, []int)deprecated
- func (x *Transfer) GetFrom() []byte
- func (x *Transfer) GetTo() []byte
- func (x *Transfer) GetTs() *timestamppb.Timestamp
- func (x *Transfer) GetValue() []byte
- func (*Transfer) ProtoMessage()
- func (x *Transfer) ProtoReflect() protoreflect.Message
- func (x *Transfer) Reset()
- func (x *Transfer) String() string
- type UNIV2
- type UNIV2Approval
- type UNIV2ApprovalIterator
- type UNIV2Burn
- type UNIV2BurnIterator
- type UNIV2Caller
- func (_UNIV2 *UNIV2Caller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
- func (_UNIV2 *UNIV2Caller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_UNIV2 *UNIV2Caller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_UNIV2 *UNIV2Caller) GetReserves(opts *bind.CallOpts) (struct{ ... }, error)
- func (_UNIV2 *UNIV2Caller) KLast(opts *bind.CallOpts) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) Name(opts *bind.CallOpts) (string, error)
- func (_UNIV2 *UNIV2Caller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
- func (_UNIV2 *UNIV2Caller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_UNIV2 *UNIV2Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_UNIV2 *UNIV2Caller) Token0(opts *bind.CallOpts) (common.Address, error)
- func (_UNIV2 *UNIV2Caller) Token1(opts *bind.CallOpts) (common.Address, error)
- func (_UNIV2 *UNIV2Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type UNIV2CallerRaw
- type UNIV2CallerSession
- func (_UNIV2 *UNIV2CallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_UNIV2 *UNIV2CallerSession) Decimals() (uint8, error)
- func (_UNIV2 *UNIV2CallerSession) Factory() (common.Address, error)
- func (_UNIV2 *UNIV2CallerSession) GetReserves() (struct{ ... }, error)
- func (_UNIV2 *UNIV2CallerSession) KLast() (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) MINIMUMLIQUIDITY() (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) Name() (string, error)
- func (_UNIV2 *UNIV2CallerSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) PERMITTYPEHASH() ([32]byte, error)
- func (_UNIV2 *UNIV2CallerSession) Price0CumulativeLast() (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) Price1CumulativeLast() (*big.Int, error)
- func (_UNIV2 *UNIV2CallerSession) Symbol() (string, error)
- func (_UNIV2 *UNIV2CallerSession) Token0() (common.Address, error)
- func (_UNIV2 *UNIV2CallerSession) Token1() (common.Address, error)
- func (_UNIV2 *UNIV2CallerSession) TotalSupply() (*big.Int, error)
- type UNIV2Filterer
- func (_UNIV2 *UNIV2Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*UNIV2ApprovalIterator, error)
- func (_UNIV2 *UNIV2Filterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*UNIV2BurnIterator, error)
- func (_UNIV2 *UNIV2Filterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*UNIV2MintIterator, error)
- func (_UNIV2 *UNIV2Filterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*UNIV2SwapIterator, error)
- func (_UNIV2 *UNIV2Filterer) FilterSync(opts *bind.FilterOpts) (*UNIV2SyncIterator, error)
- func (_UNIV2 *UNIV2Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UNIV2TransferIterator, error)
- func (_UNIV2 *UNIV2Filterer) ParseApproval(log types.Log) (*UNIV2Approval, error)
- func (_UNIV2 *UNIV2Filterer) ParseBurn(log types.Log) (*UNIV2Burn, error)
- func (_UNIV2 *UNIV2Filterer) ParseMint(log types.Log) (*UNIV2Mint, error)
- func (_UNIV2 *UNIV2Filterer) ParseSwap(log types.Log) (*UNIV2Swap, error)
- func (_UNIV2 *UNIV2Filterer) ParseSync(log types.Log) (*UNIV2Sync, error)
- func (_UNIV2 *UNIV2Filterer) ParseTransfer(log types.Log) (*UNIV2Transfer, error)
- func (_UNIV2 *UNIV2Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UNIV2Approval, owner []common.Address, ...) (event.Subscription, error)
- func (_UNIV2 *UNIV2Filterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *UNIV2Burn, sender []common.Address, ...) (event.Subscription, error)
- func (_UNIV2 *UNIV2Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *UNIV2Mint, sender []common.Address) (event.Subscription, error)
- func (_UNIV2 *UNIV2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *UNIV2Swap, sender []common.Address, ...) (event.Subscription, error)
- func (_UNIV2 *UNIV2Filterer) WatchSync(opts *bind.WatchOpts, sink chan<- *UNIV2Sync) (event.Subscription, error)
- func (_UNIV2 *UNIV2Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UNIV2Transfer, from []common.Address, ...) (event.Subscription, error)
- type UNIV2Mint
- type UNIV2MintIterator
- type UNIV2Raw
- func (_UNIV2 *UNIV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_UNIV2 *UNIV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UNIV2Session
- func (_UNIV2 *UNIV2Session) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2Session) Burn(to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) DOMAINSEPARATOR() ([32]byte, error)
- func (_UNIV2 *UNIV2Session) Decimals() (uint8, error)
- func (_UNIV2 *UNIV2Session) Factory() (common.Address, error)
- func (_UNIV2 *UNIV2Session) GetReserves() (struct{ ... }, error)
- func (_UNIV2 *UNIV2Session) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) KLast() (*big.Int, error)
- func (_UNIV2 *UNIV2Session) MINIMUMLIQUIDITY() (*big.Int, error)
- func (_UNIV2 *UNIV2Session) Mint(to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) Name() (string, error)
- func (_UNIV2 *UNIV2Session) Nonces(arg0 common.Address) (*big.Int, error)
- func (_UNIV2 *UNIV2Session) PERMITTYPEHASH() ([32]byte, error)
- func (_UNIV2 *UNIV2Session) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) Price0CumulativeLast() (*big.Int, error)
- func (_UNIV2 *UNIV2Session) Price1CumulativeLast() (*big.Int, error)
- func (_UNIV2 *UNIV2Session) Skim(to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) Symbol() (string, error)
- func (_UNIV2 *UNIV2Session) Sync() (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) Token0() (common.Address, error)
- func (_UNIV2 *UNIV2Session) Token1() (common.Address, error)
- func (_UNIV2 *UNIV2Session) TotalSupply() (*big.Int, error)
- func (_UNIV2 *UNIV2Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type UNIV2Swap
- type UNIV2SwapIterator
- type UNIV2Sync
- type UNIV2SyncIterator
- type UNIV2Transactor
- func (_UNIV2 *UNIV2Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Initialize(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, ...) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, ...) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_UNIV2 *UNIV2Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type UNIV2TransactorRaw
- type UNIV2TransactorSession
- func (_UNIV2 *UNIV2TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Burn(to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Mint(to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Skim(to common.Address) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Sync() (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_UNIV2 *UNIV2TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type UNIV2Transfer
- type UNIV2TransferIterator
Constants ¶
const UNIV2ABI = "" /* 9821-byte string literal not displayed */
UNIV2ABI is the input ABI used to generate the binding from.
Variables ¶
var File_UniV2_UniV2_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Approval ¶
type Approval struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Owner []byte `protobuf:"bytes,2,opt,name=Owner,proto3" json:"Owner,omitempty"` // address Spender []byte `protobuf:"bytes,3,opt,name=Spender,proto3" json:"Spender,omitempty"` // address Value []byte `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Approval) Descriptor
deprecated
func (*Approval) GetSpender ¶
func (*Approval) GetTs ¶
func (x *Approval) GetTs() *timestamppb.Timestamp
func (*Approval) ProtoMessage ¶
func (*Approval) ProtoMessage()
func (*Approval) ProtoReflect ¶
func (x *Approval) ProtoReflect() protoreflect.Message
type Burn ¶
type Burn struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Sender []byte `protobuf:"bytes,2,opt,name=Sender,proto3" json:"Sender,omitempty"` // address Amount0 []byte `protobuf:"bytes,3,opt,name=Amount0,proto3" json:"Amount0,omitempty"` // uint256 Amount1 []byte `protobuf:"bytes,4,opt,name=Amount1,proto3" json:"Amount1,omitempty"` // uint256 To []byte `protobuf:"bytes,5,opt,name=To,proto3" json:"To,omitempty"` // address // contains filtered or unexported fields }
func (*Burn) Descriptor
deprecated
func (*Burn) GetAmount0 ¶
func (*Burn) GetAmount1 ¶
func (*Burn) GetTs ¶
func (x *Burn) GetTs() *timestamppb.Timestamp
func (*Burn) ProtoMessage ¶
func (*Burn) ProtoMessage()
func (*Burn) ProtoReflect ¶
func (x *Burn) ProtoReflect() protoreflect.Message
type Mint ¶
type Mint struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Sender []byte `protobuf:"bytes,2,opt,name=Sender,proto3" json:"Sender,omitempty"` // address Amount0 []byte `protobuf:"bytes,3,opt,name=Amount0,proto3" json:"Amount0,omitempty"` // uint256 Amount1 []byte `protobuf:"bytes,4,opt,name=Amount1,proto3" json:"Amount1,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Mint) Descriptor
deprecated
func (*Mint) GetAmount0 ¶
func (*Mint) GetAmount1 ¶
func (*Mint) GetTs ¶
func (x *Mint) GetTs() *timestamppb.Timestamp
func (*Mint) ProtoMessage ¶
func (*Mint) ProtoMessage()
func (*Mint) ProtoReflect ¶
func (x *Mint) ProtoReflect() protoreflect.Message
type SmartContract ¶
type SmartContract struct{}
func (*SmartContract) Message ¶
func (sc *SmartContract) Message(eventName string, contractAbi *abi.ABI, vLog types.Log, timestamp *timestamppb.Timestamp) protoreflect.ProtoMessage
type Swap ¶
type Swap struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Sender []byte `protobuf:"bytes,2,opt,name=Sender,proto3" json:"Sender,omitempty"` // address Amount0In []byte `protobuf:"bytes,3,opt,name=Amount0In,proto3" json:"Amount0In,omitempty"` // uint256 Amount1In []byte `protobuf:"bytes,4,opt,name=Amount1In,proto3" json:"Amount1In,omitempty"` // uint256 Amount0Out []byte `protobuf:"bytes,5,opt,name=Amount0Out,proto3" json:"Amount0Out,omitempty"` // uint256 Amount1Out []byte `protobuf:"bytes,6,opt,name=Amount1Out,proto3" json:"Amount1Out,omitempty"` // uint256 To []byte `protobuf:"bytes,7,opt,name=To,proto3" json:"To,omitempty"` // address // contains filtered or unexported fields }
func (*Swap) Descriptor
deprecated
func (*Swap) GetAmount0In ¶
func (*Swap) GetAmount0Out ¶
func (*Swap) GetAmount1In ¶
func (*Swap) GetAmount1Out ¶
func (*Swap) GetTs ¶
func (x *Swap) GetTs() *timestamppb.Timestamp
func (*Swap) ProtoMessage ¶
func (*Swap) ProtoMessage()
func (*Swap) ProtoReflect ¶
func (x *Swap) ProtoReflect() protoreflect.Message
type Sync ¶
type Sync struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` Reserve0 []byte `protobuf:"bytes,2,opt,name=Reserve0,proto3" json:"Reserve0,omitempty"` // uint112 Reserve1 []byte `protobuf:"bytes,3,opt,name=Reserve1,proto3" json:"Reserve1,omitempty"` // uint112 // contains filtered or unexported fields }
func (*Sync) Descriptor
deprecated
func (*Sync) GetReserve0 ¶
func (*Sync) GetReserve1 ¶
func (*Sync) GetTs ¶
func (x *Sync) GetTs() *timestamppb.Timestamp
func (*Sync) ProtoMessage ¶
func (*Sync) ProtoMessage()
func (*Sync) ProtoReflect ¶
func (x *Sync) ProtoReflect() protoreflect.Message
type Transfer ¶
type Transfer struct { Ts *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=ts,proto3" json:"ts,omitempty"` From []byte `protobuf:"bytes,2,opt,name=From,proto3" json:"From,omitempty"` // address To []byte `protobuf:"bytes,3,opt,name=To,proto3" json:"To,omitempty"` // address Value []byte `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` // uint256 // contains filtered or unexported fields }
func (*Transfer) Descriptor
deprecated
func (*Transfer) GetTs ¶
func (x *Transfer) GetTs() *timestamppb.Timestamp
func (*Transfer) ProtoMessage ¶
func (*Transfer) ProtoMessage()
func (*Transfer) ProtoReflect ¶
func (x *Transfer) ProtoReflect() protoreflect.Message
type UNIV2 ¶
type UNIV2 struct { UNIV2Caller // Read-only binding to the contract UNIV2Transactor // Write-only binding to the contract UNIV2Filterer // Log filterer for contract events }
UNIV2 is an auto generated Go binding around an Ethereum contract.
type UNIV2Approval ¶
type UNIV2Approval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
UNIV2Approval represents a Approval event raised by the UNIV2 contract.
type UNIV2ApprovalIterator ¶
type UNIV2ApprovalIterator struct { Event *UNIV2Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UNIV2ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the UNIV2 contract.
func (*UNIV2ApprovalIterator) Close ¶
func (it *UNIV2ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UNIV2ApprovalIterator) Error ¶
func (it *UNIV2ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UNIV2ApprovalIterator) Next ¶
func (it *UNIV2ApprovalIterator) 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 UNIV2Burn ¶
type UNIV2Burn struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
UNIV2Burn represents a Burn event raised by the UNIV2 contract.
type UNIV2BurnIterator ¶
type UNIV2BurnIterator struct { Event *UNIV2Burn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UNIV2BurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the UNIV2 contract.
func (*UNIV2BurnIterator) Close ¶
func (it *UNIV2BurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UNIV2BurnIterator) Error ¶
func (it *UNIV2BurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UNIV2BurnIterator) Next ¶
func (it *UNIV2BurnIterator) 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 UNIV2Caller ¶
type UNIV2Caller struct {
// contains filtered or unexported fields
}
UNIV2Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewUNIV2Caller ¶
func NewUNIV2Caller(address common.Address, caller bind.ContractCaller) (*UNIV2Caller, error)
NewUNIV2Caller creates a new read-only instance of UNIV2, bound to a specific deployed contract.
func (*UNIV2Caller) Allowance ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*UNIV2Caller) DOMAINSEPARATOR ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) Decimals ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UNIV2Caller) GetReserves ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) KLast ¶
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*UNIV2Caller) MINIMUMLIQUIDITY ¶
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
func (*UNIV2Caller) Name ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*UNIV2Caller) PERMITTYPEHASH ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) Price0CumulativeLast ¶
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*UNIV2Caller) Price1CumulativeLast ¶
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*UNIV2Caller) Symbol ¶
func (_UNIV2 *UNIV2Caller) 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 (*UNIV2Caller) Token0 ¶
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*UNIV2Caller) Token1 ¶
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*UNIV2Caller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type UNIV2CallerRaw ¶
type UNIV2CallerRaw struct {
Contract *UNIV2Caller // Generic read-only contract binding to access the raw methods on
}
UNIV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UNIV2CallerRaw) Call ¶
func (_UNIV2 *UNIV2CallerRaw) 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 UNIV2CallerSession ¶
type UNIV2CallerSession struct { Contract *UNIV2Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UNIV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UNIV2CallerSession) Allowance ¶
func (_UNIV2 *UNIV2CallerSession) 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 (*UNIV2CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*UNIV2CallerSession) DOMAINSEPARATOR ¶
func (_UNIV2 *UNIV2CallerSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*UNIV2CallerSession) Decimals ¶
func (_UNIV2 *UNIV2CallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*UNIV2CallerSession) Factory ¶
func (_UNIV2 *UNIV2CallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UNIV2CallerSession) GetReserves ¶
func (_UNIV2 *UNIV2CallerSession) 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 (*UNIV2CallerSession) KLast ¶
func (_UNIV2 *UNIV2CallerSession) KLast() (*big.Int, error)
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*UNIV2CallerSession) MINIMUMLIQUIDITY ¶
func (_UNIV2 *UNIV2CallerSession) MINIMUMLIQUIDITY() (*big.Int, error)
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
func (*UNIV2CallerSession) Name ¶
func (_UNIV2 *UNIV2CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*UNIV2CallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*UNIV2CallerSession) PERMITTYPEHASH ¶
func (_UNIV2 *UNIV2CallerSession) PERMITTYPEHASH() ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() view returns(bytes32)
func (*UNIV2CallerSession) Price0CumulativeLast ¶
func (_UNIV2 *UNIV2CallerSession) Price0CumulativeLast() (*big.Int, error)
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*UNIV2CallerSession) Price1CumulativeLast ¶
func (_UNIV2 *UNIV2CallerSession) Price1CumulativeLast() (*big.Int, error)
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*UNIV2CallerSession) Symbol ¶
func (_UNIV2 *UNIV2CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*UNIV2CallerSession) Token0 ¶
func (_UNIV2 *UNIV2CallerSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*UNIV2CallerSession) Token1 ¶
func (_UNIV2 *UNIV2CallerSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*UNIV2CallerSession) TotalSupply ¶
func (_UNIV2 *UNIV2CallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type UNIV2Filterer ¶
type UNIV2Filterer struct {
// contains filtered or unexported fields
}
UNIV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUNIV2Filterer ¶
func NewUNIV2Filterer(address common.Address, filterer bind.ContractFilterer) (*UNIV2Filterer, error)
NewUNIV2Filterer creates a new log filterer instance of UNIV2, bound to a specific deployed contract.
func (*UNIV2Filterer) FilterApproval ¶
func (_UNIV2 *UNIV2Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*UNIV2ApprovalIterator, 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 (*UNIV2Filterer) FilterBurn ¶
func (_UNIV2 *UNIV2Filterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*UNIV2BurnIterator, 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 (*UNIV2Filterer) FilterMint ¶
func (_UNIV2 *UNIV2Filterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*UNIV2MintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*UNIV2Filterer) FilterSwap ¶
func (_UNIV2 *UNIV2Filterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*UNIV2SwapIterator, 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 (*UNIV2Filterer) FilterSync ¶
func (_UNIV2 *UNIV2Filterer) FilterSync(opts *bind.FilterOpts) (*UNIV2SyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*UNIV2Filterer) FilterTransfer ¶
func (_UNIV2 *UNIV2Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*UNIV2TransferIterator, 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 (*UNIV2Filterer) ParseApproval ¶
func (_UNIV2 *UNIV2Filterer) ParseApproval(log types.Log) (*UNIV2Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*UNIV2Filterer) ParseBurn ¶
func (_UNIV2 *UNIV2Filterer) ParseBurn(log types.Log) (*UNIV2Burn, 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 (*UNIV2Filterer) ParseMint ¶
func (_UNIV2 *UNIV2Filterer) ParseMint(log types.Log) (*UNIV2Mint, error)
ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*UNIV2Filterer) ParseSwap ¶
func (_UNIV2 *UNIV2Filterer) ParseSwap(log types.Log) (*UNIV2Swap, 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 (*UNIV2Filterer) ParseSync ¶
func (_UNIV2 *UNIV2Filterer) ParseSync(log types.Log) (*UNIV2Sync, error)
ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*UNIV2Filterer) ParseTransfer ¶
func (_UNIV2 *UNIV2Filterer) ParseTransfer(log types.Log) (*UNIV2Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*UNIV2Filterer) WatchApproval ¶
func (_UNIV2 *UNIV2Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UNIV2Approval, 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 (*UNIV2Filterer) WatchBurn ¶
func (_UNIV2 *UNIV2Filterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *UNIV2Burn, 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 (*UNIV2Filterer) WatchMint ¶
func (_UNIV2 *UNIV2Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *UNIV2Mint, 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 (*UNIV2Filterer) WatchSwap ¶
func (_UNIV2 *UNIV2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *UNIV2Swap, 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 (*UNIV2Filterer) WatchSync ¶
func (_UNIV2 *UNIV2Filterer) WatchSync(opts *bind.WatchOpts, sink chan<- *UNIV2Sync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*UNIV2Filterer) WatchTransfer ¶
func (_UNIV2 *UNIV2Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UNIV2Transfer, 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 UNIV2Mint ¶
type UNIV2Mint struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Raw types.Log // Blockchain specific contextual infos }
UNIV2Mint represents a Mint event raised by the UNIV2 contract.
type UNIV2MintIterator ¶
type UNIV2MintIterator struct { Event *UNIV2Mint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UNIV2MintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the UNIV2 contract.
func (*UNIV2MintIterator) Close ¶
func (it *UNIV2MintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UNIV2MintIterator) Error ¶
func (it *UNIV2MintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UNIV2MintIterator) Next ¶
func (it *UNIV2MintIterator) 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 UNIV2Raw ¶
type UNIV2Raw struct {
Contract *UNIV2 // Generic contract binding to access the raw methods on
}
UNIV2Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*UNIV2Raw) Call ¶
func (_UNIV2 *UNIV2Raw) 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 (*UNIV2Raw) Transact ¶
func (_UNIV2 *UNIV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UNIV2Raw) Transfer ¶
func (_UNIV2 *UNIV2Raw) 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 UNIV2Session ¶
type UNIV2Session struct { Contract *UNIV2 // 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 }
UNIV2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UNIV2Session) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*UNIV2Session) Approve ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*UNIV2Session) Burn ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) DOMAINSEPARATOR ¶
func (_UNIV2 *UNIV2Session) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*UNIV2Session) Decimals ¶
func (_UNIV2 *UNIV2Session) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*UNIV2Session) Factory ¶
func (_UNIV2 *UNIV2Session) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*UNIV2Session) GetReserves ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) Initialize ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) KLast ¶
func (_UNIV2 *UNIV2Session) KLast() (*big.Int, error)
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*UNIV2Session) MINIMUMLIQUIDITY ¶
func (_UNIV2 *UNIV2Session) MINIMUMLIQUIDITY() (*big.Int, error)
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
func (*UNIV2Session) Mint ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) Name ¶
func (_UNIV2 *UNIV2Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*UNIV2Session) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*UNIV2Session) PERMITTYPEHASH ¶
func (_UNIV2 *UNIV2Session) PERMITTYPEHASH() ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() view returns(bytes32)
func (*UNIV2Session) Permit ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) Price0CumulativeLast ¶
func (_UNIV2 *UNIV2Session) Price0CumulativeLast() (*big.Int, error)
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*UNIV2Session) Price1CumulativeLast ¶
func (_UNIV2 *UNIV2Session) Price1CumulativeLast() (*big.Int, error)
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*UNIV2Session) Skim ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) Swap ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) Symbol ¶
func (_UNIV2 *UNIV2Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*UNIV2Session) Sync ¶
func (_UNIV2 *UNIV2Session) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*UNIV2Session) Token0 ¶
func (_UNIV2 *UNIV2Session) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*UNIV2Session) Token1 ¶
func (_UNIV2 *UNIV2Session) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*UNIV2Session) TotalSupply ¶
func (_UNIV2 *UNIV2Session) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*UNIV2Session) Transfer ¶
func (_UNIV2 *UNIV2Session) 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 (*UNIV2Session) TransferFrom ¶
func (_UNIV2 *UNIV2Session) 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 UNIV2Swap ¶
type UNIV2Swap 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 }
UNIV2Swap represents a Swap event raised by the UNIV2 contract.
type UNIV2SwapIterator ¶
type UNIV2SwapIterator struct { Event *UNIV2Swap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UNIV2SwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the UNIV2 contract.
func (*UNIV2SwapIterator) Close ¶
func (it *UNIV2SwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UNIV2SwapIterator) Error ¶
func (it *UNIV2SwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UNIV2SwapIterator) Next ¶
func (it *UNIV2SwapIterator) 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 UNIV2Sync ¶
type UNIV2Sync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
UNIV2Sync represents a Sync event raised by the UNIV2 contract.
type UNIV2SyncIterator ¶
type UNIV2SyncIterator struct { Event *UNIV2Sync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UNIV2SyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the UNIV2 contract.
func (*UNIV2SyncIterator) Close ¶
func (it *UNIV2SyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UNIV2SyncIterator) Error ¶
func (it *UNIV2SyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UNIV2SyncIterator) Next ¶
func (it *UNIV2SyncIterator) 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 UNIV2Transactor ¶
type UNIV2Transactor struct {
// contains filtered or unexported fields
}
UNIV2Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUNIV2Transactor ¶
func NewUNIV2Transactor(address common.Address, transactor bind.ContractTransactor) (*UNIV2Transactor, error)
NewUNIV2Transactor creates a new write-only instance of UNIV2, bound to a specific deployed contract.
func (*UNIV2Transactor) Approve ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Burn ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Initialize ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Mint ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Permit ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Skim ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Swap ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) Sync ¶
func (_UNIV2 *UNIV2Transactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*UNIV2Transactor) Transfer ¶
func (_UNIV2 *UNIV2Transactor) 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 (*UNIV2Transactor) TransferFrom ¶
func (_UNIV2 *UNIV2Transactor) 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 UNIV2TransactorRaw ¶
type UNIV2TransactorRaw struct {
Contract *UNIV2Transactor // Generic write-only contract binding to access the raw methods on
}
UNIV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UNIV2TransactorRaw) Transact ¶
func (_UNIV2 *UNIV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UNIV2TransactorRaw) Transfer ¶
func (_UNIV2 *UNIV2TransactorRaw) 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 UNIV2TransactorSession ¶
type UNIV2TransactorSession struct { Contract *UNIV2Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UNIV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*UNIV2TransactorSession) Approve ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Burn ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Initialize ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Mint ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Permit ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Skim ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Swap ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) Sync ¶
func (_UNIV2 *UNIV2TransactorSession) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*UNIV2TransactorSession) Transfer ¶
func (_UNIV2 *UNIV2TransactorSession) 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 (*UNIV2TransactorSession) TransferFrom ¶
func (_UNIV2 *UNIV2TransactorSession) 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 UNIV2Transfer ¶
type UNIV2Transfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
UNIV2Transfer represents a Transfer event raised by the UNIV2 contract.
type UNIV2TransferIterator ¶
type UNIV2TransferIterator struct { Event *UNIV2Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UNIV2TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the UNIV2 contract.
func (*UNIV2TransferIterator) Close ¶
func (it *UNIV2TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UNIV2TransferIterator) Error ¶
func (it *UNIV2TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UNIV2TransferIterator) Next ¶
func (it *UNIV2TransferIterator) 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.