hcurve

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HcurveABI = "" /* 3913-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Hcurve

type Hcurve struct {
	HcurveCaller     // Read-only binding to the contract
	HcurveTransactor // Write-only binding to the contract
	HcurveFilterer   // Log filterer for contract events
}

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

func NewHcurve

func NewHcurve(address common.Address, backend bind.ContractBackend) (*Hcurve, error)

NewHcurve creates a new instance of Hcurve, bound to a specific deployed contract.

type HcurveCaller

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

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

func NewHcurveCaller

func NewHcurveCaller(address common.Address, caller bind.ContractCaller) (*HcurveCaller, error)

NewHcurveCaller creates a new read-only instance of Hcurve, bound to a specific deployed contract.

func (*HcurveCaller) ONESPLIT

func (_Hcurve *HcurveCaller) ONESPLIT(opts *bind.CallOpts) (common.Address, error)

ONESPLIT is a free data retrieval call binding the contract method 0x33a469e6.

Solidity: function ONE_SPLIT() view returns(address)

type HcurveCallerRaw

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

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

func (*HcurveCallerRaw) Call

func (_Hcurve *HcurveCallerRaw) 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 HcurveCallerSession

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

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

func (*HcurveCallerSession) ONESPLIT

func (_Hcurve *HcurveCallerSession) ONESPLIT() (common.Address, error)

ONESPLIT is a free data retrieval call binding the contract method 0x33a469e6.

Solidity: function ONE_SPLIT() view returns(address)

type HcurveFilterer

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

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

func NewHcurveFilterer

func NewHcurveFilterer(address common.Address, filterer bind.ContractFilterer) (*HcurveFilterer, error)

NewHcurveFilterer creates a new log filterer instance of Hcurve, bound to a specific deployed contract.

type HcurveRaw

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

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

func (*HcurveRaw) Call

func (_Hcurve *HcurveRaw) 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 (*HcurveRaw) Transact

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

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

func (*HcurveRaw) Transfer

func (_Hcurve *HcurveRaw) 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 HcurveSession

type HcurveSession struct {
	Contract     *Hcurve           // 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
}

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

func (*HcurveSession) AddLiquidity

func (_Hcurve *HcurveSession) AddLiquidity(handler common.Address, pool common.Address, tokens []common.Address, amounts []*big.Int, minMintAmount *big.Int) (*types.Transaction, error)

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

Solidity: function addLiquidity(address handler, address pool, address[] tokens, uint256[] amounts, uint256 minMintAmount) payable returns()

func (*HcurveSession) Exchange

func (_Hcurve *HcurveSession) Exchange(handler common.Address, tokenI common.Address, tokenJ common.Address, i *big.Int, j *big.Int, dx *big.Int, minDy *big.Int) (*types.Transaction, error)

Exchange is a paid mutator transaction binding the contract method 0x8337782d.

Solidity: function exchange(address handler, address tokenI, address tokenJ, int128 i, int128 j, uint256 dx, uint256 minDy) payable returns()

func (*HcurveSession) ExchangeUnderlying

func (_Hcurve *HcurveSession) ExchangeUnderlying(handler common.Address, tokenI common.Address, tokenJ common.Address, i *big.Int, j *big.Int, dx *big.Int, minDy *big.Int) (*types.Transaction, error)

ExchangeUnderlying is a paid mutator transaction binding the contract method 0xfef6074e.

Solidity: function exchangeUnderlying(address handler, address tokenI, address tokenJ, int128 i, int128 j, uint256 dx, uint256 minDy) payable returns()

func (*HcurveSession) ONESPLIT

func (_Hcurve *HcurveSession) ONESPLIT() (common.Address, error)

ONESPLIT is a free data retrieval call binding the contract method 0x33a469e6.

Solidity: function ONE_SPLIT() view returns(address)

func (*HcurveSession) PostProcess

func (_Hcurve *HcurveSession) PostProcess() (*types.Transaction, error)

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

Solidity: function postProcess() payable returns()

func (*HcurveSession) RemoveLiquidityOneCoin

func (_Hcurve *HcurveSession) RemoveLiquidityOneCoin(handler common.Address, pool common.Address, tokenI common.Address, tokenAmount *big.Int, i *big.Int, minAmount *big.Int) (*types.Transaction, error)

RemoveLiquidityOneCoin is a paid mutator transaction binding the contract method 0x301ee996.

Solidity: function removeLiquidityOneCoin(address handler, address pool, address tokenI, uint256 tokenAmount, int128 i, uint256 minAmount) payable returns()

func (*HcurveSession) RemoveLiquidityOneCoinDust

func (_Hcurve *HcurveSession) RemoveLiquidityOneCoinDust(handler common.Address, pool common.Address, tokenI common.Address, tokenAmount *big.Int, i *big.Int, minAmount *big.Int) (*types.Transaction, error)

RemoveLiquidityOneCoinDust is a paid mutator transaction binding the contract method 0xe3878667.

Solidity: function removeLiquidityOneCoinDust(address handler, address pool, address tokenI, uint256 tokenAmount, int128 i, uint256 minAmount) payable returns()

func (*HcurveSession) Swap

func (_Hcurve *HcurveSession) Swap(fromToken common.Address, toToken common.Address, amount *big.Int, minReturn *big.Int, distribution []*big.Int, featureFlags *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0xe2a7515e.

Solidity: function swap(address fromToken, address toToken, uint256 amount, uint256 minReturn, uint256[] distribution, uint256 featureFlags) payable returns()

type HcurveTransactor

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

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

func NewHcurveTransactor

func NewHcurveTransactor(address common.Address, transactor bind.ContractTransactor) (*HcurveTransactor, error)

NewHcurveTransactor creates a new write-only instance of Hcurve, bound to a specific deployed contract.

func (*HcurveTransactor) AddLiquidity

func (_Hcurve *HcurveTransactor) AddLiquidity(opts *bind.TransactOpts, handler common.Address, pool common.Address, tokens []common.Address, amounts []*big.Int, minMintAmount *big.Int) (*types.Transaction, error)

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

Solidity: function addLiquidity(address handler, address pool, address[] tokens, uint256[] amounts, uint256 minMintAmount) payable returns()

func (*HcurveTransactor) Exchange

func (_Hcurve *HcurveTransactor) Exchange(opts *bind.TransactOpts, handler common.Address, tokenI common.Address, tokenJ common.Address, i *big.Int, j *big.Int, dx *big.Int, minDy *big.Int) (*types.Transaction, error)

Exchange is a paid mutator transaction binding the contract method 0x8337782d.

Solidity: function exchange(address handler, address tokenI, address tokenJ, int128 i, int128 j, uint256 dx, uint256 minDy) payable returns()

func (*HcurveTransactor) ExchangeUnderlying

func (_Hcurve *HcurveTransactor) ExchangeUnderlying(opts *bind.TransactOpts, handler common.Address, tokenI common.Address, tokenJ common.Address, i *big.Int, j *big.Int, dx *big.Int, minDy *big.Int) (*types.Transaction, error)

ExchangeUnderlying is a paid mutator transaction binding the contract method 0xfef6074e.

Solidity: function exchangeUnderlying(address handler, address tokenI, address tokenJ, int128 i, int128 j, uint256 dx, uint256 minDy) payable returns()

func (*HcurveTransactor) PostProcess

func (_Hcurve *HcurveTransactor) PostProcess(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function postProcess() payable returns()

func (*HcurveTransactor) RemoveLiquidityOneCoin

func (_Hcurve *HcurveTransactor) RemoveLiquidityOneCoin(opts *bind.TransactOpts, handler common.Address, pool common.Address, tokenI common.Address, tokenAmount *big.Int, i *big.Int, minAmount *big.Int) (*types.Transaction, error)

RemoveLiquidityOneCoin is a paid mutator transaction binding the contract method 0x301ee996.

Solidity: function removeLiquidityOneCoin(address handler, address pool, address tokenI, uint256 tokenAmount, int128 i, uint256 minAmount) payable returns()

func (*HcurveTransactor) RemoveLiquidityOneCoinDust

func (_Hcurve *HcurveTransactor) RemoveLiquidityOneCoinDust(opts *bind.TransactOpts, handler common.Address, pool common.Address, tokenI common.Address, tokenAmount *big.Int, i *big.Int, minAmount *big.Int) (*types.Transaction, error)

RemoveLiquidityOneCoinDust is a paid mutator transaction binding the contract method 0xe3878667.

Solidity: function removeLiquidityOneCoinDust(address handler, address pool, address tokenI, uint256 tokenAmount, int128 i, uint256 minAmount) payable returns()

func (*HcurveTransactor) Swap

func (_Hcurve *HcurveTransactor) Swap(opts *bind.TransactOpts, fromToken common.Address, toToken common.Address, amount *big.Int, minReturn *big.Int, distribution []*big.Int, featureFlags *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0xe2a7515e.

Solidity: function swap(address fromToken, address toToken, uint256 amount, uint256 minReturn, uint256[] distribution, uint256 featureFlags) payable returns()

type HcurveTransactorRaw

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

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

func (*HcurveTransactorRaw) Transact

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

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

func (*HcurveTransactorRaw) Transfer

func (_Hcurve *HcurveTransactorRaw) 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 HcurveTransactorSession

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

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

func (*HcurveTransactorSession) AddLiquidity

func (_Hcurve *HcurveTransactorSession) AddLiquidity(handler common.Address, pool common.Address, tokens []common.Address, amounts []*big.Int, minMintAmount *big.Int) (*types.Transaction, error)

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

Solidity: function addLiquidity(address handler, address pool, address[] tokens, uint256[] amounts, uint256 minMintAmount) payable returns()

func (*HcurveTransactorSession) Exchange

func (_Hcurve *HcurveTransactorSession) Exchange(handler common.Address, tokenI common.Address, tokenJ common.Address, i *big.Int, j *big.Int, dx *big.Int, minDy *big.Int) (*types.Transaction, error)

Exchange is a paid mutator transaction binding the contract method 0x8337782d.

Solidity: function exchange(address handler, address tokenI, address tokenJ, int128 i, int128 j, uint256 dx, uint256 minDy) payable returns()

func (*HcurveTransactorSession) ExchangeUnderlying

func (_Hcurve *HcurveTransactorSession) ExchangeUnderlying(handler common.Address, tokenI common.Address, tokenJ common.Address, i *big.Int, j *big.Int, dx *big.Int, minDy *big.Int) (*types.Transaction, error)

ExchangeUnderlying is a paid mutator transaction binding the contract method 0xfef6074e.

Solidity: function exchangeUnderlying(address handler, address tokenI, address tokenJ, int128 i, int128 j, uint256 dx, uint256 minDy) payable returns()

func (*HcurveTransactorSession) PostProcess

func (_Hcurve *HcurveTransactorSession) PostProcess() (*types.Transaction, error)

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

Solidity: function postProcess() payable returns()

func (*HcurveTransactorSession) RemoveLiquidityOneCoin

func (_Hcurve *HcurveTransactorSession) RemoveLiquidityOneCoin(handler common.Address, pool common.Address, tokenI common.Address, tokenAmount *big.Int, i *big.Int, minAmount *big.Int) (*types.Transaction, error)

RemoveLiquidityOneCoin is a paid mutator transaction binding the contract method 0x301ee996.

Solidity: function removeLiquidityOneCoin(address handler, address pool, address tokenI, uint256 tokenAmount, int128 i, uint256 minAmount) payable returns()

func (*HcurveTransactorSession) RemoveLiquidityOneCoinDust

func (_Hcurve *HcurveTransactorSession) RemoveLiquidityOneCoinDust(handler common.Address, pool common.Address, tokenI common.Address, tokenAmount *big.Int, i *big.Int, minAmount *big.Int) (*types.Transaction, error)

RemoveLiquidityOneCoinDust is a paid mutator transaction binding the contract method 0xe3878667.

Solidity: function removeLiquidityOneCoinDust(address handler, address pool, address tokenI, uint256 tokenAmount, int128 i, uint256 minAmount) payable returns()

func (*HcurveTransactorSession) Swap

func (_Hcurve *HcurveTransactorSession) Swap(fromToken common.Address, toToken common.Address, amount *big.Int, minReturn *big.Int, distribution []*big.Int, featureFlags *big.Int) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0xe2a7515e.

Solidity: function swap(address fromToken, address toToken, uint256 amount, uint256 minReturn, uint256[] distribution, uint256 featureFlags) payable returns()

Jump to

Keyboard shortcuts

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