Documentation ¶
Index ¶
- Constants
- type Pair
- type PairApproval
- type PairApprovalIterator
- type PairBurn
- type PairBurnIterator
- type PairCaller
- func (_Pair *PairCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)
- func (_Pair *PairCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Pair *PairCaller) Factory(opts *bind.CallOpts) (common.Address, error)
- func (_Pair *PairCaller) GetReserves(opts *bind.CallOpts) (struct{ ... }, error)
- func (_Pair *PairCaller) KLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) MINIMUMLIQUIDITY(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Pair *PairCaller) Nonces(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCaller) PERMITTYPEHASH(opts *bind.CallOpts) ([32]byte, error)
- func (_Pair *PairCaller) Price0CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Price1CumulativeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_Pair *PairCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Pair *PairCaller) Token0(opts *bind.CallOpts) (common.Address, error)
- func (_Pair *PairCaller) Token1(opts *bind.CallOpts) (common.Address, error)
- func (_Pair *PairCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type PairCallerRaw
- type PairCallerSession
- func (_Pair *PairCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_Pair *PairCallerSession) Decimals() (uint8, error)
- func (_Pair *PairCallerSession) Factory() (common.Address, error)
- func (_Pair *PairCallerSession) GetReserves() (struct{ ... }, error)
- func (_Pair *PairCallerSession) KLast() (*big.Int, error)
- func (_Pair *PairCallerSession) MINIMUMLIQUIDITY() (*big.Int, error)
- func (_Pair *PairCallerSession) Name() (string, error)
- func (_Pair *PairCallerSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairCallerSession) PERMITTYPEHASH() ([32]byte, error)
- func (_Pair *PairCallerSession) Price0CumulativeLast() (*big.Int, error)
- func (_Pair *PairCallerSession) Price1CumulativeLast() (*big.Int, error)
- func (_Pair *PairCallerSession) Symbol() (string, error)
- func (_Pair *PairCallerSession) Token0() (common.Address, error)
- func (_Pair *PairCallerSession) Token1() (common.Address, error)
- func (_Pair *PairCallerSession) TotalSupply() (*big.Int, error)
- type PairFilterer
- func (_Pair *PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PairApprovalIterator, error)
- func (_Pair *PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairBurnIterator, error)
- func (_Pair *PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*PairMintIterator, error)
- func (_Pair *PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairSwapIterator, error)
- func (_Pair *PairFilterer) FilterSync(opts *bind.FilterOpts) (*PairSyncIterator, error)
- func (_Pair *PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*PairTransferIterator, error)
- func (_Pair *PairFilterer) ParseApproval(log types.Log) (*PairApproval, error)
- func (_Pair *PairFilterer) ParseBurn(log types.Log) (*PairBurn, error)
- func (_Pair *PairFilterer) ParseMint(log types.Log) (*PairMint, error)
- func (_Pair *PairFilterer) ParseSwap(log types.Log) (*PairSwap, error)
- func (_Pair *PairFilterer) ParseSync(log types.Log) (*PairSync, error)
- func (_Pair *PairFilterer) ParseTransfer(log types.Log) (*PairTransfer, error)
- func (_Pair *PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PairApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *PairBurn, sender []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *PairMint, sender []common.Address) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PairSwap, sender []common.Address, ...) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *PairSync) (event.Subscription, error)
- func (_Pair *PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PairTransfer, from []common.Address, ...) (event.Subscription, error)
- type PairMint
- type PairMintIterator
- type PairRaw
- func (_Pair *PairRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Pair *PairRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Pair *PairRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PairSession
- func (_Pair *PairSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Pair *PairSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Pair *PairSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) Burn(to common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) DOMAINSEPARATOR() ([32]byte, error)
- func (_Pair *PairSession) Decimals() (uint8, error)
- func (_Pair *PairSession) Factory() (common.Address, error)
- func (_Pair *PairSession) GetReserves() (struct{ ... }, error)
- func (_Pair *PairSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) KLast() (*big.Int, error)
- func (_Pair *PairSession) MINIMUMLIQUIDITY() (*big.Int, error)
- func (_Pair *PairSession) Mint(to common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) Name() (string, error)
- func (_Pair *PairSession) Nonces(arg0 common.Address) (*big.Int, error)
- func (_Pair *PairSession) PERMITTYPEHASH() ([32]byte, error)
- func (_Pair *PairSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Pair *PairSession) Price0CumulativeLast() (*big.Int, error)
- func (_Pair *PairSession) Price1CumulativeLast() (*big.Int, error)
- func (_Pair *PairSession) Skim(to common.Address) (*types.Transaction, error)
- func (_Pair *PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_Pair *PairSession) Symbol() (string, error)
- func (_Pair *PairSession) Sync() (*types.Transaction, error)
- func (_Pair *PairSession) Token0() (common.Address, error)
- func (_Pair *PairSession) Token1() (common.Address, error)
- func (_Pair *PairSession) TotalSupply() (*big.Int, error)
- func (_Pair *PairSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Pair *PairSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type PairSwap
- type PairSwapIterator
- type PairSync
- type PairSyncIterator
- type PairTransactor
- func (_Pair *PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) Initialize(opts *bind.TransactOpts, _token0 common.Address, _token1 common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, ...) (*types.Transaction, error)
- func (_Pair *PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, ...) (*types.Transaction, error)
- func (_Pair *PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Pair *PairTransactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type PairTransactorRaw
- type PairTransactorSession
- func (_Pair *PairTransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Burn(to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Initialize(_token0 common.Address, _token1 common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Mint(to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, ...) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Skim(to common.Address) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Sync() (*types.Transaction, error)
- func (_Pair *PairTransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)
- func (_Pair *PairTransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)
- type PairTransfer
- type PairTransferIterator
- type Token
- type TokenApproval
- type TokenApprovalIterator
- type TokenCaller
- func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type TokenCallerRaw
- type TokenCallerSession
- func (_Token *TokenCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) Decimals() (uint8, error)
- func (_Token *TokenCallerSession) Name() (string, error)
- func (_Token *TokenCallerSession) Symbol() (string, error)
- func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
- type TokenDeposit
- type TokenDepositIterator
- type TokenFilterer
- func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*TokenApprovalIterator, error)
- func (_Token *TokenFilterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*TokenDepositIterator, error)
- func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*TokenTransferIterator, error)
- func (_Token *TokenFilterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*TokenWithdrawalIterator, error)
- func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
- func (_Token *TokenFilterer) ParseDeposit(log types.Log) (*TokenDeposit, error)
- func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
- func (_Token *TokenFilterer) ParseWithdrawal(log types.Log) (*TokenWithdrawal, error)
- func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, src []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *TokenDeposit, dst []common.Address) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, src []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *TokenWithdrawal, src []common.Address) (event.Subscription, error)
- type TokenRaw
- func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenSession
- func (_Token *TokenSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_Token *TokenSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) BalanceOf(arg0 common.Address) (*big.Int, error)
- func (_Token *TokenSession) Decimals() (uint8, error)
- func (_Token *TokenSession) Deposit() (*types.Transaction, error)
- func (_Token *TokenSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_Token *TokenSession) Name() (string, error)
- func (_Token *TokenSession) Symbol() (string, error)
- func (_Token *TokenSession) TotalSupply() (*big.Int, error)
- func (_Token *TokenSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Withdraw(wad *big.Int) (*types.Transaction, error)
- type TokenTransactor
- func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Token *TokenTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
- func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)
- type TokenTransactorRaw
- type TokenTransactorSession
- func (_Token *TokenTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Deposit() (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)
- type TokenTransfer
- type TokenTransferIterator
- type TokenWithdrawal
- type TokenWithdrawalIterator
Constants ¶
const PairABI = "" /* 9821-byte string literal not displayed */
PairABI is the input ABI used to generate the binding from.
const TokenABI = "" /* 3261-byte string literal not displayed */
TokenABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pair ¶
type Pair struct { PairCaller // Read-only binding to the contract PairTransactor // Write-only binding to the contract PairFilterer // Log filterer for contract events }
Pair is an auto generated Go binding around an Ethereum contract.
type PairApproval ¶
type PairApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
PairApproval represents a Approval event raised by the Pair contract.
type PairApprovalIterator ¶
type PairApprovalIterator struct { Event *PairApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Pair contract.
func (*PairApprovalIterator) Close ¶
func (it *PairApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairApprovalIterator) Error ¶
func (it *PairApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairApprovalIterator) Next ¶
func (it *PairApprovalIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type PairBurn ¶
type PairBurn struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
PairBurn represents a Burn event raised by the Pair contract.
type PairBurnIterator ¶
type PairBurnIterator struct { Event *PairBurn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the Pair contract.
func (*PairBurnIterator) Close ¶
func (it *PairBurnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairBurnIterator) Error ¶
func (it *PairBurnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairBurnIterator) Next ¶
func (it *PairBurnIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type PairCaller ¶
type PairCaller struct {
// contains filtered or unexported fields
}
PairCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPairCaller ¶
func NewPairCaller(address common.Address, caller bind.ContractCaller) (*PairCaller, error)
NewPairCaller creates a new read-only instance of Pair, bound to a specific deployed contract.
func (*PairCaller) Allowance ¶
func (_Pair *PairCaller) Allowance(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*PairCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*PairCaller) DOMAINSEPARATOR ¶
func (_Pair *PairCaller) 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 (*PairCaller) Decimals ¶
func (_Pair *PairCaller) Decimals(opts *bind.CallOpts) (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*PairCaller) Factory ¶
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*PairCaller) GetReserves ¶
func (_Pair *PairCaller) 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 (*PairCaller) KLast ¶
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*PairCaller) MINIMUMLIQUIDITY ¶
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
func (*PairCaller) Name ¶
func (_Pair *PairCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*PairCaller) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*PairCaller) PERMITTYPEHASH ¶
func (_Pair *PairCaller) 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 (*PairCaller) Price0CumulativeLast ¶
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*PairCaller) Price1CumulativeLast ¶
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*PairCaller) Symbol ¶
func (_Pair *PairCaller) Symbol(opts *bind.CallOpts) (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*PairCaller) Token0 ¶
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*PairCaller) Token1 ¶
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*PairCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type PairCallerRaw ¶
type PairCallerRaw struct {
Contract *PairCaller // Generic read-only contract binding to access the raw methods on
}
PairCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PairCallerRaw) Call ¶
func (_Pair *PairCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type PairCallerSession ¶
type PairCallerSession struct { Contract *PairCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PairCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*PairCallerSession) Allowance ¶
func (_Pair *PairCallerSession) Allowance(arg0 common.Address, arg1 common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*PairCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*PairCallerSession) DOMAINSEPARATOR ¶
func (_Pair *PairCallerSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*PairCallerSession) Decimals ¶
func (_Pair *PairCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*PairCallerSession) Factory ¶
func (_Pair *PairCallerSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*PairCallerSession) GetReserves ¶
func (_Pair *PairCallerSession) 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 (*PairCallerSession) KLast ¶
func (_Pair *PairCallerSession) KLast() (*big.Int, error)
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*PairCallerSession) MINIMUMLIQUIDITY ¶
func (_Pair *PairCallerSession) MINIMUMLIQUIDITY() (*big.Int, error)
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
func (*PairCallerSession) Name ¶
func (_Pair *PairCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*PairCallerSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*PairCallerSession) PERMITTYPEHASH ¶
func (_Pair *PairCallerSession) PERMITTYPEHASH() ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() view returns(bytes32)
func (*PairCallerSession) Price0CumulativeLast ¶
func (_Pair *PairCallerSession) Price0CumulativeLast() (*big.Int, error)
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*PairCallerSession) Price1CumulativeLast ¶
func (_Pair *PairCallerSession) Price1CumulativeLast() (*big.Int, error)
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*PairCallerSession) Symbol ¶
func (_Pair *PairCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*PairCallerSession) Token0 ¶
func (_Pair *PairCallerSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*PairCallerSession) Token1 ¶
func (_Pair *PairCallerSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*PairCallerSession) TotalSupply ¶
func (_Pair *PairCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type PairFilterer ¶
type PairFilterer struct {
// contains filtered or unexported fields
}
PairFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPairFilterer ¶
func NewPairFilterer(address common.Address, filterer bind.ContractFilterer) (*PairFilterer, error)
NewPairFilterer creates a new log filterer instance of Pair, bound to a specific deployed contract.
func (*PairFilterer) FilterApproval ¶
func (_Pair *PairFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*PairApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*PairFilterer) FilterBurn ¶
func (_Pair *PairFilterer) FilterBurn(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairBurnIterator, error)
FilterBurn is a free log retrieval operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
func (*PairFilterer) FilterMint ¶
func (_Pair *PairFilterer) FilterMint(opts *bind.FilterOpts, sender []common.Address) (*PairMintIterator, error)
FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) FilterSwap ¶
func (_Pair *PairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*PairSwapIterator, error)
FilterSwap is a free log retrieval operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*PairFilterer) FilterSync ¶
func (_Pair *PairFilterer) FilterSync(opts *bind.FilterOpts) (*PairSyncIterator, error)
FilterSync is a free log retrieval operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*PairFilterer) FilterTransfer ¶
func (_Pair *PairFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*PairTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*PairFilterer) ParseApproval ¶
func (_Pair *PairFilterer) ParseApproval(log types.Log) (*PairApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*PairFilterer) ParseBurn ¶
func (_Pair *PairFilterer) ParseBurn(log types.Log) (*PairBurn, error)
ParseBurn is a log parse operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
func (*PairFilterer) ParseMint ¶
func (_Pair *PairFilterer) ParseMint(log types.Log) (*PairMint, error)
ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) ParseSwap ¶
func (_Pair *PairFilterer) ParseSwap(log types.Log) (*PairSwap, error)
ParseSwap is a log parse operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*PairFilterer) ParseSync ¶
func (_Pair *PairFilterer) ParseSync(log types.Log) (*PairSync, error)
ParseSync is a log parse operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*PairFilterer) ParseTransfer ¶
func (_Pair *PairFilterer) ParseTransfer(log types.Log) (*PairTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*PairFilterer) WatchApproval ¶
func (_Pair *PairFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *PairApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*PairFilterer) WatchBurn ¶
func (_Pair *PairFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *PairBurn, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchBurn is a free log subscription operation binding the contract event 0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496.
Solidity: event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
func (*PairFilterer) WatchMint ¶
func (_Pair *PairFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *PairMint, sender []common.Address) (event.Subscription, error)
WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.
Solidity: event Mint(address indexed sender, uint256 amount0, uint256 amount1)
func (*PairFilterer) WatchSwap ¶
func (_Pair *PairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *PairSwap, sender []common.Address, to []common.Address) (event.Subscription, error)
WatchSwap is a free log subscription operation binding the contract event 0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822.
Solidity: event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
func (*PairFilterer) WatchSync ¶
func (_Pair *PairFilterer) WatchSync(opts *bind.WatchOpts, sink chan<- *PairSync) (event.Subscription, error)
WatchSync is a free log subscription operation binding the contract event 0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1.
Solidity: event Sync(uint112 reserve0, uint112 reserve1)
func (*PairFilterer) WatchTransfer ¶
func (_Pair *PairFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *PairTransfer, from []common.Address, to []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
type PairMint ¶
type PairMint struct { Sender common.Address Amount0 *big.Int Amount1 *big.Int Raw types.Log // Blockchain specific contextual infos }
PairMint represents a Mint event raised by the Pair contract.
type PairMintIterator ¶
type PairMintIterator struct { Event *PairMint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairMintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the Pair contract.
func (*PairMintIterator) Close ¶
func (it *PairMintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairMintIterator) Error ¶
func (it *PairMintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairMintIterator) Next ¶
func (it *PairMintIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type PairRaw ¶
type PairRaw struct {
Contract *Pair // Generic contract binding to access the raw methods on
}
PairRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PairRaw) Call ¶
func (_Pair *PairRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*PairRaw) Transact ¶
func (_Pair *PairRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PairRaw) Transfer ¶
func (_Pair *PairRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type PairSession ¶
type PairSession struct { Contract *Pair // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PairSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*PairSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*PairSession) Approve ¶
func (_Pair *PairSession) Approve(spender common.Address, 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 (*PairSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*PairSession) Burn ¶
func (_Pair *PairSession) Burn(to common.Address) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x89afcb44.
Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)
func (*PairSession) DOMAINSEPARATOR ¶
func (_Pair *PairSession) DOMAINSEPARATOR() ([32]byte, error)
DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.
Solidity: function DOMAIN_SEPARATOR() view returns(bytes32)
func (*PairSession) Decimals ¶
func (_Pair *PairSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*PairSession) Factory ¶
func (_Pair *PairSession) Factory() (common.Address, error)
Factory is a free data retrieval call binding the contract method 0xc45a0155.
Solidity: function factory() view returns(address)
func (*PairSession) GetReserves ¶
func (_Pair *PairSession) 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 (*PairSession) Initialize ¶
func (_Pair *PairSession) 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 (*PairSession) KLast ¶
func (_Pair *PairSession) KLast() (*big.Int, error)
KLast is a free data retrieval call binding the contract method 0x7464fc3d.
Solidity: function kLast() view returns(uint256)
func (*PairSession) MINIMUMLIQUIDITY ¶
func (_Pair *PairSession) MINIMUMLIQUIDITY() (*big.Int, error)
MINIMUMLIQUIDITY is a free data retrieval call binding the contract method 0xba9a7a56.
Solidity: function MINIMUM_LIQUIDITY() view returns(uint256)
func (*PairSession) Mint ¶
func (_Pair *PairSession) Mint(to common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address to) returns(uint256 liquidity)
func (*PairSession) Name ¶
func (_Pair *PairSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*PairSession) Nonces ¶
Nonces is a free data retrieval call binding the contract method 0x7ecebe00.
Solidity: function nonces(address ) view returns(uint256)
func (*PairSession) PERMITTYPEHASH ¶
func (_Pair *PairSession) PERMITTYPEHASH() ([32]byte, error)
PERMITTYPEHASH is a free data retrieval call binding the contract method 0x30adf81f.
Solidity: function PERMIT_TYPEHASH() view returns(bytes32)
func (*PairSession) Permit ¶
func (_Pair *PairSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*PairSession) Price0CumulativeLast ¶
func (_Pair *PairSession) Price0CumulativeLast() (*big.Int, error)
Price0CumulativeLast is a free data retrieval call binding the contract method 0x5909c0d5.
Solidity: function price0CumulativeLast() view returns(uint256)
func (*PairSession) Price1CumulativeLast ¶
func (_Pair *PairSession) Price1CumulativeLast() (*big.Int, error)
Price1CumulativeLast is a free data retrieval call binding the contract method 0x5a3d5493.
Solidity: function price1CumulativeLast() view returns(uint256)
func (*PairSession) Skim ¶
func (_Pair *PairSession) Skim(to common.Address) (*types.Transaction, error)
Skim is a paid mutator transaction binding the contract method 0xbc25cf77.
Solidity: function skim(address to) returns()
func (*PairSession) Swap ¶
func (_Pair *PairSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x022c0d9f.
Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()
func (*PairSession) Symbol ¶
func (_Pair *PairSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*PairSession) Sync ¶
func (_Pair *PairSession) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*PairSession) Token0 ¶
func (_Pair *PairSession) Token0() (common.Address, error)
Token0 is a free data retrieval call binding the contract method 0x0dfe1681.
Solidity: function token0() view returns(address)
func (*PairSession) Token1 ¶
func (_Pair *PairSession) Token1() (common.Address, error)
Token1 is a free data retrieval call binding the contract method 0xd21220a7.
Solidity: function token1() view returns(address)
func (*PairSession) TotalSupply ¶
func (_Pair *PairSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*PairSession) Transfer ¶
func (_Pair *PairSession) Transfer(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 (*PairSession) TransferFrom ¶
func (_Pair *PairSession) 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 PairSwap ¶
type PairSwap struct { Sender common.Address Amount0In *big.Int Amount1In *big.Int Amount0Out *big.Int Amount1Out *big.Int To common.Address Raw types.Log // Blockchain specific contextual infos }
PairSwap represents a Swap event raised by the Pair contract.
type PairSwapIterator ¶
type PairSwapIterator struct { Event *PairSwap // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the Pair contract.
func (*PairSwapIterator) Close ¶
func (it *PairSwapIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairSwapIterator) Error ¶
func (it *PairSwapIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairSwapIterator) Next ¶
func (it *PairSwapIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type PairSync ¶
type PairSync struct { Reserve0 *big.Int Reserve1 *big.Int Raw types.Log // Blockchain specific contextual infos }
PairSync represents a Sync event raised by the Pair contract.
type PairSyncIterator ¶
type PairSyncIterator struct { Event *PairSync // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairSyncIterator is returned from FilterSync and is used to iterate over the raw logs and unpacked data for Sync events raised by the Pair contract.
func (*PairSyncIterator) Close ¶
func (it *PairSyncIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairSyncIterator) Error ¶
func (it *PairSyncIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairSyncIterator) Next ¶
func (it *PairSyncIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type PairTransactor ¶
type PairTransactor struct {
// contains filtered or unexported fields
}
PairTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPairTransactor ¶
func NewPairTransactor(address common.Address, transactor bind.ContractTransactor) (*PairTransactor, error)
NewPairTransactor creates a new write-only instance of Pair, bound to a specific deployed contract.
func (*PairTransactor) Approve ¶
func (_Pair *PairTransactor) Approve(opts *bind.TransactOpts, spender common.Address, 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 (*PairTransactor) Burn ¶
func (_Pair *PairTransactor) Burn(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x89afcb44.
Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)
func (*PairTransactor) Initialize ¶
func (_Pair *PairTransactor) 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 (*PairTransactor) Mint ¶
func (_Pair *PairTransactor) Mint(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address to) returns(uint256 liquidity)
func (*PairTransactor) Permit ¶
func (_Pair *PairTransactor) Permit(opts *bind.TransactOpts, owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*PairTransactor) Skim ¶
func (_Pair *PairTransactor) Skim(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
Skim is a paid mutator transaction binding the contract method 0xbc25cf77.
Solidity: function skim(address to) returns()
func (*PairTransactor) Swap ¶
func (_Pair *PairTransactor) Swap(opts *bind.TransactOpts, amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x022c0d9f.
Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()
func (*PairTransactor) Sync ¶
func (_Pair *PairTransactor) Sync(opts *bind.TransactOpts) (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*PairTransactor) Transfer ¶
func (_Pair *PairTransactor) Transfer(opts *bind.TransactOpts, 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 (*PairTransactor) TransferFrom ¶
func (_Pair *PairTransactor) 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 PairTransactorRaw ¶
type PairTransactorRaw struct {
Contract *PairTransactor // Generic write-only contract binding to access the raw methods on
}
PairTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PairTransactorRaw) Transact ¶
func (_Pair *PairTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PairTransactorRaw) Transfer ¶
func (_Pair *PairTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type PairTransactorSession ¶
type PairTransactorSession struct { Contract *PairTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PairTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*PairTransactorSession) Approve ¶
func (_Pair *PairTransactorSession) Approve(spender common.Address, 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 (*PairTransactorSession) Burn ¶
func (_Pair *PairTransactorSession) Burn(to common.Address) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x89afcb44.
Solidity: function burn(address to) returns(uint256 amount0, uint256 amount1)
func (*PairTransactorSession) Initialize ¶
func (_Pair *PairTransactorSession) 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 (*PairTransactorSession) Mint ¶
func (_Pair *PairTransactorSession) Mint(to common.Address) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x6a627842.
Solidity: function mint(address to) returns(uint256 liquidity)
func (*PairTransactorSession) Permit ¶
func (_Pair *PairTransactorSession) Permit(owner common.Address, spender common.Address, value *big.Int, deadline *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
Permit is a paid mutator transaction binding the contract method 0xd505accf.
Solidity: function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) returns()
func (*PairTransactorSession) Skim ¶
func (_Pair *PairTransactorSession) Skim(to common.Address) (*types.Transaction, error)
Skim is a paid mutator transaction binding the contract method 0xbc25cf77.
Solidity: function skim(address to) returns()
func (*PairTransactorSession) Swap ¶
func (_Pair *PairTransactorSession) Swap(amount0Out *big.Int, amount1Out *big.Int, to common.Address, data []byte) (*types.Transaction, error)
Swap is a paid mutator transaction binding the contract method 0x022c0d9f.
Solidity: function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) returns()
func (*PairTransactorSession) Sync ¶
func (_Pair *PairTransactorSession) Sync() (*types.Transaction, error)
Sync is a paid mutator transaction binding the contract method 0xfff6cae9.
Solidity: function sync() returns()
func (*PairTransactorSession) Transfer ¶
func (_Pair *PairTransactorSession) Transfer(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 (*PairTransactorSession) TransferFrom ¶
func (_Pair *PairTransactorSession) 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 PairTransfer ¶
type PairTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
PairTransfer represents a Transfer event raised by the Pair contract.
type PairTransferIterator ¶
type PairTransferIterator struct { Event *PairTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
PairTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Pair contract.
func (*PairTransferIterator) Close ¶
func (it *PairTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*PairTransferIterator) Error ¶
func (it *PairTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*PairTransferIterator) Next ¶
func (it *PairTransferIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Token ¶
type Token struct { TokenCaller // Read-only binding to the contract TokenTransactor // Write-only binding to the contract TokenFilterer // Log filterer for contract events }
Token is an auto generated Go binding around an Ethereum contract.
type TokenApproval ¶
type TokenApproval struct { Src common.Address Guy common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenApproval represents a Approval event raised by the Token contract.
type TokenApprovalIterator ¶
type TokenApprovalIterator struct { Event *TokenApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.
func (*TokenApprovalIterator) Close ¶
func (it *TokenApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenApprovalIterator) Error ¶
func (it *TokenApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenApprovalIterator) Next ¶
func (it *TokenApprovalIterator) 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 TokenCaller ¶
type TokenCaller struct {
// contains filtered or unexported fields
}
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenCaller ¶
func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
func (*TokenCaller) Allowance ¶
func (_Token *TokenCaller) 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 (*TokenCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*TokenCaller) Decimals ¶
func (_Token *TokenCaller) 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 (*TokenCaller) Name ¶
func (_Token *TokenCaller) 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 (*TokenCaller) Symbol ¶
func (_Token *TokenCaller) 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 (*TokenCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type TokenCallerRaw ¶
type TokenCallerRaw struct {
Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenCallerRaw) Call ¶
func (_Token *TokenCallerRaw) 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 TokenCallerSession ¶
type TokenCallerSession struct { Contract *TokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenCallerSession) Allowance ¶
func (_Token *TokenCallerSession) 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 (*TokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*TokenCallerSession) Decimals ¶
func (_Token *TokenCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*TokenCallerSession) Name ¶
func (_Token *TokenCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenCallerSession) Symbol ¶
func (_Token *TokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*TokenCallerSession) TotalSupply ¶
func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type TokenDeposit ¶
type TokenDeposit struct { Dst common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenDeposit represents a Deposit event raised by the Token contract.
type TokenDepositIterator ¶
type TokenDepositIterator struct { Event *TokenDeposit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the Token contract.
func (*TokenDepositIterator) Close ¶
func (it *TokenDepositIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenDepositIterator) Error ¶
func (it *TokenDepositIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenDepositIterator) Next ¶
func (it *TokenDepositIterator) 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 TokenFilterer ¶
type TokenFilterer struct {
// contains filtered or unexported fields
}
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenFilterer ¶
func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
func (*TokenFilterer) FilterApproval ¶
func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, guy []common.Address) (*TokenApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*TokenFilterer) FilterDeposit ¶
func (_Token *TokenFilterer) FilterDeposit(opts *bind.FilterOpts, dst []common.Address) (*TokenDepositIterator, error)
FilterDeposit is a free log retrieval operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*TokenFilterer) FilterTransfer ¶
func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*TokenTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*TokenFilterer) FilterWithdrawal ¶
func (_Token *TokenFilterer) FilterWithdrawal(opts *bind.FilterOpts, src []common.Address) (*TokenWithdrawalIterator, error)
FilterWithdrawal is a free log retrieval operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
func (*TokenFilterer) ParseApproval ¶
func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*TokenFilterer) ParseDeposit ¶
func (_Token *TokenFilterer) ParseDeposit(log types.Log) (*TokenDeposit, error)
ParseDeposit is a log parse operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*TokenFilterer) ParseTransfer ¶
func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*TokenFilterer) ParseWithdrawal ¶
func (_Token *TokenFilterer) ParseWithdrawal(log types.Log) (*TokenWithdrawal, error)
ParseWithdrawal is a log parse operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
func (*TokenFilterer) WatchApproval ¶
func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, src []common.Address, guy []common.Address) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed src, address indexed guy, uint256 wad)
func (*TokenFilterer) WatchDeposit ¶
func (_Token *TokenFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *TokenDeposit, dst []common.Address) (event.Subscription, error)
WatchDeposit is a free log subscription operation binding the contract event 0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c.
Solidity: event Deposit(address indexed dst, uint256 wad)
func (*TokenFilterer) WatchTransfer ¶
func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, src []common.Address, dst []common.Address) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed src, address indexed dst, uint256 wad)
func (*TokenFilterer) WatchWithdrawal ¶
func (_Token *TokenFilterer) WatchWithdrawal(opts *bind.WatchOpts, sink chan<- *TokenWithdrawal, src []common.Address) (event.Subscription, error)
WatchWithdrawal is a free log subscription operation binding the contract event 0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65.
Solidity: event Withdrawal(address indexed src, uint256 wad)
type TokenRaw ¶
type TokenRaw struct {
Contract *Token // Generic contract binding to access the raw methods on
}
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenRaw) Call ¶
func (_Token *TokenRaw) 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 (*TokenRaw) Transact ¶
func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRaw) Transfer ¶
func (_Token *TokenRaw) 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 TokenSession ¶
type TokenSession struct { Contract *Token // 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 }
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenSession) Allowance ¶
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address , address ) view returns(uint256)
func (*TokenSession) Approve ¶
func (_Token *TokenSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*TokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address ) view returns(uint256)
func (*TokenSession) Decimals ¶
func (_Token *TokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*TokenSession) Deposit ¶
func (_Token *TokenSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*TokenSession) Fallback ¶
func (_Token *TokenSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*TokenSession) Name ¶
func (_Token *TokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenSession) Symbol ¶
func (_Token *TokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*TokenSession) TotalSupply ¶
func (_Token *TokenSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*TokenSession) Transfer ¶
func (_Token *TokenSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*TokenSession) TransferFrom ¶
func (_Token *TokenSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*TokenSession) Withdraw ¶
func (_Token *TokenSession) Withdraw(wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type TokenTransactor ¶
type TokenTransactor struct {
// contains filtered or unexported fields
}
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenTransactor ¶
func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.
func (*TokenTransactor) Approve ¶
func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*TokenTransactor) Deposit ¶
func (_Token *TokenTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*TokenTransactor) Fallback ¶
func (_Token *TokenTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*TokenTransactor) Transfer ¶
func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*TokenTransactor) TransferFrom ¶
func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*TokenTransactor) Withdraw ¶
func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts, wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type TokenTransactorRaw ¶
type TokenTransactorRaw struct {
Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenTransactorRaw) Transact ¶
func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenTransactorRaw) Transfer ¶
func (_Token *TokenTransactorRaw) 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 TokenTransactorSession ¶
type TokenTransactorSession struct { Contract *TokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenTransactorSession) Approve ¶
func (_Token *TokenTransactorSession) Approve(guy common.Address, wad *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address guy, uint256 wad) returns(bool)
func (*TokenTransactorSession) Deposit ¶
func (_Token *TokenTransactorSession) Deposit() (*types.Transaction, error)
Deposit is a paid mutator transaction binding the contract method 0xd0e30db0.
Solidity: function deposit() payable returns()
func (*TokenTransactorSession) Fallback ¶
func (_Token *TokenTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)
Fallback is a paid mutator transaction binding the contract fallback function.
Solidity: fallback() payable returns()
func (*TokenTransactorSession) Transfer ¶
func (_Token *TokenTransactorSession) Transfer(dst common.Address, wad *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address dst, uint256 wad) returns(bool)
func (*TokenTransactorSession) TransferFrom ¶
func (_Token *TokenTransactorSession) TransferFrom(src common.Address, dst common.Address, wad *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address src, address dst, uint256 wad) returns(bool)
func (*TokenTransactorSession) Withdraw ¶
func (_Token *TokenTransactorSession) Withdraw(wad *big.Int) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
Solidity: function withdraw(uint256 wad) returns()
type TokenTransfer ¶
type TokenTransfer struct { Src common.Address Dst common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenTransfer represents a Transfer event raised by the Token contract.
type TokenTransferIterator ¶
type TokenTransferIterator struct { Event *TokenTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.
func (*TokenTransferIterator) Close ¶
func (it *TokenTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenTransferIterator) Error ¶
func (it *TokenTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenTransferIterator) Next ¶
func (it *TokenTransferIterator) 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 TokenWithdrawal ¶
type TokenWithdrawal struct { Src common.Address Wad *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenWithdrawal represents a Withdrawal event raised by the Token contract.
type TokenWithdrawalIterator ¶
type TokenWithdrawalIterator struct { Event *TokenWithdrawal // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenWithdrawalIterator is returned from FilterWithdrawal and is used to iterate over the raw logs and unpacked data for Withdrawal events raised by the Token contract.
func (*TokenWithdrawalIterator) Close ¶
func (it *TokenWithdrawalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWithdrawalIterator) Error ¶
func (it *TokenWithdrawalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWithdrawalIterator) Next ¶
func (it *TokenWithdrawalIterator) 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.