curvepool

package
v1.4.260 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CurvepoolABI = "" /* 9829-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Curvepool

type Curvepool struct {
	CurvepoolCaller     // Read-only binding to the contract
	CurvepoolTransactor // Write-only binding to the contract
	CurvepoolFilterer   // Log filterer for contract events
}

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

func NewCurvepool

func NewCurvepool(address common.Address, backend bind.ContractBackend) (*Curvepool, error)

NewCurvepool creates a new instance of Curvepool, bound to a specific deployed contract.

type CurvepoolAddLiquidity

type CurvepoolAddLiquidity struct {
	Provider     common.Address
	TokenAmounts [2]*big.Int
	Fees         [2]*big.Int
	Invariant    *big.Int
	TokenSupply  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

CurvepoolAddLiquidity represents a AddLiquidity event raised by the Curvepool contract.

type CurvepoolAddLiquidityIterator

type CurvepoolAddLiquidityIterator struct {
	Event *CurvepoolAddLiquidity // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolAddLiquidityIterator is returned from FilterAddLiquidity and is used to iterate over the raw logs and unpacked data for AddLiquidity events raised by the Curvepool contract.

func (*CurvepoolAddLiquidityIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolAddLiquidityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolAddLiquidityIterator) Next

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 CurvepoolCaller

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

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

func NewCurvepoolCaller

func NewCurvepoolCaller(address common.Address, caller bind.ContractCaller) (*CurvepoolCaller, error)

NewCurvepoolCaller creates a new read-only instance of Curvepool, bound to a specific deployed contract.

func (*CurvepoolCaller) A

func (_Curvepool *CurvepoolCaller) A(opts *bind.CallOpts) (*big.Int, error)

A is a free data retrieval call binding the contract method 0xf446c1d0.

Solidity: function A() returns(uint256 out)

func (*CurvepoolCaller) AdminActionsDeadline

func (_Curvepool *CurvepoolCaller) AdminActionsDeadline(opts *bind.CallOpts) (*big.Int, error)

AdminActionsDeadline is a free data retrieval call binding the contract method 0x405e28f8.

Solidity: function admin_actions_deadline() returns(uint256 out)

func (*CurvepoolCaller) AdminFee

func (_Curvepool *CurvepoolCaller) AdminFee(opts *bind.CallOpts) (*big.Int, error)

AdminFee is a free data retrieval call binding the contract method 0xfee3f7f9.

Solidity: function admin_fee() returns(uint256 out)

func (*CurvepoolCaller) Balances

func (_Curvepool *CurvepoolCaller) Balances(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x065a80d8.

Solidity: function balances(int128 arg0) returns(uint256 out)

func (*CurvepoolCaller) CalcTokenAmount

func (_Curvepool *CurvepoolCaller) CalcTokenAmount(opts *bind.CallOpts, amounts [2]*big.Int, deposit bool) (*big.Int, error)

CalcTokenAmount is a free data retrieval call binding the contract method 0xed8e84f3.

Solidity: function calc_token_amount(uint256[2] amounts, bool deposit) returns(uint256 out)

func (*CurvepoolCaller) Coins

func (_Curvepool *CurvepoolCaller) Coins(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Coins is a free data retrieval call binding the contract method 0x23746eb8.

Solidity: function coins(int128 arg0) returns(address out)

func (*CurvepoolCaller) Fee

func (_Curvepool *CurvepoolCaller) Fee(opts *bind.CallOpts) (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() returns(uint256 out)

func (*CurvepoolCaller) FutureA

func (_Curvepool *CurvepoolCaller) FutureA(opts *bind.CallOpts) (*big.Int, error)

FutureA is a free data retrieval call binding the contract method 0xb4b577ad.

Solidity: function future_A() returns(uint256 out)

func (*CurvepoolCaller) FutureAdminFee

func (_Curvepool *CurvepoolCaller) FutureAdminFee(opts *bind.CallOpts) (*big.Int, error)

FutureAdminFee is a free data retrieval call binding the contract method 0xe3824462.

Solidity: function future_admin_fee() returns(uint256 out)

func (*CurvepoolCaller) FutureFee

func (_Curvepool *CurvepoolCaller) FutureFee(opts *bind.CallOpts) (*big.Int, error)

FutureFee is a free data retrieval call binding the contract method 0x58680d0b.

Solidity: function future_fee() returns(uint256 out)

func (*CurvepoolCaller) FutureOwner

func (_Curvepool *CurvepoolCaller) FutureOwner(opts *bind.CallOpts) (common.Address, error)

FutureOwner is a free data retrieval call binding the contract method 0x1ec0cdc1.

Solidity: function future_owner() returns(address out)

func (*CurvepoolCaller) GetDx

func (_Curvepool *CurvepoolCaller) GetDx(opts *bind.CallOpts, i *big.Int, j *big.Int, dy *big.Int) (*big.Int, error)

GetDx is a free data retrieval call binding the contract method 0x67df02ca.

Solidity: function get_dx(int128 i, int128 j, uint256 dy) returns(uint256 out)

func (*CurvepoolCaller) GetDxUnderlying

func (_Curvepool *CurvepoolCaller) GetDxUnderlying(opts *bind.CallOpts, i *big.Int, j *big.Int, dy *big.Int) (*big.Int, error)

GetDxUnderlying is a free data retrieval call binding the contract method 0x0e71d1b9.

Solidity: function get_dx_underlying(int128 i, int128 j, uint256 dy) returns(uint256 out)

func (*CurvepoolCaller) GetDy

func (_Curvepool *CurvepoolCaller) GetDy(opts *bind.CallOpts, i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDy is a free data retrieval call binding the contract method 0x5e0d443f.

Solidity: function get_dy(int128 i, int128 j, uint256 dx) returns(uint256 out)

func (*CurvepoolCaller) GetDyUnderlying

func (_Curvepool *CurvepoolCaller) GetDyUnderlying(opts *bind.CallOpts, i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDyUnderlying is a free data retrieval call binding the contract method 0x07211ef7.

Solidity: function get_dy_underlying(int128 i, int128 j, uint256 dx) returns(uint256 out)

func (*CurvepoolCaller) GetVirtualPrice

func (_Curvepool *CurvepoolCaller) GetVirtualPrice(opts *bind.CallOpts) (*big.Int, error)

GetVirtualPrice is a free data retrieval call binding the contract method 0xbb7b8b80.

Solidity: function get_virtual_price() returns(uint256 out)

func (*CurvepoolCaller) Owner

func (_Curvepool *CurvepoolCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() returns(address out)

func (*CurvepoolCaller) TransferOwnershipDeadline

func (_Curvepool *CurvepoolCaller) TransferOwnershipDeadline(opts *bind.CallOpts) (*big.Int, error)

TransferOwnershipDeadline is a free data retrieval call binding the contract method 0xe0a0b586.

Solidity: function transfer_ownership_deadline() returns(uint256 out)

func (*CurvepoolCaller) UnderlyingCoins

func (_Curvepool *CurvepoolCaller) UnderlyingCoins(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

UnderlyingCoins is a free data retrieval call binding the contract method 0xb739953e.

Solidity: function underlying_coins(int128 arg0) returns(address out)

type CurvepoolCallerRaw

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

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

func (*CurvepoolCallerRaw) Call

func (_Curvepool *CurvepoolCallerRaw) 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 CurvepoolCallerSession

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

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

func (*CurvepoolCallerSession) A

func (_Curvepool *CurvepoolCallerSession) A() (*big.Int, error)

A is a free data retrieval call binding the contract method 0xf446c1d0.

Solidity: function A() returns(uint256 out)

func (*CurvepoolCallerSession) AdminActionsDeadline

func (_Curvepool *CurvepoolCallerSession) AdminActionsDeadline() (*big.Int, error)

AdminActionsDeadline is a free data retrieval call binding the contract method 0x405e28f8.

Solidity: function admin_actions_deadline() returns(uint256 out)

func (*CurvepoolCallerSession) AdminFee

func (_Curvepool *CurvepoolCallerSession) AdminFee() (*big.Int, error)

AdminFee is a free data retrieval call binding the contract method 0xfee3f7f9.

Solidity: function admin_fee() returns(uint256 out)

func (*CurvepoolCallerSession) Balances

func (_Curvepool *CurvepoolCallerSession) Balances(arg0 *big.Int) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x065a80d8.

Solidity: function balances(int128 arg0) returns(uint256 out)

func (*CurvepoolCallerSession) CalcTokenAmount

func (_Curvepool *CurvepoolCallerSession) CalcTokenAmount(amounts [2]*big.Int, deposit bool) (*big.Int, error)

CalcTokenAmount is a free data retrieval call binding the contract method 0xed8e84f3.

Solidity: function calc_token_amount(uint256[2] amounts, bool deposit) returns(uint256 out)

func (*CurvepoolCallerSession) Coins

func (_Curvepool *CurvepoolCallerSession) Coins(arg0 *big.Int) (common.Address, error)

Coins is a free data retrieval call binding the contract method 0x23746eb8.

Solidity: function coins(int128 arg0) returns(address out)

func (*CurvepoolCallerSession) Fee

func (_Curvepool *CurvepoolCallerSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() returns(uint256 out)

func (*CurvepoolCallerSession) FutureA

func (_Curvepool *CurvepoolCallerSession) FutureA() (*big.Int, error)

FutureA is a free data retrieval call binding the contract method 0xb4b577ad.

Solidity: function future_A() returns(uint256 out)

func (*CurvepoolCallerSession) FutureAdminFee

func (_Curvepool *CurvepoolCallerSession) FutureAdminFee() (*big.Int, error)

FutureAdminFee is a free data retrieval call binding the contract method 0xe3824462.

Solidity: function future_admin_fee() returns(uint256 out)

func (*CurvepoolCallerSession) FutureFee

func (_Curvepool *CurvepoolCallerSession) FutureFee() (*big.Int, error)

FutureFee is a free data retrieval call binding the contract method 0x58680d0b.

Solidity: function future_fee() returns(uint256 out)

func (*CurvepoolCallerSession) FutureOwner

func (_Curvepool *CurvepoolCallerSession) FutureOwner() (common.Address, error)

FutureOwner is a free data retrieval call binding the contract method 0x1ec0cdc1.

Solidity: function future_owner() returns(address out)

func (*CurvepoolCallerSession) GetDx

func (_Curvepool *CurvepoolCallerSession) GetDx(i *big.Int, j *big.Int, dy *big.Int) (*big.Int, error)

GetDx is a free data retrieval call binding the contract method 0x67df02ca.

Solidity: function get_dx(int128 i, int128 j, uint256 dy) returns(uint256 out)

func (*CurvepoolCallerSession) GetDxUnderlying

func (_Curvepool *CurvepoolCallerSession) GetDxUnderlying(i *big.Int, j *big.Int, dy *big.Int) (*big.Int, error)

GetDxUnderlying is a free data retrieval call binding the contract method 0x0e71d1b9.

Solidity: function get_dx_underlying(int128 i, int128 j, uint256 dy) returns(uint256 out)

func (*CurvepoolCallerSession) GetDy

func (_Curvepool *CurvepoolCallerSession) GetDy(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDy is a free data retrieval call binding the contract method 0x5e0d443f.

Solidity: function get_dy(int128 i, int128 j, uint256 dx) returns(uint256 out)

func (*CurvepoolCallerSession) GetDyUnderlying

func (_Curvepool *CurvepoolCallerSession) GetDyUnderlying(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDyUnderlying is a free data retrieval call binding the contract method 0x07211ef7.

Solidity: function get_dy_underlying(int128 i, int128 j, uint256 dx) returns(uint256 out)

func (*CurvepoolCallerSession) GetVirtualPrice

func (_Curvepool *CurvepoolCallerSession) GetVirtualPrice() (*big.Int, error)

GetVirtualPrice is a free data retrieval call binding the contract method 0xbb7b8b80.

Solidity: function get_virtual_price() returns(uint256 out)

func (*CurvepoolCallerSession) Owner

func (_Curvepool *CurvepoolCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() returns(address out)

func (*CurvepoolCallerSession) TransferOwnershipDeadline

func (_Curvepool *CurvepoolCallerSession) TransferOwnershipDeadline() (*big.Int, error)

TransferOwnershipDeadline is a free data retrieval call binding the contract method 0xe0a0b586.

Solidity: function transfer_ownership_deadline() returns(uint256 out)

func (*CurvepoolCallerSession) UnderlyingCoins

func (_Curvepool *CurvepoolCallerSession) UnderlyingCoins(arg0 *big.Int) (common.Address, error)

UnderlyingCoins is a free data retrieval call binding the contract method 0xb739953e.

Solidity: function underlying_coins(int128 arg0) returns(address out)

type CurvepoolCommitNewAdmin

type CurvepoolCommitNewAdmin struct {
	Deadline *big.Int
	Admin    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

CurvepoolCommitNewAdmin represents a CommitNewAdmin event raised by the Curvepool contract.

type CurvepoolCommitNewAdminIterator

type CurvepoolCommitNewAdminIterator struct {
	Event *CurvepoolCommitNewAdmin // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolCommitNewAdminIterator is returned from FilterCommitNewAdmin and is used to iterate over the raw logs and unpacked data for CommitNewAdmin events raised by the Curvepool contract.

func (*CurvepoolCommitNewAdminIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolCommitNewAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolCommitNewAdminIterator) Next

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 CurvepoolCommitNewParameters

type CurvepoolCommitNewParameters struct {
	Deadline *big.Int
	A        *big.Int
	Fee      *big.Int
	AdminFee *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

CurvepoolCommitNewParameters represents a CommitNewParameters event raised by the Curvepool contract.

type CurvepoolCommitNewParametersIterator

type CurvepoolCommitNewParametersIterator struct {
	Event *CurvepoolCommitNewParameters // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolCommitNewParametersIterator is returned from FilterCommitNewParameters and is used to iterate over the raw logs and unpacked data for CommitNewParameters events raised by the Curvepool contract.

func (*CurvepoolCommitNewParametersIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolCommitNewParametersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolCommitNewParametersIterator) Next

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 CurvepoolFilterer

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

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

func NewCurvepoolFilterer

func NewCurvepoolFilterer(address common.Address, filterer bind.ContractFilterer) (*CurvepoolFilterer, error)

NewCurvepoolFilterer creates a new log filterer instance of Curvepool, bound to a specific deployed contract.

func (*CurvepoolFilterer) FilterAddLiquidity

func (_Curvepool *CurvepoolFilterer) FilterAddLiquidity(opts *bind.FilterOpts, provider []common.Address) (*CurvepoolAddLiquidityIterator, error)

FilterAddLiquidity is a free log retrieval operation binding the contract event 0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768.

Solidity: event AddLiquidity(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 invariant, uint256 token_supply)

func (*CurvepoolFilterer) FilterCommitNewAdmin

func (_Curvepool *CurvepoolFilterer) FilterCommitNewAdmin(opts *bind.FilterOpts, deadline []*big.Int, admin []common.Address) (*CurvepoolCommitNewAdminIterator, error)

FilterCommitNewAdmin is a free log retrieval operation binding the contract event 0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935.

Solidity: event CommitNewAdmin(uint256 indexed deadline, address indexed admin)

func (*CurvepoolFilterer) FilterCommitNewParameters

func (_Curvepool *CurvepoolFilterer) FilterCommitNewParameters(opts *bind.FilterOpts, deadline []*big.Int) (*CurvepoolCommitNewParametersIterator, error)

FilterCommitNewParameters is a free log retrieval operation binding the contract event 0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73.

Solidity: event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee)

func (*CurvepoolFilterer) FilterNewAdmin

func (_Curvepool *CurvepoolFilterer) FilterNewAdmin(opts *bind.FilterOpts, admin []common.Address) (*CurvepoolNewAdminIterator, error)

FilterNewAdmin is a free log retrieval operation binding the contract event 0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c.

Solidity: event NewAdmin(address indexed admin)

func (*CurvepoolFilterer) FilterNewParameters

func (_Curvepool *CurvepoolFilterer) FilterNewParameters(opts *bind.FilterOpts) (*CurvepoolNewParametersIterator, error)

FilterNewParameters is a free log retrieval operation binding the contract event 0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e.

Solidity: event NewParameters(uint256 A, uint256 fee, uint256 admin_fee)

func (*CurvepoolFilterer) FilterRemoveLiquidity

func (_Curvepool *CurvepoolFilterer) FilterRemoveLiquidity(opts *bind.FilterOpts, provider []common.Address) (*CurvepoolRemoveLiquidityIterator, error)

FilterRemoveLiquidity is a free log retrieval operation binding the contract event 0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c.

Solidity: event RemoveLiquidity(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 token_supply)

func (*CurvepoolFilterer) FilterRemoveLiquidityImbalance

func (_Curvepool *CurvepoolFilterer) FilterRemoveLiquidityImbalance(opts *bind.FilterOpts, provider []common.Address) (*CurvepoolRemoveLiquidityImbalanceIterator, error)

FilterRemoveLiquidityImbalance is a free log retrieval operation binding the contract event 0x2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e.

Solidity: event RemoveLiquidityImbalance(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 invariant, uint256 token_supply)

func (*CurvepoolFilterer) FilterTokenExchange

func (_Curvepool *CurvepoolFilterer) FilterTokenExchange(opts *bind.FilterOpts, buyer []common.Address) (*CurvepoolTokenExchangeIterator, error)

FilterTokenExchange is a free log retrieval operation binding the contract event 0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140.

Solidity: event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*CurvepoolFilterer) FilterTokenExchangeUnderlying

func (_Curvepool *CurvepoolFilterer) FilterTokenExchangeUnderlying(opts *bind.FilterOpts, buyer []common.Address) (*CurvepoolTokenExchangeUnderlyingIterator, error)

FilterTokenExchangeUnderlying is a free log retrieval operation binding the contract event 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b.

Solidity: event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*CurvepoolFilterer) ParseAddLiquidity

func (_Curvepool *CurvepoolFilterer) ParseAddLiquidity(log types.Log) (*CurvepoolAddLiquidity, error)

ParseAddLiquidity is a log parse operation binding the contract event 0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768.

Solidity: event AddLiquidity(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 invariant, uint256 token_supply)

func (*CurvepoolFilterer) ParseCommitNewAdmin

func (_Curvepool *CurvepoolFilterer) ParseCommitNewAdmin(log types.Log) (*CurvepoolCommitNewAdmin, error)

ParseCommitNewAdmin is a log parse operation binding the contract event 0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935.

Solidity: event CommitNewAdmin(uint256 indexed deadline, address indexed admin)

func (*CurvepoolFilterer) ParseCommitNewParameters

func (_Curvepool *CurvepoolFilterer) ParseCommitNewParameters(log types.Log) (*CurvepoolCommitNewParameters, error)

ParseCommitNewParameters is a log parse operation binding the contract event 0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73.

Solidity: event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee)

func (*CurvepoolFilterer) ParseNewAdmin

func (_Curvepool *CurvepoolFilterer) ParseNewAdmin(log types.Log) (*CurvepoolNewAdmin, error)

ParseNewAdmin is a log parse operation binding the contract event 0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c.

Solidity: event NewAdmin(address indexed admin)

func (*CurvepoolFilterer) ParseNewParameters

func (_Curvepool *CurvepoolFilterer) ParseNewParameters(log types.Log) (*CurvepoolNewParameters, error)

ParseNewParameters is a log parse operation binding the contract event 0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e.

Solidity: event NewParameters(uint256 A, uint256 fee, uint256 admin_fee)

func (*CurvepoolFilterer) ParseRemoveLiquidity

func (_Curvepool *CurvepoolFilterer) ParseRemoveLiquidity(log types.Log) (*CurvepoolRemoveLiquidity, error)

ParseRemoveLiquidity is a log parse operation binding the contract event 0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c.

Solidity: event RemoveLiquidity(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 token_supply)

func (*CurvepoolFilterer) ParseRemoveLiquidityImbalance

func (_Curvepool *CurvepoolFilterer) ParseRemoveLiquidityImbalance(log types.Log) (*CurvepoolRemoveLiquidityImbalance, error)

ParseRemoveLiquidityImbalance is a log parse operation binding the contract event 0x2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e.

Solidity: event RemoveLiquidityImbalance(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 invariant, uint256 token_supply)

func (*CurvepoolFilterer) ParseTokenExchange

func (_Curvepool *CurvepoolFilterer) ParseTokenExchange(log types.Log) (*CurvepoolTokenExchange, error)

ParseTokenExchange is a log parse operation binding the contract event 0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140.

Solidity: event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*CurvepoolFilterer) ParseTokenExchangeUnderlying

func (_Curvepool *CurvepoolFilterer) ParseTokenExchangeUnderlying(log types.Log) (*CurvepoolTokenExchangeUnderlying, error)

ParseTokenExchangeUnderlying is a log parse operation binding the contract event 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b.

Solidity: event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*CurvepoolFilterer) WatchAddLiquidity

func (_Curvepool *CurvepoolFilterer) WatchAddLiquidity(opts *bind.WatchOpts, sink chan<- *CurvepoolAddLiquidity, provider []common.Address) (event.Subscription, error)

WatchAddLiquidity is a free log subscription operation binding the contract event 0x26f55a85081d24974e85c6c00045d0f0453991e95873f52bff0d21af4079a768.

Solidity: event AddLiquidity(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 invariant, uint256 token_supply)

func (*CurvepoolFilterer) WatchCommitNewAdmin

func (_Curvepool *CurvepoolFilterer) WatchCommitNewAdmin(opts *bind.WatchOpts, sink chan<- *CurvepoolCommitNewAdmin, deadline []*big.Int, admin []common.Address) (event.Subscription, error)

WatchCommitNewAdmin is a free log subscription operation binding the contract event 0x181aa3aa17d4cbf99265dd4443eba009433d3cde79d60164fde1d1a192beb935.

Solidity: event CommitNewAdmin(uint256 indexed deadline, address indexed admin)

func (*CurvepoolFilterer) WatchCommitNewParameters

func (_Curvepool *CurvepoolFilterer) WatchCommitNewParameters(opts *bind.WatchOpts, sink chan<- *CurvepoolCommitNewParameters, deadline []*big.Int) (event.Subscription, error)

WatchCommitNewParameters is a free log subscription operation binding the contract event 0x6081daa3b61098baf24d9c69bcd53af932e0635c89c6fd0617534b9ba76a7f73.

Solidity: event CommitNewParameters(uint256 indexed deadline, uint256 A, uint256 fee, uint256 admin_fee)

func (*CurvepoolFilterer) WatchNewAdmin

func (_Curvepool *CurvepoolFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *CurvepoolNewAdmin, admin []common.Address) (event.Subscription, error)

WatchNewAdmin is a free log subscription operation binding the contract event 0x71614071b88dee5e0b2ae578a9dd7b2ebbe9ae832ba419dc0242cd065a290b6c.

Solidity: event NewAdmin(address indexed admin)

func (*CurvepoolFilterer) WatchNewParameters

func (_Curvepool *CurvepoolFilterer) WatchNewParameters(opts *bind.WatchOpts, sink chan<- *CurvepoolNewParameters) (event.Subscription, error)

WatchNewParameters is a free log subscription operation binding the contract event 0x752a27d1853eb7af3ee4ff764f2c4a51619386af721573dd3809e929c39db99e.

Solidity: event NewParameters(uint256 A, uint256 fee, uint256 admin_fee)

func (*CurvepoolFilterer) WatchRemoveLiquidity

func (_Curvepool *CurvepoolFilterer) WatchRemoveLiquidity(opts *bind.WatchOpts, sink chan<- *CurvepoolRemoveLiquidity, provider []common.Address) (event.Subscription, error)

WatchRemoveLiquidity is a free log subscription operation binding the contract event 0x7c363854ccf79623411f8995b362bce5eddff18c927edc6f5dbbb5e05819a82c.

Solidity: event RemoveLiquidity(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 token_supply)

func (*CurvepoolFilterer) WatchRemoveLiquidityImbalance

func (_Curvepool *CurvepoolFilterer) WatchRemoveLiquidityImbalance(opts *bind.WatchOpts, sink chan<- *CurvepoolRemoveLiquidityImbalance, provider []common.Address) (event.Subscription, error)

WatchRemoveLiquidityImbalance is a free log subscription operation binding the contract event 0x2b5508378d7e19e0d5fa338419034731416c4f5b219a10379956f764317fd47e.

Solidity: event RemoveLiquidityImbalance(address indexed provider, uint256[2] token_amounts, uint256[2] fees, uint256 invariant, uint256 token_supply)

func (*CurvepoolFilterer) WatchTokenExchange

func (_Curvepool *CurvepoolFilterer) WatchTokenExchange(opts *bind.WatchOpts, sink chan<- *CurvepoolTokenExchange, buyer []common.Address) (event.Subscription, error)

WatchTokenExchange is a free log subscription operation binding the contract event 0x8b3e96f2b889fa771c53c981b40daf005f63f637f1869f707052d15a3dd97140.

Solidity: event TokenExchange(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

func (*CurvepoolFilterer) WatchTokenExchangeUnderlying

func (_Curvepool *CurvepoolFilterer) WatchTokenExchangeUnderlying(opts *bind.WatchOpts, sink chan<- *CurvepoolTokenExchangeUnderlying, buyer []common.Address) (event.Subscription, error)

WatchTokenExchangeUnderlying is a free log subscription operation binding the contract event 0xd013ca23e77a65003c2c659c5442c00c805371b7fc1ebd4c206c41d1536bd90b.

Solidity: event TokenExchangeUnderlying(address indexed buyer, int128 sold_id, uint256 tokens_sold, int128 bought_id, uint256 tokens_bought)

type CurvepoolNewAdmin

type CurvepoolNewAdmin struct {
	Admin common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

CurvepoolNewAdmin represents a NewAdmin event raised by the Curvepool contract.

type CurvepoolNewAdminIterator

type CurvepoolNewAdminIterator struct {
	Event *CurvepoolNewAdmin // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolNewAdminIterator is returned from FilterNewAdmin and is used to iterate over the raw logs and unpacked data for NewAdmin events raised by the Curvepool contract.

func (*CurvepoolNewAdminIterator) Close

func (it *CurvepoolNewAdminIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolNewAdminIterator) Error

func (it *CurvepoolNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolNewAdminIterator) Next

func (it *CurvepoolNewAdminIterator) 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 CurvepoolNewParameters

type CurvepoolNewParameters struct {
	A        *big.Int
	Fee      *big.Int
	AdminFee *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

CurvepoolNewParameters represents a NewParameters event raised by the Curvepool contract.

type CurvepoolNewParametersIterator

type CurvepoolNewParametersIterator struct {
	Event *CurvepoolNewParameters // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolNewParametersIterator is returned from FilterNewParameters and is used to iterate over the raw logs and unpacked data for NewParameters events raised by the Curvepool contract.

func (*CurvepoolNewParametersIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolNewParametersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolNewParametersIterator) Next

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 CurvepoolRaw

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

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

func (*CurvepoolRaw) Call

func (_Curvepool *CurvepoolRaw) 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 (*CurvepoolRaw) Transact

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

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

func (*CurvepoolRaw) Transfer

func (_Curvepool *CurvepoolRaw) 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 CurvepoolRemoveLiquidity

type CurvepoolRemoveLiquidity struct {
	Provider     common.Address
	TokenAmounts [2]*big.Int
	Fees         [2]*big.Int
	TokenSupply  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

CurvepoolRemoveLiquidity represents a RemoveLiquidity event raised by the Curvepool contract.

type CurvepoolRemoveLiquidityImbalance

type CurvepoolRemoveLiquidityImbalance struct {
	Provider     common.Address
	TokenAmounts [2]*big.Int
	Fees         [2]*big.Int
	Invariant    *big.Int
	TokenSupply  *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

CurvepoolRemoveLiquidityImbalance represents a RemoveLiquidityImbalance event raised by the Curvepool contract.

type CurvepoolRemoveLiquidityImbalanceIterator

type CurvepoolRemoveLiquidityImbalanceIterator struct {
	Event *CurvepoolRemoveLiquidityImbalance // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolRemoveLiquidityImbalanceIterator is returned from FilterRemoveLiquidityImbalance and is used to iterate over the raw logs and unpacked data for RemoveLiquidityImbalance events raised by the Curvepool contract.

func (*CurvepoolRemoveLiquidityImbalanceIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolRemoveLiquidityImbalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolRemoveLiquidityImbalanceIterator) Next

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 CurvepoolRemoveLiquidityIterator

type CurvepoolRemoveLiquidityIterator struct {
	Event *CurvepoolRemoveLiquidity // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolRemoveLiquidityIterator is returned from FilterRemoveLiquidity and is used to iterate over the raw logs and unpacked data for RemoveLiquidity events raised by the Curvepool contract.

func (*CurvepoolRemoveLiquidityIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolRemoveLiquidityIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolRemoveLiquidityIterator) Next

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 CurvepoolSession

type CurvepoolSession struct {
	Contract     *Curvepool        // 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
}

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

func (*CurvepoolSession) A

func (_Curvepool *CurvepoolSession) A() (*big.Int, error)

A is a free data retrieval call binding the contract method 0xf446c1d0.

Solidity: function A() returns(uint256 out)

func (*CurvepoolSession) AddLiquidity

func (_Curvepool *CurvepoolSession) AddLiquidity(amounts [2]*big.Int, min_mint_amount *big.Int) (*types.Transaction, error)

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

Solidity: function add_liquidity(uint256[2] amounts, uint256 min_mint_amount) returns()

func (*CurvepoolSession) AdminActionsDeadline

func (_Curvepool *CurvepoolSession) AdminActionsDeadline() (*big.Int, error)

AdminActionsDeadline is a free data retrieval call binding the contract method 0x405e28f8.

Solidity: function admin_actions_deadline() returns(uint256 out)

func (*CurvepoolSession) AdminFee

func (_Curvepool *CurvepoolSession) AdminFee() (*big.Int, error)

AdminFee is a free data retrieval call binding the contract method 0xfee3f7f9.

Solidity: function admin_fee() returns(uint256 out)

func (*CurvepoolSession) ApplyNewParameters

func (_Curvepool *CurvepoolSession) ApplyNewParameters() (*types.Transaction, error)

ApplyNewParameters is a paid mutator transaction binding the contract method 0x2a7dd7cd.

Solidity: function apply_new_parameters() returns()

func (*CurvepoolSession) ApplyTransferOwnership

func (_Curvepool *CurvepoolSession) ApplyTransferOwnership() (*types.Transaction, error)

ApplyTransferOwnership is a paid mutator transaction binding the contract method 0x6a1c05ae.

Solidity: function apply_transfer_ownership() returns()

func (*CurvepoolSession) Balances

func (_Curvepool *CurvepoolSession) Balances(arg0 *big.Int) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x065a80d8.

Solidity: function balances(int128 arg0) returns(uint256 out)

func (*CurvepoolSession) CalcTokenAmount

func (_Curvepool *CurvepoolSession) CalcTokenAmount(amounts [2]*big.Int, deposit bool) (*big.Int, error)

CalcTokenAmount is a free data retrieval call binding the contract method 0xed8e84f3.

Solidity: function calc_token_amount(uint256[2] amounts, bool deposit) returns(uint256 out)

func (*CurvepoolSession) Coins

func (_Curvepool *CurvepoolSession) Coins(arg0 *big.Int) (common.Address, error)

Coins is a free data retrieval call binding the contract method 0x23746eb8.

Solidity: function coins(int128 arg0) returns(address out)

func (*CurvepoolSession) CommitNewParameters

func (_Curvepool *CurvepoolSession) CommitNewParameters(amplification *big.Int, new_fee *big.Int, new_admin_fee *big.Int) (*types.Transaction, error)

CommitNewParameters is a paid mutator transaction binding the contract method 0xee11f5b6.

Solidity: function commit_new_parameters(uint256 amplification, uint256 new_fee, uint256 new_admin_fee) returns()

func (*CurvepoolSession) CommitTransferOwnership

func (_Curvepool *CurvepoolSession) CommitTransferOwnership(_owner common.Address) (*types.Transaction, error)

CommitTransferOwnership is a paid mutator transaction binding the contract method 0x6b441a40.

Solidity: function commit_transfer_ownership(address _owner) returns()

func (*CurvepoolSession) Exchange

func (_Curvepool *CurvepoolSession) Exchange(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

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

Solidity: function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*CurvepoolSession) ExchangeUnderlying

func (_Curvepool *CurvepoolSession) ExchangeUnderlying(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

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

Solidity: function exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*CurvepoolSession) Fee

func (_Curvepool *CurvepoolSession) Fee() (*big.Int, error)

Fee is a free data retrieval call binding the contract method 0xddca3f43.

Solidity: function fee() returns(uint256 out)

func (*CurvepoolSession) FutureA

func (_Curvepool *CurvepoolSession) FutureA() (*big.Int, error)

FutureA is a free data retrieval call binding the contract method 0xb4b577ad.

Solidity: function future_A() returns(uint256 out)

func (*CurvepoolSession) FutureAdminFee

func (_Curvepool *CurvepoolSession) FutureAdminFee() (*big.Int, error)

FutureAdminFee is a free data retrieval call binding the contract method 0xe3824462.

Solidity: function future_admin_fee() returns(uint256 out)

func (*CurvepoolSession) FutureFee

func (_Curvepool *CurvepoolSession) FutureFee() (*big.Int, error)

FutureFee is a free data retrieval call binding the contract method 0x58680d0b.

Solidity: function future_fee() returns(uint256 out)

func (*CurvepoolSession) FutureOwner

func (_Curvepool *CurvepoolSession) FutureOwner() (common.Address, error)

FutureOwner is a free data retrieval call binding the contract method 0x1ec0cdc1.

Solidity: function future_owner() returns(address out)

func (*CurvepoolSession) GetDx

func (_Curvepool *CurvepoolSession) GetDx(i *big.Int, j *big.Int, dy *big.Int) (*big.Int, error)

GetDx is a free data retrieval call binding the contract method 0x67df02ca.

Solidity: function get_dx(int128 i, int128 j, uint256 dy) returns(uint256 out)

func (*CurvepoolSession) GetDxUnderlying

func (_Curvepool *CurvepoolSession) GetDxUnderlying(i *big.Int, j *big.Int, dy *big.Int) (*big.Int, error)

GetDxUnderlying is a free data retrieval call binding the contract method 0x0e71d1b9.

Solidity: function get_dx_underlying(int128 i, int128 j, uint256 dy) returns(uint256 out)

func (*CurvepoolSession) GetDy

func (_Curvepool *CurvepoolSession) GetDy(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDy is a free data retrieval call binding the contract method 0x5e0d443f.

Solidity: function get_dy(int128 i, int128 j, uint256 dx) returns(uint256 out)

func (*CurvepoolSession) GetDyUnderlying

func (_Curvepool *CurvepoolSession) GetDyUnderlying(i *big.Int, j *big.Int, dx *big.Int) (*big.Int, error)

GetDyUnderlying is a free data retrieval call binding the contract method 0x07211ef7.

Solidity: function get_dy_underlying(int128 i, int128 j, uint256 dx) returns(uint256 out)

func (*CurvepoolSession) GetVirtualPrice

func (_Curvepool *CurvepoolSession) GetVirtualPrice() (*big.Int, error)

GetVirtualPrice is a free data retrieval call binding the contract method 0xbb7b8b80.

Solidity: function get_virtual_price() returns(uint256 out)

func (*CurvepoolSession) KillMe

func (_Curvepool *CurvepoolSession) KillMe() (*types.Transaction, error)

KillMe is a paid mutator transaction binding the contract method 0xe3698853.

Solidity: function kill_me() returns()

func (*CurvepoolSession) Owner

func (_Curvepool *CurvepoolSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() returns(address out)

func (*CurvepoolSession) RemoveLiquidity

func (_Curvepool *CurvepoolSession) RemoveLiquidity(_amount *big.Int, min_amounts [2]*big.Int) (*types.Transaction, error)

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

Solidity: function remove_liquidity(uint256 _amount, uint256[2] min_amounts) returns()

func (*CurvepoolSession) RemoveLiquidityImbalance

func (_Curvepool *CurvepoolSession) RemoveLiquidityImbalance(amounts [2]*big.Int, max_burn_amount *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0xe3103273.

Solidity: function remove_liquidity_imbalance(uint256[2] amounts, uint256 max_burn_amount) returns()

func (*CurvepoolSession) RevertNewParameters

func (_Curvepool *CurvepoolSession) RevertNewParameters() (*types.Transaction, error)

RevertNewParameters is a paid mutator transaction binding the contract method 0x226840fb.

Solidity: function revert_new_parameters() returns()

func (*CurvepoolSession) RevertTransferOwnership

func (_Curvepool *CurvepoolSession) RevertTransferOwnership() (*types.Transaction, error)

RevertTransferOwnership is a paid mutator transaction binding the contract method 0x86fbf193.

Solidity: function revert_transfer_ownership() returns()

func (*CurvepoolSession) TransferOwnershipDeadline

func (_Curvepool *CurvepoolSession) TransferOwnershipDeadline() (*big.Int, error)

TransferOwnershipDeadline is a free data retrieval call binding the contract method 0xe0a0b586.

Solidity: function transfer_ownership_deadline() returns(uint256 out)

func (*CurvepoolSession) UnderlyingCoins

func (_Curvepool *CurvepoolSession) UnderlyingCoins(arg0 *big.Int) (common.Address, error)

UnderlyingCoins is a free data retrieval call binding the contract method 0xb739953e.

Solidity: function underlying_coins(int128 arg0) returns(address out)

func (*CurvepoolSession) UnkillMe

func (_Curvepool *CurvepoolSession) UnkillMe() (*types.Transaction, error)

UnkillMe is a paid mutator transaction binding the contract method 0x3046f972.

Solidity: function unkill_me() returns()

func (*CurvepoolSession) WithdrawAdminFees

func (_Curvepool *CurvepoolSession) WithdrawAdminFees() (*types.Transaction, error)

WithdrawAdminFees is a paid mutator transaction binding the contract method 0x30c54085.

Solidity: function withdraw_admin_fees() returns()

type CurvepoolTokenExchange

type CurvepoolTokenExchange struct {
	Buyer        common.Address
	SoldId       *big.Int
	TokensSold   *big.Int
	BoughtId     *big.Int
	TokensBought *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

CurvepoolTokenExchange represents a TokenExchange event raised by the Curvepool contract.

type CurvepoolTokenExchangeIterator

type CurvepoolTokenExchangeIterator struct {
	Event *CurvepoolTokenExchange // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolTokenExchangeIterator is returned from FilterTokenExchange and is used to iterate over the raw logs and unpacked data for TokenExchange events raised by the Curvepool contract.

func (*CurvepoolTokenExchangeIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolTokenExchangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolTokenExchangeIterator) Next

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 CurvepoolTokenExchangeUnderlying

type CurvepoolTokenExchangeUnderlying struct {
	Buyer        common.Address
	SoldId       *big.Int
	TokensSold   *big.Int
	BoughtId     *big.Int
	TokensBought *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

CurvepoolTokenExchangeUnderlying represents a TokenExchangeUnderlying event raised by the Curvepool contract.

type CurvepoolTokenExchangeUnderlyingIterator

type CurvepoolTokenExchangeUnderlyingIterator struct {
	Event *CurvepoolTokenExchangeUnderlying // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CurvepoolTokenExchangeUnderlyingIterator is returned from FilterTokenExchangeUnderlying and is used to iterate over the raw logs and unpacked data for TokenExchangeUnderlying events raised by the Curvepool contract.

func (*CurvepoolTokenExchangeUnderlyingIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*CurvepoolTokenExchangeUnderlyingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CurvepoolTokenExchangeUnderlyingIterator) Next

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 CurvepoolTransactor

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

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

func NewCurvepoolTransactor

func NewCurvepoolTransactor(address common.Address, transactor bind.ContractTransactor) (*CurvepoolTransactor, error)

NewCurvepoolTransactor creates a new write-only instance of Curvepool, bound to a specific deployed contract.

func (*CurvepoolTransactor) AddLiquidity

func (_Curvepool *CurvepoolTransactor) AddLiquidity(opts *bind.TransactOpts, amounts [2]*big.Int, min_mint_amount *big.Int) (*types.Transaction, error)

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

Solidity: function add_liquidity(uint256[2] amounts, uint256 min_mint_amount) returns()

func (*CurvepoolTransactor) ApplyNewParameters

func (_Curvepool *CurvepoolTransactor) ApplyNewParameters(opts *bind.TransactOpts) (*types.Transaction, error)

ApplyNewParameters is a paid mutator transaction binding the contract method 0x2a7dd7cd.

Solidity: function apply_new_parameters() returns()

func (*CurvepoolTransactor) ApplyTransferOwnership

func (_Curvepool *CurvepoolTransactor) ApplyTransferOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

ApplyTransferOwnership is a paid mutator transaction binding the contract method 0x6a1c05ae.

Solidity: function apply_transfer_ownership() returns()

func (*CurvepoolTransactor) CommitNewParameters

func (_Curvepool *CurvepoolTransactor) CommitNewParameters(opts *bind.TransactOpts, amplification *big.Int, new_fee *big.Int, new_admin_fee *big.Int) (*types.Transaction, error)

CommitNewParameters is a paid mutator transaction binding the contract method 0xee11f5b6.

Solidity: function commit_new_parameters(uint256 amplification, uint256 new_fee, uint256 new_admin_fee) returns()

func (*CurvepoolTransactor) CommitTransferOwnership

func (_Curvepool *CurvepoolTransactor) CommitTransferOwnership(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)

CommitTransferOwnership is a paid mutator transaction binding the contract method 0x6b441a40.

Solidity: function commit_transfer_ownership(address _owner) returns()

func (*CurvepoolTransactor) Exchange

func (_Curvepool *CurvepoolTransactor) Exchange(opts *bind.TransactOpts, i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

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

Solidity: function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*CurvepoolTransactor) ExchangeUnderlying

func (_Curvepool *CurvepoolTransactor) ExchangeUnderlying(opts *bind.TransactOpts, i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

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

Solidity: function exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*CurvepoolTransactor) KillMe

func (_Curvepool *CurvepoolTransactor) KillMe(opts *bind.TransactOpts) (*types.Transaction, error)

KillMe is a paid mutator transaction binding the contract method 0xe3698853.

Solidity: function kill_me() returns()

func (*CurvepoolTransactor) RemoveLiquidity

func (_Curvepool *CurvepoolTransactor) RemoveLiquidity(opts *bind.TransactOpts, _amount *big.Int, min_amounts [2]*big.Int) (*types.Transaction, error)

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

Solidity: function remove_liquidity(uint256 _amount, uint256[2] min_amounts) returns()

func (*CurvepoolTransactor) RemoveLiquidityImbalance

func (_Curvepool *CurvepoolTransactor) RemoveLiquidityImbalance(opts *bind.TransactOpts, amounts [2]*big.Int, max_burn_amount *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0xe3103273.

Solidity: function remove_liquidity_imbalance(uint256[2] amounts, uint256 max_burn_amount) returns()

func (*CurvepoolTransactor) RevertNewParameters

func (_Curvepool *CurvepoolTransactor) RevertNewParameters(opts *bind.TransactOpts) (*types.Transaction, error)

RevertNewParameters is a paid mutator transaction binding the contract method 0x226840fb.

Solidity: function revert_new_parameters() returns()

func (*CurvepoolTransactor) RevertTransferOwnership

func (_Curvepool *CurvepoolTransactor) RevertTransferOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RevertTransferOwnership is a paid mutator transaction binding the contract method 0x86fbf193.

Solidity: function revert_transfer_ownership() returns()

func (*CurvepoolTransactor) UnkillMe

func (_Curvepool *CurvepoolTransactor) UnkillMe(opts *bind.TransactOpts) (*types.Transaction, error)

UnkillMe is a paid mutator transaction binding the contract method 0x3046f972.

Solidity: function unkill_me() returns()

func (*CurvepoolTransactor) WithdrawAdminFees

func (_Curvepool *CurvepoolTransactor) WithdrawAdminFees(opts *bind.TransactOpts) (*types.Transaction, error)

WithdrawAdminFees is a paid mutator transaction binding the contract method 0x30c54085.

Solidity: function withdraw_admin_fees() returns()

type CurvepoolTransactorRaw

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

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

func (*CurvepoolTransactorRaw) Transact

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

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

func (*CurvepoolTransactorRaw) Transfer

func (_Curvepool *CurvepoolTransactorRaw) 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 CurvepoolTransactorSession

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

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

func (*CurvepoolTransactorSession) AddLiquidity

func (_Curvepool *CurvepoolTransactorSession) AddLiquidity(amounts [2]*big.Int, min_mint_amount *big.Int) (*types.Transaction, error)

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

Solidity: function add_liquidity(uint256[2] amounts, uint256 min_mint_amount) returns()

func (*CurvepoolTransactorSession) ApplyNewParameters

func (_Curvepool *CurvepoolTransactorSession) ApplyNewParameters() (*types.Transaction, error)

ApplyNewParameters is a paid mutator transaction binding the contract method 0x2a7dd7cd.

Solidity: function apply_new_parameters() returns()

func (*CurvepoolTransactorSession) ApplyTransferOwnership

func (_Curvepool *CurvepoolTransactorSession) ApplyTransferOwnership() (*types.Transaction, error)

ApplyTransferOwnership is a paid mutator transaction binding the contract method 0x6a1c05ae.

Solidity: function apply_transfer_ownership() returns()

func (*CurvepoolTransactorSession) CommitNewParameters

func (_Curvepool *CurvepoolTransactorSession) CommitNewParameters(amplification *big.Int, new_fee *big.Int, new_admin_fee *big.Int) (*types.Transaction, error)

CommitNewParameters is a paid mutator transaction binding the contract method 0xee11f5b6.

Solidity: function commit_new_parameters(uint256 amplification, uint256 new_fee, uint256 new_admin_fee) returns()

func (*CurvepoolTransactorSession) CommitTransferOwnership

func (_Curvepool *CurvepoolTransactorSession) CommitTransferOwnership(_owner common.Address) (*types.Transaction, error)

CommitTransferOwnership is a paid mutator transaction binding the contract method 0x6b441a40.

Solidity: function commit_transfer_ownership(address _owner) returns()

func (*CurvepoolTransactorSession) Exchange

func (_Curvepool *CurvepoolTransactorSession) Exchange(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

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

Solidity: function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*CurvepoolTransactorSession) ExchangeUnderlying

func (_Curvepool *CurvepoolTransactorSession) ExchangeUnderlying(i *big.Int, j *big.Int, dx *big.Int, min_dy *big.Int) (*types.Transaction, error)

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

Solidity: function exchange_underlying(int128 i, int128 j, uint256 dx, uint256 min_dy) returns()

func (*CurvepoolTransactorSession) KillMe

func (_Curvepool *CurvepoolTransactorSession) KillMe() (*types.Transaction, error)

KillMe is a paid mutator transaction binding the contract method 0xe3698853.

Solidity: function kill_me() returns()

func (*CurvepoolTransactorSession) RemoveLiquidity

func (_Curvepool *CurvepoolTransactorSession) RemoveLiquidity(_amount *big.Int, min_amounts [2]*big.Int) (*types.Transaction, error)

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

Solidity: function remove_liquidity(uint256 _amount, uint256[2] min_amounts) returns()

func (*CurvepoolTransactorSession) RemoveLiquidityImbalance

func (_Curvepool *CurvepoolTransactorSession) RemoveLiquidityImbalance(amounts [2]*big.Int, max_burn_amount *big.Int) (*types.Transaction, error)

RemoveLiquidityImbalance is a paid mutator transaction binding the contract method 0xe3103273.

Solidity: function remove_liquidity_imbalance(uint256[2] amounts, uint256 max_burn_amount) returns()

func (*CurvepoolTransactorSession) RevertNewParameters

func (_Curvepool *CurvepoolTransactorSession) RevertNewParameters() (*types.Transaction, error)

RevertNewParameters is a paid mutator transaction binding the contract method 0x226840fb.

Solidity: function revert_new_parameters() returns()

func (*CurvepoolTransactorSession) RevertTransferOwnership

func (_Curvepool *CurvepoolTransactorSession) RevertTransferOwnership() (*types.Transaction, error)

RevertTransferOwnership is a paid mutator transaction binding the contract method 0x86fbf193.

Solidity: function revert_transfer_ownership() returns()

func (*CurvepoolTransactorSession) UnkillMe

func (_Curvepool *CurvepoolTransactorSession) UnkillMe() (*types.Transaction, error)

UnkillMe is a paid mutator transaction binding the contract method 0x3046f972.

Solidity: function unkill_me() returns()

func (*CurvepoolTransactorSession) WithdrawAdminFees

func (_Curvepool *CurvepoolTransactorSession) WithdrawAdminFees() (*types.Transaction, error)

WithdrawAdminFees is a paid mutator transaction binding the contract method 0x30c54085.

Solidity: function withdraw_admin_fees() returns()

Jump to

Keyboard shortcuts

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