balancerpool

package
v1.4.70 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BalancerpoolABI = "" /* 23292-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancerpool

type Balancerpool struct {
	BalancerpoolCaller     // Read-only binding to the contract
	BalancerpoolTransactor // Write-only binding to the contract
	BalancerpoolFilterer   // Log filterer for contract events
}

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

func NewBalancerpool

func NewBalancerpool(address common.Address, backend bind.ContractBackend) (*Balancerpool, error)

NewBalancerpool creates a new instance of Balancerpool, bound to a specific deployed contract.

type BalancerpoolApproval

type BalancerpoolApproval struct {
	Src common.Address
	Dst common.Address
	Amt *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

BalancerpoolApproval represents a Approval event raised by the Balancerpool contract.

type BalancerpoolApprovalIterator

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

BalancerpoolApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Balancerpool contract.

func (*BalancerpoolApprovalIterator) Close

func (it *BalancerpoolApprovalIterator) Close() error

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

func (*BalancerpoolApprovalIterator) Error

func (it *BalancerpoolApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BalancerpoolApprovalIterator) 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 BalancerpoolCaller

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

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

func NewBalancerpoolCaller

func NewBalancerpoolCaller(address common.Address, caller bind.ContractCaller) (*BalancerpoolCaller, error)

NewBalancerpoolCaller creates a new read-only instance of Balancerpool, bound to a specific deployed contract.

func (*BalancerpoolCaller) Allowance

func (_Balancerpool *BalancerpoolCaller) Allowance(opts *bind.CallOpts, src common.Address, dst common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address src, address dst) view returns(uint256)

func (*BalancerpoolCaller) BONE

func (_Balancerpool *BalancerpoolCaller) BONE(opts *bind.CallOpts) (*big.Int, error)

BONE is a free data retrieval call binding the contract method 0xc36596a6.

Solidity: function BONE() view returns(uint256)

func (*BalancerpoolCaller) BPOWPRECISION

func (_Balancerpool *BalancerpoolCaller) BPOWPRECISION(opts *bind.CallOpts) (*big.Int, error)

BPOWPRECISION is a free data retrieval call binding the contract method 0x189d00ca.

Solidity: function BPOW_PRECISION() view returns(uint256)

func (*BalancerpoolCaller) BalanceOf

func (_Balancerpool *BalancerpoolCaller) BalanceOf(opts *bind.CallOpts, whom common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address whom) view returns(uint256)

func (*BalancerpoolCaller) CalcInGivenOut

func (_Balancerpool *BalancerpoolCaller) CalcInGivenOut(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, tokenAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcInGivenOut is a free data retrieval call binding the contract method 0xf8d6aed4.

Solidity: function calcInGivenOut(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 tokenAmountOut, uint256 swapFee) pure returns(uint256 tokenAmountIn)

func (*BalancerpoolCaller) CalcOutGivenIn

func (_Balancerpool *BalancerpoolCaller) CalcOutGivenIn(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, tokenAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcOutGivenIn is a free data retrieval call binding the contract method 0xba9530a6.

Solidity: function calcOutGivenIn(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 tokenAmountIn, uint256 swapFee) pure returns(uint256 tokenAmountOut)

func (*BalancerpoolCaller) CalcPoolInGivenSingleOut

func (_Balancerpool *BalancerpoolCaller) CalcPoolInGivenSingleOut(opts *bind.CallOpts, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, poolSupply *big.Int, totalWeight *big.Int, tokenAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcPoolInGivenSingleOut is a free data retrieval call binding the contract method 0x82f652ad.

Solidity: function calcPoolInGivenSingleOut(uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 poolSupply, uint256 totalWeight, uint256 tokenAmountOut, uint256 swapFee) pure returns(uint256 poolAmountIn)

func (*BalancerpoolCaller) CalcPoolOutGivenSingleIn

func (_Balancerpool *BalancerpoolCaller) CalcPoolOutGivenSingleIn(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, poolSupply *big.Int, totalWeight *big.Int, tokenAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcPoolOutGivenSingleIn is a free data retrieval call binding the contract method 0x8656b653.

Solidity: function calcPoolOutGivenSingleIn(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 poolSupply, uint256 totalWeight, uint256 tokenAmountIn, uint256 swapFee) pure returns(uint256 poolAmountOut)

func (*BalancerpoolCaller) CalcSingleInGivenPoolOut

func (_Balancerpool *BalancerpoolCaller) CalcSingleInGivenPoolOut(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, poolSupply *big.Int, totalWeight *big.Int, poolAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSingleInGivenPoolOut is a free data retrieval call binding the contract method 0x5c1bbaf7.

Solidity: function calcSingleInGivenPoolOut(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 poolSupply, uint256 totalWeight, uint256 poolAmountOut, uint256 swapFee) pure returns(uint256 tokenAmountIn)

func (*BalancerpoolCaller) CalcSingleOutGivenPoolIn

func (_Balancerpool *BalancerpoolCaller) CalcSingleOutGivenPoolIn(opts *bind.CallOpts, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, poolSupply *big.Int, totalWeight *big.Int, poolAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSingleOutGivenPoolIn is a free data retrieval call binding the contract method 0x89298012.

Solidity: function calcSingleOutGivenPoolIn(uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 poolSupply, uint256 totalWeight, uint256 poolAmountIn, uint256 swapFee) pure returns(uint256 tokenAmountOut)

func (*BalancerpoolCaller) CalcSpotPrice

func (_Balancerpool *BalancerpoolCaller) CalcSpotPrice(opts *bind.CallOpts, tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.

Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)

func (*BalancerpoolCaller) Decimals

func (_Balancerpool *BalancerpoolCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*BalancerpoolCaller) EXITFEE

func (_Balancerpool *BalancerpoolCaller) EXITFEE(opts *bind.CallOpts) (*big.Int, error)

EXITFEE is a free data retrieval call binding the contract method 0xc6580d12.

Solidity: function EXIT_FEE() view returns(uint256)

func (*BalancerpoolCaller) GetBalance

func (_Balancerpool *BalancerpoolCaller) GetBalance(opts *bind.CallOpts, token common.Address) (*big.Int, error)

GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.

Solidity: function getBalance(address token) view returns(uint256)

func (*BalancerpoolCaller) GetColor

func (_Balancerpool *BalancerpoolCaller) GetColor(opts *bind.CallOpts) ([32]byte, error)

GetColor is a free data retrieval call binding the contract method 0x9a86139b.

Solidity: function getColor() view returns(bytes32)

func (*BalancerpoolCaller) GetController

func (_Balancerpool *BalancerpoolCaller) GetController(opts *bind.CallOpts) (common.Address, error)

GetController is a free data retrieval call binding the contract method 0x3018205f.

Solidity: function getController() view returns(address)

func (*BalancerpoolCaller) GetCurrentTokens

func (_Balancerpool *BalancerpoolCaller) GetCurrentTokens(opts *bind.CallOpts) ([]common.Address, error)

GetCurrentTokens is a free data retrieval call binding the contract method 0xcc77828d.

Solidity: function getCurrentTokens() view returns(address[] tokens)

func (*BalancerpoolCaller) GetDenormalizedWeight

func (_Balancerpool *BalancerpoolCaller) GetDenormalizedWeight(opts *bind.CallOpts, token common.Address) (*big.Int, error)

GetDenormalizedWeight is a free data retrieval call binding the contract method 0x948d8ce6.

Solidity: function getDenormalizedWeight(address token) view returns(uint256)

func (*BalancerpoolCaller) GetFinalTokens

func (_Balancerpool *BalancerpoolCaller) GetFinalTokens(opts *bind.CallOpts) ([]common.Address, error)

GetFinalTokens is a free data retrieval call binding the contract method 0xbe3bbd2e.

Solidity: function getFinalTokens() view returns(address[] tokens)

func (*BalancerpoolCaller) GetNormalizedWeight

func (_Balancerpool *BalancerpoolCaller) GetNormalizedWeight(opts *bind.CallOpts, token common.Address) (*big.Int, error)

GetNormalizedWeight is a free data retrieval call binding the contract method 0xf1b8a9b7.

Solidity: function getNormalizedWeight(address token) view returns(uint256)

func (*BalancerpoolCaller) GetNumTokens

func (_Balancerpool *BalancerpoolCaller) GetNumTokens(opts *bind.CallOpts) (*big.Int, error)

GetNumTokens is a free data retrieval call binding the contract method 0xcd2ed8fb.

Solidity: function getNumTokens() view returns(uint256)

func (*BalancerpoolCaller) GetSpotPrice

func (_Balancerpool *BalancerpoolCaller) GetSpotPrice(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address) (*big.Int, error)

GetSpotPrice is a free data retrieval call binding the contract method 0x15e84af9.

Solidity: function getSpotPrice(address tokenIn, address tokenOut) view returns(uint256 spotPrice)

func (*BalancerpoolCaller) GetSpotPriceSansFee

func (_Balancerpool *BalancerpoolCaller) GetSpotPriceSansFee(opts *bind.CallOpts, tokenIn common.Address, tokenOut common.Address) (*big.Int, error)

GetSpotPriceSansFee is a free data retrieval call binding the contract method 0x1446a7ff.

Solidity: function getSpotPriceSansFee(address tokenIn, address tokenOut) view returns(uint256 spotPrice)

func (*BalancerpoolCaller) GetSwapFee

func (_Balancerpool *BalancerpoolCaller) GetSwapFee(opts *bind.CallOpts) (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0xd4cadf68.

Solidity: function getSwapFee() view returns(uint256)

func (*BalancerpoolCaller) GetTotalDenormalizedWeight

func (_Balancerpool *BalancerpoolCaller) GetTotalDenormalizedWeight(opts *bind.CallOpts) (*big.Int, error)

GetTotalDenormalizedWeight is a free data retrieval call binding the contract method 0x936c3477.

Solidity: function getTotalDenormalizedWeight() view returns(uint256)

func (*BalancerpoolCaller) INITPOOLSUPPLY

func (_Balancerpool *BalancerpoolCaller) INITPOOLSUPPLY(opts *bind.CallOpts) (*big.Int, error)

INITPOOLSUPPLY is a free data retrieval call binding the contract method 0x9381cd2b.

Solidity: function INIT_POOL_SUPPLY() view returns(uint256)

func (*BalancerpoolCaller) IsBound

func (_Balancerpool *BalancerpoolCaller) IsBound(opts *bind.CallOpts, t common.Address) (bool, error)

IsBound is a free data retrieval call binding the contract method 0x2f37b624.

Solidity: function isBound(address t) view returns(bool)

func (*BalancerpoolCaller) IsFinalized

func (_Balancerpool *BalancerpoolCaller) IsFinalized(opts *bind.CallOpts) (bool, error)

IsFinalized is a free data retrieval call binding the contract method 0x8d4e4083.

Solidity: function isFinalized() view returns(bool)

func (*BalancerpoolCaller) IsPublicSwap

func (_Balancerpool *BalancerpoolCaller) IsPublicSwap(opts *bind.CallOpts) (bool, error)

IsPublicSwap is a free data retrieval call binding the contract method 0xfde924f7.

Solidity: function isPublicSwap() view returns(bool)

func (*BalancerpoolCaller) MAXBOUNDTOKENS

func (_Balancerpool *BalancerpoolCaller) MAXBOUNDTOKENS(opts *bind.CallOpts) (*big.Int, error)

MAXBOUNDTOKENS is a free data retrieval call binding the contract method 0xb0e0d136.

Solidity: function MAX_BOUND_TOKENS() view returns(uint256)

func (*BalancerpoolCaller) MAXBPOWBASE

func (_Balancerpool *BalancerpoolCaller) MAXBPOWBASE(opts *bind.CallOpts) (*big.Int, error)

MAXBPOWBASE is a free data retrieval call binding the contract method 0xbc694ea2.

Solidity: function MAX_BPOW_BASE() view returns(uint256)

func (*BalancerpoolCaller) MAXFEE

func (_Balancerpool *BalancerpoolCaller) MAXFEE(opts *bind.CallOpts) (*big.Int, error)

MAXFEE is a free data retrieval call binding the contract method 0xbc063e1a.

Solidity: function MAX_FEE() view returns(uint256)

func (*BalancerpoolCaller) MAXINRATIO

func (_Balancerpool *BalancerpoolCaller) MAXINRATIO(opts *bind.CallOpts) (*big.Int, error)

MAXINRATIO is a free data retrieval call binding the contract method 0xec093021.

Solidity: function MAX_IN_RATIO() view returns(uint256)

func (*BalancerpoolCaller) MAXOUTRATIO

func (_Balancerpool *BalancerpoolCaller) MAXOUTRATIO(opts *bind.CallOpts) (*big.Int, error)

MAXOUTRATIO is a free data retrieval call binding the contract method 0x992e2a92.

Solidity: function MAX_OUT_RATIO() view returns(uint256)

func (*BalancerpoolCaller) MAXTOTALWEIGHT

func (_Balancerpool *BalancerpoolCaller) MAXTOTALWEIGHT(opts *bind.CallOpts) (*big.Int, error)

MAXTOTALWEIGHT is a free data retrieval call binding the contract method 0x09a3bbe4.

Solidity: function MAX_TOTAL_WEIGHT() view returns(uint256)

func (*BalancerpoolCaller) MAXWEIGHT

func (_Balancerpool *BalancerpoolCaller) MAXWEIGHT(opts *bind.CallOpts) (*big.Int, error)

MAXWEIGHT is a free data retrieval call binding the contract method 0xe4a28a52.

Solidity: function MAX_WEIGHT() view returns(uint256)

func (*BalancerpoolCaller) MINBALANCE

func (_Balancerpool *BalancerpoolCaller) MINBALANCE(opts *bind.CallOpts) (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*BalancerpoolCaller) MINBOUNDTOKENS

func (_Balancerpool *BalancerpoolCaller) MINBOUNDTOKENS(opts *bind.CallOpts) (*big.Int, error)

MINBOUNDTOKENS is a free data retrieval call binding the contract method 0xb7b800a4.

Solidity: function MIN_BOUND_TOKENS() view returns(uint256)

func (*BalancerpoolCaller) MINBPOWBASE

func (_Balancerpool *BalancerpoolCaller) MINBPOWBASE(opts *bind.CallOpts) (*big.Int, error)

MINBPOWBASE is a free data retrieval call binding the contract method 0xba019dab.

Solidity: function MIN_BPOW_BASE() view returns(uint256)

func (*BalancerpoolCaller) MINFEE

func (_Balancerpool *BalancerpoolCaller) MINFEE(opts *bind.CallOpts) (*big.Int, error)

MINFEE is a free data retrieval call binding the contract method 0x76c7a3c7.

Solidity: function MIN_FEE() view returns(uint256)

func (*BalancerpoolCaller) MINWEIGHT

func (_Balancerpool *BalancerpoolCaller) MINWEIGHT(opts *bind.CallOpts) (*big.Int, error)

MINWEIGHT is a free data retrieval call binding the contract method 0x218b5382.

Solidity: function MIN_WEIGHT() view returns(uint256)

func (*BalancerpoolCaller) Name

func (_Balancerpool *BalancerpoolCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*BalancerpoolCaller) Symbol

func (_Balancerpool *BalancerpoolCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*BalancerpoolCaller) TotalSupply

func (_Balancerpool *BalancerpoolCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type BalancerpoolCallerRaw

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

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

func (*BalancerpoolCallerRaw) Call

func (_Balancerpool *BalancerpoolCallerRaw) 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 BalancerpoolCallerSession

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

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

func (*BalancerpoolCallerSession) Allowance

func (_Balancerpool *BalancerpoolCallerSession) Allowance(src common.Address, dst common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address src, address dst) view returns(uint256)

func (*BalancerpoolCallerSession) BONE

func (_Balancerpool *BalancerpoolCallerSession) BONE() (*big.Int, error)

BONE is a free data retrieval call binding the contract method 0xc36596a6.

Solidity: function BONE() view returns(uint256)

func (*BalancerpoolCallerSession) BPOWPRECISION

func (_Balancerpool *BalancerpoolCallerSession) BPOWPRECISION() (*big.Int, error)

BPOWPRECISION is a free data retrieval call binding the contract method 0x189d00ca.

Solidity: function BPOW_PRECISION() view returns(uint256)

func (*BalancerpoolCallerSession) BalanceOf

func (_Balancerpool *BalancerpoolCallerSession) BalanceOf(whom common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address whom) view returns(uint256)

func (*BalancerpoolCallerSession) CalcInGivenOut

func (_Balancerpool *BalancerpoolCallerSession) CalcInGivenOut(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, tokenAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcInGivenOut is a free data retrieval call binding the contract method 0xf8d6aed4.

Solidity: function calcInGivenOut(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 tokenAmountOut, uint256 swapFee) pure returns(uint256 tokenAmountIn)

func (*BalancerpoolCallerSession) CalcOutGivenIn

func (_Balancerpool *BalancerpoolCallerSession) CalcOutGivenIn(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, tokenAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcOutGivenIn is a free data retrieval call binding the contract method 0xba9530a6.

Solidity: function calcOutGivenIn(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 tokenAmountIn, uint256 swapFee) pure returns(uint256 tokenAmountOut)

func (*BalancerpoolCallerSession) CalcPoolInGivenSingleOut

func (_Balancerpool *BalancerpoolCallerSession) CalcPoolInGivenSingleOut(tokenBalanceOut *big.Int, tokenWeightOut *big.Int, poolSupply *big.Int, totalWeight *big.Int, tokenAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcPoolInGivenSingleOut is a free data retrieval call binding the contract method 0x82f652ad.

Solidity: function calcPoolInGivenSingleOut(uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 poolSupply, uint256 totalWeight, uint256 tokenAmountOut, uint256 swapFee) pure returns(uint256 poolAmountIn)

func (*BalancerpoolCallerSession) CalcPoolOutGivenSingleIn

func (_Balancerpool *BalancerpoolCallerSession) CalcPoolOutGivenSingleIn(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, poolSupply *big.Int, totalWeight *big.Int, tokenAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcPoolOutGivenSingleIn is a free data retrieval call binding the contract method 0x8656b653.

Solidity: function calcPoolOutGivenSingleIn(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 poolSupply, uint256 totalWeight, uint256 tokenAmountIn, uint256 swapFee) pure returns(uint256 poolAmountOut)

func (*BalancerpoolCallerSession) CalcSingleInGivenPoolOut

func (_Balancerpool *BalancerpoolCallerSession) CalcSingleInGivenPoolOut(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, poolSupply *big.Int, totalWeight *big.Int, poolAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSingleInGivenPoolOut is a free data retrieval call binding the contract method 0x5c1bbaf7.

Solidity: function calcSingleInGivenPoolOut(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 poolSupply, uint256 totalWeight, uint256 poolAmountOut, uint256 swapFee) pure returns(uint256 tokenAmountIn)

func (*BalancerpoolCallerSession) CalcSingleOutGivenPoolIn

func (_Balancerpool *BalancerpoolCallerSession) CalcSingleOutGivenPoolIn(tokenBalanceOut *big.Int, tokenWeightOut *big.Int, poolSupply *big.Int, totalWeight *big.Int, poolAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSingleOutGivenPoolIn is a free data retrieval call binding the contract method 0x89298012.

Solidity: function calcSingleOutGivenPoolIn(uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 poolSupply, uint256 totalWeight, uint256 poolAmountIn, uint256 swapFee) pure returns(uint256 tokenAmountOut)

func (*BalancerpoolCallerSession) CalcSpotPrice

func (_Balancerpool *BalancerpoolCallerSession) CalcSpotPrice(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.

Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)

func (*BalancerpoolCallerSession) Decimals

func (_Balancerpool *BalancerpoolCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*BalancerpoolCallerSession) EXITFEE

func (_Balancerpool *BalancerpoolCallerSession) EXITFEE() (*big.Int, error)

EXITFEE is a free data retrieval call binding the contract method 0xc6580d12.

Solidity: function EXIT_FEE() view returns(uint256)

func (*BalancerpoolCallerSession) GetBalance

func (_Balancerpool *BalancerpoolCallerSession) GetBalance(token common.Address) (*big.Int, error)

GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.

Solidity: function getBalance(address token) view returns(uint256)

func (*BalancerpoolCallerSession) GetColor

func (_Balancerpool *BalancerpoolCallerSession) GetColor() ([32]byte, error)

GetColor is a free data retrieval call binding the contract method 0x9a86139b.

Solidity: function getColor() view returns(bytes32)

func (*BalancerpoolCallerSession) GetController

func (_Balancerpool *BalancerpoolCallerSession) GetController() (common.Address, error)

GetController is a free data retrieval call binding the contract method 0x3018205f.

Solidity: function getController() view returns(address)

func (*BalancerpoolCallerSession) GetCurrentTokens

func (_Balancerpool *BalancerpoolCallerSession) GetCurrentTokens() ([]common.Address, error)

GetCurrentTokens is a free data retrieval call binding the contract method 0xcc77828d.

Solidity: function getCurrentTokens() view returns(address[] tokens)

func (*BalancerpoolCallerSession) GetDenormalizedWeight

func (_Balancerpool *BalancerpoolCallerSession) GetDenormalizedWeight(token common.Address) (*big.Int, error)

GetDenormalizedWeight is a free data retrieval call binding the contract method 0x948d8ce6.

Solidity: function getDenormalizedWeight(address token) view returns(uint256)

func (*BalancerpoolCallerSession) GetFinalTokens

func (_Balancerpool *BalancerpoolCallerSession) GetFinalTokens() ([]common.Address, error)

GetFinalTokens is a free data retrieval call binding the contract method 0xbe3bbd2e.

Solidity: function getFinalTokens() view returns(address[] tokens)

func (*BalancerpoolCallerSession) GetNormalizedWeight

func (_Balancerpool *BalancerpoolCallerSession) GetNormalizedWeight(token common.Address) (*big.Int, error)

GetNormalizedWeight is a free data retrieval call binding the contract method 0xf1b8a9b7.

Solidity: function getNormalizedWeight(address token) view returns(uint256)

func (*BalancerpoolCallerSession) GetNumTokens

func (_Balancerpool *BalancerpoolCallerSession) GetNumTokens() (*big.Int, error)

GetNumTokens is a free data retrieval call binding the contract method 0xcd2ed8fb.

Solidity: function getNumTokens() view returns(uint256)

func (*BalancerpoolCallerSession) GetSpotPrice

func (_Balancerpool *BalancerpoolCallerSession) GetSpotPrice(tokenIn common.Address, tokenOut common.Address) (*big.Int, error)

GetSpotPrice is a free data retrieval call binding the contract method 0x15e84af9.

Solidity: function getSpotPrice(address tokenIn, address tokenOut) view returns(uint256 spotPrice)

func (*BalancerpoolCallerSession) GetSpotPriceSansFee

func (_Balancerpool *BalancerpoolCallerSession) GetSpotPriceSansFee(tokenIn common.Address, tokenOut common.Address) (*big.Int, error)

GetSpotPriceSansFee is a free data retrieval call binding the contract method 0x1446a7ff.

Solidity: function getSpotPriceSansFee(address tokenIn, address tokenOut) view returns(uint256 spotPrice)

func (*BalancerpoolCallerSession) GetSwapFee

func (_Balancerpool *BalancerpoolCallerSession) GetSwapFee() (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0xd4cadf68.

Solidity: function getSwapFee() view returns(uint256)

func (*BalancerpoolCallerSession) GetTotalDenormalizedWeight

func (_Balancerpool *BalancerpoolCallerSession) GetTotalDenormalizedWeight() (*big.Int, error)

GetTotalDenormalizedWeight is a free data retrieval call binding the contract method 0x936c3477.

Solidity: function getTotalDenormalizedWeight() view returns(uint256)

func (*BalancerpoolCallerSession) INITPOOLSUPPLY

func (_Balancerpool *BalancerpoolCallerSession) INITPOOLSUPPLY() (*big.Int, error)

INITPOOLSUPPLY is a free data retrieval call binding the contract method 0x9381cd2b.

Solidity: function INIT_POOL_SUPPLY() view returns(uint256)

func (*BalancerpoolCallerSession) IsBound

func (_Balancerpool *BalancerpoolCallerSession) IsBound(t common.Address) (bool, error)

IsBound is a free data retrieval call binding the contract method 0x2f37b624.

Solidity: function isBound(address t) view returns(bool)

func (*BalancerpoolCallerSession) IsFinalized

func (_Balancerpool *BalancerpoolCallerSession) IsFinalized() (bool, error)

IsFinalized is a free data retrieval call binding the contract method 0x8d4e4083.

Solidity: function isFinalized() view returns(bool)

func (*BalancerpoolCallerSession) IsPublicSwap

func (_Balancerpool *BalancerpoolCallerSession) IsPublicSwap() (bool, error)

IsPublicSwap is a free data retrieval call binding the contract method 0xfde924f7.

Solidity: function isPublicSwap() view returns(bool)

func (*BalancerpoolCallerSession) MAXBOUNDTOKENS

func (_Balancerpool *BalancerpoolCallerSession) MAXBOUNDTOKENS() (*big.Int, error)

MAXBOUNDTOKENS is a free data retrieval call binding the contract method 0xb0e0d136.

Solidity: function MAX_BOUND_TOKENS() view returns(uint256)

func (*BalancerpoolCallerSession) MAXBPOWBASE

func (_Balancerpool *BalancerpoolCallerSession) MAXBPOWBASE() (*big.Int, error)

MAXBPOWBASE is a free data retrieval call binding the contract method 0xbc694ea2.

Solidity: function MAX_BPOW_BASE() view returns(uint256)

func (*BalancerpoolCallerSession) MAXFEE

func (_Balancerpool *BalancerpoolCallerSession) MAXFEE() (*big.Int, error)

MAXFEE is a free data retrieval call binding the contract method 0xbc063e1a.

Solidity: function MAX_FEE() view returns(uint256)

func (*BalancerpoolCallerSession) MAXINRATIO

func (_Balancerpool *BalancerpoolCallerSession) MAXINRATIO() (*big.Int, error)

MAXINRATIO is a free data retrieval call binding the contract method 0xec093021.

Solidity: function MAX_IN_RATIO() view returns(uint256)

func (*BalancerpoolCallerSession) MAXOUTRATIO

func (_Balancerpool *BalancerpoolCallerSession) MAXOUTRATIO() (*big.Int, error)

MAXOUTRATIO is a free data retrieval call binding the contract method 0x992e2a92.

Solidity: function MAX_OUT_RATIO() view returns(uint256)

func (*BalancerpoolCallerSession) MAXTOTALWEIGHT

func (_Balancerpool *BalancerpoolCallerSession) MAXTOTALWEIGHT() (*big.Int, error)

MAXTOTALWEIGHT is a free data retrieval call binding the contract method 0x09a3bbe4.

Solidity: function MAX_TOTAL_WEIGHT() view returns(uint256)

func (*BalancerpoolCallerSession) MAXWEIGHT

func (_Balancerpool *BalancerpoolCallerSession) MAXWEIGHT() (*big.Int, error)

MAXWEIGHT is a free data retrieval call binding the contract method 0xe4a28a52.

Solidity: function MAX_WEIGHT() view returns(uint256)

func (*BalancerpoolCallerSession) MINBALANCE

func (_Balancerpool *BalancerpoolCallerSession) MINBALANCE() (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*BalancerpoolCallerSession) MINBOUNDTOKENS

func (_Balancerpool *BalancerpoolCallerSession) MINBOUNDTOKENS() (*big.Int, error)

MINBOUNDTOKENS is a free data retrieval call binding the contract method 0xb7b800a4.

Solidity: function MIN_BOUND_TOKENS() view returns(uint256)

func (*BalancerpoolCallerSession) MINBPOWBASE

func (_Balancerpool *BalancerpoolCallerSession) MINBPOWBASE() (*big.Int, error)

MINBPOWBASE is a free data retrieval call binding the contract method 0xba019dab.

Solidity: function MIN_BPOW_BASE() view returns(uint256)

func (*BalancerpoolCallerSession) MINFEE

func (_Balancerpool *BalancerpoolCallerSession) MINFEE() (*big.Int, error)

MINFEE is a free data retrieval call binding the contract method 0x76c7a3c7.

Solidity: function MIN_FEE() view returns(uint256)

func (*BalancerpoolCallerSession) MINWEIGHT

func (_Balancerpool *BalancerpoolCallerSession) MINWEIGHT() (*big.Int, error)

MINWEIGHT is a free data retrieval call binding the contract method 0x218b5382.

Solidity: function MIN_WEIGHT() view returns(uint256)

func (*BalancerpoolCallerSession) Name

func (_Balancerpool *BalancerpoolCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*BalancerpoolCallerSession) Symbol

func (_Balancerpool *BalancerpoolCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*BalancerpoolCallerSession) TotalSupply

func (_Balancerpool *BalancerpoolCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type BalancerpoolFilterer

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

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

func NewBalancerpoolFilterer

func NewBalancerpoolFilterer(address common.Address, filterer bind.ContractFilterer) (*BalancerpoolFilterer, error)

NewBalancerpoolFilterer creates a new log filterer instance of Balancerpool, bound to a specific deployed contract.

func (*BalancerpoolFilterer) FilterApproval

func (_Balancerpool *BalancerpoolFilterer) FilterApproval(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*BalancerpoolApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed src, address indexed dst, uint256 amt)

func (*BalancerpoolFilterer) FilterLOGEXIT

func (_Balancerpool *BalancerpoolFilterer) FilterLOGEXIT(opts *bind.FilterOpts, caller []common.Address, tokenOut []common.Address) (*BalancerpoolLOGEXITIterator, error)

FilterLOGEXIT is a free log retrieval operation binding the contract event 0xe74c91552b64c2e2e7bd255639e004e693bd3e1d01cc33e65610b86afcc1ffed.

Solidity: event LOG_EXIT(address indexed caller, address indexed tokenOut, uint256 tokenAmountOut)

func (*BalancerpoolFilterer) FilterLOGJOIN

func (_Balancerpool *BalancerpoolFilterer) FilterLOGJOIN(opts *bind.FilterOpts, caller []common.Address, tokenIn []common.Address) (*BalancerpoolLOGJOINIterator, error)

FilterLOGJOIN is a free log retrieval operation binding the contract event 0x63982df10efd8dfaaaa0fcc7f50b2d93b7cba26ccc48adee2873220d485dc39a.

Solidity: event LOG_JOIN(address indexed caller, address indexed tokenIn, uint256 tokenAmountIn)

func (*BalancerpoolFilterer) FilterLOGSWAP

func (_Balancerpool *BalancerpoolFilterer) FilterLOGSWAP(opts *bind.FilterOpts, caller []common.Address, tokenIn []common.Address, tokenOut []common.Address) (*BalancerpoolLOGSWAPIterator, error)

FilterLOGSWAP is a free log retrieval operation binding the contract event 0x908fb5ee8f16c6bc9bc3690973819f32a4d4b10188134543c88706e0e1d43378.

Solidity: event LOG_SWAP(address indexed caller, address indexed tokenIn, address indexed tokenOut, uint256 tokenAmountIn, uint256 tokenAmountOut)

func (*BalancerpoolFilterer) FilterTransfer

func (_Balancerpool *BalancerpoolFilterer) FilterTransfer(opts *bind.FilterOpts, src []common.Address, dst []common.Address) (*BalancerpoolTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed src, address indexed dst, uint256 amt)

func (*BalancerpoolFilterer) ParseApproval

func (_Balancerpool *BalancerpoolFilterer) ParseApproval(log types.Log) (*BalancerpoolApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed src, address indexed dst, uint256 amt)

func (*BalancerpoolFilterer) ParseLOGEXIT

func (_Balancerpool *BalancerpoolFilterer) ParseLOGEXIT(log types.Log) (*BalancerpoolLOGEXIT, error)

ParseLOGEXIT is a log parse operation binding the contract event 0xe74c91552b64c2e2e7bd255639e004e693bd3e1d01cc33e65610b86afcc1ffed.

Solidity: event LOG_EXIT(address indexed caller, address indexed tokenOut, uint256 tokenAmountOut)

func (*BalancerpoolFilterer) ParseLOGJOIN

func (_Balancerpool *BalancerpoolFilterer) ParseLOGJOIN(log types.Log) (*BalancerpoolLOGJOIN, error)

ParseLOGJOIN is a log parse operation binding the contract event 0x63982df10efd8dfaaaa0fcc7f50b2d93b7cba26ccc48adee2873220d485dc39a.

Solidity: event LOG_JOIN(address indexed caller, address indexed tokenIn, uint256 tokenAmountIn)

func (*BalancerpoolFilterer) ParseLOGSWAP

func (_Balancerpool *BalancerpoolFilterer) ParseLOGSWAP(log types.Log) (*BalancerpoolLOGSWAP, error)

ParseLOGSWAP is a log parse operation binding the contract event 0x908fb5ee8f16c6bc9bc3690973819f32a4d4b10188134543c88706e0e1d43378.

Solidity: event LOG_SWAP(address indexed caller, address indexed tokenIn, address indexed tokenOut, uint256 tokenAmountIn, uint256 tokenAmountOut)

func (*BalancerpoolFilterer) ParseTransfer

func (_Balancerpool *BalancerpoolFilterer) ParseTransfer(log types.Log) (*BalancerpoolTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed src, address indexed dst, uint256 amt)

func (*BalancerpoolFilterer) WatchApproval

func (_Balancerpool *BalancerpoolFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *BalancerpoolApproval, src []common.Address, dst []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed src, address indexed dst, uint256 amt)

func (*BalancerpoolFilterer) WatchLOGEXIT

func (_Balancerpool *BalancerpoolFilterer) WatchLOGEXIT(opts *bind.WatchOpts, sink chan<- *BalancerpoolLOGEXIT, caller []common.Address, tokenOut []common.Address) (event.Subscription, error)

WatchLOGEXIT is a free log subscription operation binding the contract event 0xe74c91552b64c2e2e7bd255639e004e693bd3e1d01cc33e65610b86afcc1ffed.

Solidity: event LOG_EXIT(address indexed caller, address indexed tokenOut, uint256 tokenAmountOut)

func (*BalancerpoolFilterer) WatchLOGJOIN

func (_Balancerpool *BalancerpoolFilterer) WatchLOGJOIN(opts *bind.WatchOpts, sink chan<- *BalancerpoolLOGJOIN, caller []common.Address, tokenIn []common.Address) (event.Subscription, error)

WatchLOGJOIN is a free log subscription operation binding the contract event 0x63982df10efd8dfaaaa0fcc7f50b2d93b7cba26ccc48adee2873220d485dc39a.

Solidity: event LOG_JOIN(address indexed caller, address indexed tokenIn, uint256 tokenAmountIn)

func (*BalancerpoolFilterer) WatchLOGSWAP

func (_Balancerpool *BalancerpoolFilterer) WatchLOGSWAP(opts *bind.WatchOpts, sink chan<- *BalancerpoolLOGSWAP, caller []common.Address, tokenIn []common.Address, tokenOut []common.Address) (event.Subscription, error)

WatchLOGSWAP is a free log subscription operation binding the contract event 0x908fb5ee8f16c6bc9bc3690973819f32a4d4b10188134543c88706e0e1d43378.

Solidity: event LOG_SWAP(address indexed caller, address indexed tokenIn, address indexed tokenOut, uint256 tokenAmountIn, uint256 tokenAmountOut)

func (*BalancerpoolFilterer) WatchTransfer

func (_Balancerpool *BalancerpoolFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *BalancerpoolTransfer, src []common.Address, dst []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed src, address indexed dst, uint256 amt)

type BalancerpoolLOGEXIT

type BalancerpoolLOGEXIT struct {
	Caller         common.Address
	TokenOut       common.Address
	TokenAmountOut *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

BalancerpoolLOGEXIT represents a LOGEXIT event raised by the Balancerpool contract.

type BalancerpoolLOGEXITIterator

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

BalancerpoolLOGEXITIterator is returned from FilterLOGEXIT and is used to iterate over the raw logs and unpacked data for LOGEXIT events raised by the Balancerpool contract.

func (*BalancerpoolLOGEXITIterator) Close

func (it *BalancerpoolLOGEXITIterator) Close() error

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

func (*BalancerpoolLOGEXITIterator) Error

func (it *BalancerpoolLOGEXITIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BalancerpoolLOGEXITIterator) Next

func (it *BalancerpoolLOGEXITIterator) 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 BalancerpoolLOGJOIN

type BalancerpoolLOGJOIN struct {
	Caller        common.Address
	TokenIn       common.Address
	TokenAmountIn *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

BalancerpoolLOGJOIN represents a LOGJOIN event raised by the Balancerpool contract.

type BalancerpoolLOGJOINIterator

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

BalancerpoolLOGJOINIterator is returned from FilterLOGJOIN and is used to iterate over the raw logs and unpacked data for LOGJOIN events raised by the Balancerpool contract.

func (*BalancerpoolLOGJOINIterator) Close

func (it *BalancerpoolLOGJOINIterator) Close() error

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

func (*BalancerpoolLOGJOINIterator) Error

func (it *BalancerpoolLOGJOINIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BalancerpoolLOGJOINIterator) Next

func (it *BalancerpoolLOGJOINIterator) 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 BalancerpoolLOGSWAP

type BalancerpoolLOGSWAP struct {
	Caller         common.Address
	TokenIn        common.Address
	TokenOut       common.Address
	TokenAmountIn  *big.Int
	TokenAmountOut *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

BalancerpoolLOGSWAP represents a LOGSWAP event raised by the Balancerpool contract.

type BalancerpoolLOGSWAPIterator

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

BalancerpoolLOGSWAPIterator is returned from FilterLOGSWAP and is used to iterate over the raw logs and unpacked data for LOGSWAP events raised by the Balancerpool contract.

func (*BalancerpoolLOGSWAPIterator) Close

func (it *BalancerpoolLOGSWAPIterator) Close() error

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

func (*BalancerpoolLOGSWAPIterator) Error

func (it *BalancerpoolLOGSWAPIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BalancerpoolLOGSWAPIterator) Next

func (it *BalancerpoolLOGSWAPIterator) 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 BalancerpoolRaw

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

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

func (*BalancerpoolRaw) Call

func (_Balancerpool *BalancerpoolRaw) 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 (*BalancerpoolRaw) Transact

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

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

func (*BalancerpoolRaw) Transfer

func (_Balancerpool *BalancerpoolRaw) 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 BalancerpoolSession

type BalancerpoolSession struct {
	Contract     *Balancerpool     // 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
}

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

func (*BalancerpoolSession) Allowance

func (_Balancerpool *BalancerpoolSession) Allowance(src common.Address, dst common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address src, address dst) view returns(uint256)

func (*BalancerpoolSession) Approve

func (_Balancerpool *BalancerpoolSession) Approve(dst common.Address, amt *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address dst, uint256 amt) returns(bool)

func (*BalancerpoolSession) BONE

func (_Balancerpool *BalancerpoolSession) BONE() (*big.Int, error)

BONE is a free data retrieval call binding the contract method 0xc36596a6.

Solidity: function BONE() view returns(uint256)

func (*BalancerpoolSession) BPOWPRECISION

func (_Balancerpool *BalancerpoolSession) BPOWPRECISION() (*big.Int, error)

BPOWPRECISION is a free data retrieval call binding the contract method 0x189d00ca.

Solidity: function BPOW_PRECISION() view returns(uint256)

func (*BalancerpoolSession) BalanceOf

func (_Balancerpool *BalancerpoolSession) BalanceOf(whom common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address whom) view returns(uint256)

func (*BalancerpoolSession) Bind

func (_Balancerpool *BalancerpoolSession) Bind(token common.Address, balance *big.Int, denorm *big.Int) (*types.Transaction, error)

Bind is a paid mutator transaction binding the contract method 0xe4e1e538.

Solidity: function bind(address token, uint256 balance, uint256 denorm) returns()

func (*BalancerpoolSession) CalcInGivenOut

func (_Balancerpool *BalancerpoolSession) CalcInGivenOut(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, tokenAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcInGivenOut is a free data retrieval call binding the contract method 0xf8d6aed4.

Solidity: function calcInGivenOut(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 tokenAmountOut, uint256 swapFee) pure returns(uint256 tokenAmountIn)

func (*BalancerpoolSession) CalcOutGivenIn

func (_Balancerpool *BalancerpoolSession) CalcOutGivenIn(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, tokenAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcOutGivenIn is a free data retrieval call binding the contract method 0xba9530a6.

Solidity: function calcOutGivenIn(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 tokenAmountIn, uint256 swapFee) pure returns(uint256 tokenAmountOut)

func (*BalancerpoolSession) CalcPoolInGivenSingleOut

func (_Balancerpool *BalancerpoolSession) CalcPoolInGivenSingleOut(tokenBalanceOut *big.Int, tokenWeightOut *big.Int, poolSupply *big.Int, totalWeight *big.Int, tokenAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcPoolInGivenSingleOut is a free data retrieval call binding the contract method 0x82f652ad.

Solidity: function calcPoolInGivenSingleOut(uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 poolSupply, uint256 totalWeight, uint256 tokenAmountOut, uint256 swapFee) pure returns(uint256 poolAmountIn)

func (*BalancerpoolSession) CalcPoolOutGivenSingleIn

func (_Balancerpool *BalancerpoolSession) CalcPoolOutGivenSingleIn(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, poolSupply *big.Int, totalWeight *big.Int, tokenAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcPoolOutGivenSingleIn is a free data retrieval call binding the contract method 0x8656b653.

Solidity: function calcPoolOutGivenSingleIn(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 poolSupply, uint256 totalWeight, uint256 tokenAmountIn, uint256 swapFee) pure returns(uint256 poolAmountOut)

func (*BalancerpoolSession) CalcSingleInGivenPoolOut

func (_Balancerpool *BalancerpoolSession) CalcSingleInGivenPoolOut(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, poolSupply *big.Int, totalWeight *big.Int, poolAmountOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSingleInGivenPoolOut is a free data retrieval call binding the contract method 0x5c1bbaf7.

Solidity: function calcSingleInGivenPoolOut(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 poolSupply, uint256 totalWeight, uint256 poolAmountOut, uint256 swapFee) pure returns(uint256 tokenAmountIn)

func (*BalancerpoolSession) CalcSingleOutGivenPoolIn

func (_Balancerpool *BalancerpoolSession) CalcSingleOutGivenPoolIn(tokenBalanceOut *big.Int, tokenWeightOut *big.Int, poolSupply *big.Int, totalWeight *big.Int, poolAmountIn *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSingleOutGivenPoolIn is a free data retrieval call binding the contract method 0x89298012.

Solidity: function calcSingleOutGivenPoolIn(uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 poolSupply, uint256 totalWeight, uint256 poolAmountIn, uint256 swapFee) pure returns(uint256 tokenAmountOut)

func (*BalancerpoolSession) CalcSpotPrice

func (_Balancerpool *BalancerpoolSession) CalcSpotPrice(tokenBalanceIn *big.Int, tokenWeightIn *big.Int, tokenBalanceOut *big.Int, tokenWeightOut *big.Int, swapFee *big.Int) (*big.Int, error)

CalcSpotPrice is a free data retrieval call binding the contract method 0xa221ee49.

Solidity: function calcSpotPrice(uint256 tokenBalanceIn, uint256 tokenWeightIn, uint256 tokenBalanceOut, uint256 tokenWeightOut, uint256 swapFee) pure returns(uint256 spotPrice)

func (*BalancerpoolSession) Decimals

func (_Balancerpool *BalancerpoolSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*BalancerpoolSession) DecreaseApproval

func (_Balancerpool *BalancerpoolSession) DecreaseApproval(dst common.Address, amt *big.Int) (*types.Transaction, error)

DecreaseApproval is a paid mutator transaction binding the contract method 0x66188463.

Solidity: function decreaseApproval(address dst, uint256 amt) returns(bool)

func (*BalancerpoolSession) EXITFEE

func (_Balancerpool *BalancerpoolSession) EXITFEE() (*big.Int, error)

EXITFEE is a free data retrieval call binding the contract method 0xc6580d12.

Solidity: function EXIT_FEE() view returns(uint256)

func (*BalancerpoolSession) ExitPool

func (_Balancerpool *BalancerpoolSession) ExitPool(poolAmountIn *big.Int, minAmountsOut []*big.Int) (*types.Transaction, error)

ExitPool is a paid mutator transaction binding the contract method 0xb02f0b73.

Solidity: function exitPool(uint256 poolAmountIn, uint256[] minAmountsOut) returns()

func (*BalancerpoolSession) ExitswapExternAmountOut

func (_Balancerpool *BalancerpoolSession) ExitswapExternAmountOut(tokenOut common.Address, tokenAmountOut *big.Int, maxPoolAmountIn *big.Int) (*types.Transaction, error)

ExitswapExternAmountOut is a paid mutator transaction binding the contract method 0x02c96748.

Solidity: function exitswapExternAmountOut(address tokenOut, uint256 tokenAmountOut, uint256 maxPoolAmountIn) returns(uint256 poolAmountIn)

func (*BalancerpoolSession) ExitswapPoolAmountIn

func (_Balancerpool *BalancerpoolSession) ExitswapPoolAmountIn(tokenOut common.Address, poolAmountIn *big.Int, minAmountOut *big.Int) (*types.Transaction, error)

ExitswapPoolAmountIn is a paid mutator transaction binding the contract method 0x46ab38f1.

Solidity: function exitswapPoolAmountIn(address tokenOut, uint256 poolAmountIn, uint256 minAmountOut) returns(uint256 tokenAmountOut)

func (*BalancerpoolSession) Finalize

func (_Balancerpool *BalancerpoolSession) Finalize() (*types.Transaction, error)

Finalize is a paid mutator transaction binding the contract method 0x4bb278f3.

Solidity: function finalize() returns()

func (*BalancerpoolSession) GetBalance

func (_Balancerpool *BalancerpoolSession) GetBalance(token common.Address) (*big.Int, error)

GetBalance is a free data retrieval call binding the contract method 0xf8b2cb4f.

Solidity: function getBalance(address token) view returns(uint256)

func (*BalancerpoolSession) GetColor

func (_Balancerpool *BalancerpoolSession) GetColor() ([32]byte, error)

GetColor is a free data retrieval call binding the contract method 0x9a86139b.

Solidity: function getColor() view returns(bytes32)

func (*BalancerpoolSession) GetController

func (_Balancerpool *BalancerpoolSession) GetController() (common.Address, error)

GetController is a free data retrieval call binding the contract method 0x3018205f.

Solidity: function getController() view returns(address)

func (*BalancerpoolSession) GetCurrentTokens

func (_Balancerpool *BalancerpoolSession) GetCurrentTokens() ([]common.Address, error)

GetCurrentTokens is a free data retrieval call binding the contract method 0xcc77828d.

Solidity: function getCurrentTokens() view returns(address[] tokens)

func (*BalancerpoolSession) GetDenormalizedWeight

func (_Balancerpool *BalancerpoolSession) GetDenormalizedWeight(token common.Address) (*big.Int, error)

GetDenormalizedWeight is a free data retrieval call binding the contract method 0x948d8ce6.

Solidity: function getDenormalizedWeight(address token) view returns(uint256)

func (*BalancerpoolSession) GetFinalTokens

func (_Balancerpool *BalancerpoolSession) GetFinalTokens() ([]common.Address, error)

GetFinalTokens is a free data retrieval call binding the contract method 0xbe3bbd2e.

Solidity: function getFinalTokens() view returns(address[] tokens)

func (*BalancerpoolSession) GetNormalizedWeight

func (_Balancerpool *BalancerpoolSession) GetNormalizedWeight(token common.Address) (*big.Int, error)

GetNormalizedWeight is a free data retrieval call binding the contract method 0xf1b8a9b7.

Solidity: function getNormalizedWeight(address token) view returns(uint256)

func (*BalancerpoolSession) GetNumTokens

func (_Balancerpool *BalancerpoolSession) GetNumTokens() (*big.Int, error)

GetNumTokens is a free data retrieval call binding the contract method 0xcd2ed8fb.

Solidity: function getNumTokens() view returns(uint256)

func (*BalancerpoolSession) GetSpotPrice

func (_Balancerpool *BalancerpoolSession) GetSpotPrice(tokenIn common.Address, tokenOut common.Address) (*big.Int, error)

GetSpotPrice is a free data retrieval call binding the contract method 0x15e84af9.

Solidity: function getSpotPrice(address tokenIn, address tokenOut) view returns(uint256 spotPrice)

func (*BalancerpoolSession) GetSpotPriceSansFee

func (_Balancerpool *BalancerpoolSession) GetSpotPriceSansFee(tokenIn common.Address, tokenOut common.Address) (*big.Int, error)

GetSpotPriceSansFee is a free data retrieval call binding the contract method 0x1446a7ff.

Solidity: function getSpotPriceSansFee(address tokenIn, address tokenOut) view returns(uint256 spotPrice)

func (*BalancerpoolSession) GetSwapFee

func (_Balancerpool *BalancerpoolSession) GetSwapFee() (*big.Int, error)

GetSwapFee is a free data retrieval call binding the contract method 0xd4cadf68.

Solidity: function getSwapFee() view returns(uint256)

func (*BalancerpoolSession) GetTotalDenormalizedWeight

func (_Balancerpool *BalancerpoolSession) GetTotalDenormalizedWeight() (*big.Int, error)

GetTotalDenormalizedWeight is a free data retrieval call binding the contract method 0x936c3477.

Solidity: function getTotalDenormalizedWeight() view returns(uint256)

func (*BalancerpoolSession) Gulp

func (_Balancerpool *BalancerpoolSession) Gulp(token common.Address) (*types.Transaction, error)

Gulp is a paid mutator transaction binding the contract method 0x8c28cbe8.

Solidity: function gulp(address token) returns()

func (*BalancerpoolSession) INITPOOLSUPPLY

func (_Balancerpool *BalancerpoolSession) INITPOOLSUPPLY() (*big.Int, error)

INITPOOLSUPPLY is a free data retrieval call binding the contract method 0x9381cd2b.

Solidity: function INIT_POOL_SUPPLY() view returns(uint256)

func (*BalancerpoolSession) IncreaseApproval

func (_Balancerpool *BalancerpoolSession) IncreaseApproval(dst common.Address, amt *big.Int) (*types.Transaction, error)

IncreaseApproval is a paid mutator transaction binding the contract method 0xd73dd623.

Solidity: function increaseApproval(address dst, uint256 amt) returns(bool)

func (*BalancerpoolSession) IsBound

func (_Balancerpool *BalancerpoolSession) IsBound(t common.Address) (bool, error)

IsBound is a free data retrieval call binding the contract method 0x2f37b624.

Solidity: function isBound(address t) view returns(bool)

func (*BalancerpoolSession) IsFinalized

func (_Balancerpool *BalancerpoolSession) IsFinalized() (bool, error)

IsFinalized is a free data retrieval call binding the contract method 0x8d4e4083.

Solidity: function isFinalized() view returns(bool)

func (*BalancerpoolSession) IsPublicSwap

func (_Balancerpool *BalancerpoolSession) IsPublicSwap() (bool, error)

IsPublicSwap is a free data retrieval call binding the contract method 0xfde924f7.

Solidity: function isPublicSwap() view returns(bool)

func (*BalancerpoolSession) JoinPool

func (_Balancerpool *BalancerpoolSession) JoinPool(poolAmountOut *big.Int, maxAmountsIn []*big.Int) (*types.Transaction, error)

JoinPool is a paid mutator transaction binding the contract method 0x4f69c0d4.

Solidity: function joinPool(uint256 poolAmountOut, uint256[] maxAmountsIn) returns()

func (*BalancerpoolSession) JoinswapExternAmountIn

func (_Balancerpool *BalancerpoolSession) JoinswapExternAmountIn(tokenIn common.Address, tokenAmountIn *big.Int, minPoolAmountOut *big.Int) (*types.Transaction, error)

JoinswapExternAmountIn is a paid mutator transaction binding the contract method 0x5db34277.

Solidity: function joinswapExternAmountIn(address tokenIn, uint256 tokenAmountIn, uint256 minPoolAmountOut) returns(uint256 poolAmountOut)

func (*BalancerpoolSession) JoinswapPoolAmountOut

func (_Balancerpool *BalancerpoolSession) JoinswapPoolAmountOut(tokenIn common.Address, poolAmountOut *big.Int, maxAmountIn *big.Int) (*types.Transaction, error)

JoinswapPoolAmountOut is a paid mutator transaction binding the contract method 0x6d06dfa0.

Solidity: function joinswapPoolAmountOut(address tokenIn, uint256 poolAmountOut, uint256 maxAmountIn) returns(uint256 tokenAmountIn)

func (*BalancerpoolSession) MAXBOUNDTOKENS

func (_Balancerpool *BalancerpoolSession) MAXBOUNDTOKENS() (*big.Int, error)

MAXBOUNDTOKENS is a free data retrieval call binding the contract method 0xb0e0d136.

Solidity: function MAX_BOUND_TOKENS() view returns(uint256)

func (*BalancerpoolSession) MAXBPOWBASE

func (_Balancerpool *BalancerpoolSession) MAXBPOWBASE() (*big.Int, error)

MAXBPOWBASE is a free data retrieval call binding the contract method 0xbc694ea2.

Solidity: function MAX_BPOW_BASE() view returns(uint256)

func (*BalancerpoolSession) MAXFEE

func (_Balancerpool *BalancerpoolSession) MAXFEE() (*big.Int, error)

MAXFEE is a free data retrieval call binding the contract method 0xbc063e1a.

Solidity: function MAX_FEE() view returns(uint256)

func (*BalancerpoolSession) MAXINRATIO

func (_Balancerpool *BalancerpoolSession) MAXINRATIO() (*big.Int, error)

MAXINRATIO is a free data retrieval call binding the contract method 0xec093021.

Solidity: function MAX_IN_RATIO() view returns(uint256)

func (*BalancerpoolSession) MAXOUTRATIO

func (_Balancerpool *BalancerpoolSession) MAXOUTRATIO() (*big.Int, error)

MAXOUTRATIO is a free data retrieval call binding the contract method 0x992e2a92.

Solidity: function MAX_OUT_RATIO() view returns(uint256)

func (*BalancerpoolSession) MAXTOTALWEIGHT

func (_Balancerpool *BalancerpoolSession) MAXTOTALWEIGHT() (*big.Int, error)

MAXTOTALWEIGHT is a free data retrieval call binding the contract method 0x09a3bbe4.

Solidity: function MAX_TOTAL_WEIGHT() view returns(uint256)

func (*BalancerpoolSession) MAXWEIGHT

func (_Balancerpool *BalancerpoolSession) MAXWEIGHT() (*big.Int, error)

MAXWEIGHT is a free data retrieval call binding the contract method 0xe4a28a52.

Solidity: function MAX_WEIGHT() view returns(uint256)

func (*BalancerpoolSession) MINBALANCE

func (_Balancerpool *BalancerpoolSession) MINBALANCE() (*big.Int, error)

MINBALANCE is a free data retrieval call binding the contract method 0x867378c5.

Solidity: function MIN_BALANCE() view returns(uint256)

func (*BalancerpoolSession) MINBOUNDTOKENS

func (_Balancerpool *BalancerpoolSession) MINBOUNDTOKENS() (*big.Int, error)

MINBOUNDTOKENS is a free data retrieval call binding the contract method 0xb7b800a4.

Solidity: function MIN_BOUND_TOKENS() view returns(uint256)

func (*BalancerpoolSession) MINBPOWBASE

func (_Balancerpool *BalancerpoolSession) MINBPOWBASE() (*big.Int, error)

MINBPOWBASE is a free data retrieval call binding the contract method 0xba019dab.

Solidity: function MIN_BPOW_BASE() view returns(uint256)

func (*BalancerpoolSession) MINFEE

func (_Balancerpool *BalancerpoolSession) MINFEE() (*big.Int, error)

MINFEE is a free data retrieval call binding the contract method 0x76c7a3c7.

Solidity: function MIN_FEE() view returns(uint256)

func (*BalancerpoolSession) MINWEIGHT

func (_Balancerpool *BalancerpoolSession) MINWEIGHT() (*big.Int, error)

MINWEIGHT is a free data retrieval call binding the contract method 0x218b5382.

Solidity: function MIN_WEIGHT() view returns(uint256)

func (*BalancerpoolSession) Name

func (_Balancerpool *BalancerpoolSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*BalancerpoolSession) Rebind

func (_Balancerpool *BalancerpoolSession) Rebind(token common.Address, balance *big.Int, denorm *big.Int) (*types.Transaction, error)

Rebind is a paid mutator transaction binding the contract method 0x3fdddaa2.

Solidity: function rebind(address token, uint256 balance, uint256 denorm) returns()

func (*BalancerpoolSession) SetController

func (_Balancerpool *BalancerpoolSession) SetController(manager common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x92eefe9b.

Solidity: function setController(address manager) returns()

func (*BalancerpoolSession) SetPublicSwap

func (_Balancerpool *BalancerpoolSession) SetPublicSwap(public_ bool) (*types.Transaction, error)

SetPublicSwap is a paid mutator transaction binding the contract method 0x49b59552.

Solidity: function setPublicSwap(bool public_) returns()

func (*BalancerpoolSession) SetSwapFee

func (_Balancerpool *BalancerpoolSession) SetSwapFee(swapFee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 swapFee) returns()

func (*BalancerpoolSession) SwapExactAmountIn

func (_Balancerpool *BalancerpoolSession) SwapExactAmountIn(tokenIn common.Address, tokenAmountIn *big.Int, tokenOut common.Address, minAmountOut *big.Int, maxPrice *big.Int) (*types.Transaction, error)

SwapExactAmountIn is a paid mutator transaction binding the contract method 0x8201aa3f.

Solidity: function swapExactAmountIn(address tokenIn, uint256 tokenAmountIn, address tokenOut, uint256 minAmountOut, uint256 maxPrice) returns(uint256 tokenAmountOut, uint256 spotPriceAfter)

func (*BalancerpoolSession) SwapExactAmountOut

func (_Balancerpool *BalancerpoolSession) SwapExactAmountOut(tokenIn common.Address, maxAmountIn *big.Int, tokenOut common.Address, tokenAmountOut *big.Int, maxPrice *big.Int) (*types.Transaction, error)

SwapExactAmountOut is a paid mutator transaction binding the contract method 0x7c5e9ea4.

Solidity: function swapExactAmountOut(address tokenIn, uint256 maxAmountIn, address tokenOut, uint256 tokenAmountOut, uint256 maxPrice) returns(uint256 tokenAmountIn, uint256 spotPriceAfter)

func (*BalancerpoolSession) Symbol

func (_Balancerpool *BalancerpoolSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*BalancerpoolSession) TotalSupply

func (_Balancerpool *BalancerpoolSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*BalancerpoolSession) Transfer

func (_Balancerpool *BalancerpoolSession) Transfer(dst common.Address, amt *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 amt) returns(bool)

func (*BalancerpoolSession) TransferFrom

func (_Balancerpool *BalancerpoolSession) TransferFrom(src common.Address, dst common.Address, amt *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 amt) returns(bool)

func (*BalancerpoolSession) Unbind

func (_Balancerpool *BalancerpoolSession) Unbind(token common.Address) (*types.Transaction, error)

Unbind is a paid mutator transaction binding the contract method 0xcf5e7bd3.

Solidity: function unbind(address token) returns()

type BalancerpoolTransactor

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

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

func NewBalancerpoolTransactor

func NewBalancerpoolTransactor(address common.Address, transactor bind.ContractTransactor) (*BalancerpoolTransactor, error)

NewBalancerpoolTransactor creates a new write-only instance of Balancerpool, bound to a specific deployed contract.

func (*BalancerpoolTransactor) Approve

func (_Balancerpool *BalancerpoolTransactor) Approve(opts *bind.TransactOpts, dst common.Address, amt *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactor) Bind

func (_Balancerpool *BalancerpoolTransactor) Bind(opts *bind.TransactOpts, token common.Address, balance *big.Int, denorm *big.Int) (*types.Transaction, error)

Bind is a paid mutator transaction binding the contract method 0xe4e1e538.

Solidity: function bind(address token, uint256 balance, uint256 denorm) returns()

func (*BalancerpoolTransactor) DecreaseApproval

func (_Balancerpool *BalancerpoolTransactor) DecreaseApproval(opts *bind.TransactOpts, dst common.Address, amt *big.Int) (*types.Transaction, error)

DecreaseApproval is a paid mutator transaction binding the contract method 0x66188463.

Solidity: function decreaseApproval(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactor) ExitPool

func (_Balancerpool *BalancerpoolTransactor) ExitPool(opts *bind.TransactOpts, poolAmountIn *big.Int, minAmountsOut []*big.Int) (*types.Transaction, error)

ExitPool is a paid mutator transaction binding the contract method 0xb02f0b73.

Solidity: function exitPool(uint256 poolAmountIn, uint256[] minAmountsOut) returns()

func (*BalancerpoolTransactor) ExitswapExternAmountOut

func (_Balancerpool *BalancerpoolTransactor) ExitswapExternAmountOut(opts *bind.TransactOpts, tokenOut common.Address, tokenAmountOut *big.Int, maxPoolAmountIn *big.Int) (*types.Transaction, error)

ExitswapExternAmountOut is a paid mutator transaction binding the contract method 0x02c96748.

Solidity: function exitswapExternAmountOut(address tokenOut, uint256 tokenAmountOut, uint256 maxPoolAmountIn) returns(uint256 poolAmountIn)

func (*BalancerpoolTransactor) ExitswapPoolAmountIn

func (_Balancerpool *BalancerpoolTransactor) ExitswapPoolAmountIn(opts *bind.TransactOpts, tokenOut common.Address, poolAmountIn *big.Int, minAmountOut *big.Int) (*types.Transaction, error)

ExitswapPoolAmountIn is a paid mutator transaction binding the contract method 0x46ab38f1.

Solidity: function exitswapPoolAmountIn(address tokenOut, uint256 poolAmountIn, uint256 minAmountOut) returns(uint256 tokenAmountOut)

func (*BalancerpoolTransactor) Finalize

func (_Balancerpool *BalancerpoolTransactor) Finalize(opts *bind.TransactOpts) (*types.Transaction, error)

Finalize is a paid mutator transaction binding the contract method 0x4bb278f3.

Solidity: function finalize() returns()

func (*BalancerpoolTransactor) Gulp

func (_Balancerpool *BalancerpoolTransactor) Gulp(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

Gulp is a paid mutator transaction binding the contract method 0x8c28cbe8.

Solidity: function gulp(address token) returns()

func (*BalancerpoolTransactor) IncreaseApproval

func (_Balancerpool *BalancerpoolTransactor) IncreaseApproval(opts *bind.TransactOpts, dst common.Address, amt *big.Int) (*types.Transaction, error)

IncreaseApproval is a paid mutator transaction binding the contract method 0xd73dd623.

Solidity: function increaseApproval(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactor) JoinPool

func (_Balancerpool *BalancerpoolTransactor) JoinPool(opts *bind.TransactOpts, poolAmountOut *big.Int, maxAmountsIn []*big.Int) (*types.Transaction, error)

JoinPool is a paid mutator transaction binding the contract method 0x4f69c0d4.

Solidity: function joinPool(uint256 poolAmountOut, uint256[] maxAmountsIn) returns()

func (*BalancerpoolTransactor) JoinswapExternAmountIn

func (_Balancerpool *BalancerpoolTransactor) JoinswapExternAmountIn(opts *bind.TransactOpts, tokenIn common.Address, tokenAmountIn *big.Int, minPoolAmountOut *big.Int) (*types.Transaction, error)

JoinswapExternAmountIn is a paid mutator transaction binding the contract method 0x5db34277.

Solidity: function joinswapExternAmountIn(address tokenIn, uint256 tokenAmountIn, uint256 minPoolAmountOut) returns(uint256 poolAmountOut)

func (*BalancerpoolTransactor) JoinswapPoolAmountOut

func (_Balancerpool *BalancerpoolTransactor) JoinswapPoolAmountOut(opts *bind.TransactOpts, tokenIn common.Address, poolAmountOut *big.Int, maxAmountIn *big.Int) (*types.Transaction, error)

JoinswapPoolAmountOut is a paid mutator transaction binding the contract method 0x6d06dfa0.

Solidity: function joinswapPoolAmountOut(address tokenIn, uint256 poolAmountOut, uint256 maxAmountIn) returns(uint256 tokenAmountIn)

func (*BalancerpoolTransactor) Rebind

func (_Balancerpool *BalancerpoolTransactor) Rebind(opts *bind.TransactOpts, token common.Address, balance *big.Int, denorm *big.Int) (*types.Transaction, error)

Rebind is a paid mutator transaction binding the contract method 0x3fdddaa2.

Solidity: function rebind(address token, uint256 balance, uint256 denorm) returns()

func (*BalancerpoolTransactor) SetController

func (_Balancerpool *BalancerpoolTransactor) SetController(opts *bind.TransactOpts, manager common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x92eefe9b.

Solidity: function setController(address manager) returns()

func (*BalancerpoolTransactor) SetPublicSwap

func (_Balancerpool *BalancerpoolTransactor) SetPublicSwap(opts *bind.TransactOpts, public_ bool) (*types.Transaction, error)

SetPublicSwap is a paid mutator transaction binding the contract method 0x49b59552.

Solidity: function setPublicSwap(bool public_) returns()

func (*BalancerpoolTransactor) SetSwapFee

func (_Balancerpool *BalancerpoolTransactor) SetSwapFee(opts *bind.TransactOpts, swapFee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 swapFee) returns()

func (*BalancerpoolTransactor) SwapExactAmountIn

func (_Balancerpool *BalancerpoolTransactor) SwapExactAmountIn(opts *bind.TransactOpts, tokenIn common.Address, tokenAmountIn *big.Int, tokenOut common.Address, minAmountOut *big.Int, maxPrice *big.Int) (*types.Transaction, error)

SwapExactAmountIn is a paid mutator transaction binding the contract method 0x8201aa3f.

Solidity: function swapExactAmountIn(address tokenIn, uint256 tokenAmountIn, address tokenOut, uint256 minAmountOut, uint256 maxPrice) returns(uint256 tokenAmountOut, uint256 spotPriceAfter)

func (*BalancerpoolTransactor) SwapExactAmountOut

func (_Balancerpool *BalancerpoolTransactor) SwapExactAmountOut(opts *bind.TransactOpts, tokenIn common.Address, maxAmountIn *big.Int, tokenOut common.Address, tokenAmountOut *big.Int, maxPrice *big.Int) (*types.Transaction, error)

SwapExactAmountOut is a paid mutator transaction binding the contract method 0x7c5e9ea4.

Solidity: function swapExactAmountOut(address tokenIn, uint256 maxAmountIn, address tokenOut, uint256 tokenAmountOut, uint256 maxPrice) returns(uint256 tokenAmountIn, uint256 spotPriceAfter)

func (*BalancerpoolTransactor) Transfer

func (_Balancerpool *BalancerpoolTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, amt *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactor) TransferFrom

func (_Balancerpool *BalancerpoolTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, amt *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactor) Unbind

func (_Balancerpool *BalancerpoolTransactor) Unbind(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

Unbind is a paid mutator transaction binding the contract method 0xcf5e7bd3.

Solidity: function unbind(address token) returns()

type BalancerpoolTransactorRaw

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

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

func (*BalancerpoolTransactorRaw) Transact

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

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

func (*BalancerpoolTransactorRaw) Transfer

func (_Balancerpool *BalancerpoolTransactorRaw) 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 BalancerpoolTransactorSession

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

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

func (*BalancerpoolTransactorSession) Approve

func (_Balancerpool *BalancerpoolTransactorSession) Approve(dst common.Address, amt *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactorSession) Bind

func (_Balancerpool *BalancerpoolTransactorSession) Bind(token common.Address, balance *big.Int, denorm *big.Int) (*types.Transaction, error)

Bind is a paid mutator transaction binding the contract method 0xe4e1e538.

Solidity: function bind(address token, uint256 balance, uint256 denorm) returns()

func (*BalancerpoolTransactorSession) DecreaseApproval

func (_Balancerpool *BalancerpoolTransactorSession) DecreaseApproval(dst common.Address, amt *big.Int) (*types.Transaction, error)

DecreaseApproval is a paid mutator transaction binding the contract method 0x66188463.

Solidity: function decreaseApproval(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactorSession) ExitPool

func (_Balancerpool *BalancerpoolTransactorSession) ExitPool(poolAmountIn *big.Int, minAmountsOut []*big.Int) (*types.Transaction, error)

ExitPool is a paid mutator transaction binding the contract method 0xb02f0b73.

Solidity: function exitPool(uint256 poolAmountIn, uint256[] minAmountsOut) returns()

func (*BalancerpoolTransactorSession) ExitswapExternAmountOut

func (_Balancerpool *BalancerpoolTransactorSession) ExitswapExternAmountOut(tokenOut common.Address, tokenAmountOut *big.Int, maxPoolAmountIn *big.Int) (*types.Transaction, error)

ExitswapExternAmountOut is a paid mutator transaction binding the contract method 0x02c96748.

Solidity: function exitswapExternAmountOut(address tokenOut, uint256 tokenAmountOut, uint256 maxPoolAmountIn) returns(uint256 poolAmountIn)

func (*BalancerpoolTransactorSession) ExitswapPoolAmountIn

func (_Balancerpool *BalancerpoolTransactorSession) ExitswapPoolAmountIn(tokenOut common.Address, poolAmountIn *big.Int, minAmountOut *big.Int) (*types.Transaction, error)

ExitswapPoolAmountIn is a paid mutator transaction binding the contract method 0x46ab38f1.

Solidity: function exitswapPoolAmountIn(address tokenOut, uint256 poolAmountIn, uint256 minAmountOut) returns(uint256 tokenAmountOut)

func (*BalancerpoolTransactorSession) Finalize

func (_Balancerpool *BalancerpoolTransactorSession) Finalize() (*types.Transaction, error)

Finalize is a paid mutator transaction binding the contract method 0x4bb278f3.

Solidity: function finalize() returns()

func (*BalancerpoolTransactorSession) Gulp

func (_Balancerpool *BalancerpoolTransactorSession) Gulp(token common.Address) (*types.Transaction, error)

Gulp is a paid mutator transaction binding the contract method 0x8c28cbe8.

Solidity: function gulp(address token) returns()

func (*BalancerpoolTransactorSession) IncreaseApproval

func (_Balancerpool *BalancerpoolTransactorSession) IncreaseApproval(dst common.Address, amt *big.Int) (*types.Transaction, error)

IncreaseApproval is a paid mutator transaction binding the contract method 0xd73dd623.

Solidity: function increaseApproval(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactorSession) JoinPool

func (_Balancerpool *BalancerpoolTransactorSession) JoinPool(poolAmountOut *big.Int, maxAmountsIn []*big.Int) (*types.Transaction, error)

JoinPool is a paid mutator transaction binding the contract method 0x4f69c0d4.

Solidity: function joinPool(uint256 poolAmountOut, uint256[] maxAmountsIn) returns()

func (*BalancerpoolTransactorSession) JoinswapExternAmountIn

func (_Balancerpool *BalancerpoolTransactorSession) JoinswapExternAmountIn(tokenIn common.Address, tokenAmountIn *big.Int, minPoolAmountOut *big.Int) (*types.Transaction, error)

JoinswapExternAmountIn is a paid mutator transaction binding the contract method 0x5db34277.

Solidity: function joinswapExternAmountIn(address tokenIn, uint256 tokenAmountIn, uint256 minPoolAmountOut) returns(uint256 poolAmountOut)

func (*BalancerpoolTransactorSession) JoinswapPoolAmountOut

func (_Balancerpool *BalancerpoolTransactorSession) JoinswapPoolAmountOut(tokenIn common.Address, poolAmountOut *big.Int, maxAmountIn *big.Int) (*types.Transaction, error)

JoinswapPoolAmountOut is a paid mutator transaction binding the contract method 0x6d06dfa0.

Solidity: function joinswapPoolAmountOut(address tokenIn, uint256 poolAmountOut, uint256 maxAmountIn) returns(uint256 tokenAmountIn)

func (*BalancerpoolTransactorSession) Rebind

func (_Balancerpool *BalancerpoolTransactorSession) Rebind(token common.Address, balance *big.Int, denorm *big.Int) (*types.Transaction, error)

Rebind is a paid mutator transaction binding the contract method 0x3fdddaa2.

Solidity: function rebind(address token, uint256 balance, uint256 denorm) returns()

func (*BalancerpoolTransactorSession) SetController

func (_Balancerpool *BalancerpoolTransactorSession) SetController(manager common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x92eefe9b.

Solidity: function setController(address manager) returns()

func (*BalancerpoolTransactorSession) SetPublicSwap

func (_Balancerpool *BalancerpoolTransactorSession) SetPublicSwap(public_ bool) (*types.Transaction, error)

SetPublicSwap is a paid mutator transaction binding the contract method 0x49b59552.

Solidity: function setPublicSwap(bool public_) returns()

func (*BalancerpoolTransactorSession) SetSwapFee

func (_Balancerpool *BalancerpoolTransactorSession) SetSwapFee(swapFee *big.Int) (*types.Transaction, error)

SetSwapFee is a paid mutator transaction binding the contract method 0x34e19907.

Solidity: function setSwapFee(uint256 swapFee) returns()

func (*BalancerpoolTransactorSession) SwapExactAmountIn

func (_Balancerpool *BalancerpoolTransactorSession) SwapExactAmountIn(tokenIn common.Address, tokenAmountIn *big.Int, tokenOut common.Address, minAmountOut *big.Int, maxPrice *big.Int) (*types.Transaction, error)

SwapExactAmountIn is a paid mutator transaction binding the contract method 0x8201aa3f.

Solidity: function swapExactAmountIn(address tokenIn, uint256 tokenAmountIn, address tokenOut, uint256 minAmountOut, uint256 maxPrice) returns(uint256 tokenAmountOut, uint256 spotPriceAfter)

func (*BalancerpoolTransactorSession) SwapExactAmountOut

func (_Balancerpool *BalancerpoolTransactorSession) SwapExactAmountOut(tokenIn common.Address, maxAmountIn *big.Int, tokenOut common.Address, tokenAmountOut *big.Int, maxPrice *big.Int) (*types.Transaction, error)

SwapExactAmountOut is a paid mutator transaction binding the contract method 0x7c5e9ea4.

Solidity: function swapExactAmountOut(address tokenIn, uint256 maxAmountIn, address tokenOut, uint256 tokenAmountOut, uint256 maxPrice) returns(uint256 tokenAmountIn, uint256 spotPriceAfter)

func (*BalancerpoolTransactorSession) Transfer

func (_Balancerpool *BalancerpoolTransactorSession) Transfer(dst common.Address, amt *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactorSession) TransferFrom

func (_Balancerpool *BalancerpoolTransactorSession) TransferFrom(src common.Address, dst common.Address, amt *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 amt) returns(bool)

func (*BalancerpoolTransactorSession) Unbind

func (_Balancerpool *BalancerpoolTransactorSession) Unbind(token common.Address) (*types.Transaction, error)

Unbind is a paid mutator transaction binding the contract method 0xcf5e7bd3.

Solidity: function unbind(address token) returns()

type BalancerpoolTransfer

type BalancerpoolTransfer struct {
	Src common.Address
	Dst common.Address
	Amt *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

BalancerpoolTransfer represents a Transfer event raised by the Balancerpool contract.

type BalancerpoolTransferIterator

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

BalancerpoolTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Balancerpool contract.

func (*BalancerpoolTransferIterator) Close

func (it *BalancerpoolTransferIterator) Close() error

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

func (*BalancerpoolTransferIterator) Error

func (it *BalancerpoolTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BalancerpoolTransferIterator) 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.

Jump to

Keyboard shortcuts

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