Documentation
¶
Index ¶
- Constants
- type Uniswap
- type UniswapAddLiquidity
- type UniswapAddLiquidityIterator
- type UniswapApproval
- type UniswapApprovalIterator
- type UniswapCaller
- func (_Uniswap *UniswapCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Uniswap *UniswapCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
- func (_Uniswap *UniswapCaller) Decimals(opts *bind.CallOpts) (*big.Int, error)
- func (_Uniswap *UniswapCaller) FactoryAddress(opts *bind.CallOpts) (common.Address, error)
- func (_Uniswap *UniswapCaller) GetEthToTokenInputPrice(opts *bind.CallOpts, eth_sold *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCaller) GetEthToTokenOutputPrice(opts *bind.CallOpts, tokens_bought *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCaller) GetTokenToEthInputPrice(opts *bind.CallOpts, tokens_sold *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCaller) GetTokenToEthOutputPrice(opts *bind.CallOpts, eth_bought *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCaller) Name(opts *bind.CallOpts) ([32]byte, error)
- func (_Uniswap *UniswapCaller) Symbol(opts *bind.CallOpts) ([32]byte, error)
- func (_Uniswap *UniswapCaller) TokenAddress(opts *bind.CallOpts) (common.Address, error)
- func (_Uniswap *UniswapCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type UniswapCallerRaw
- type UniswapCallerSession
- func (_Uniswap *UniswapCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) Decimals() (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) FactoryAddress() (common.Address, error)
- func (_Uniswap *UniswapCallerSession) GetEthToTokenInputPrice(eth_sold *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) GetEthToTokenOutputPrice(tokens_bought *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) GetTokenToEthInputPrice(tokens_sold *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) GetTokenToEthOutputPrice(eth_bought *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapCallerSession) Name() ([32]byte, error)
- func (_Uniswap *UniswapCallerSession) Symbol() ([32]byte, error)
- func (_Uniswap *UniswapCallerSession) TokenAddress() (common.Address, error)
- func (_Uniswap *UniswapCallerSession) TotalSupply() (*big.Int, error)
- type UniswapEthPurchase
- type UniswapEthPurchaseIterator
- type UniswapFilterer
- func (_Uniswap *UniswapFilterer) FilterAddLiquidity(opts *bind.FilterOpts, provider []common.Address, eth_amount []*big.Int, ...) (*UniswapAddLiquidityIterator, error)
- func (_Uniswap *UniswapFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*UniswapApprovalIterator, error)
- func (_Uniswap *UniswapFilterer) FilterEthPurchase(opts *bind.FilterOpts, buyer []common.Address, tokens_sold []*big.Int, ...) (*UniswapEthPurchaseIterator, error)
- func (_Uniswap *UniswapFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts, provider []common.Address, eth_amount []*big.Int, ...) (*UniswapRemoveLiquidityIterator, error)
- func (_Uniswap *UniswapFilterer) FilterTokenPurchase(opts *bind.FilterOpts, buyer []common.Address, eth_sold []*big.Int, ...) (*UniswapTokenPurchaseIterator, error)
- func (_Uniswap *UniswapFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*UniswapTransferIterator, error)
- func (_Uniswap *UniswapFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *UniswapAddLiquidity, ...) (event.Subscription, error)
- func (_Uniswap *UniswapFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UniswapApproval, _owner []common.Address, ...) (event.Subscription, error)
- func (_Uniswap *UniswapFilterer) WatchEthPurchase(opts *bind.WatchOpts, sink chan<- *UniswapEthPurchase, buyer []common.Address, ...) (event.Subscription, error)
- func (_Uniswap *UniswapFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *UniswapRemoveLiquidity, ...) (event.Subscription, error)
- func (_Uniswap *UniswapFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *UniswapTokenPurchase, ...) (event.Subscription, error)
- func (_Uniswap *UniswapFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UniswapTransfer, _from []common.Address, ...) (event.Subscription, error)
- type UniswapRaw
- func (_Uniswap *UniswapRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Uniswap *UniswapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Uniswap *UniswapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type UniswapRemoveLiquidity
- type UniswapRemoveLiquidityIterator
- type UniswapSession
- func (_Uniswap *UniswapSession) AddLiquidity(min_liquidity *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
- func (_Uniswap *UniswapSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) BalanceOf(_owner common.Address) (*big.Int, error)
- func (_Uniswap *UniswapSession) Decimals() (*big.Int, error)
- func (_Uniswap *UniswapSession) Default() (*types.Transaction, error)
- func (_Uniswap *UniswapSession) EthToTokenSwapInput(min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) EthToTokenSwapOutput(tokens_bought *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) EthToTokenTransferInput(min_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) EthToTokenTransferOutput(tokens_bought *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) FactoryAddress() (common.Address, error)
- func (_Uniswap *UniswapSession) GetEthToTokenInputPrice(eth_sold *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapSession) GetEthToTokenOutputPrice(tokens_bought *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapSession) GetTokenToEthInputPrice(tokens_sold *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapSession) GetTokenToEthOutputPrice(eth_bought *big.Int) (*big.Int, error)
- func (_Uniswap *UniswapSession) Name() ([32]byte, error)
- func (_Uniswap *UniswapSession) RemoveLiquidity(amount *big.Int, min_eth *big.Int, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) Setup(token_addr common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) Symbol() ([32]byte, error)
- func (_Uniswap *UniswapSession) TokenAddress() (common.Address, error)
- func (_Uniswap *UniswapSession) TokenToEthSwapInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToEthSwapOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToEthTransferInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToEthTransferOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToExchangeSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToExchangeSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToExchangeTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToExchangeTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToTokenSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToTokenSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToTokenTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TokenToTokenTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TotalSupply() (*big.Int, error)
- func (_Uniswap *UniswapSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type UniswapTokenPurchase
- type UniswapTokenPurchaseIterator
- type UniswapTransactor
- func (_Uniswap *UniswapTransactor) AddLiquidity(opts *bind.TransactOpts, min_liquidity *big.Int, max_tokens *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) Default(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) EthToTokenSwapInput(opts *bind.TransactOpts, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) EthToTokenSwapOutput(opts *bind.TransactOpts, tokens_bought *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) EthToTokenTransferInput(opts *bind.TransactOpts, min_tokens *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) EthToTokenTransferOutput(opts *bind.TransactOpts, tokens_bought *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) RemoveLiquidity(opts *bind.TransactOpts, amount *big.Int, min_eth *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) Setup(opts *bind.TransactOpts, token_addr common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToEthSwapInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_eth *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToEthSwapOutput(opts *bind.TransactOpts, eth_bought *big.Int, max_tokens *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToEthTransferInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_eth *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToEthTransferOutput(opts *bind.TransactOpts, eth_bought *big.Int, max_tokens *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToExchangeSwapInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToExchangeSwapOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToExchangeTransferInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToExchangeTransferOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToTokenSwapInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToTokenSwapOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToTokenTransferInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TokenToTokenTransferOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type UniswapTransactorRaw
- type UniswapTransactorSession
- func (_Uniswap *UniswapTransactorSession) AddLiquidity(min_liquidity *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) Default() (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) EthToTokenSwapInput(min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) EthToTokenSwapOutput(tokens_bought *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) EthToTokenTransferInput(min_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) EthToTokenTransferOutput(tokens_bought *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) RemoveLiquidity(amount *big.Int, min_eth *big.Int, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) Setup(token_addr common.Address) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToEthSwapInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToEthSwapOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToEthTransferInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToEthTransferOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToExchangeSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToExchangeSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToExchangeTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToExchangeTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToTokenSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToTokenSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToTokenTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TokenToTokenTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, ...) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)
- func (_Uniswap *UniswapTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)
- type UniswapTransfer
- type UniswapTransferIterator
Constants ¶
const UniswapABI = "" /* 11827-byte string literal not displayed */
UniswapABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Uniswap ¶
type Uniswap struct { UniswapCaller // Read-only binding to the contract UniswapTransactor // Write-only binding to the contract UniswapFilterer // Log filterer for contract events }
Uniswap is an auto generated Go binding around an Ethereum contract.
func NewUniswap ¶
NewUniswap creates a new instance of Uniswap, bound to a specific deployed contract.
type UniswapAddLiquidity ¶
type UniswapAddLiquidity struct { Provider common.Address EthAmount *big.Int TokenAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
UniswapAddLiquidity represents a AddLiquidity event raised by the Uniswap contract.
type UniswapAddLiquidityIterator ¶
type UniswapAddLiquidityIterator struct { Event *UniswapAddLiquidity // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UniswapAddLiquidityIterator is returned from FilterAddLiquidity and is used to iterate over the raw logs and unpacked data for AddLiquidity events raised by the Uniswap contract.
func (*UniswapAddLiquidityIterator) Close ¶
func (it *UniswapAddLiquidityIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UniswapAddLiquidityIterator) Error ¶
func (it *UniswapAddLiquidityIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UniswapAddLiquidityIterator) Next ¶
func (it *UniswapAddLiquidityIterator) 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 UniswapApproval ¶
type UniswapApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
UniswapApproval represents a Approval event raised by the Uniswap contract.
type UniswapApprovalIterator ¶
type UniswapApprovalIterator struct { Event *UniswapApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UniswapApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Uniswap contract.
func (*UniswapApprovalIterator) Close ¶
func (it *UniswapApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UniswapApprovalIterator) Error ¶
func (it *UniswapApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UniswapApprovalIterator) Next ¶
func (it *UniswapApprovalIterator) 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 UniswapCaller ¶
type UniswapCaller struct {
// contains filtered or unexported fields
}
UniswapCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewUniswapCaller ¶
func NewUniswapCaller(address common.Address, caller bind.ContractCaller) (*UniswapCaller, error)
NewUniswapCaller creates a new read-only instance of Uniswap, bound to a specific deployed contract.
func (*UniswapCaller) Allowance ¶
func (_Uniswap *UniswapCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) constant returns(uint256 out)
func (*UniswapCaller) BalanceOf ¶
func (_Uniswap *UniswapCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) constant returns(uint256 out)
func (*UniswapCaller) Decimals ¶
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint256 out)
func (*UniswapCaller) FactoryAddress ¶
FactoryAddress is a free data retrieval call binding the contract method 0x966dae0e.
Solidity: function factoryAddress() constant returns(address out)
func (*UniswapCaller) GetEthToTokenInputPrice ¶
func (_Uniswap *UniswapCaller) GetEthToTokenInputPrice(opts *bind.CallOpts, eth_sold *big.Int) (*big.Int, error)
GetEthToTokenInputPrice is a free data retrieval call binding the contract method 0xcd7724c3.
Solidity: function getEthToTokenInputPrice(uint256 eth_sold) constant returns(uint256 out)
func (*UniswapCaller) GetEthToTokenOutputPrice ¶
func (_Uniswap *UniswapCaller) GetEthToTokenOutputPrice(opts *bind.CallOpts, tokens_bought *big.Int) (*big.Int, error)
GetEthToTokenOutputPrice is a free data retrieval call binding the contract method 0x59e94862.
Solidity: function getEthToTokenOutputPrice(uint256 tokens_bought) constant returns(uint256 out)
func (*UniswapCaller) GetTokenToEthInputPrice ¶
func (_Uniswap *UniswapCaller) GetTokenToEthInputPrice(opts *bind.CallOpts, tokens_sold *big.Int) (*big.Int, error)
GetTokenToEthInputPrice is a free data retrieval call binding the contract method 0x95b68fe7.
Solidity: function getTokenToEthInputPrice(uint256 tokens_sold) constant returns(uint256 out)
func (*UniswapCaller) GetTokenToEthOutputPrice ¶
func (_Uniswap *UniswapCaller) GetTokenToEthOutputPrice(opts *bind.CallOpts, eth_bought *big.Int) (*big.Int, error)
GetTokenToEthOutputPrice is a free data retrieval call binding the contract method 0x2640f62c.
Solidity: function getTokenToEthOutputPrice(uint256 eth_bought) constant returns(uint256 out)
func (*UniswapCaller) Name ¶
func (_Uniswap *UniswapCaller) Name(opts *bind.CallOpts) ([32]byte, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(bytes32 out)
func (*UniswapCaller) Symbol ¶
func (_Uniswap *UniswapCaller) Symbol(opts *bind.CallOpts) ([32]byte, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(bytes32 out)
func (*UniswapCaller) TokenAddress ¶
TokenAddress is a free data retrieval call binding the contract method 0x9d76ea58.
Solidity: function tokenAddress() constant returns(address out)
func (*UniswapCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256 out)
type UniswapCallerRaw ¶
type UniswapCallerRaw struct {
Contract *UniswapCaller // Generic read-only contract binding to access the raw methods on
}
UniswapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*UniswapCallerRaw) Call ¶
func (_Uniswap *UniswapCallerRaw) 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 UniswapCallerSession ¶
type UniswapCallerSession struct { Contract *UniswapCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
UniswapCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*UniswapCallerSession) Allowance ¶
func (_Uniswap *UniswapCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) constant returns(uint256 out)
func (*UniswapCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) constant returns(uint256 out)
func (*UniswapCallerSession) Decimals ¶
func (_Uniswap *UniswapCallerSession) Decimals() (*big.Int, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint256 out)
func (*UniswapCallerSession) FactoryAddress ¶
func (_Uniswap *UniswapCallerSession) FactoryAddress() (common.Address, error)
FactoryAddress is a free data retrieval call binding the contract method 0x966dae0e.
Solidity: function factoryAddress() constant returns(address out)
func (*UniswapCallerSession) GetEthToTokenInputPrice ¶
GetEthToTokenInputPrice is a free data retrieval call binding the contract method 0xcd7724c3.
Solidity: function getEthToTokenInputPrice(uint256 eth_sold) constant returns(uint256 out)
func (*UniswapCallerSession) GetEthToTokenOutputPrice ¶
func (_Uniswap *UniswapCallerSession) GetEthToTokenOutputPrice(tokens_bought *big.Int) (*big.Int, error)
GetEthToTokenOutputPrice is a free data retrieval call binding the contract method 0x59e94862.
Solidity: function getEthToTokenOutputPrice(uint256 tokens_bought) constant returns(uint256 out)
func (*UniswapCallerSession) GetTokenToEthInputPrice ¶
func (_Uniswap *UniswapCallerSession) GetTokenToEthInputPrice(tokens_sold *big.Int) (*big.Int, error)
GetTokenToEthInputPrice is a free data retrieval call binding the contract method 0x95b68fe7.
Solidity: function getTokenToEthInputPrice(uint256 tokens_sold) constant returns(uint256 out)
func (*UniswapCallerSession) GetTokenToEthOutputPrice ¶
func (_Uniswap *UniswapCallerSession) GetTokenToEthOutputPrice(eth_bought *big.Int) (*big.Int, error)
GetTokenToEthOutputPrice is a free data retrieval call binding the contract method 0x2640f62c.
Solidity: function getTokenToEthOutputPrice(uint256 eth_bought) constant returns(uint256 out)
func (*UniswapCallerSession) Name ¶
func (_Uniswap *UniswapCallerSession) Name() ([32]byte, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(bytes32 out)
func (*UniswapCallerSession) Symbol ¶
func (_Uniswap *UniswapCallerSession) Symbol() ([32]byte, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(bytes32 out)
func (*UniswapCallerSession) TokenAddress ¶
func (_Uniswap *UniswapCallerSession) TokenAddress() (common.Address, error)
TokenAddress is a free data retrieval call binding the contract method 0x9d76ea58.
Solidity: function tokenAddress() constant returns(address out)
func (*UniswapCallerSession) TotalSupply ¶
func (_Uniswap *UniswapCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256 out)
type UniswapEthPurchase ¶
type UniswapEthPurchase struct { Buyer common.Address TokensSold *big.Int EthBought *big.Int Raw types.Log // Blockchain specific contextual infos }
UniswapEthPurchase represents a EthPurchase event raised by the Uniswap contract.
type UniswapEthPurchaseIterator ¶
type UniswapEthPurchaseIterator struct { Event *UniswapEthPurchase // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UniswapEthPurchaseIterator is returned from FilterEthPurchase and is used to iterate over the raw logs and unpacked data for EthPurchase events raised by the Uniswap contract.
func (*UniswapEthPurchaseIterator) Close ¶
func (it *UniswapEthPurchaseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UniswapEthPurchaseIterator) Error ¶
func (it *UniswapEthPurchaseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UniswapEthPurchaseIterator) Next ¶
func (it *UniswapEthPurchaseIterator) 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 UniswapFilterer ¶
type UniswapFilterer struct {
// contains filtered or unexported fields
}
UniswapFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewUniswapFilterer ¶
func NewUniswapFilterer(address common.Address, filterer bind.ContractFilterer) (*UniswapFilterer, error)
NewUniswapFilterer creates a new log filterer instance of Uniswap, bound to a specific deployed contract.
func (*UniswapFilterer) FilterAddLiquidity ¶
func (_Uniswap *UniswapFilterer) FilterAddLiquidity(opts *bind.FilterOpts, provider []common.Address, eth_amount []*big.Int, token_amount []*big.Int) (*UniswapAddLiquidityIterator, error)
FilterAddLiquidity is a free log retrieval operation binding the contract event 0x06239653922ac7bea6aa2b19dc486b9361821d37712eb796adfd38d81de278ca.
Solidity: event AddLiquidity(address indexed provider, uint256 indexed eth_amount, uint256 indexed token_amount)
func (*UniswapFilterer) FilterApproval ¶
func (_Uniswap *UniswapFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*UniswapApprovalIterator, 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 (*UniswapFilterer) FilterEthPurchase ¶
func (_Uniswap *UniswapFilterer) FilterEthPurchase(opts *bind.FilterOpts, buyer []common.Address, tokens_sold []*big.Int, eth_bought []*big.Int) (*UniswapEthPurchaseIterator, error)
FilterEthPurchase is a free log retrieval operation binding the contract event 0x7f4091b46c33e918a0f3aa42307641d17bb67029427a5369e54b353984238705.
Solidity: event EthPurchase(address indexed buyer, uint256 indexed tokens_sold, uint256 indexed eth_bought)
func (*UniswapFilterer) FilterRemoveLiquidity ¶
func (_Uniswap *UniswapFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts, provider []common.Address, eth_amount []*big.Int, token_amount []*big.Int) (*UniswapRemoveLiquidityIterator, error)
FilterRemoveLiquidity is a free log retrieval operation binding the contract event 0x0fbf06c058b90cb038a618f8c2acbf6145f8b3570fd1fa56abb8f0f3f05b36e8.
Solidity: event RemoveLiquidity(address indexed provider, uint256 indexed eth_amount, uint256 indexed token_amount)
func (*UniswapFilterer) FilterTokenPurchase ¶
func (_Uniswap *UniswapFilterer) FilterTokenPurchase(opts *bind.FilterOpts, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (*UniswapTokenPurchaseIterator, error)
FilterTokenPurchase is a free log retrieval operation binding the contract event 0xcd60aa75dea3072fbc07ae6d7d856b5dc5f4eee88854f5b4abf7b680ef8bc50f.
Solidity: event TokenPurchase(address indexed buyer, uint256 indexed eth_sold, uint256 indexed tokens_bought)
func (*UniswapFilterer) FilterTransfer ¶
func (_Uniswap *UniswapFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*UniswapTransferIterator, 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 (*UniswapFilterer) WatchAddLiquidity ¶
func (_Uniswap *UniswapFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *UniswapAddLiquidity, provider []common.Address, eth_amount []*big.Int, token_amount []*big.Int) (event.Subscription, error)
WatchAddLiquidity is a free log subscription operation binding the contract event 0x06239653922ac7bea6aa2b19dc486b9361821d37712eb796adfd38d81de278ca.
Solidity: event AddLiquidity(address indexed provider, uint256 indexed eth_amount, uint256 indexed token_amount)
func (*UniswapFilterer) WatchApproval ¶
func (_Uniswap *UniswapFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *UniswapApproval, _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 (*UniswapFilterer) WatchEthPurchase ¶
func (_Uniswap *UniswapFilterer) WatchEthPurchase(opts *bind.WatchOpts, sink chan<- *UniswapEthPurchase, buyer []common.Address, tokens_sold []*big.Int, eth_bought []*big.Int) (event.Subscription, error)
WatchEthPurchase is a free log subscription operation binding the contract event 0x7f4091b46c33e918a0f3aa42307641d17bb67029427a5369e54b353984238705.
Solidity: event EthPurchase(address indexed buyer, uint256 indexed tokens_sold, uint256 indexed eth_bought)
func (*UniswapFilterer) WatchRemoveLiquidity ¶
func (_Uniswap *UniswapFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *UniswapRemoveLiquidity, provider []common.Address, eth_amount []*big.Int, token_amount []*big.Int) (event.Subscription, error)
WatchRemoveLiquidity is a free log subscription operation binding the contract event 0x0fbf06c058b90cb038a618f8c2acbf6145f8b3570fd1fa56abb8f0f3f05b36e8.
Solidity: event RemoveLiquidity(address indexed provider, uint256 indexed eth_amount, uint256 indexed token_amount)
func (*UniswapFilterer) WatchTokenPurchase ¶
func (_Uniswap *UniswapFilterer) WatchTokenPurchase(opts *bind.WatchOpts, sink chan<- *UniswapTokenPurchase, buyer []common.Address, eth_sold []*big.Int, tokens_bought []*big.Int) (event.Subscription, error)
WatchTokenPurchase is a free log subscription operation binding the contract event 0xcd60aa75dea3072fbc07ae6d7d856b5dc5f4eee88854f5b4abf7b680ef8bc50f.
Solidity: event TokenPurchase(address indexed buyer, uint256 indexed eth_sold, uint256 indexed tokens_bought)
func (*UniswapFilterer) WatchTransfer ¶
func (_Uniswap *UniswapFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *UniswapTransfer, _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 UniswapRaw ¶
type UniswapRaw struct {
Contract *Uniswap // Generic contract binding to access the raw methods on
}
UniswapRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*UniswapRaw) Call ¶
func (_Uniswap *UniswapRaw) 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 (*UniswapRaw) Transact ¶
func (_Uniswap *UniswapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniswapRaw) Transfer ¶
func (_Uniswap *UniswapRaw) 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 UniswapRemoveLiquidity ¶
type UniswapRemoveLiquidity struct { Provider common.Address EthAmount *big.Int TokenAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
UniswapRemoveLiquidity represents a RemoveLiquidity event raised by the Uniswap contract.
type UniswapRemoveLiquidityIterator ¶
type UniswapRemoveLiquidityIterator struct { Event *UniswapRemoveLiquidity // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UniswapRemoveLiquidityIterator is returned from FilterRemoveLiquidity and is used to iterate over the raw logs and unpacked data for RemoveLiquidity events raised by the Uniswap contract.
func (*UniswapRemoveLiquidityIterator) Close ¶
func (it *UniswapRemoveLiquidityIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UniswapRemoveLiquidityIterator) Error ¶
func (it *UniswapRemoveLiquidityIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UniswapRemoveLiquidityIterator) Next ¶
func (it *UniswapRemoveLiquidityIterator) 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 UniswapSession ¶
type UniswapSession struct { Contract *Uniswap // 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 }
UniswapSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*UniswapSession) AddLiquidity ¶
func (_Uniswap *UniswapSession) AddLiquidity(min_liquidity *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x422f1043.
Solidity: function addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapSession) Allowance ¶
func (_Uniswap *UniswapSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)
Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.
Solidity: function allowance(address _owner, address _spender) constant returns(uint256 out)
func (*UniswapSession) Approve ¶
func (_Uniswap *UniswapSession) 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 out)
func (*UniswapSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address _owner) constant returns(uint256 out)
func (*UniswapSession) Decimals ¶
func (_Uniswap *UniswapSession) Decimals() (*big.Int, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() constant returns(uint256 out)
func (*UniswapSession) Default ¶
func (_Uniswap *UniswapSession) Default() (*types.Transaction, error)
Default is a paid mutator transaction binding the contract method 0x89402a72.
Solidity: function __default__() returns()
func (*UniswapSession) EthToTokenSwapInput ¶
func (_Uniswap *UniswapSession) EthToTokenSwapInput(min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
EthToTokenSwapInput is a paid mutator transaction binding the contract method 0xf39b5b9b.
Solidity: function ethToTokenSwapInput(uint256 min_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapSession) EthToTokenSwapOutput ¶
func (_Uniswap *UniswapSession) EthToTokenSwapOutput(tokens_bought *big.Int, deadline *big.Int) (*types.Transaction, error)
EthToTokenSwapOutput is a paid mutator transaction binding the contract method 0x6b1d4db7.
Solidity: function ethToTokenSwapOutput(uint256 tokens_bought, uint256 deadline) returns(uint256 out)
func (*UniswapSession) EthToTokenTransferInput ¶
func (_Uniswap *UniswapSession) EthToTokenTransferInput(min_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
EthToTokenTransferInput is a paid mutator transaction binding the contract method 0xad65d76d.
Solidity: function ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapSession) EthToTokenTransferOutput ¶
func (_Uniswap *UniswapSession) EthToTokenTransferOutput(tokens_bought *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
EthToTokenTransferOutput is a paid mutator transaction binding the contract method 0x0b573638.
Solidity: function ethToTokenTransferOutput(uint256 tokens_bought, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapSession) FactoryAddress ¶
func (_Uniswap *UniswapSession) FactoryAddress() (common.Address, error)
FactoryAddress is a free data retrieval call binding the contract method 0x966dae0e.
Solidity: function factoryAddress() constant returns(address out)
func (*UniswapSession) GetEthToTokenInputPrice ¶
GetEthToTokenInputPrice is a free data retrieval call binding the contract method 0xcd7724c3.
Solidity: function getEthToTokenInputPrice(uint256 eth_sold) constant returns(uint256 out)
func (*UniswapSession) GetEthToTokenOutputPrice ¶
GetEthToTokenOutputPrice is a free data retrieval call binding the contract method 0x59e94862.
Solidity: function getEthToTokenOutputPrice(uint256 tokens_bought) constant returns(uint256 out)
func (*UniswapSession) GetTokenToEthInputPrice ¶
GetTokenToEthInputPrice is a free data retrieval call binding the contract method 0x95b68fe7.
Solidity: function getTokenToEthInputPrice(uint256 tokens_sold) constant returns(uint256 out)
func (*UniswapSession) GetTokenToEthOutputPrice ¶
GetTokenToEthOutputPrice is a free data retrieval call binding the contract method 0x2640f62c.
Solidity: function getTokenToEthOutputPrice(uint256 eth_bought) constant returns(uint256 out)
func (*UniswapSession) Name ¶
func (_Uniswap *UniswapSession) Name() ([32]byte, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() constant returns(bytes32 out)
func (*UniswapSession) RemoveLiquidity ¶
func (_Uniswap *UniswapSession) RemoveLiquidity(amount *big.Int, min_eth *big.Int, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0xf88bf15a.
Solidity: function removeLiquidity(uint256 amount, uint256 min_eth, uint256 min_tokens, uint256 deadline) returns(uint256 out, uint256 out)
func (*UniswapSession) Setup ¶
func (_Uniswap *UniswapSession) Setup(token_addr common.Address) (*types.Transaction, error)
Setup is a paid mutator transaction binding the contract method 0x66d38203.
Solidity: function setup(address token_addr) returns()
func (*UniswapSession) Symbol ¶
func (_Uniswap *UniswapSession) Symbol() ([32]byte, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() constant returns(bytes32 out)
func (*UniswapSession) TokenAddress ¶
func (_Uniswap *UniswapSession) TokenAddress() (common.Address, error)
TokenAddress is a free data retrieval call binding the contract method 0x9d76ea58.
Solidity: function tokenAddress() constant returns(address out)
func (*UniswapSession) TokenToEthSwapInput ¶
func (_Uniswap *UniswapSession) TokenToEthSwapInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int) (*types.Transaction, error)
TokenToEthSwapInput is a paid mutator transaction binding the contract method 0x95e3c50b.
Solidity: function tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline) returns(uint256 out)
func (*UniswapSession) TokenToEthSwapOutput ¶
func (_Uniswap *UniswapSession) TokenToEthSwapOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
TokenToEthSwapOutput is a paid mutator transaction binding the contract method 0x013efd8b.
Solidity: function tokenToEthSwapOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapSession) TokenToEthTransferInput ¶
func (_Uniswap *UniswapSession) TokenToEthTransferInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
TokenToEthTransferInput is a paid mutator transaction binding the contract method 0x7237e031.
Solidity: function tokenToEthTransferInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapSession) TokenToEthTransferOutput ¶
func (_Uniswap *UniswapSession) TokenToEthTransferOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
TokenToEthTransferOutput is a paid mutator transaction binding the contract method 0xd4e4841d.
Solidity: function tokenToEthTransferOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapSession) TokenToExchangeSwapInput ¶
func (_Uniswap *UniswapSession) TokenToExchangeSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeSwapInput is a paid mutator transaction binding the contract method 0xb1cb43bf.
Solidity: function tokenToExchangeSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address exchange_addr) returns(uint256 out)
func (*UniswapSession) TokenToExchangeSwapOutput ¶
func (_Uniswap *UniswapSession) TokenToExchangeSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeSwapOutput is a paid mutator transaction binding the contract method 0xea650c7d.
Solidity: function tokenToExchangeSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address exchange_addr) returns(uint256 out)
func (*UniswapSession) TokenToExchangeTransferInput ¶
func (_Uniswap *UniswapSession) TokenToExchangeTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, recipient common.Address, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeTransferInput is a paid mutator transaction binding the contract method 0xec384a3e.
Solidity: function tokenToExchangeTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address exchange_addr) returns(uint256 out)
func (*UniswapSession) TokenToExchangeTransferOutput ¶
func (_Uniswap *UniswapSession) TokenToExchangeTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, recipient common.Address, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeTransferOutput is a paid mutator transaction binding the contract method 0x981a1327.
Solidity: function tokenToExchangeTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address exchange_addr) returns(uint256 out)
func (*UniswapSession) TokenToTokenSwapInput ¶
func (_Uniswap *UniswapSession) TokenToTokenSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, token_addr common.Address) (*types.Transaction, error)
TokenToTokenSwapInput is a paid mutator transaction binding the contract method 0xddf7e1a7.
Solidity: function tokenToTokenSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address token_addr) returns(uint256 out)
func (*UniswapSession) TokenToTokenSwapOutput ¶
func (_Uniswap *UniswapSession) TokenToTokenSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, token_addr common.Address) (*types.Transaction, error)
TokenToTokenSwapOutput is a paid mutator transaction binding the contract method 0xb040d545.
Solidity: function tokenToTokenSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address token_addr) returns(uint256 out)
func (*UniswapSession) TokenToTokenTransferInput ¶
func (_Uniswap *UniswapSession) TokenToTokenTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, recipient common.Address, token_addr common.Address) (*types.Transaction, error)
TokenToTokenTransferInput is a paid mutator transaction binding the contract method 0xf552d91b.
Solidity: function tokenToTokenTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address token_addr) returns(uint256 out)
func (*UniswapSession) TokenToTokenTransferOutput ¶
func (_Uniswap *UniswapSession) TokenToTokenTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, recipient common.Address, token_addr common.Address) (*types.Transaction, error)
TokenToTokenTransferOutput is a paid mutator transaction binding the contract method 0xf3c0efe9.
Solidity: function tokenToTokenTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address token_addr) returns(uint256 out)
func (*UniswapSession) TotalSupply ¶
func (_Uniswap *UniswapSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() constant returns(uint256 out)
func (*UniswapSession) Transfer ¶
func (_Uniswap *UniswapSession) 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 out)
func (*UniswapSession) TransferFrom ¶
func (_Uniswap *UniswapSession) 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 out)
type UniswapTokenPurchase ¶
type UniswapTokenPurchase struct { Buyer common.Address EthSold *big.Int TokensBought *big.Int Raw types.Log // Blockchain specific contextual infos }
UniswapTokenPurchase represents a TokenPurchase event raised by the Uniswap contract.
type UniswapTokenPurchaseIterator ¶
type UniswapTokenPurchaseIterator struct { Event *UniswapTokenPurchase // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UniswapTokenPurchaseIterator is returned from FilterTokenPurchase and is used to iterate over the raw logs and unpacked data for TokenPurchase events raised by the Uniswap contract.
func (*UniswapTokenPurchaseIterator) Close ¶
func (it *UniswapTokenPurchaseIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UniswapTokenPurchaseIterator) Error ¶
func (it *UniswapTokenPurchaseIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UniswapTokenPurchaseIterator) Next ¶
func (it *UniswapTokenPurchaseIterator) 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 UniswapTransactor ¶
type UniswapTransactor struct {
// contains filtered or unexported fields
}
UniswapTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewUniswapTransactor ¶
func NewUniswapTransactor(address common.Address, transactor bind.ContractTransactor) (*UniswapTransactor, error)
NewUniswapTransactor creates a new write-only instance of Uniswap, bound to a specific deployed contract.
func (*UniswapTransactor) AddLiquidity ¶
func (_Uniswap *UniswapTransactor) AddLiquidity(opts *bind.TransactOpts, min_liquidity *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x422f1043.
Solidity: function addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapTransactor) Approve ¶
func (_Uniswap *UniswapTransactor) 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 out)
func (*UniswapTransactor) Default ¶
func (_Uniswap *UniswapTransactor) Default(opts *bind.TransactOpts) (*types.Transaction, error)
Default is a paid mutator transaction binding the contract method 0x89402a72.
Solidity: function __default__() returns()
func (*UniswapTransactor) EthToTokenSwapInput ¶
func (_Uniswap *UniswapTransactor) EthToTokenSwapInput(opts *bind.TransactOpts, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
EthToTokenSwapInput is a paid mutator transaction binding the contract method 0xf39b5b9b.
Solidity: function ethToTokenSwapInput(uint256 min_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapTransactor) EthToTokenSwapOutput ¶
func (_Uniswap *UniswapTransactor) EthToTokenSwapOutput(opts *bind.TransactOpts, tokens_bought *big.Int, deadline *big.Int) (*types.Transaction, error)
EthToTokenSwapOutput is a paid mutator transaction binding the contract method 0x6b1d4db7.
Solidity: function ethToTokenSwapOutput(uint256 tokens_bought, uint256 deadline) returns(uint256 out)
func (*UniswapTransactor) EthToTokenTransferInput ¶
func (_Uniswap *UniswapTransactor) EthToTokenTransferInput(opts *bind.TransactOpts, min_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
EthToTokenTransferInput is a paid mutator transaction binding the contract method 0xad65d76d.
Solidity: function ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactor) EthToTokenTransferOutput ¶
func (_Uniswap *UniswapTransactor) EthToTokenTransferOutput(opts *bind.TransactOpts, tokens_bought *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
EthToTokenTransferOutput is a paid mutator transaction binding the contract method 0x0b573638.
Solidity: function ethToTokenTransferOutput(uint256 tokens_bought, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactor) RemoveLiquidity ¶
func (_Uniswap *UniswapTransactor) RemoveLiquidity(opts *bind.TransactOpts, amount *big.Int, min_eth *big.Int, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0xf88bf15a.
Solidity: function removeLiquidity(uint256 amount, uint256 min_eth, uint256 min_tokens, uint256 deadline) returns(uint256 out, uint256 out)
func (*UniswapTransactor) Setup ¶
func (_Uniswap *UniswapTransactor) Setup(opts *bind.TransactOpts, token_addr common.Address) (*types.Transaction, error)
Setup is a paid mutator transaction binding the contract method 0x66d38203.
Solidity: function setup(address token_addr) returns()
func (*UniswapTransactor) TokenToEthSwapInput ¶
func (_Uniswap *UniswapTransactor) TokenToEthSwapInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int) (*types.Transaction, error)
TokenToEthSwapInput is a paid mutator transaction binding the contract method 0x95e3c50b.
Solidity: function tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline) returns(uint256 out)
func (*UniswapTransactor) TokenToEthSwapOutput ¶
func (_Uniswap *UniswapTransactor) TokenToEthSwapOutput(opts *bind.TransactOpts, eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
TokenToEthSwapOutput is a paid mutator transaction binding the contract method 0x013efd8b.
Solidity: function tokenToEthSwapOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapTransactor) TokenToEthTransferInput ¶
func (_Uniswap *UniswapTransactor) TokenToEthTransferInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
TokenToEthTransferInput is a paid mutator transaction binding the contract method 0x7237e031.
Solidity: function tokenToEthTransferInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactor) TokenToEthTransferOutput ¶
func (_Uniswap *UniswapTransactor) TokenToEthTransferOutput(opts *bind.TransactOpts, eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
TokenToEthTransferOutput is a paid mutator transaction binding the contract method 0xd4e4841d.
Solidity: function tokenToEthTransferOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactor) TokenToExchangeSwapInput ¶
func (_Uniswap *UniswapTransactor) TokenToExchangeSwapInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeSwapInput is a paid mutator transaction binding the contract method 0xb1cb43bf.
Solidity: function tokenToExchangeSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address exchange_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToExchangeSwapOutput ¶
func (_Uniswap *UniswapTransactor) TokenToExchangeSwapOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeSwapOutput is a paid mutator transaction binding the contract method 0xea650c7d.
Solidity: function tokenToExchangeSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address exchange_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToExchangeTransferInput ¶
func (_Uniswap *UniswapTransactor) TokenToExchangeTransferInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, recipient common.Address, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeTransferInput is a paid mutator transaction binding the contract method 0xec384a3e.
Solidity: function tokenToExchangeTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address exchange_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToExchangeTransferOutput ¶
func (_Uniswap *UniswapTransactor) TokenToExchangeTransferOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, recipient common.Address, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeTransferOutput is a paid mutator transaction binding the contract method 0x981a1327.
Solidity: function tokenToExchangeTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address exchange_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToTokenSwapInput ¶
func (_Uniswap *UniswapTransactor) TokenToTokenSwapInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, token_addr common.Address) (*types.Transaction, error)
TokenToTokenSwapInput is a paid mutator transaction binding the contract method 0xddf7e1a7.
Solidity: function tokenToTokenSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address token_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToTokenSwapOutput ¶
func (_Uniswap *UniswapTransactor) TokenToTokenSwapOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, token_addr common.Address) (*types.Transaction, error)
TokenToTokenSwapOutput is a paid mutator transaction binding the contract method 0xb040d545.
Solidity: function tokenToTokenSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address token_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToTokenTransferInput ¶
func (_Uniswap *UniswapTransactor) TokenToTokenTransferInput(opts *bind.TransactOpts, tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, recipient common.Address, token_addr common.Address) (*types.Transaction, error)
TokenToTokenTransferInput is a paid mutator transaction binding the contract method 0xf552d91b.
Solidity: function tokenToTokenTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address token_addr) returns(uint256 out)
func (*UniswapTransactor) TokenToTokenTransferOutput ¶
func (_Uniswap *UniswapTransactor) TokenToTokenTransferOutput(opts *bind.TransactOpts, tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, recipient common.Address, token_addr common.Address) (*types.Transaction, error)
TokenToTokenTransferOutput is a paid mutator transaction binding the contract method 0xf3c0efe9.
Solidity: function tokenToTokenTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address token_addr) returns(uint256 out)
func (*UniswapTransactor) Transfer ¶
func (_Uniswap *UniswapTransactor) 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 out)
func (*UniswapTransactor) TransferFrom ¶
func (_Uniswap *UniswapTransactor) 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 out)
type UniswapTransactorRaw ¶
type UniswapTransactorRaw struct {
Contract *UniswapTransactor // Generic write-only contract binding to access the raw methods on
}
UniswapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*UniswapTransactorRaw) Transact ¶
func (_Uniswap *UniswapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*UniswapTransactorRaw) Transfer ¶
func (_Uniswap *UniswapTransactorRaw) 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 UniswapTransactorSession ¶
type UniswapTransactorSession struct { Contract *UniswapTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
UniswapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*UniswapTransactorSession) AddLiquidity ¶
func (_Uniswap *UniswapTransactorSession) AddLiquidity(min_liquidity *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
AddLiquidity is a paid mutator transaction binding the contract method 0x422f1043.
Solidity: function addLiquidity(uint256 min_liquidity, uint256 max_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapTransactorSession) Approve ¶
func (_Uniswap *UniswapTransactorSession) 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 out)
func (*UniswapTransactorSession) Default ¶
func (_Uniswap *UniswapTransactorSession) Default() (*types.Transaction, error)
Default is a paid mutator transaction binding the contract method 0x89402a72.
Solidity: function __default__() returns()
func (*UniswapTransactorSession) EthToTokenSwapInput ¶
func (_Uniswap *UniswapTransactorSession) EthToTokenSwapInput(min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
EthToTokenSwapInput is a paid mutator transaction binding the contract method 0xf39b5b9b.
Solidity: function ethToTokenSwapInput(uint256 min_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapTransactorSession) EthToTokenSwapOutput ¶
func (_Uniswap *UniswapTransactorSession) EthToTokenSwapOutput(tokens_bought *big.Int, deadline *big.Int) (*types.Transaction, error)
EthToTokenSwapOutput is a paid mutator transaction binding the contract method 0x6b1d4db7.
Solidity: function ethToTokenSwapOutput(uint256 tokens_bought, uint256 deadline) returns(uint256 out)
func (*UniswapTransactorSession) EthToTokenTransferInput ¶
func (_Uniswap *UniswapTransactorSession) EthToTokenTransferInput(min_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
EthToTokenTransferInput is a paid mutator transaction binding the contract method 0xad65d76d.
Solidity: function ethToTokenTransferInput(uint256 min_tokens, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactorSession) EthToTokenTransferOutput ¶
func (_Uniswap *UniswapTransactorSession) EthToTokenTransferOutput(tokens_bought *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
EthToTokenTransferOutput is a paid mutator transaction binding the contract method 0x0b573638.
Solidity: function ethToTokenTransferOutput(uint256 tokens_bought, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactorSession) RemoveLiquidity ¶
func (_Uniswap *UniswapTransactorSession) RemoveLiquidity(amount *big.Int, min_eth *big.Int, min_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
RemoveLiquidity is a paid mutator transaction binding the contract method 0xf88bf15a.
Solidity: function removeLiquidity(uint256 amount, uint256 min_eth, uint256 min_tokens, uint256 deadline) returns(uint256 out, uint256 out)
func (*UniswapTransactorSession) Setup ¶
func (_Uniswap *UniswapTransactorSession) Setup(token_addr common.Address) (*types.Transaction, error)
Setup is a paid mutator transaction binding the contract method 0x66d38203.
Solidity: function setup(address token_addr) returns()
func (*UniswapTransactorSession) TokenToEthSwapInput ¶
func (_Uniswap *UniswapTransactorSession) TokenToEthSwapInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int) (*types.Transaction, error)
TokenToEthSwapInput is a paid mutator transaction binding the contract method 0x95e3c50b.
Solidity: function tokenToEthSwapInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline) returns(uint256 out)
func (*UniswapTransactorSession) TokenToEthSwapOutput ¶
func (_Uniswap *UniswapTransactorSession) TokenToEthSwapOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int) (*types.Transaction, error)
TokenToEthSwapOutput is a paid mutator transaction binding the contract method 0x013efd8b.
Solidity: function tokenToEthSwapOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline) returns(uint256 out)
func (*UniswapTransactorSession) TokenToEthTransferInput ¶
func (_Uniswap *UniswapTransactorSession) TokenToEthTransferInput(tokens_sold *big.Int, min_eth *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
TokenToEthTransferInput is a paid mutator transaction binding the contract method 0x7237e031.
Solidity: function tokenToEthTransferInput(uint256 tokens_sold, uint256 min_eth, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactorSession) TokenToEthTransferOutput ¶
func (_Uniswap *UniswapTransactorSession) TokenToEthTransferOutput(eth_bought *big.Int, max_tokens *big.Int, deadline *big.Int, recipient common.Address) (*types.Transaction, error)
TokenToEthTransferOutput is a paid mutator transaction binding the contract method 0xd4e4841d.
Solidity: function tokenToEthTransferOutput(uint256 eth_bought, uint256 max_tokens, uint256 deadline, address recipient) returns(uint256 out)
func (*UniswapTransactorSession) TokenToExchangeSwapInput ¶
func (_Uniswap *UniswapTransactorSession) TokenToExchangeSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeSwapInput is a paid mutator transaction binding the contract method 0xb1cb43bf.
Solidity: function tokenToExchangeSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address exchange_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToExchangeSwapOutput ¶
func (_Uniswap *UniswapTransactorSession) TokenToExchangeSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeSwapOutput is a paid mutator transaction binding the contract method 0xea650c7d.
Solidity: function tokenToExchangeSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address exchange_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToExchangeTransferInput ¶
func (_Uniswap *UniswapTransactorSession) TokenToExchangeTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, recipient common.Address, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeTransferInput is a paid mutator transaction binding the contract method 0xec384a3e.
Solidity: function tokenToExchangeTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address exchange_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToExchangeTransferOutput ¶
func (_Uniswap *UniswapTransactorSession) TokenToExchangeTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, recipient common.Address, exchange_addr common.Address) (*types.Transaction, error)
TokenToExchangeTransferOutput is a paid mutator transaction binding the contract method 0x981a1327.
Solidity: function tokenToExchangeTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address exchange_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToTokenSwapInput ¶
func (_Uniswap *UniswapTransactorSession) TokenToTokenSwapInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, token_addr common.Address) (*types.Transaction, error)
TokenToTokenSwapInput is a paid mutator transaction binding the contract method 0xddf7e1a7.
Solidity: function tokenToTokenSwapInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address token_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToTokenSwapOutput ¶
func (_Uniswap *UniswapTransactorSession) TokenToTokenSwapOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, token_addr common.Address) (*types.Transaction, error)
TokenToTokenSwapOutput is a paid mutator transaction binding the contract method 0xb040d545.
Solidity: function tokenToTokenSwapOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address token_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToTokenTransferInput ¶
func (_Uniswap *UniswapTransactorSession) TokenToTokenTransferInput(tokens_sold *big.Int, min_tokens_bought *big.Int, min_eth_bought *big.Int, deadline *big.Int, recipient common.Address, token_addr common.Address) (*types.Transaction, error)
TokenToTokenTransferInput is a paid mutator transaction binding the contract method 0xf552d91b.
Solidity: function tokenToTokenTransferInput(uint256 tokens_sold, uint256 min_tokens_bought, uint256 min_eth_bought, uint256 deadline, address recipient, address token_addr) returns(uint256 out)
func (*UniswapTransactorSession) TokenToTokenTransferOutput ¶
func (_Uniswap *UniswapTransactorSession) TokenToTokenTransferOutput(tokens_bought *big.Int, max_tokens_sold *big.Int, max_eth_sold *big.Int, deadline *big.Int, recipient common.Address, token_addr common.Address) (*types.Transaction, error)
TokenToTokenTransferOutput is a paid mutator transaction binding the contract method 0xf3c0efe9.
Solidity: function tokenToTokenTransferOutput(uint256 tokens_bought, uint256 max_tokens_sold, uint256 max_eth_sold, uint256 deadline, address recipient, address token_addr) returns(uint256 out)
func (*UniswapTransactorSession) Transfer ¶
func (_Uniswap *UniswapTransactorSession) 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 out)
func (*UniswapTransactorSession) TransferFrom ¶
func (_Uniswap *UniswapTransactorSession) 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 out)
type UniswapTransfer ¶
type UniswapTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
UniswapTransfer represents a Transfer event raised by the Uniswap contract.
type UniswapTransferIterator ¶
type UniswapTransferIterator struct { Event *UniswapTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
UniswapTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Uniswap contract.
func (*UniswapTransferIterator) Close ¶
func (it *UniswapTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*UniswapTransferIterator) Error ¶
func (it *UniswapTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*UniswapTransferIterator) Next ¶
func (it *UniswapTransferIterator) 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.