github.com/cwntr/go-defi@v0.0.0-20210629134751-07f9ec2f7e66/binding/huniswap/huniswap.go (about) 1 // Code generated - DO NOT EDIT. 2 // This file is a generated binding and any manual changes will be lost. 3 4 package huniswap 5 6 import ( 7 "math/big" 8 "strings" 9 10 ethereum "github.com/ethereum/go-ethereum" 11 "github.com/ethereum/go-ethereum/accounts/abi" 12 "github.com/ethereum/go-ethereum/accounts/abi/bind" 13 "github.com/ethereum/go-ethereum/common" 14 "github.com/ethereum/go-ethereum/core/types" 15 "github.com/ethereum/go-ethereum/event" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var ( 20 _ = big.NewInt 21 _ = strings.NewReader 22 _ = ethereum.NotFound 23 _ = bind.Bind 24 _ = common.Big1 25 _ = types.BloomLookup 26 _ = event.NewSubscription 27 ) 28 29 // HuniswapABI is the input ABI used to generate the binding from. 30 const HuniswapABI = "[{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountADesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"}],\"name\":\"addLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenDesired\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"}],\"name\":\"addLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"postProcess\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountAMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountBMin\",\"type\":\"uint256\"}],\"name\":\"removeLiquidity\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountB\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"liquidity\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountTokenMin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETHMin\",\"type\":\"uint256\"}],\"name\":\"removeLiquidityETH\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToken\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountETH\",\"type\":\"uint256\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"swapETHForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"swapExactETHForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"swapExactTokensForETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountIn\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountOutMin\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"swapExactTokensForTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"swapTokensForExactETH\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountOut\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountInMax\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"path\",\"type\":\"address[]\"}],\"name\":\"swapTokensForExactTokens\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"}]" 31 32 // Huniswap is an auto generated Go binding around an Ethereum contract. 33 type Huniswap struct { 34 HuniswapCaller // Read-only binding to the contract 35 HuniswapTransactor // Write-only binding to the contract 36 HuniswapFilterer // Log filterer for contract events 37 } 38 39 // HuniswapCaller is an auto generated read-only Go binding around an Ethereum contract. 40 type HuniswapCaller struct { 41 contract *bind.BoundContract // Generic contract wrapper for the low level calls 42 } 43 44 // HuniswapTransactor is an auto generated write-only Go binding around an Ethereum contract. 45 type HuniswapTransactor struct { 46 contract *bind.BoundContract // Generic contract wrapper for the low level calls 47 } 48 49 // HuniswapFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 50 type HuniswapFilterer struct { 51 contract *bind.BoundContract // Generic contract wrapper for the low level calls 52 } 53 54 // HuniswapSession is an auto generated Go binding around an Ethereum contract, 55 // with pre-set call and transact options. 56 type HuniswapSession struct { 57 Contract *Huniswap // Generic contract binding to set the session for 58 CallOpts bind.CallOpts // Call options to use throughout this session 59 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 60 } 61 62 // HuniswapCallerSession is an auto generated read-only Go binding around an Ethereum contract, 63 // with pre-set call options. 64 type HuniswapCallerSession struct { 65 Contract *HuniswapCaller // Generic contract caller binding to set the session for 66 CallOpts bind.CallOpts // Call options to use throughout this session 67 } 68 69 // HuniswapTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 70 // with pre-set transact options. 71 type HuniswapTransactorSession struct { 72 Contract *HuniswapTransactor // Generic contract transactor binding to set the session for 73 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 74 } 75 76 // HuniswapRaw is an auto generated low-level Go binding around an Ethereum contract. 77 type HuniswapRaw struct { 78 Contract *Huniswap // Generic contract binding to access the raw methods on 79 } 80 81 // HuniswapCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 82 type HuniswapCallerRaw struct { 83 Contract *HuniswapCaller // Generic read-only contract binding to access the raw methods on 84 } 85 86 // HuniswapTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 87 type HuniswapTransactorRaw struct { 88 Contract *HuniswapTransactor // Generic write-only contract binding to access the raw methods on 89 } 90 91 // NewHuniswap creates a new instance of Huniswap, bound to a specific deployed contract. 92 func NewHuniswap(address common.Address, backend bind.ContractBackend) (*Huniswap, error) { 93 contract, err := bindHuniswap(address, backend, backend, backend) 94 if err != nil { 95 return nil, err 96 } 97 return &Huniswap{HuniswapCaller: HuniswapCaller{contract: contract}, HuniswapTransactor: HuniswapTransactor{contract: contract}, HuniswapFilterer: HuniswapFilterer{contract: contract}}, nil 98 } 99 100 // NewHuniswapCaller creates a new read-only instance of Huniswap, bound to a specific deployed contract. 101 func NewHuniswapCaller(address common.Address, caller bind.ContractCaller) (*HuniswapCaller, error) { 102 contract, err := bindHuniswap(address, caller, nil, nil) 103 if err != nil { 104 return nil, err 105 } 106 return &HuniswapCaller{contract: contract}, nil 107 } 108 109 // NewHuniswapTransactor creates a new write-only instance of Huniswap, bound to a specific deployed contract. 110 func NewHuniswapTransactor(address common.Address, transactor bind.ContractTransactor) (*HuniswapTransactor, error) { 111 contract, err := bindHuniswap(address, nil, transactor, nil) 112 if err != nil { 113 return nil, err 114 } 115 return &HuniswapTransactor{contract: contract}, nil 116 } 117 118 // NewHuniswapFilterer creates a new log filterer instance of Huniswap, bound to a specific deployed contract. 119 func NewHuniswapFilterer(address common.Address, filterer bind.ContractFilterer) (*HuniswapFilterer, error) { 120 contract, err := bindHuniswap(address, nil, nil, filterer) 121 if err != nil { 122 return nil, err 123 } 124 return &HuniswapFilterer{contract: contract}, nil 125 } 126 127 // bindHuniswap binds a generic wrapper to an already deployed contract. 128 func bindHuniswap(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 129 parsed, err := abi.JSON(strings.NewReader(HuniswapABI)) 130 if err != nil { 131 return nil, err 132 } 133 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 134 } 135 136 // Call invokes the (constant) contract method with params as input values and 137 // sets the output to result. The result type might be a single field for simple 138 // returns, a slice of interfaces for anonymous returns and a struct for named 139 // returns. 140 func (_Huniswap *HuniswapRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 141 return _Huniswap.Contract.HuniswapCaller.contract.Call(opts, result, method, params...) 142 } 143 144 // Transfer initiates a plain transaction to move funds to the contract, calling 145 // its default method if one is available. 146 func (_Huniswap *HuniswapRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 147 return _Huniswap.Contract.HuniswapTransactor.contract.Transfer(opts) 148 } 149 150 // Transact invokes the (paid) contract method with params as input values. 151 func (_Huniswap *HuniswapRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 152 return _Huniswap.Contract.HuniswapTransactor.contract.Transact(opts, method, params...) 153 } 154 155 // Call invokes the (constant) contract method with params as input values and 156 // sets the output to result. The result type might be a single field for simple 157 // returns, a slice of interfaces for anonymous returns and a struct for named 158 // returns. 159 func (_Huniswap *HuniswapCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 160 return _Huniswap.Contract.contract.Call(opts, result, method, params...) 161 } 162 163 // Transfer initiates a plain transaction to move funds to the contract, calling 164 // its default method if one is available. 165 func (_Huniswap *HuniswapTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 166 return _Huniswap.Contract.contract.Transfer(opts) 167 } 168 169 // Transact invokes the (paid) contract method with params as input values. 170 func (_Huniswap *HuniswapTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 171 return _Huniswap.Contract.contract.Transact(opts, method, params...) 172 } 173 174 // AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f. 175 // 176 // Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB, uint256 liquidity) 177 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) { 178 return _Huniswap.contract.Transact(opts, "addLiquidity", tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin) 179 } 180 181 // AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f. 182 // 183 // Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB, uint256 liquidity) 184 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) { 185 return _Huniswap.Contract.AddLiquidity(&_Huniswap.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin) 186 } 187 188 // AddLiquidity is a paid mutator transaction binding the contract method 0x3351733f. 189 // 190 // Solidity: function addLiquidity(address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB, uint256 liquidity) 191 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) { 192 return _Huniswap.Contract.AddLiquidity(&_Huniswap.TransactOpts, tokenA, tokenB, amountADesired, amountBDesired, amountAMin, amountBMin) 193 } 194 195 // AddLiquidityETH is a paid mutator transaction binding the contract method 0x58871c81. 196 // 197 // Solidity: function addLiquidityETH(uint256 value, address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) 198 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) { 199 return _Huniswap.contract.Transact(opts, "addLiquidityETH", value, token, amountTokenDesired, amountTokenMin, amountETHMin) 200 } 201 202 // AddLiquidityETH is a paid mutator transaction binding the contract method 0x58871c81. 203 // 204 // Solidity: function addLiquidityETH(uint256 value, address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) 205 func (_Huniswap *HuniswapSession) AddLiquidityETH(value *big.Int, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error) { 206 return _Huniswap.Contract.AddLiquidityETH(&_Huniswap.TransactOpts, value, token, amountTokenDesired, amountTokenMin, amountETHMin) 207 } 208 209 // AddLiquidityETH is a paid mutator transaction binding the contract method 0x58871c81. 210 // 211 // Solidity: function addLiquidityETH(uint256 value, address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH, uint256 liquidity) 212 func (_Huniswap *HuniswapTransactorSession) AddLiquidityETH(value *big.Int, token common.Address, amountTokenDesired *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error) { 213 return _Huniswap.Contract.AddLiquidityETH(&_Huniswap.TransactOpts, value, token, amountTokenDesired, amountTokenMin, amountETHMin) 214 } 215 216 // PostProcess is a paid mutator transaction binding the contract method 0xc2722916. 217 // 218 // Solidity: function postProcess() payable returns() 219 func (_Huniswap *HuniswapTransactor) PostProcess(opts *bind.TransactOpts) (*types.Transaction, error) { 220 return _Huniswap.contract.Transact(opts, "postProcess") 221 } 222 223 // PostProcess is a paid mutator transaction binding the contract method 0xc2722916. 224 // 225 // Solidity: function postProcess() payable returns() 226 func (_Huniswap *HuniswapSession) PostProcess() (*types.Transaction, error) { 227 return _Huniswap.Contract.PostProcess(&_Huniswap.TransactOpts) 228 } 229 230 // PostProcess is a paid mutator transaction binding the contract method 0xc2722916. 231 // 232 // Solidity: function postProcess() payable returns() 233 func (_Huniswap *HuniswapTransactorSession) PostProcess() (*types.Transaction, error) { 234 return _Huniswap.Contract.PostProcess(&_Huniswap.TransactOpts) 235 } 236 237 // RemoveLiquidity is a paid mutator transaction binding the contract method 0xe2dc85dc. 238 // 239 // Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB) 240 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) { 241 return _Huniswap.contract.Transact(opts, "removeLiquidity", tokenA, tokenB, liquidity, amountAMin, amountBMin) 242 } 243 244 // RemoveLiquidity is a paid mutator transaction binding the contract method 0xe2dc85dc. 245 // 246 // Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB) 247 func (_Huniswap *HuniswapSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error) { 248 return _Huniswap.Contract.RemoveLiquidity(&_Huniswap.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin) 249 } 250 251 // RemoveLiquidity is a paid mutator transaction binding the contract method 0xe2dc85dc. 252 // 253 // Solidity: function removeLiquidity(address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin) payable returns(uint256 amountA, uint256 amountB) 254 func (_Huniswap *HuniswapTransactorSession) RemoveLiquidity(tokenA common.Address, tokenB common.Address, liquidity *big.Int, amountAMin *big.Int, amountBMin *big.Int) (*types.Transaction, error) { 255 return _Huniswap.Contract.RemoveLiquidity(&_Huniswap.TransactOpts, tokenA, tokenB, liquidity, amountAMin, amountBMin) 256 } 257 258 // RemoveLiquidityETH is a paid mutator transaction binding the contract method 0xa1cfacde. 259 // 260 // Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH) 261 func (_Huniswap *HuniswapTransactor) RemoveLiquidityETH(opts *bind.TransactOpts, token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error) { 262 return _Huniswap.contract.Transact(opts, "removeLiquidityETH", token, liquidity, amountTokenMin, amountETHMin) 263 } 264 265 // RemoveLiquidityETH is a paid mutator transaction binding the contract method 0xa1cfacde. 266 // 267 // Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH) 268 func (_Huniswap *HuniswapSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error) { 269 return _Huniswap.Contract.RemoveLiquidityETH(&_Huniswap.TransactOpts, token, liquidity, amountTokenMin, amountETHMin) 270 } 271 272 // RemoveLiquidityETH is a paid mutator transaction binding the contract method 0xa1cfacde. 273 // 274 // Solidity: function removeLiquidityETH(address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin) payable returns(uint256 amountToken, uint256 amountETH) 275 func (_Huniswap *HuniswapTransactorSession) RemoveLiquidityETH(token common.Address, liquidity *big.Int, amountTokenMin *big.Int, amountETHMin *big.Int) (*types.Transaction, error) { 276 return _Huniswap.Contract.RemoveLiquidityETH(&_Huniswap.TransactOpts, token, liquidity, amountTokenMin, amountETHMin) 277 } 278 279 // SwapETHForExactTokens is a paid mutator transaction binding the contract method 0x87151a79. 280 // 281 // Solidity: function swapETHForExactTokens(uint256 value, uint256 amountOut, address[] path) payable returns(uint256[] amounts) 282 func (_Huniswap *HuniswapTransactor) SwapETHForExactTokens(opts *bind.TransactOpts, value *big.Int, amountOut *big.Int, path []common.Address) (*types.Transaction, error) { 283 return _Huniswap.contract.Transact(opts, "swapETHForExactTokens", value, amountOut, path) 284 } 285 286 // SwapETHForExactTokens is a paid mutator transaction binding the contract method 0x87151a79. 287 // 288 // Solidity: function swapETHForExactTokens(uint256 value, uint256 amountOut, address[] path) payable returns(uint256[] amounts) 289 func (_Huniswap *HuniswapSession) SwapETHForExactTokens(value *big.Int, amountOut *big.Int, path []common.Address) (*types.Transaction, error) { 290 return _Huniswap.Contract.SwapETHForExactTokens(&_Huniswap.TransactOpts, value, amountOut, path) 291 } 292 293 // SwapETHForExactTokens is a paid mutator transaction binding the contract method 0x87151a79. 294 // 295 // Solidity: function swapETHForExactTokens(uint256 value, uint256 amountOut, address[] path) payable returns(uint256[] amounts) 296 func (_Huniswap *HuniswapTransactorSession) SwapETHForExactTokens(value *big.Int, amountOut *big.Int, path []common.Address) (*types.Transaction, error) { 297 return _Huniswap.Contract.SwapETHForExactTokens(&_Huniswap.TransactOpts, value, amountOut, path) 298 } 299 300 // SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xd0241dac. 301 // 302 // Solidity: function swapExactETHForTokens(uint256 value, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 303 func (_Huniswap *HuniswapTransactor) SwapExactETHForTokens(opts *bind.TransactOpts, value *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 304 return _Huniswap.contract.Transact(opts, "swapExactETHForTokens", value, amountOutMin, path) 305 } 306 307 // SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xd0241dac. 308 // 309 // Solidity: function swapExactETHForTokens(uint256 value, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 310 func (_Huniswap *HuniswapSession) SwapExactETHForTokens(value *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 311 return _Huniswap.Contract.SwapExactETHForTokens(&_Huniswap.TransactOpts, value, amountOutMin, path) 312 } 313 314 // SwapExactETHForTokens is a paid mutator transaction binding the contract method 0xd0241dac. 315 // 316 // Solidity: function swapExactETHForTokens(uint256 value, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 317 func (_Huniswap *HuniswapTransactorSession) SwapExactETHForTokens(value *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 318 return _Huniswap.Contract.SwapExactETHForTokens(&_Huniswap.TransactOpts, value, amountOutMin, path) 319 } 320 321 // SwapExactTokensForETH is a paid mutator transaction binding the contract method 0xef66f725. 322 // 323 // Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 324 func (_Huniswap *HuniswapTransactor) SwapExactTokensForETH(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 325 return _Huniswap.contract.Transact(opts, "swapExactTokensForETH", amountIn, amountOutMin, path) 326 } 327 328 // SwapExactTokensForETH is a paid mutator transaction binding the contract method 0xef66f725. 329 // 330 // Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 331 func (_Huniswap *HuniswapSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 332 return _Huniswap.Contract.SwapExactTokensForETH(&_Huniswap.TransactOpts, amountIn, amountOutMin, path) 333 } 334 335 // SwapExactTokensForETH is a paid mutator transaction binding the contract method 0xef66f725. 336 // 337 // Solidity: function swapExactTokensForETH(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 338 func (_Huniswap *HuniswapTransactorSession) SwapExactTokensForETH(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 339 return _Huniswap.Contract.SwapExactTokensForETH(&_Huniswap.TransactOpts, amountIn, amountOutMin, path) 340 } 341 342 // SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x86818f26. 343 // 344 // Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 345 func (_Huniswap *HuniswapTransactor) SwapExactTokensForTokens(opts *bind.TransactOpts, amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 346 return _Huniswap.contract.Transact(opts, "swapExactTokensForTokens", amountIn, amountOutMin, path) 347 } 348 349 // SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x86818f26. 350 // 351 // Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 352 func (_Huniswap *HuniswapSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 353 return _Huniswap.Contract.SwapExactTokensForTokens(&_Huniswap.TransactOpts, amountIn, amountOutMin, path) 354 } 355 356 // SwapExactTokensForTokens is a paid mutator transaction binding the contract method 0x86818f26. 357 // 358 // Solidity: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path) payable returns(uint256[] amounts) 359 func (_Huniswap *HuniswapTransactorSession) SwapExactTokensForTokens(amountIn *big.Int, amountOutMin *big.Int, path []common.Address) (*types.Transaction, error) { 360 return _Huniswap.Contract.SwapExactTokensForTokens(&_Huniswap.TransactOpts, amountIn, amountOutMin, path) 361 } 362 363 // SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x18a22c40. 364 // 365 // Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts) 366 func (_Huniswap *HuniswapTransactor) SwapTokensForExactETH(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error) { 367 return _Huniswap.contract.Transact(opts, "swapTokensForExactETH", amountOut, amountInMax, path) 368 } 369 370 // SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x18a22c40. 371 // 372 // Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts) 373 func (_Huniswap *HuniswapSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error) { 374 return _Huniswap.Contract.SwapTokensForExactETH(&_Huniswap.TransactOpts, amountOut, amountInMax, path) 375 } 376 377 // SwapTokensForExactETH is a paid mutator transaction binding the contract method 0x18a22c40. 378 // 379 // Solidity: function swapTokensForExactETH(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts) 380 func (_Huniswap *HuniswapTransactorSession) SwapTokensForExactETH(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error) { 381 return _Huniswap.Contract.SwapTokensForExactETH(&_Huniswap.TransactOpts, amountOut, amountInMax, path) 382 } 383 384 // SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x397d4b4a. 385 // 386 // Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts) 387 func (_Huniswap *HuniswapTransactor) SwapTokensForExactTokens(opts *bind.TransactOpts, amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error) { 388 return _Huniswap.contract.Transact(opts, "swapTokensForExactTokens", amountOut, amountInMax, path) 389 } 390 391 // SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x397d4b4a. 392 // 393 // Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts) 394 func (_Huniswap *HuniswapSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error) { 395 return _Huniswap.Contract.SwapTokensForExactTokens(&_Huniswap.TransactOpts, amountOut, amountInMax, path) 396 } 397 398 // SwapTokensForExactTokens is a paid mutator transaction binding the contract method 0x397d4b4a. 399 // 400 // Solidity: function swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, address[] path) payable returns(uint256[] amounts) 401 func (_Huniswap *HuniswapTransactorSession) SwapTokensForExactTokens(amountOut *big.Int, amountInMax *big.Int, path []common.Address) (*types.Transaction, error) { 402 return _Huniswap.Contract.SwapTokensForExactTokens(&_Huniswap.TransactOpts, amountOut, amountInMax, path) 403 }