traderjoeILBPair

package
v1.4.479-rc-8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ILBPairABI = ILBPairMetaData.ABI

ILBPairABI is the input ABI used to generate the binding from. Deprecated: Use ILBPairMetaData.ABI instead.

View Source
var ILBPairMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"LBPair__AddressZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__AlreadyInitialized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__EmptyMarketConfigs\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__FlashLoanCallbackFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__FlashLoanInsufficientAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__InsufficientAmountIn\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__InsufficientAmountOut\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__InvalidInput\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__InvalidStaticFeeParameters\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__MaxTotalFeeExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__OnlyFactory\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__OnlyProtocolFeeRecipient\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__OutOfLiquidity\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__TokenNotSupported\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"name\":\"LBPair__ZeroAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"name\":\"LBPair__ZeroAmountsOut\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBPair__ZeroBorrowAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"name\":\"LBPair__ZeroShares\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBToken__AddressThisOrZero\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"LBToken__BurnExceedsBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"LBToken__InvalidLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"LBToken__SelfApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"LBToken__SpenderNotApproved\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"LBToken__TransferExceedsBalance\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"feeRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"protocolFees\",\"type\":\"bytes32\"}],\"name\":\"CollectedProtocolFees\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"totalFees\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"protocolFees\",\"type\":\"bytes32\"}],\"name\":\"CompositionFees\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"amounts\",\"type\":\"bytes32[]\"}],\"name\":\"DepositedToBins\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"contractILBFlashLoanCallback\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"activeId\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"amounts\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"totalFees\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"protocolFees\",\"type\":\"bytes32\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"idReference\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"volatilityReference\",\"type\":\"uint24\"}],\"name\":\"ForcedDecay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"oracleLength\",\"type\":\"uint16\"}],\"name\":\"OracleLengthIncreased\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"baseFactor\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"filterPeriod\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"decayPeriod\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"reductionFactor\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"variableFeeControl\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"protocolShare\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"maxVolatilityAccumulator\",\"type\":\"uint24\"}],\"name\":\"StaticFeeParametersSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"amountsIn\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"amountsOut\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint24\",\"name\":\"volatilityAccumulator\",\"type\":\"uint24\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"totalFees\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"protocolFees\",\"type\":\"bytes32\"}],\"name\":\"Swap\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"bytes32[]\",\"name\":\"amounts\",\"type\":\"bytes32[]\"}],\"name\":\"WithdrawnFromBins\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"approveForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"batchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amountsToBurn\",\"type\":\"uint256[]\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"amounts\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"collectProtocolFees\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"collectedProtocolFees\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractILBFlashLoanCallback\",\"name\":\"receiver\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"amounts\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"forceDecay\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getActiveId\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"activeId\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"name\":\"getBin\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"binReserveX\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"binReserveY\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBinStep\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"binStep\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFactory\",\"outputs\":[{\"internalType\":\"contractILBFactory\",\"name\":\"factory\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"getIdFromPrice\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"swapForY\",\"type\":\"bool\"},{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"name\":\"getNextNonEmptyBin\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"nextId\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getOracleParameters\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"sampleLifetime\",\"type\":\"uint8\"},{\"internalType\":\"uint16\",\"name\":\"size\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"activeSize\",\"type\":\"uint16\"},{\"internalType\":\"uint40\",\"name\":\"lastUpdated\",\"type\":\"uint40\"},{\"internalType\":\"uint40\",\"name\":\"firstTimestamp\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint40\",\"name\":\"lookupTimestamp\",\"type\":\"uint40\"}],\"name\":\"getOracleSampleAt\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"cumulativeId\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"cumulativeVolatility\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"cumulativeBinCrossed\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint24\",\"name\":\"id\",\"type\":\"uint24\"}],\"name\":\"getPriceFromId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProtocolFees\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"protocolFeeX\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"protocolFeeY\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"reserveX\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"reserveY\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStaticFeeParameters\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"baseFactor\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"filterPeriod\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"decayPeriod\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"reductionFactor\",\"type\":\"uint16\"},{\"internalType\":\"uint24\",\"name\":\"variableFeeControl\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"protocolShare\",\"type\":\"uint16\"},{\"internalType\":\"uint24\",\"name\":\"maxVolatilityAccumulator\",\"type\":\"uint24\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"amountOut\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"swapForY\",\"type\":\"bool\"}],\"name\":\"getSwapIn\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amountIn\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amountOutLeft\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fee\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"amountIn\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"swapForY\",\"type\":\"bool\"}],\"name\":\"getSwapOut\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"amountInLeft\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"amountOut\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"fee\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenX\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"tokenX\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTokenY\",\"outputs\":[{\"internalType\":\"contractIERC20\",\"name\":\"tokenY\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVariableFeeParameters\",\"outputs\":[{\"internalType\":\"uint24\",\"name\":\"volatilityAccumulator\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"volatilityReference\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"idReference\",\"type\":\"uint24\"},{\"internalType\":\"uint40\",\"name\":\"timeOfLastUpdate\",\"type\":\"uint40\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"newLength\",\"type\":\"uint16\"}],\"name\":\"increaseOracleLength\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"baseFactor\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"filterPeriod\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"decayPeriod\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"reductionFactor\",\"type\":\"uint16\"},{\"internalType\":\"uint24\",\"name\":\"variableFeeControl\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"protocolShare\",\"type\":\"uint16\"},{\"internalType\":\"uint24\",\"name\":\"maxVolatilityAccumulator\",\"type\":\"uint24\"},{\"internalType\":\"uint24\",\"name\":\"activeId\",\"type\":\"uint24\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"liquidityConfigs\",\"type\":\"bytes32[]\"},{\"internalType\":\"address\",\"name\":\"refundTo\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"amountsReceived\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"amountsLeft\",\"type\":\"bytes32\"},{\"internalType\":\"uint256[]\",\"name\":\"liquidityMinted\",\"type\":\"uint256[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"baseFactor\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"filterPeriod\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"decayPeriod\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"reductionFactor\",\"type\":\"uint16\"},{\"internalType\":\"uint24\",\"name\":\"variableFeeControl\",\"type\":\"uint24\"},{\"internalType\":\"uint16\",\"name\":\"protocolShare\",\"type\":\"uint16\"},{\"internalType\":\"uint24\",\"name\":\"maxVolatilityAccumulator\",\"type\":\"uint24\"}],\"name\":\"setStaticFeeParameters\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"swapForY\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"swap\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"amountsOut\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ILBPairMetaData contains all meta data concerning the ILBPair contract.

Functions

This section is empty.

Types

type ILBPair

type ILBPair struct {
	ILBPairCaller     // Read-only binding to the contract
	ILBPairTransactor // Write-only binding to the contract
	ILBPairFilterer   // Log filterer for contract events
}

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

func NewILBPair

func NewILBPair(address common.Address, backend bind.ContractBackend) (*ILBPair, error)

NewILBPair creates a new instance of ILBPair, bound to a specific deployed contract.

type ILBPairApprovalForAll

type ILBPairApprovalForAll struct {
	Account  common.Address
	Sender   common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

ILBPairApprovalForAll represents a ApprovalForAll event raised by the ILBPair contract.

type ILBPairApprovalForAllIterator

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

ILBPairApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the ILBPair contract.

func (*ILBPairApprovalForAllIterator) Close

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

func (*ILBPairApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairApprovalForAllIterator) 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 ILBPairCaller

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

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

func NewILBPairCaller

func NewILBPairCaller(address common.Address, caller bind.ContractCaller) (*ILBPairCaller, error)

NewILBPairCaller creates a new read-only instance of ILBPair, bound to a specific deployed contract.

func (*ILBPairCaller) BalanceOf

func (_ILBPair *ILBPairCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ILBPairCaller) BalanceOfBatch

func (_ILBPair *ILBPairCaller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ILBPairCaller) GetActiveId

func (_ILBPair *ILBPairCaller) GetActiveId(opts *bind.CallOpts) (*big.Int, error)

GetActiveId is a free data retrieval call binding the contract method 0xdbe65edc.

Solidity: function getActiveId() view returns(uint24 activeId)

func (*ILBPairCaller) GetBin

func (_ILBPair *ILBPairCaller) GetBin(opts *bind.CallOpts, id *big.Int) (struct {
	BinReserveX *big.Int
	BinReserveY *big.Int
}, error)

GetBin is a free data retrieval call binding the contract method 0x0abe9688.

Solidity: function getBin(uint24 id) view returns(uint128 binReserveX, uint128 binReserveY)

func (*ILBPairCaller) GetBinStep

func (_ILBPair *ILBPairCaller) GetBinStep(opts *bind.CallOpts) (uint16, error)

GetBinStep is a free data retrieval call binding the contract method 0x17f11ecc.

Solidity: function getBinStep() view returns(uint16 binStep)

func (*ILBPairCaller) GetFactory

func (_ILBPair *ILBPairCaller) GetFactory(opts *bind.CallOpts) (common.Address, error)

GetFactory is a free data retrieval call binding the contract method 0x88cc58e4.

Solidity: function getFactory() view returns(address factory)

func (*ILBPairCaller) GetIdFromPrice

func (_ILBPair *ILBPairCaller) GetIdFromPrice(opts *bind.CallOpts, price *big.Int) (*big.Int, error)

GetIdFromPrice is a free data retrieval call binding the contract method 0xf5e29329.

Solidity: function getIdFromPrice(uint256 price) view returns(uint24 id)

func (*ILBPairCaller) GetNextNonEmptyBin

func (_ILBPair *ILBPairCaller) GetNextNonEmptyBin(opts *bind.CallOpts, swapForY bool, id *big.Int) (*big.Int, error)

GetNextNonEmptyBin is a free data retrieval call binding the contract method 0xa41a01fb.

Solidity: function getNextNonEmptyBin(bool swapForY, uint24 id) view returns(uint24 nextId)

func (*ILBPairCaller) GetOracleParameters

func (_ILBPair *ILBPairCaller) GetOracleParameters(opts *bind.CallOpts) (struct {
	SampleLifetime uint8
	Size           uint16
	ActiveSize     uint16
	LastUpdated    *big.Int
	FirstTimestamp *big.Int
}, error)

GetOracleParameters is a free data retrieval call binding the contract method 0x55182894.

Solidity: function getOracleParameters() view returns(uint8 sampleLifetime, uint16 size, uint16 activeSize, uint40 lastUpdated, uint40 firstTimestamp)

func (*ILBPairCaller) GetOracleSampleAt

func (_ILBPair *ILBPairCaller) GetOracleSampleAt(opts *bind.CallOpts, lookupTimestamp *big.Int) (struct {
	CumulativeId         uint64
	CumulativeVolatility uint64
	CumulativeBinCrossed uint64
}, error)

GetOracleSampleAt is a free data retrieval call binding the contract method 0x8940a16a.

Solidity: function getOracleSampleAt(uint40 lookupTimestamp) view returns(uint64 cumulativeId, uint64 cumulativeVolatility, uint64 cumulativeBinCrossed)

func (*ILBPairCaller) GetPriceFromId

func (_ILBPair *ILBPairCaller) GetPriceFromId(opts *bind.CallOpts, id *big.Int) (*big.Int, error)

GetPriceFromId is a free data retrieval call binding the contract method 0x4c7cffbd.

Solidity: function getPriceFromId(uint24 id) view returns(uint256 price)

func (*ILBPairCaller) GetProtocolFees

func (_ILBPair *ILBPairCaller) GetProtocolFees(opts *bind.CallOpts) (struct {
	ProtocolFeeX *big.Int
	ProtocolFeeY *big.Int
}, error)

GetProtocolFees is a free data retrieval call binding the contract method 0xd8dfcea0.

Solidity: function getProtocolFees() view returns(uint128 protocolFeeX, uint128 protocolFeeY)

func (*ILBPairCaller) GetReserves

func (_ILBPair *ILBPairCaller) GetReserves(opts *bind.CallOpts) (struct {
	ReserveX *big.Int
	ReserveY *big.Int
}, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint128 reserveX, uint128 reserveY)

func (*ILBPairCaller) GetStaticFeeParameters

func (_ILBPair *ILBPairCaller) GetStaticFeeParameters(opts *bind.CallOpts) (struct {
	BaseFactor               uint16
	FilterPeriod             uint16
	DecayPeriod              uint16
	ReductionFactor          uint16
	VariableFeeControl       *big.Int
	ProtocolShare            uint16
	MaxVolatilityAccumulator *big.Int
}, error)

GetStaticFeeParameters is a free data retrieval call binding the contract method 0x7ca0de30.

Solidity: function getStaticFeeParameters() view returns(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)

func (*ILBPairCaller) GetSwapIn

func (_ILBPair *ILBPairCaller) GetSwapIn(opts *bind.CallOpts, amountOut *big.Int, swapForY bool) (struct {
	AmountIn      *big.Int
	AmountOutLeft *big.Int
	Fee           *big.Int
}, error)

GetSwapIn is a free data retrieval call binding the contract method 0xabcd7830.

Solidity: function getSwapIn(uint128 amountOut, bool swapForY) view returns(uint128 amountIn, uint128 amountOutLeft, uint128 fee)

func (*ILBPairCaller) GetSwapOut

func (_ILBPair *ILBPairCaller) GetSwapOut(opts *bind.CallOpts, amountIn *big.Int, swapForY bool) (struct {
	AmountInLeft *big.Int
	AmountOut    *big.Int
	Fee          *big.Int
}, error)

GetSwapOut is a free data retrieval call binding the contract method 0xe77366f8.

Solidity: function getSwapOut(uint128 amountIn, bool swapForY) view returns(uint128 amountInLeft, uint128 amountOut, uint128 fee)

func (*ILBPairCaller) GetTokenX

func (_ILBPair *ILBPairCaller) GetTokenX(opts *bind.CallOpts) (common.Address, error)

GetTokenX is a free data retrieval call binding the contract method 0x05e8746d.

Solidity: function getTokenX() view returns(address tokenX)

func (*ILBPairCaller) GetTokenY

func (_ILBPair *ILBPairCaller) GetTokenY(opts *bind.CallOpts) (common.Address, error)

GetTokenY is a free data retrieval call binding the contract method 0xda10610c.

Solidity: function getTokenY() view returns(address tokenY)

func (*ILBPairCaller) GetVariableFeeParameters

func (_ILBPair *ILBPairCaller) GetVariableFeeParameters(opts *bind.CallOpts) (struct {
	VolatilityAccumulator *big.Int
	VolatilityReference   *big.Int
	IdReference           *big.Int
	TimeOfLastUpdate      *big.Int
}, error)

GetVariableFeeParameters is a free data retrieval call binding the contract method 0x8d7024e5.

Solidity: function getVariableFeeParameters() view returns(uint24 volatilityAccumulator, uint24 volatilityReference, uint24 idReference, uint40 timeOfLastUpdate)

func (*ILBPairCaller) IsApprovedForAll

func (_ILBPair *ILBPairCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, spender common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address spender) view returns(bool)

func (*ILBPairCaller) Name

func (_ILBPair *ILBPairCaller) 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 (*ILBPairCaller) Symbol

func (_ILBPair *ILBPairCaller) 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 (*ILBPairCaller) TotalSupply

func (_ILBPair *ILBPairCaller) TotalSupply(opts *bind.CallOpts, id *big.Int) (*big.Int, error)

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

Solidity: function totalSupply(uint256 id) view returns(uint256)

type ILBPairCallerRaw

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

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

func (*ILBPairCallerRaw) Call

func (_ILBPair *ILBPairCallerRaw) 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 ILBPairCallerSession

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

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

func (*ILBPairCallerSession) BalanceOf

func (_ILBPair *ILBPairCallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ILBPairCallerSession) BalanceOfBatch

func (_ILBPair *ILBPairCallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ILBPairCallerSession) GetActiveId

func (_ILBPair *ILBPairCallerSession) GetActiveId() (*big.Int, error)

GetActiveId is a free data retrieval call binding the contract method 0xdbe65edc.

Solidity: function getActiveId() view returns(uint24 activeId)

func (*ILBPairCallerSession) GetBin

func (_ILBPair *ILBPairCallerSession) GetBin(id *big.Int) (struct {
	BinReserveX *big.Int
	BinReserveY *big.Int
}, error)

GetBin is a free data retrieval call binding the contract method 0x0abe9688.

Solidity: function getBin(uint24 id) view returns(uint128 binReserveX, uint128 binReserveY)

func (*ILBPairCallerSession) GetBinStep

func (_ILBPair *ILBPairCallerSession) GetBinStep() (uint16, error)

GetBinStep is a free data retrieval call binding the contract method 0x17f11ecc.

Solidity: function getBinStep() view returns(uint16 binStep)

func (*ILBPairCallerSession) GetFactory

func (_ILBPair *ILBPairCallerSession) GetFactory() (common.Address, error)

GetFactory is a free data retrieval call binding the contract method 0x88cc58e4.

Solidity: function getFactory() view returns(address factory)

func (*ILBPairCallerSession) GetIdFromPrice

func (_ILBPair *ILBPairCallerSession) GetIdFromPrice(price *big.Int) (*big.Int, error)

GetIdFromPrice is a free data retrieval call binding the contract method 0xf5e29329.

Solidity: function getIdFromPrice(uint256 price) view returns(uint24 id)

func (*ILBPairCallerSession) GetNextNonEmptyBin

func (_ILBPair *ILBPairCallerSession) GetNextNonEmptyBin(swapForY bool, id *big.Int) (*big.Int, error)

GetNextNonEmptyBin is a free data retrieval call binding the contract method 0xa41a01fb.

Solidity: function getNextNonEmptyBin(bool swapForY, uint24 id) view returns(uint24 nextId)

func (*ILBPairCallerSession) GetOracleParameters

func (_ILBPair *ILBPairCallerSession) GetOracleParameters() (struct {
	SampleLifetime uint8
	Size           uint16
	ActiveSize     uint16
	LastUpdated    *big.Int
	FirstTimestamp *big.Int
}, error)

GetOracleParameters is a free data retrieval call binding the contract method 0x55182894.

Solidity: function getOracleParameters() view returns(uint8 sampleLifetime, uint16 size, uint16 activeSize, uint40 lastUpdated, uint40 firstTimestamp)

func (*ILBPairCallerSession) GetOracleSampleAt

func (_ILBPair *ILBPairCallerSession) GetOracleSampleAt(lookupTimestamp *big.Int) (struct {
	CumulativeId         uint64
	CumulativeVolatility uint64
	CumulativeBinCrossed uint64
}, error)

GetOracleSampleAt is a free data retrieval call binding the contract method 0x8940a16a.

Solidity: function getOracleSampleAt(uint40 lookupTimestamp) view returns(uint64 cumulativeId, uint64 cumulativeVolatility, uint64 cumulativeBinCrossed)

func (*ILBPairCallerSession) GetPriceFromId

func (_ILBPair *ILBPairCallerSession) GetPriceFromId(id *big.Int) (*big.Int, error)

GetPriceFromId is a free data retrieval call binding the contract method 0x4c7cffbd.

Solidity: function getPriceFromId(uint24 id) view returns(uint256 price)

func (*ILBPairCallerSession) GetProtocolFees

func (_ILBPair *ILBPairCallerSession) GetProtocolFees() (struct {
	ProtocolFeeX *big.Int
	ProtocolFeeY *big.Int
}, error)

GetProtocolFees is a free data retrieval call binding the contract method 0xd8dfcea0.

Solidity: function getProtocolFees() view returns(uint128 protocolFeeX, uint128 protocolFeeY)

func (*ILBPairCallerSession) GetReserves

func (_ILBPair *ILBPairCallerSession) GetReserves() (struct {
	ReserveX *big.Int
	ReserveY *big.Int
}, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint128 reserveX, uint128 reserveY)

func (*ILBPairCallerSession) GetStaticFeeParameters

func (_ILBPair *ILBPairCallerSession) GetStaticFeeParameters() (struct {
	BaseFactor               uint16
	FilterPeriod             uint16
	DecayPeriod              uint16
	ReductionFactor          uint16
	VariableFeeControl       *big.Int
	ProtocolShare            uint16
	MaxVolatilityAccumulator *big.Int
}, error)

GetStaticFeeParameters is a free data retrieval call binding the contract method 0x7ca0de30.

Solidity: function getStaticFeeParameters() view returns(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)

func (*ILBPairCallerSession) GetSwapIn

func (_ILBPair *ILBPairCallerSession) GetSwapIn(amountOut *big.Int, swapForY bool) (struct {
	AmountIn      *big.Int
	AmountOutLeft *big.Int
	Fee           *big.Int
}, error)

GetSwapIn is a free data retrieval call binding the contract method 0xabcd7830.

Solidity: function getSwapIn(uint128 amountOut, bool swapForY) view returns(uint128 amountIn, uint128 amountOutLeft, uint128 fee)

func (*ILBPairCallerSession) GetSwapOut

func (_ILBPair *ILBPairCallerSession) GetSwapOut(amountIn *big.Int, swapForY bool) (struct {
	AmountInLeft *big.Int
	AmountOut    *big.Int
	Fee          *big.Int
}, error)

GetSwapOut is a free data retrieval call binding the contract method 0xe77366f8.

Solidity: function getSwapOut(uint128 amountIn, bool swapForY) view returns(uint128 amountInLeft, uint128 amountOut, uint128 fee)

func (*ILBPairCallerSession) GetTokenX

func (_ILBPair *ILBPairCallerSession) GetTokenX() (common.Address, error)

GetTokenX is a free data retrieval call binding the contract method 0x05e8746d.

Solidity: function getTokenX() view returns(address tokenX)

func (*ILBPairCallerSession) GetTokenY

func (_ILBPair *ILBPairCallerSession) GetTokenY() (common.Address, error)

GetTokenY is a free data retrieval call binding the contract method 0xda10610c.

Solidity: function getTokenY() view returns(address tokenY)

func (*ILBPairCallerSession) GetVariableFeeParameters

func (_ILBPair *ILBPairCallerSession) GetVariableFeeParameters() (struct {
	VolatilityAccumulator *big.Int
	VolatilityReference   *big.Int
	IdReference           *big.Int
	TimeOfLastUpdate      *big.Int
}, error)

GetVariableFeeParameters is a free data retrieval call binding the contract method 0x8d7024e5.

Solidity: function getVariableFeeParameters() view returns(uint24 volatilityAccumulator, uint24 volatilityReference, uint24 idReference, uint40 timeOfLastUpdate)

func (*ILBPairCallerSession) IsApprovedForAll

func (_ILBPair *ILBPairCallerSession) IsApprovedForAll(owner common.Address, spender common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address spender) view returns(bool)

func (*ILBPairCallerSession) Name

func (_ILBPair *ILBPairCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ILBPairCallerSession) Symbol

func (_ILBPair *ILBPairCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ILBPairCallerSession) TotalSupply

func (_ILBPair *ILBPairCallerSession) TotalSupply(id *big.Int) (*big.Int, error)

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

Solidity: function totalSupply(uint256 id) view returns(uint256)

type ILBPairCollectedProtocolFees

type ILBPairCollectedProtocolFees struct {
	FeeRecipient common.Address
	ProtocolFees [32]byte
	Raw          types.Log // Blockchain specific contextual infos
}

ILBPairCollectedProtocolFees represents a CollectedProtocolFees event raised by the ILBPair contract.

type ILBPairCollectedProtocolFeesIterator

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

ILBPairCollectedProtocolFeesIterator is returned from FilterCollectedProtocolFees and is used to iterate over the raw logs and unpacked data for CollectedProtocolFees events raised by the ILBPair contract.

func (*ILBPairCollectedProtocolFeesIterator) Close

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

func (*ILBPairCollectedProtocolFeesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairCollectedProtocolFeesIterator) 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 ILBPairCompositionFees

type ILBPairCompositionFees struct {
	Sender       common.Address
	Id           *big.Int
	TotalFees    [32]byte
	ProtocolFees [32]byte
	Raw          types.Log // Blockchain specific contextual infos
}

ILBPairCompositionFees represents a CompositionFees event raised by the ILBPair contract.

type ILBPairCompositionFeesIterator

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

ILBPairCompositionFeesIterator is returned from FilterCompositionFees and is used to iterate over the raw logs and unpacked data for CompositionFees events raised by the ILBPair contract.

func (*ILBPairCompositionFeesIterator) Close

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

func (*ILBPairCompositionFeesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairCompositionFeesIterator) 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 ILBPairDepositedToBins

type ILBPairDepositedToBins struct {
	Sender  common.Address
	To      common.Address
	Ids     []*big.Int
	Amounts [][32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

ILBPairDepositedToBins represents a DepositedToBins event raised by the ILBPair contract.

type ILBPairDepositedToBinsIterator

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

ILBPairDepositedToBinsIterator is returned from FilterDepositedToBins and is used to iterate over the raw logs and unpacked data for DepositedToBins events raised by the ILBPair contract.

func (*ILBPairDepositedToBinsIterator) Close

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

func (*ILBPairDepositedToBinsIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairDepositedToBinsIterator) 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 ILBPairFilterer

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

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

func NewILBPairFilterer

func NewILBPairFilterer(address common.Address, filterer bind.ContractFilterer) (*ILBPairFilterer, error)

NewILBPairFilterer creates a new log filterer instance of ILBPair, bound to a specific deployed contract.

func (*ILBPairFilterer) FilterApprovalForAll

func (_ILBPair *ILBPairFilterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, sender []common.Address) (*ILBPairApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed sender, bool approved)

func (*ILBPairFilterer) FilterCollectedProtocolFees

func (_ILBPair *ILBPairFilterer) FilterCollectedProtocolFees(opts *bind.FilterOpts, feeRecipient []common.Address) (*ILBPairCollectedProtocolFeesIterator, error)

FilterCollectedProtocolFees is a free log retrieval operation binding the contract event 0x3f41a5ddc53701cc7db577ade4f1fca9838a8ec0b5ea50b9f0f5d17bc4554e32.

Solidity: event CollectedProtocolFees(address indexed feeRecipient, bytes32 protocolFees)

func (*ILBPairFilterer) FilterCompositionFees

func (_ILBPair *ILBPairFilterer) FilterCompositionFees(opts *bind.FilterOpts, sender []common.Address) (*ILBPairCompositionFeesIterator, error)

FilterCompositionFees is a free log retrieval operation binding the contract event 0x3f0b46725027bb418b2005f4683538eccdbcdf1de2b8649a29dbd9c507d16ff4.

Solidity: event CompositionFees(address indexed sender, uint24 id, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) FilterDepositedToBins

func (_ILBPair *ILBPairFilterer) FilterDepositedToBins(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ILBPairDepositedToBinsIterator, error)

FilterDepositedToBins is a free log retrieval operation binding the contract event 0x87f1f9dcf5e8089a3e00811b6a008d8f30293a3da878cb1fe8c90ca376402f8a.

Solidity: event DepositedToBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)

func (*ILBPairFilterer) FilterFlashLoan

func (_ILBPair *ILBPairFilterer) FilterFlashLoan(opts *bind.FilterOpts, sender []common.Address, receiver []common.Address) (*ILBPairFlashLoanIterator, error)

FilterFlashLoan is a free log retrieval operation binding the contract event 0xd126bd9d94daca8e55ffd8283fac05394aec8326c6b1639e1e8a445fbe8bbc7d.

Solidity: event FlashLoan(address indexed sender, address indexed receiver, uint24 activeId, bytes32 amounts, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) FilterForcedDecay

func (_ILBPair *ILBPairFilterer) FilterForcedDecay(opts *bind.FilterOpts, sender []common.Address) (*ILBPairForcedDecayIterator, error)

FilterForcedDecay is a free log retrieval operation binding the contract event 0x282afaeeae84c1d85ad1424a3aa2ddbedaeefca3b1e53d889d15265fe44db7fc.

Solidity: event ForcedDecay(address indexed sender, uint24 idReference, uint24 volatilityReference)

func (*ILBPairFilterer) FilterOracleLengthIncreased

func (_ILBPair *ILBPairFilterer) FilterOracleLengthIncreased(opts *bind.FilterOpts, sender []common.Address) (*ILBPairOracleLengthIncreasedIterator, error)

FilterOracleLengthIncreased is a free log retrieval operation binding the contract event 0xc975541e72d695746a43ba65745d79963a23082637c8f4609354d9bcf70194d6.

Solidity: event OracleLengthIncreased(address indexed sender, uint16 oracleLength)

func (*ILBPairFilterer) FilterStaticFeeParametersSet

func (_ILBPair *ILBPairFilterer) FilterStaticFeeParametersSet(opts *bind.FilterOpts, sender []common.Address) (*ILBPairStaticFeeParametersSetIterator, error)

FilterStaticFeeParametersSet is a free log retrieval operation binding the contract event 0xd09e5ddc721ff14c5c1e66a305cbba1fd70b82c5232bc391aad6f55e62e4b046.

Solidity: event StaticFeeParametersSet(address indexed sender, uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)

func (*ILBPairFilterer) FilterSwap

func (_ILBPair *ILBPairFilterer) FilterSwap(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ILBPairSwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70.

Solidity: event Swap(address indexed sender, address indexed to, uint24 id, bytes32 amountsIn, bytes32 amountsOut, uint24 volatilityAccumulator, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) FilterTransferBatch

func (_ILBPair *ILBPairFilterer) FilterTransferBatch(opts *bind.FilterOpts, sender []common.Address, from []common.Address, to []common.Address) (*ILBPairTransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed sender, address indexed from, address indexed to, uint256[] ids, uint256[] amounts)

func (*ILBPairFilterer) FilterWithdrawnFromBins

func (_ILBPair *ILBPairFilterer) FilterWithdrawnFromBins(opts *bind.FilterOpts, sender []common.Address, to []common.Address) (*ILBPairWithdrawnFromBinsIterator, error)

FilterWithdrawnFromBins is a free log retrieval operation binding the contract event 0xa32e146844d6144a22e94c586715a1317d58a8aa3581ec33d040113ddcb24350.

Solidity: event WithdrawnFromBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)

func (*ILBPairFilterer) ParseApprovalForAll

func (_ILBPair *ILBPairFilterer) ParseApprovalForAll(log types.Log) (*ILBPairApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed sender, bool approved)

func (*ILBPairFilterer) ParseCollectedProtocolFees

func (_ILBPair *ILBPairFilterer) ParseCollectedProtocolFees(log types.Log) (*ILBPairCollectedProtocolFees, error)

ParseCollectedProtocolFees is a log parse operation binding the contract event 0x3f41a5ddc53701cc7db577ade4f1fca9838a8ec0b5ea50b9f0f5d17bc4554e32.

Solidity: event CollectedProtocolFees(address indexed feeRecipient, bytes32 protocolFees)

func (*ILBPairFilterer) ParseCompositionFees

func (_ILBPair *ILBPairFilterer) ParseCompositionFees(log types.Log) (*ILBPairCompositionFees, error)

ParseCompositionFees is a log parse operation binding the contract event 0x3f0b46725027bb418b2005f4683538eccdbcdf1de2b8649a29dbd9c507d16ff4.

Solidity: event CompositionFees(address indexed sender, uint24 id, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) ParseDepositedToBins

func (_ILBPair *ILBPairFilterer) ParseDepositedToBins(log types.Log) (*ILBPairDepositedToBins, error)

ParseDepositedToBins is a log parse operation binding the contract event 0x87f1f9dcf5e8089a3e00811b6a008d8f30293a3da878cb1fe8c90ca376402f8a.

Solidity: event DepositedToBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)

func (*ILBPairFilterer) ParseFlashLoan

func (_ILBPair *ILBPairFilterer) ParseFlashLoan(log types.Log) (*ILBPairFlashLoan, error)

ParseFlashLoan is a log parse operation binding the contract event 0xd126bd9d94daca8e55ffd8283fac05394aec8326c6b1639e1e8a445fbe8bbc7d.

Solidity: event FlashLoan(address indexed sender, address indexed receiver, uint24 activeId, bytes32 amounts, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) ParseForcedDecay

func (_ILBPair *ILBPairFilterer) ParseForcedDecay(log types.Log) (*ILBPairForcedDecay, error)

ParseForcedDecay is a log parse operation binding the contract event 0x282afaeeae84c1d85ad1424a3aa2ddbedaeefca3b1e53d889d15265fe44db7fc.

Solidity: event ForcedDecay(address indexed sender, uint24 idReference, uint24 volatilityReference)

func (*ILBPairFilterer) ParseOracleLengthIncreased

func (_ILBPair *ILBPairFilterer) ParseOracleLengthIncreased(log types.Log) (*ILBPairOracleLengthIncreased, error)

ParseOracleLengthIncreased is a log parse operation binding the contract event 0xc975541e72d695746a43ba65745d79963a23082637c8f4609354d9bcf70194d6.

Solidity: event OracleLengthIncreased(address indexed sender, uint16 oracleLength)

func (*ILBPairFilterer) ParseStaticFeeParametersSet

func (_ILBPair *ILBPairFilterer) ParseStaticFeeParametersSet(log types.Log) (*ILBPairStaticFeeParametersSet, error)

ParseStaticFeeParametersSet is a log parse operation binding the contract event 0xd09e5ddc721ff14c5c1e66a305cbba1fd70b82c5232bc391aad6f55e62e4b046.

Solidity: event StaticFeeParametersSet(address indexed sender, uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)

func (*ILBPairFilterer) ParseSwap

func (_ILBPair *ILBPairFilterer) ParseSwap(log types.Log) (*ILBPairSwap, error)

ParseSwap is a log parse operation binding the contract event 0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70.

Solidity: event Swap(address indexed sender, address indexed to, uint24 id, bytes32 amountsIn, bytes32 amountsOut, uint24 volatilityAccumulator, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) ParseTransferBatch

func (_ILBPair *ILBPairFilterer) ParseTransferBatch(log types.Log) (*ILBPairTransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed sender, address indexed from, address indexed to, uint256[] ids, uint256[] amounts)

func (*ILBPairFilterer) ParseWithdrawnFromBins

func (_ILBPair *ILBPairFilterer) ParseWithdrawnFromBins(log types.Log) (*ILBPairWithdrawnFromBins, error)

ParseWithdrawnFromBins is a log parse operation binding the contract event 0xa32e146844d6144a22e94c586715a1317d58a8aa3581ec33d040113ddcb24350.

Solidity: event WithdrawnFromBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)

func (*ILBPairFilterer) WatchApprovalForAll

func (_ILBPair *ILBPairFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ILBPairApprovalForAll, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed sender, bool approved)

func (*ILBPairFilterer) WatchCollectedProtocolFees

func (_ILBPair *ILBPairFilterer) WatchCollectedProtocolFees(opts *bind.WatchOpts, sink chan<- *ILBPairCollectedProtocolFees, feeRecipient []common.Address) (event.Subscription, error)

WatchCollectedProtocolFees is a free log subscription operation binding the contract event 0x3f41a5ddc53701cc7db577ade4f1fca9838a8ec0b5ea50b9f0f5d17bc4554e32.

Solidity: event CollectedProtocolFees(address indexed feeRecipient, bytes32 protocolFees)

func (*ILBPairFilterer) WatchCompositionFees

func (_ILBPair *ILBPairFilterer) WatchCompositionFees(opts *bind.WatchOpts, sink chan<- *ILBPairCompositionFees, sender []common.Address) (event.Subscription, error)

WatchCompositionFees is a free log subscription operation binding the contract event 0x3f0b46725027bb418b2005f4683538eccdbcdf1de2b8649a29dbd9c507d16ff4.

Solidity: event CompositionFees(address indexed sender, uint24 id, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) WatchDepositedToBins

func (_ILBPair *ILBPairFilterer) WatchDepositedToBins(opts *bind.WatchOpts, sink chan<- *ILBPairDepositedToBins, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchDepositedToBins is a free log subscription operation binding the contract event 0x87f1f9dcf5e8089a3e00811b6a008d8f30293a3da878cb1fe8c90ca376402f8a.

Solidity: event DepositedToBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)

func (*ILBPairFilterer) WatchFlashLoan

func (_ILBPair *ILBPairFilterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *ILBPairFlashLoan, sender []common.Address, receiver []common.Address) (event.Subscription, error)

WatchFlashLoan is a free log subscription operation binding the contract event 0xd126bd9d94daca8e55ffd8283fac05394aec8326c6b1639e1e8a445fbe8bbc7d.

Solidity: event FlashLoan(address indexed sender, address indexed receiver, uint24 activeId, bytes32 amounts, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) WatchForcedDecay

func (_ILBPair *ILBPairFilterer) WatchForcedDecay(opts *bind.WatchOpts, sink chan<- *ILBPairForcedDecay, sender []common.Address) (event.Subscription, error)

WatchForcedDecay is a free log subscription operation binding the contract event 0x282afaeeae84c1d85ad1424a3aa2ddbedaeefca3b1e53d889d15265fe44db7fc.

Solidity: event ForcedDecay(address indexed sender, uint24 idReference, uint24 volatilityReference)

func (*ILBPairFilterer) WatchOracleLengthIncreased

func (_ILBPair *ILBPairFilterer) WatchOracleLengthIncreased(opts *bind.WatchOpts, sink chan<- *ILBPairOracleLengthIncreased, sender []common.Address) (event.Subscription, error)

WatchOracleLengthIncreased is a free log subscription operation binding the contract event 0xc975541e72d695746a43ba65745d79963a23082637c8f4609354d9bcf70194d6.

Solidity: event OracleLengthIncreased(address indexed sender, uint16 oracleLength)

func (*ILBPairFilterer) WatchStaticFeeParametersSet

func (_ILBPair *ILBPairFilterer) WatchStaticFeeParametersSet(opts *bind.WatchOpts, sink chan<- *ILBPairStaticFeeParametersSet, sender []common.Address) (event.Subscription, error)

WatchStaticFeeParametersSet is a free log subscription operation binding the contract event 0xd09e5ddc721ff14c5c1e66a305cbba1fd70b82c5232bc391aad6f55e62e4b046.

Solidity: event StaticFeeParametersSet(address indexed sender, uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)

func (*ILBPairFilterer) WatchSwap

func (_ILBPair *ILBPairFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *ILBPairSwap, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0xad7d6f97abf51ce18e17a38f4d70e975be9c0708474987bb3e26ad21bd93ca70.

Solidity: event Swap(address indexed sender, address indexed to, uint24 id, bytes32 amountsIn, bytes32 amountsOut, uint24 volatilityAccumulator, bytes32 totalFees, bytes32 protocolFees)

func (*ILBPairFilterer) WatchTransferBatch

func (_ILBPair *ILBPairFilterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *ILBPairTransferBatch, sender []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed sender, address indexed from, address indexed to, uint256[] ids, uint256[] amounts)

func (*ILBPairFilterer) WatchWithdrawnFromBins

func (_ILBPair *ILBPairFilterer) WatchWithdrawnFromBins(opts *bind.WatchOpts, sink chan<- *ILBPairWithdrawnFromBins, sender []common.Address, to []common.Address) (event.Subscription, error)

WatchWithdrawnFromBins is a free log subscription operation binding the contract event 0xa32e146844d6144a22e94c586715a1317d58a8aa3581ec33d040113ddcb24350.

Solidity: event WithdrawnFromBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)

type ILBPairFlashLoan

type ILBPairFlashLoan struct {
	Sender       common.Address
	Receiver     common.Address
	ActiveId     *big.Int
	Amounts      [32]byte
	TotalFees    [32]byte
	ProtocolFees [32]byte
	Raw          types.Log // Blockchain specific contextual infos
}

ILBPairFlashLoan represents a FlashLoan event raised by the ILBPair contract.

type ILBPairFlashLoanIterator

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

ILBPairFlashLoanIterator is returned from FilterFlashLoan and is used to iterate over the raw logs and unpacked data for FlashLoan events raised by the ILBPair contract.

func (*ILBPairFlashLoanIterator) Close

func (it *ILBPairFlashLoanIterator) Close() error

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

func (*ILBPairFlashLoanIterator) Error

func (it *ILBPairFlashLoanIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairFlashLoanIterator) Next

func (it *ILBPairFlashLoanIterator) 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 ILBPairForcedDecay

type ILBPairForcedDecay struct {
	Sender              common.Address
	IdReference         *big.Int
	VolatilityReference *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

ILBPairForcedDecay represents a ForcedDecay event raised by the ILBPair contract.

type ILBPairForcedDecayIterator

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

ILBPairForcedDecayIterator is returned from FilterForcedDecay and is used to iterate over the raw logs and unpacked data for ForcedDecay events raised by the ILBPair contract.

func (*ILBPairForcedDecayIterator) Close

func (it *ILBPairForcedDecayIterator) Close() error

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

func (*ILBPairForcedDecayIterator) Error

func (it *ILBPairForcedDecayIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairForcedDecayIterator) Next

func (it *ILBPairForcedDecayIterator) 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 ILBPairOracleLengthIncreased

type ILBPairOracleLengthIncreased struct {
	Sender       common.Address
	OracleLength uint16
	Raw          types.Log // Blockchain specific contextual infos
}

ILBPairOracleLengthIncreased represents a OracleLengthIncreased event raised by the ILBPair contract.

type ILBPairOracleLengthIncreasedIterator

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

ILBPairOracleLengthIncreasedIterator is returned from FilterOracleLengthIncreased and is used to iterate over the raw logs and unpacked data for OracleLengthIncreased events raised by the ILBPair contract.

func (*ILBPairOracleLengthIncreasedIterator) Close

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

func (*ILBPairOracleLengthIncreasedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairOracleLengthIncreasedIterator) 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 ILBPairRaw

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

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

func (*ILBPairRaw) Call

func (_ILBPair *ILBPairRaw) 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 (*ILBPairRaw) Transact

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

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

func (*ILBPairRaw) Transfer

func (_ILBPair *ILBPairRaw) 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 ILBPairSession

type ILBPairSession struct {
	Contract     *ILBPair          // 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
}

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

func (*ILBPairSession) ApproveForAll

func (_ILBPair *ILBPairSession) ApproveForAll(spender common.Address, approved bool) (*types.Transaction, error)

ApproveForAll is a paid mutator transaction binding the contract method 0xe584b654.

Solidity: function approveForAll(address spender, bool approved) returns()

func (*ILBPairSession) BalanceOf

func (_ILBPair *ILBPairSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

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

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*ILBPairSession) BalanceOfBatch

func (_ILBPair *ILBPairSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*ILBPairSession) BatchTransferFrom

func (_ILBPair *ILBPairSession) BatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int) (*types.Transaction, error)

BatchTransferFrom is a paid mutator transaction binding the contract method 0x17fad7fc.

Solidity: function batchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts) returns()

func (*ILBPairSession) Burn

func (_ILBPair *ILBPairSession) Burn(from common.Address, to common.Address, ids []*big.Int, amountsToBurn []*big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xc9939f5e.

Solidity: function burn(address from, address to, uint256[] ids, uint256[] amountsToBurn) returns(bytes32[] amounts)

func (*ILBPairSession) CollectProtocolFees

func (_ILBPair *ILBPairSession) CollectProtocolFees() (*types.Transaction, error)

CollectProtocolFees is a paid mutator transaction binding the contract method 0xa1af5b9a.

Solidity: function collectProtocolFees() returns(bytes32 collectedProtocolFees)

func (*ILBPairSession) FlashLoan

func (_ILBPair *ILBPairSession) FlashLoan(receiver common.Address, amounts [32]byte, data []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xea3446bf.

Solidity: function flashLoan(address receiver, bytes32 amounts, bytes data) returns()

func (*ILBPairSession) ForceDecay

func (_ILBPair *ILBPairSession) ForceDecay() (*types.Transaction, error)

ForceDecay is a paid mutator transaction binding the contract method 0xd3b9fbe4.

Solidity: function forceDecay() returns()

func (*ILBPairSession) GetActiveId

func (_ILBPair *ILBPairSession) GetActiveId() (*big.Int, error)

GetActiveId is a free data retrieval call binding the contract method 0xdbe65edc.

Solidity: function getActiveId() view returns(uint24 activeId)

func (*ILBPairSession) GetBin

func (_ILBPair *ILBPairSession) GetBin(id *big.Int) (struct {
	BinReserveX *big.Int
	BinReserveY *big.Int
}, error)

GetBin is a free data retrieval call binding the contract method 0x0abe9688.

Solidity: function getBin(uint24 id) view returns(uint128 binReserveX, uint128 binReserveY)

func (*ILBPairSession) GetBinStep

func (_ILBPair *ILBPairSession) GetBinStep() (uint16, error)

GetBinStep is a free data retrieval call binding the contract method 0x17f11ecc.

Solidity: function getBinStep() view returns(uint16 binStep)

func (*ILBPairSession) GetFactory

func (_ILBPair *ILBPairSession) GetFactory() (common.Address, error)

GetFactory is a free data retrieval call binding the contract method 0x88cc58e4.

Solidity: function getFactory() view returns(address factory)

func (*ILBPairSession) GetIdFromPrice

func (_ILBPair *ILBPairSession) GetIdFromPrice(price *big.Int) (*big.Int, error)

GetIdFromPrice is a free data retrieval call binding the contract method 0xf5e29329.

Solidity: function getIdFromPrice(uint256 price) view returns(uint24 id)

func (*ILBPairSession) GetNextNonEmptyBin

func (_ILBPair *ILBPairSession) GetNextNonEmptyBin(swapForY bool, id *big.Int) (*big.Int, error)

GetNextNonEmptyBin is a free data retrieval call binding the contract method 0xa41a01fb.

Solidity: function getNextNonEmptyBin(bool swapForY, uint24 id) view returns(uint24 nextId)

func (*ILBPairSession) GetOracleParameters

func (_ILBPair *ILBPairSession) GetOracleParameters() (struct {
	SampleLifetime uint8
	Size           uint16
	ActiveSize     uint16
	LastUpdated    *big.Int
	FirstTimestamp *big.Int
}, error)

GetOracleParameters is a free data retrieval call binding the contract method 0x55182894.

Solidity: function getOracleParameters() view returns(uint8 sampleLifetime, uint16 size, uint16 activeSize, uint40 lastUpdated, uint40 firstTimestamp)

func (*ILBPairSession) GetOracleSampleAt

func (_ILBPair *ILBPairSession) GetOracleSampleAt(lookupTimestamp *big.Int) (struct {
	CumulativeId         uint64
	CumulativeVolatility uint64
	CumulativeBinCrossed uint64
}, error)

GetOracleSampleAt is a free data retrieval call binding the contract method 0x8940a16a.

Solidity: function getOracleSampleAt(uint40 lookupTimestamp) view returns(uint64 cumulativeId, uint64 cumulativeVolatility, uint64 cumulativeBinCrossed)

func (*ILBPairSession) GetPriceFromId

func (_ILBPair *ILBPairSession) GetPriceFromId(id *big.Int) (*big.Int, error)

GetPriceFromId is a free data retrieval call binding the contract method 0x4c7cffbd.

Solidity: function getPriceFromId(uint24 id) view returns(uint256 price)

func (*ILBPairSession) GetProtocolFees

func (_ILBPair *ILBPairSession) GetProtocolFees() (struct {
	ProtocolFeeX *big.Int
	ProtocolFeeY *big.Int
}, error)

GetProtocolFees is a free data retrieval call binding the contract method 0xd8dfcea0.

Solidity: function getProtocolFees() view returns(uint128 protocolFeeX, uint128 protocolFeeY)

func (*ILBPairSession) GetReserves

func (_ILBPair *ILBPairSession) GetReserves() (struct {
	ReserveX *big.Int
	ReserveY *big.Int
}, error)

GetReserves is a free data retrieval call binding the contract method 0x0902f1ac.

Solidity: function getReserves() view returns(uint128 reserveX, uint128 reserveY)

func (*ILBPairSession) GetStaticFeeParameters

func (_ILBPair *ILBPairSession) GetStaticFeeParameters() (struct {
	BaseFactor               uint16
	FilterPeriod             uint16
	DecayPeriod              uint16
	ReductionFactor          uint16
	VariableFeeControl       *big.Int
	ProtocolShare            uint16
	MaxVolatilityAccumulator *big.Int
}, error)

GetStaticFeeParameters is a free data retrieval call binding the contract method 0x7ca0de30.

Solidity: function getStaticFeeParameters() view returns(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)

func (*ILBPairSession) GetSwapIn

func (_ILBPair *ILBPairSession) GetSwapIn(amountOut *big.Int, swapForY bool) (struct {
	AmountIn      *big.Int
	AmountOutLeft *big.Int
	Fee           *big.Int
}, error)

GetSwapIn is a free data retrieval call binding the contract method 0xabcd7830.

Solidity: function getSwapIn(uint128 amountOut, bool swapForY) view returns(uint128 amountIn, uint128 amountOutLeft, uint128 fee)

func (*ILBPairSession) GetSwapOut

func (_ILBPair *ILBPairSession) GetSwapOut(amountIn *big.Int, swapForY bool) (struct {
	AmountInLeft *big.Int
	AmountOut    *big.Int
	Fee          *big.Int
}, error)

GetSwapOut is a free data retrieval call binding the contract method 0xe77366f8.

Solidity: function getSwapOut(uint128 amountIn, bool swapForY) view returns(uint128 amountInLeft, uint128 amountOut, uint128 fee)

func (*ILBPairSession) GetTokenX

func (_ILBPair *ILBPairSession) GetTokenX() (common.Address, error)

GetTokenX is a free data retrieval call binding the contract method 0x05e8746d.

Solidity: function getTokenX() view returns(address tokenX)

func (*ILBPairSession) GetTokenY

func (_ILBPair *ILBPairSession) GetTokenY() (common.Address, error)

GetTokenY is a free data retrieval call binding the contract method 0xda10610c.

Solidity: function getTokenY() view returns(address tokenY)

func (*ILBPairSession) GetVariableFeeParameters

func (_ILBPair *ILBPairSession) GetVariableFeeParameters() (struct {
	VolatilityAccumulator *big.Int
	VolatilityReference   *big.Int
	IdReference           *big.Int
	TimeOfLastUpdate      *big.Int
}, error)

GetVariableFeeParameters is a free data retrieval call binding the contract method 0x8d7024e5.

Solidity: function getVariableFeeParameters() view returns(uint24 volatilityAccumulator, uint24 volatilityReference, uint24 idReference, uint40 timeOfLastUpdate)

func (*ILBPairSession) IncreaseOracleLength

func (_ILBPair *ILBPairSession) IncreaseOracleLength(newLength uint16) (*types.Transaction, error)

IncreaseOracleLength is a paid mutator transaction binding the contract method 0xc7bd6586.

Solidity: function increaseOracleLength(uint16 newLength) returns()

func (*ILBPairSession) Initialize

func (_ILBPair *ILBPairSession) Initialize(baseFactor uint16, filterPeriod uint16, decayPeriod uint16, reductionFactor uint16, variableFeeControl *big.Int, protocolShare uint16, maxVolatilityAccumulator *big.Int, activeId *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x47973bff.

Solidity: function initialize(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator, uint24 activeId) returns()

func (*ILBPairSession) IsApprovedForAll

func (_ILBPair *ILBPairSession) IsApprovedForAll(owner common.Address, spender common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address spender) view returns(bool)

func (*ILBPairSession) Mint

func (_ILBPair *ILBPairSession) Mint(to common.Address, liquidityConfigs [][32]byte, refundTo common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x383d15c5.

Solidity: function mint(address to, bytes32[] liquidityConfigs, address refundTo) returns(bytes32 amountsReceived, bytes32 amountsLeft, uint256[] liquidityMinted)

func (*ILBPairSession) Name

func (_ILBPair *ILBPairSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ILBPairSession) SetStaticFeeParameters

func (_ILBPair *ILBPairSession) SetStaticFeeParameters(baseFactor uint16, filterPeriod uint16, decayPeriod uint16, reductionFactor uint16, variableFeeControl *big.Int, protocolShare uint16, maxVolatilityAccumulator *big.Int) (*types.Transaction, error)

SetStaticFeeParameters is a paid mutator transaction binding the contract method 0x6653851a.

Solidity: function setStaticFeeParameters(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator) returns()

func (*ILBPairSession) Swap

func (_ILBPair *ILBPairSession) Swap(swapForY bool, to common.Address) (*types.Transaction, error)

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

Solidity: function swap(bool swapForY, address to) returns(bytes32 amountsOut)

func (*ILBPairSession) Symbol

func (_ILBPair *ILBPairSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ILBPairSession) TotalSupply

func (_ILBPair *ILBPairSession) TotalSupply(id *big.Int) (*big.Int, error)

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

Solidity: function totalSupply(uint256 id) view returns(uint256)

type ILBPairStaticFeeParametersSet

type ILBPairStaticFeeParametersSet struct {
	Sender                   common.Address
	BaseFactor               uint16
	FilterPeriod             uint16
	DecayPeriod              uint16
	ReductionFactor          uint16
	VariableFeeControl       *big.Int
	ProtocolShare            uint16
	MaxVolatilityAccumulator *big.Int
	Raw                      types.Log // Blockchain specific contextual infos
}

ILBPairStaticFeeParametersSet represents a StaticFeeParametersSet event raised by the ILBPair contract.

type ILBPairStaticFeeParametersSetIterator

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

ILBPairStaticFeeParametersSetIterator is returned from FilterStaticFeeParametersSet and is used to iterate over the raw logs and unpacked data for StaticFeeParametersSet events raised by the ILBPair contract.

func (*ILBPairStaticFeeParametersSetIterator) Close

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

func (*ILBPairStaticFeeParametersSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairStaticFeeParametersSetIterator) 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 ILBPairSwap

type ILBPairSwap struct {
	Sender                common.Address
	To                    common.Address
	Id                    *big.Int
	AmountsIn             [32]byte
	AmountsOut            [32]byte
	VolatilityAccumulator *big.Int
	TotalFees             [32]byte
	ProtocolFees          [32]byte
	Raw                   types.Log // Blockchain specific contextual infos
}

ILBPairSwap represents a Swap event raised by the ILBPair contract.

type ILBPairSwapIterator

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

ILBPairSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the ILBPair contract.

func (*ILBPairSwapIterator) Close

func (it *ILBPairSwapIterator) Close() error

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

func (*ILBPairSwapIterator) Error

func (it *ILBPairSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairSwapIterator) Next

func (it *ILBPairSwapIterator) 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 ILBPairTransactor

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

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

func NewILBPairTransactor

func NewILBPairTransactor(address common.Address, transactor bind.ContractTransactor) (*ILBPairTransactor, error)

NewILBPairTransactor creates a new write-only instance of ILBPair, bound to a specific deployed contract.

func (*ILBPairTransactor) ApproveForAll

func (_ILBPair *ILBPairTransactor) ApproveForAll(opts *bind.TransactOpts, spender common.Address, approved bool) (*types.Transaction, error)

ApproveForAll is a paid mutator transaction binding the contract method 0xe584b654.

Solidity: function approveForAll(address spender, bool approved) returns()

func (*ILBPairTransactor) BatchTransferFrom

func (_ILBPair *ILBPairTransactor) BatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int) (*types.Transaction, error)

BatchTransferFrom is a paid mutator transaction binding the contract method 0x17fad7fc.

Solidity: function batchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts) returns()

func (*ILBPairTransactor) Burn

func (_ILBPair *ILBPairTransactor) Burn(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, amountsToBurn []*big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xc9939f5e.

Solidity: function burn(address from, address to, uint256[] ids, uint256[] amountsToBurn) returns(bytes32[] amounts)

func (*ILBPairTransactor) CollectProtocolFees

func (_ILBPair *ILBPairTransactor) CollectProtocolFees(opts *bind.TransactOpts) (*types.Transaction, error)

CollectProtocolFees is a paid mutator transaction binding the contract method 0xa1af5b9a.

Solidity: function collectProtocolFees() returns(bytes32 collectedProtocolFees)

func (*ILBPairTransactor) FlashLoan

func (_ILBPair *ILBPairTransactor) FlashLoan(opts *bind.TransactOpts, receiver common.Address, amounts [32]byte, data []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xea3446bf.

Solidity: function flashLoan(address receiver, bytes32 amounts, bytes data) returns()

func (*ILBPairTransactor) ForceDecay

func (_ILBPair *ILBPairTransactor) ForceDecay(opts *bind.TransactOpts) (*types.Transaction, error)

ForceDecay is a paid mutator transaction binding the contract method 0xd3b9fbe4.

Solidity: function forceDecay() returns()

func (*ILBPairTransactor) IncreaseOracleLength

func (_ILBPair *ILBPairTransactor) IncreaseOracleLength(opts *bind.TransactOpts, newLength uint16) (*types.Transaction, error)

IncreaseOracleLength is a paid mutator transaction binding the contract method 0xc7bd6586.

Solidity: function increaseOracleLength(uint16 newLength) returns()

func (*ILBPairTransactor) Initialize

func (_ILBPair *ILBPairTransactor) Initialize(opts *bind.TransactOpts, baseFactor uint16, filterPeriod uint16, decayPeriod uint16, reductionFactor uint16, variableFeeControl *big.Int, protocolShare uint16, maxVolatilityAccumulator *big.Int, activeId *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x47973bff.

Solidity: function initialize(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator, uint24 activeId) returns()

func (*ILBPairTransactor) Mint

func (_ILBPair *ILBPairTransactor) Mint(opts *bind.TransactOpts, to common.Address, liquidityConfigs [][32]byte, refundTo common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x383d15c5.

Solidity: function mint(address to, bytes32[] liquidityConfigs, address refundTo) returns(bytes32 amountsReceived, bytes32 amountsLeft, uint256[] liquidityMinted)

func (*ILBPairTransactor) SetStaticFeeParameters

func (_ILBPair *ILBPairTransactor) SetStaticFeeParameters(opts *bind.TransactOpts, baseFactor uint16, filterPeriod uint16, decayPeriod uint16, reductionFactor uint16, variableFeeControl *big.Int, protocolShare uint16, maxVolatilityAccumulator *big.Int) (*types.Transaction, error)

SetStaticFeeParameters is a paid mutator transaction binding the contract method 0x6653851a.

Solidity: function setStaticFeeParameters(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator) returns()

func (*ILBPairTransactor) Swap

func (_ILBPair *ILBPairTransactor) Swap(opts *bind.TransactOpts, swapForY bool, to common.Address) (*types.Transaction, error)

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

Solidity: function swap(bool swapForY, address to) returns(bytes32 amountsOut)

type ILBPairTransactorRaw

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

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

func (*ILBPairTransactorRaw) Transact

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

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

func (*ILBPairTransactorRaw) Transfer

func (_ILBPair *ILBPairTransactorRaw) 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 ILBPairTransactorSession

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

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

func (*ILBPairTransactorSession) ApproveForAll

func (_ILBPair *ILBPairTransactorSession) ApproveForAll(spender common.Address, approved bool) (*types.Transaction, error)

ApproveForAll is a paid mutator transaction binding the contract method 0xe584b654.

Solidity: function approveForAll(address spender, bool approved) returns()

func (*ILBPairTransactorSession) BatchTransferFrom

func (_ILBPair *ILBPairTransactorSession) BatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, amounts []*big.Int) (*types.Transaction, error)

BatchTransferFrom is a paid mutator transaction binding the contract method 0x17fad7fc.

Solidity: function batchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts) returns()

func (*ILBPairTransactorSession) Burn

func (_ILBPair *ILBPairTransactorSession) Burn(from common.Address, to common.Address, ids []*big.Int, amountsToBurn []*big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xc9939f5e.

Solidity: function burn(address from, address to, uint256[] ids, uint256[] amountsToBurn) returns(bytes32[] amounts)

func (*ILBPairTransactorSession) CollectProtocolFees

func (_ILBPair *ILBPairTransactorSession) CollectProtocolFees() (*types.Transaction, error)

CollectProtocolFees is a paid mutator transaction binding the contract method 0xa1af5b9a.

Solidity: function collectProtocolFees() returns(bytes32 collectedProtocolFees)

func (*ILBPairTransactorSession) FlashLoan

func (_ILBPair *ILBPairTransactorSession) FlashLoan(receiver common.Address, amounts [32]byte, data []byte) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xea3446bf.

Solidity: function flashLoan(address receiver, bytes32 amounts, bytes data) returns()

func (*ILBPairTransactorSession) ForceDecay

func (_ILBPair *ILBPairTransactorSession) ForceDecay() (*types.Transaction, error)

ForceDecay is a paid mutator transaction binding the contract method 0xd3b9fbe4.

Solidity: function forceDecay() returns()

func (*ILBPairTransactorSession) IncreaseOracleLength

func (_ILBPair *ILBPairTransactorSession) IncreaseOracleLength(newLength uint16) (*types.Transaction, error)

IncreaseOracleLength is a paid mutator transaction binding the contract method 0xc7bd6586.

Solidity: function increaseOracleLength(uint16 newLength) returns()

func (*ILBPairTransactorSession) Initialize

func (_ILBPair *ILBPairTransactorSession) Initialize(baseFactor uint16, filterPeriod uint16, decayPeriod uint16, reductionFactor uint16, variableFeeControl *big.Int, protocolShare uint16, maxVolatilityAccumulator *big.Int, activeId *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x47973bff.

Solidity: function initialize(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator, uint24 activeId) returns()

func (*ILBPairTransactorSession) Mint

func (_ILBPair *ILBPairTransactorSession) Mint(to common.Address, liquidityConfigs [][32]byte, refundTo common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x383d15c5.

Solidity: function mint(address to, bytes32[] liquidityConfigs, address refundTo) returns(bytes32 amountsReceived, bytes32 amountsLeft, uint256[] liquidityMinted)

func (*ILBPairTransactorSession) SetStaticFeeParameters

func (_ILBPair *ILBPairTransactorSession) SetStaticFeeParameters(baseFactor uint16, filterPeriod uint16, decayPeriod uint16, reductionFactor uint16, variableFeeControl *big.Int, protocolShare uint16, maxVolatilityAccumulator *big.Int) (*types.Transaction, error)

SetStaticFeeParameters is a paid mutator transaction binding the contract method 0x6653851a.

Solidity: function setStaticFeeParameters(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator) returns()

func (*ILBPairTransactorSession) Swap

func (_ILBPair *ILBPairTransactorSession) Swap(swapForY bool, to common.Address) (*types.Transaction, error)

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

Solidity: function swap(bool swapForY, address to) returns(bytes32 amountsOut)

type ILBPairTransferBatch

type ILBPairTransferBatch struct {
	Sender  common.Address
	From    common.Address
	To      common.Address
	Ids     []*big.Int
	Amounts []*big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ILBPairTransferBatch represents a TransferBatch event raised by the ILBPair contract.

type ILBPairTransferBatchIterator

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

ILBPairTransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the ILBPair contract.

func (*ILBPairTransferBatchIterator) Close

func (it *ILBPairTransferBatchIterator) Close() error

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

func (*ILBPairTransferBatchIterator) Error

func (it *ILBPairTransferBatchIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ILBPairTransferBatchIterator) 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 ILBPairWithdrawnFromBins

type ILBPairWithdrawnFromBins struct {
	Sender  common.Address
	To      common.Address
	Ids     []*big.Int
	Amounts [][32]byte
	Raw     types.Log // Blockchain specific contextual infos
}

ILBPairWithdrawnFromBins represents a WithdrawnFromBins event raised by the ILBPair contract.

type ILBPairWithdrawnFromBinsIterator

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

ILBPairWithdrawnFromBinsIterator is returned from FilterWithdrawnFromBins and is used to iterate over the raw logs and unpacked data for WithdrawnFromBins events raised by the ILBPair contract.

func (*ILBPairWithdrawnFromBinsIterator) Close

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

func (*ILBPairWithdrawnFromBinsIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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