hbalancer_exchange

package
v0.0.0-...-829fea1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const HbalancerExchangeABI = "" /* 6050-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type HbalancerExchange

type HbalancerExchange struct {
	HbalancerExchangeCaller     // Read-only binding to the contract
	HbalancerExchangeTransactor // Write-only binding to the contract
	HbalancerExchangeFilterer   // Log filterer for contract events
}

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

func NewHbalancerExchange

func NewHbalancerExchange(address common.Address, backend bind.ContractBackend) (*HbalancerExchange, error)

NewHbalancerExchange creates a new instance of HbalancerExchange, bound to a specific deployed contract.

type HbalancerExchangeCaller

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

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

func NewHbalancerExchangeCaller

func NewHbalancerExchangeCaller(address common.Address, caller bind.ContractCaller) (*HbalancerExchangeCaller, error)

NewHbalancerExchangeCaller creates a new read-only instance of HbalancerExchange, bound to a specific deployed contract.

func (*HbalancerExchangeCaller) ETHADDRESS

func (_HbalancerExchange *HbalancerExchangeCaller) ETHADDRESS(opts *bind.CallOpts) (common.Address, error)

ETHADDRESS is a free data retrieval call binding the contract method 0xa734f06e.

Solidity: function ETH_ADDRESS() view returns(address)

func (*HbalancerExchangeCaller) EXCHANGEPROXY

func (_HbalancerExchange *HbalancerExchangeCaller) EXCHANGEPROXY(opts *bind.CallOpts) (common.Address, error)

EXCHANGEPROXY is a free data retrieval call binding the contract method 0x6fca4f8f.

Solidity: function EXCHANGE_PROXY() view returns(address)

type HbalancerExchangeCallerRaw

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

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

func (*HbalancerExchangeCallerRaw) Call

func (_HbalancerExchange *HbalancerExchangeCallerRaw) 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 HbalancerExchangeCallerSession

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

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

func (*HbalancerExchangeCallerSession) ETHADDRESS

func (_HbalancerExchange *HbalancerExchangeCallerSession) ETHADDRESS() (common.Address, error)

ETHADDRESS is a free data retrieval call binding the contract method 0xa734f06e.

Solidity: function ETH_ADDRESS() view returns(address)

func (*HbalancerExchangeCallerSession) EXCHANGEPROXY

func (_HbalancerExchange *HbalancerExchangeCallerSession) EXCHANGEPROXY() (common.Address, error)

EXCHANGEPROXY is a free data retrieval call binding the contract method 0x6fca4f8f.

Solidity: function EXCHANGE_PROXY() view returns(address)

type HbalancerExchangeFilterer

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

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

func NewHbalancerExchangeFilterer

func NewHbalancerExchangeFilterer(address common.Address, filterer bind.ContractFilterer) (*HbalancerExchangeFilterer, error)

NewHbalancerExchangeFilterer creates a new log filterer instance of HbalancerExchange, bound to a specific deployed contract.

type HbalancerExchangeRaw

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

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

func (*HbalancerExchangeRaw) Call

func (_HbalancerExchange *HbalancerExchangeRaw) 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 (*HbalancerExchangeRaw) Transact

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

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

func (*HbalancerExchangeRaw) Transfer

func (_HbalancerExchange *HbalancerExchangeRaw) 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 HbalancerExchangeSession

type HbalancerExchangeSession struct {
	Contract     *HbalancerExchange // 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
}

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

func (*HbalancerExchangeSession) BatchSwapExactIn

func (_HbalancerExchange *HbalancerExchangeSession) BatchSwapExactIn(swaps []IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int) (*types.Transaction, error)

BatchSwapExactIn is a paid mutator transaction binding the contract method 0x8743ad58.

Solidity: function batchSwapExactIn((address,address,address,uint256,uint256,uint256)[] swaps, address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeSession) BatchSwapExactOut

func (_HbalancerExchange *HbalancerExchangeSession) BatchSwapExactOut(swaps []IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, maxTotalAmountIn *big.Int) (*types.Transaction, error)

BatchSwapExactOut is a paid mutator transaction binding the contract method 0x2db58134.

Solidity: function batchSwapExactOut((address,address,address,uint256,uint256,uint256)[] swaps, address tokenIn, address tokenOut, uint256 maxTotalAmountIn) payable returns(uint256 totalAmountIn)

func (*HbalancerExchangeSession) ETHADDRESS

func (_HbalancerExchange *HbalancerExchangeSession) ETHADDRESS() (common.Address, error)

ETHADDRESS is a free data retrieval call binding the contract method 0xa734f06e.

Solidity: function ETH_ADDRESS() view returns(address)

func (*HbalancerExchangeSession) EXCHANGEPROXY

func (_HbalancerExchange *HbalancerExchangeSession) EXCHANGEPROXY() (common.Address, error)

EXCHANGEPROXY is a free data retrieval call binding the contract method 0x6fca4f8f.

Solidity: function EXCHANGE_PROXY() view returns(address)

func (*HbalancerExchangeSession) MultihopBatchSwapExactIn

func (_HbalancerExchange *HbalancerExchangeSession) MultihopBatchSwapExactIn(swapSequences [][]IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int) (*types.Transaction, error)

MultihopBatchSwapExactIn is a paid mutator transaction binding the contract method 0xe2b39746.

Solidity: function multihopBatchSwapExactIn((address,address,address,uint256,uint256,uint256)[][] swapSequences, address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeSession) MultihopBatchSwapExactOut

func (_HbalancerExchange *HbalancerExchangeSession) MultihopBatchSwapExactOut(swapSequences [][]IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, maxTotalAmountIn *big.Int) (*types.Transaction, error)

MultihopBatchSwapExactOut is a paid mutator transaction binding the contract method 0x86b2ecc4.

Solidity: function multihopBatchSwapExactOut((address,address,address,uint256,uint256,uint256)[][] swapSequences, address tokenIn, address tokenOut, uint256 maxTotalAmountIn) payable returns(uint256 totalAmountIn)

func (*HbalancerExchangeSession) PostProcess

func (_HbalancerExchange *HbalancerExchangeSession) PostProcess() (*types.Transaction, error)

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

Solidity: function postProcess() payable returns()

func (*HbalancerExchangeSession) SmartSwapExactIn

func (_HbalancerExchange *HbalancerExchangeSession) SmartSwapExactIn(tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int, nPools *big.Int) (*types.Transaction, error)

SmartSwapExactIn is a paid mutator transaction binding the contract method 0x21b0eb85.

Solidity: function smartSwapExactIn(address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut, uint256 nPools) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeSession) SmartSwapExactOut

func (_HbalancerExchange *HbalancerExchangeSession) SmartSwapExactOut(tokenIn common.Address, tokenOut common.Address, totalAmountOut *big.Int, maxTotalAmountIn *big.Int, nPools *big.Int) (*types.Transaction, error)

SmartSwapExactOut is a paid mutator transaction binding the contract method 0xb40f39ee.

Solidity: function smartSwapExactOut(address tokenIn, address tokenOut, uint256 totalAmountOut, uint256 maxTotalAmountIn, uint256 nPools) payable returns(uint256 totalAmountIn)

type HbalancerExchangeTransactor

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

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

func NewHbalancerExchangeTransactor

func NewHbalancerExchangeTransactor(address common.Address, transactor bind.ContractTransactor) (*HbalancerExchangeTransactor, error)

NewHbalancerExchangeTransactor creates a new write-only instance of HbalancerExchange, bound to a specific deployed contract.

func (*HbalancerExchangeTransactor) BatchSwapExactIn

func (_HbalancerExchange *HbalancerExchangeTransactor) BatchSwapExactIn(opts *bind.TransactOpts, swaps []IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int) (*types.Transaction, error)

BatchSwapExactIn is a paid mutator transaction binding the contract method 0x8743ad58.

Solidity: function batchSwapExactIn((address,address,address,uint256,uint256,uint256)[] swaps, address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeTransactor) BatchSwapExactOut

func (_HbalancerExchange *HbalancerExchangeTransactor) BatchSwapExactOut(opts *bind.TransactOpts, swaps []IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, maxTotalAmountIn *big.Int) (*types.Transaction, error)

BatchSwapExactOut is a paid mutator transaction binding the contract method 0x2db58134.

Solidity: function batchSwapExactOut((address,address,address,uint256,uint256,uint256)[] swaps, address tokenIn, address tokenOut, uint256 maxTotalAmountIn) payable returns(uint256 totalAmountIn)

func (*HbalancerExchangeTransactor) MultihopBatchSwapExactIn

func (_HbalancerExchange *HbalancerExchangeTransactor) MultihopBatchSwapExactIn(opts *bind.TransactOpts, swapSequences [][]IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int) (*types.Transaction, error)

MultihopBatchSwapExactIn is a paid mutator transaction binding the contract method 0xe2b39746.

Solidity: function multihopBatchSwapExactIn((address,address,address,uint256,uint256,uint256)[][] swapSequences, address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeTransactor) MultihopBatchSwapExactOut

func (_HbalancerExchange *HbalancerExchangeTransactor) MultihopBatchSwapExactOut(opts *bind.TransactOpts, swapSequences [][]IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, maxTotalAmountIn *big.Int) (*types.Transaction, error)

MultihopBatchSwapExactOut is a paid mutator transaction binding the contract method 0x86b2ecc4.

Solidity: function multihopBatchSwapExactOut((address,address,address,uint256,uint256,uint256)[][] swapSequences, address tokenIn, address tokenOut, uint256 maxTotalAmountIn) payable returns(uint256 totalAmountIn)

func (*HbalancerExchangeTransactor) PostProcess

func (_HbalancerExchange *HbalancerExchangeTransactor) PostProcess(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function postProcess() payable returns()

func (*HbalancerExchangeTransactor) SmartSwapExactIn

func (_HbalancerExchange *HbalancerExchangeTransactor) SmartSwapExactIn(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int, nPools *big.Int) (*types.Transaction, error)

SmartSwapExactIn is a paid mutator transaction binding the contract method 0x21b0eb85.

Solidity: function smartSwapExactIn(address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut, uint256 nPools) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeTransactor) SmartSwapExactOut

func (_HbalancerExchange *HbalancerExchangeTransactor) SmartSwapExactOut(opts *bind.TransactOpts, tokenIn common.Address, tokenOut common.Address, totalAmountOut *big.Int, maxTotalAmountIn *big.Int, nPools *big.Int) (*types.Transaction, error)

SmartSwapExactOut is a paid mutator transaction binding the contract method 0xb40f39ee.

Solidity: function smartSwapExactOut(address tokenIn, address tokenOut, uint256 totalAmountOut, uint256 maxTotalAmountIn, uint256 nPools) payable returns(uint256 totalAmountIn)

type HbalancerExchangeTransactorRaw

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

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

func (*HbalancerExchangeTransactorRaw) Transact

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

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

func (*HbalancerExchangeTransactorRaw) Transfer

func (_HbalancerExchange *HbalancerExchangeTransactorRaw) 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 HbalancerExchangeTransactorSession

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

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

func (*HbalancerExchangeTransactorSession) BatchSwapExactIn

func (_HbalancerExchange *HbalancerExchangeTransactorSession) BatchSwapExactIn(swaps []IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int) (*types.Transaction, error)

BatchSwapExactIn is a paid mutator transaction binding the contract method 0x8743ad58.

Solidity: function batchSwapExactIn((address,address,address,uint256,uint256,uint256)[] swaps, address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeTransactorSession) BatchSwapExactOut

func (_HbalancerExchange *HbalancerExchangeTransactorSession) BatchSwapExactOut(swaps []IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, maxTotalAmountIn *big.Int) (*types.Transaction, error)

BatchSwapExactOut is a paid mutator transaction binding the contract method 0x2db58134.

Solidity: function batchSwapExactOut((address,address,address,uint256,uint256,uint256)[] swaps, address tokenIn, address tokenOut, uint256 maxTotalAmountIn) payable returns(uint256 totalAmountIn)

func (*HbalancerExchangeTransactorSession) MultihopBatchSwapExactIn

func (_HbalancerExchange *HbalancerExchangeTransactorSession) MultihopBatchSwapExactIn(swapSequences [][]IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int) (*types.Transaction, error)

MultihopBatchSwapExactIn is a paid mutator transaction binding the contract method 0xe2b39746.

Solidity: function multihopBatchSwapExactIn((address,address,address,uint256,uint256,uint256)[][] swapSequences, address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeTransactorSession) MultihopBatchSwapExactOut

func (_HbalancerExchange *HbalancerExchangeTransactorSession) MultihopBatchSwapExactOut(swapSequences [][]IExchangeProxySwap, tokenIn common.Address, tokenOut common.Address, maxTotalAmountIn *big.Int) (*types.Transaction, error)

MultihopBatchSwapExactOut is a paid mutator transaction binding the contract method 0x86b2ecc4.

Solidity: function multihopBatchSwapExactOut((address,address,address,uint256,uint256,uint256)[][] swapSequences, address tokenIn, address tokenOut, uint256 maxTotalAmountIn) payable returns(uint256 totalAmountIn)

func (*HbalancerExchangeTransactorSession) PostProcess

func (_HbalancerExchange *HbalancerExchangeTransactorSession) PostProcess() (*types.Transaction, error)

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

Solidity: function postProcess() payable returns()

func (*HbalancerExchangeTransactorSession) SmartSwapExactIn

func (_HbalancerExchange *HbalancerExchangeTransactorSession) SmartSwapExactIn(tokenIn common.Address, tokenOut common.Address, totalAmountIn *big.Int, minTotalAmountOut *big.Int, nPools *big.Int) (*types.Transaction, error)

SmartSwapExactIn is a paid mutator transaction binding the contract method 0x21b0eb85.

Solidity: function smartSwapExactIn(address tokenIn, address tokenOut, uint256 totalAmountIn, uint256 minTotalAmountOut, uint256 nPools) payable returns(uint256 totalAmountOut)

func (*HbalancerExchangeTransactorSession) SmartSwapExactOut

func (_HbalancerExchange *HbalancerExchangeTransactorSession) SmartSwapExactOut(tokenIn common.Address, tokenOut common.Address, totalAmountOut *big.Int, maxTotalAmountIn *big.Int, nPools *big.Int) (*types.Transaction, error)

SmartSwapExactOut is a paid mutator transaction binding the contract method 0xb40f39ee.

Solidity: function smartSwapExactOut(address tokenIn, address tokenOut, uint256 totalAmountOut, uint256 maxTotalAmountIn, uint256 nPools) payable returns(uint256 totalAmountIn)

type IExchangeProxySwap

type IExchangeProxySwap struct {
	Pool              common.Address
	TokenIn           common.Address
	TokenOut          common.Address
	SwapAmount        *big.Int
	LimitReturnAmount *big.Int
	MaxPrice          *big.Int
}

IExchangeProxySwap is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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