huniswap

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HuniswapABI = "" /* 5739-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Huniswap

type Huniswap struct {
	HuniswapCaller     // Read-only binding to the contract
	HuniswapTransactor // Write-only binding to the contract
	HuniswapFilterer   // Log filterer for contract events
}

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

func NewHuniswap

func NewHuniswap(address common.Address, backend bind.ContractBackend) (*Huniswap, error)

NewHuniswap creates a new instance of Huniswap, bound to a specific deployed contract.

type HuniswapCaller

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

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

func NewHuniswapCaller

func NewHuniswapCaller(address common.Address, caller bind.ContractCaller) (*HuniswapCaller, error)

NewHuniswapCaller creates a new read-only instance of Huniswap, bound to a specific deployed contract.

type HuniswapCallerRaw

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

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

func (*HuniswapCallerRaw) Call

func (_Huniswap *HuniswapCallerRaw) 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 HuniswapCallerSession

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

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

type HuniswapFilterer

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

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

func NewHuniswapFilterer

func NewHuniswapFilterer(address common.Address, filterer bind.ContractFilterer) (*HuniswapFilterer, error)

NewHuniswapFilterer creates a new log filterer instance of Huniswap, bound to a specific deployed contract.

type HuniswapRaw

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

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

func (*HuniswapRaw) Call

func (_Huniswap *HuniswapRaw) 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 (*HuniswapRaw) Transact

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

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

func (*HuniswapRaw) Transfer

func (_Huniswap *HuniswapRaw) 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 HuniswapSession

type HuniswapSession struct {
	Contract     *Huniswap         // 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
}

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

func (*HuniswapSession) AddLiquidity

func (_Huniswap *HuniswapSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f.

Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB, uint256 liquidity)

func (*HuniswapSession) AddLiquidityETH

func (_Huniswap *HuniswapSession) AddLiquidityETH(value *big.Int, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error)

AddLiquidityETH is a paid mutator transaction binding the contract method 0x58871c81.

Solidity: function addLiquidityETH(uint256 value, address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)

func (*HuniswapSession) PostProcess

func (_Huniswap *HuniswapSession) PostProcess() (*types.Transaction, error)

PostProcess is a paid mutator transaction binding the contract method 0xc2722916.

Solidity: function postProcess() payable returns()

func (*HuniswapSession) RemoveLiquidity

func (_Huniswap *HuniswapSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0xe2dc85dc.

Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB)

func (*HuniswapSession) RemoveLiquidityETH

func (_Huniswap *HuniswapSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error)

RemoveLiquidityETH is a paid mutator transaction binding the contract method 0xa1cfacde.

Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH)

func (*HuniswapSession) SwapETHForExactTokens

func (_Huniswap *HuniswapSession) SwapETHForExactTokens(value *big.Int, amountOut *big.Int, path []common.Address) (*types.Transaction, error)

SwapETHForExactTokens is a paid mutator transaction binding the contract method 0x87151a79.

Solidity: function swapETHForExactTokens(uint256 value, uint256 amountOut, address[] path) payable returns(uint256[] amounts)

func (*HuniswapSession) SwapExactETHForTokens

func (_Huniswap *HuniswapSession) SwapExactETHForTokens(value *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xd0241dac.

Solidity: function swapExactETHForTokens(uint256 value, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapSession) SwapExactTokensForETH

func (_Huniswap *HuniswapSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactTokensForETH is a paid mutator transaction binding the contract method 0xef66f725.

Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapSession) SwapExactTokensForTokens

func (_Huniswap *HuniswapSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x86818f26.

Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapSession) SwapTokensForExactETH

func (_Huniswap *HuniswapSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error)

SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x18a22c40.

Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts)

func (*HuniswapSession) SwapTokensForExactTokens

func (_Huniswap *HuniswapSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error)

SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x397d4b4a.

Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts)

type HuniswapTransactor

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

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

func NewHuniswapTransactor

func NewHuniswapTransactor(address common.Address, transactor bind.ContractTransactor) (*HuniswapTransactor, error)

NewHuniswapTransactor creates a new write-only instance of Huniswap, bound to a specific deployed contract.

func (*HuniswapTransactor) AddLiquidity

func (_Huniswap *HuniswapTransactor) AddLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f.

Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB, uint256 liquidity)

func (*HuniswapTransactor) AddLiquidityETH

func (_Huniswap *HuniswapTransactor) AddLiquidityETH(opts *bind.TransactOpts, value *big.Int, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error)

AddLiquidityETH is a paid mutator transaction binding the contract method 0x58871c81.

Solidity: function addLiquidityETH(uint256 value, address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)

func (*HuniswapTransactor) PostProcess

func (_Huniswap *HuniswapTransactor) PostProcess(opts *bind.TransactOpts) (*types.Transaction, error)

PostProcess is a paid mutator transaction binding the contract method 0xc2722916.

Solidity: function postProcess() payable returns()

func (*HuniswapTransactor) RemoveLiquidity

func (_Huniswap *HuniswapTransactor) RemoveLiquidity(opts *bind.TransactOpts, tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0xe2dc85dc.

Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB)

func (*HuniswapTransactor) RemoveLiquidityETH

func (_Huniswap *HuniswapTransactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error)

RemoveLiquidityETH is a paid mutator transaction binding the contract method 0xa1cfacde.

Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH)

func (*HuniswapTransactor) SwapETHForExactTokens

func (_Huniswap *HuniswapTransactor) SwapETHForExactTokens(opts *bind.TransactOpts, value *big.Int, amountOut *big.Int, path []common.Address) (*types.Transaction, error)

SwapETHForExactTokens is a paid mutator transaction binding the contract method 0x87151a79.

Solidity: function swapETHForExactTokens(uint256 value, uint256 amountOut, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactor) SwapExactETHForTokens

func (_Huniswap *HuniswapTransactor) SwapExactETHForTokens(opts *bind.TransactOpts, value *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xd0241dac.

Solidity: function swapExactETHForTokens(uint256 value, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactor) SwapExactTokensForETH

func (_Huniswap *HuniswapTransactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactTokensForETH is a paid mutator transaction binding the contract method 0xef66f725.

Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactor) SwapExactTokensForTokens

func (_Huniswap *HuniswapTransactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x86818f26.

Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactor) SwapTokensForExactETH

func (_Huniswap *HuniswapTransactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error)

SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x18a22c40.

Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactor) SwapTokensForExactTokens

func (_Huniswap *HuniswapTransactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error)

SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x397d4b4a.

Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts)

type HuniswapTransactorRaw

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

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

func (*HuniswapTransactorRaw) Transact

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

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

func (*HuniswapTransactorRaw) Transfer

func (_Huniswap *HuniswapTransactorRaw) 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 HuniswapTransactorSession

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

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

func (*HuniswapTransactorSession) AddLiquidity

func (_Huniswap *HuniswapTransactorSession) AddLiquidity(tokenA common.Address, tokenB common.Address, amountADesired *big.Int, amountBDesired *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error)

AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f.

Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB, uint256 liquidity)

func (*HuniswapTransactorSession) AddLiquidityETH

func (_Huniswap *HuniswapTransactorSession) AddLiquidityETH(value *big.Int, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error)

AddLiquidityETH is a paid mutator transaction binding the contract method 0x58871c81.

Solidity: function addLiquidityETH(uint256 value, address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity)

func (*HuniswapTransactorSession) PostProcess

func (_Huniswap *HuniswapTransactorSession) PostProcess() (*types.Transaction, error)

PostProcess is a paid mutator transaction binding the contract method 0xc2722916.

Solidity: function postProcess() payable returns()

func (*HuniswapTransactorSession) RemoveLiquidity

func (_Huniswap *HuniswapTransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error)

RemoveLiquidity is a paid mutator transaction binding the contract method 0xe2dc85dc.

Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB)

func (*HuniswapTransactorSession) RemoveLiquidityETH

func (_Huniswap *HuniswapTransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error)

RemoveLiquidityETH is a paid mutator transaction binding the contract method 0xa1cfacde.

Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH)

func (*HuniswapTransactorSession) SwapETHForExactTokens

func (_Huniswap *HuniswapTransactorSession) SwapETHForExactTokens(value *big.Int, amountOut *big.Int, path []common.Address) (*types.Transaction, error)

SwapETHForExactTokens is a paid mutator transaction binding the contract method 0x87151a79.

Solidity: function swapETHForExactTokens(uint256 value, uint256 amountOut, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactorSession) SwapExactETHForTokens

func (_Huniswap *HuniswapTransactorSession) SwapExactETHForTokens(value *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xd0241dac.

Solidity: function swapExactETHForTokens(uint256 value, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactorSession) SwapExactTokensForETH

func (_Huniswap *HuniswapTransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactTokensForETH is a paid mutator transaction binding the contract method 0xef66f725.

Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactorSession) SwapExactTokensForTokens

func (_Huniswap *HuniswapTransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error)

SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x86818f26.

Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactorSession) SwapTokensForExactETH

func (_Huniswap *HuniswapTransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error)

SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x18a22c40.

Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts)

func (*HuniswapTransactorSession) SwapTokensForExactTokens

func (_Huniswap *HuniswapTransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error)

SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x397d4b4a.

Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts)

Jump to

Keyboard shortcuts

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