uv2oraclebindings

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Uv2oraclebindingsABI = "" /* 7969-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type FixedPointuq112x112

type FixedPointuq112x112 struct {
	X *big.Int
}

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

type PriceLibraryPriceObservation

type PriceLibraryPriceObservation struct {
	Timestamp              uint32
	PriceCumulativeLast    *big.Int
	EthPriceCumulativeLast *big.Int
}

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

type PriceLibraryTwoWayAveragePrice

type PriceLibraryTwoWayAveragePrice struct {
	PriceAverage    *big.Int
	EthPriceAverage *big.Int
}

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

type Uv2oraclebindings

type Uv2oraclebindings struct {
	Uv2oraclebindingsCaller     // Read-only binding to the contract
	Uv2oraclebindingsTransactor // Write-only binding to the contract
	Uv2oraclebindingsFilterer   // Log filterer for contract events
}

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

func NewUv2oraclebindings

func NewUv2oraclebindings(address common.Address, backend bind.ContractBackend) (*Uv2oraclebindings, error)

NewUv2oraclebindings creates a new instance of Uv2oraclebindings, bound to a specific deployed contract.

type Uv2oraclebindingsCaller

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

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

func NewUv2oraclebindingsCaller

func NewUv2oraclebindingsCaller(address common.Address, caller bind.ContractCaller) (*Uv2oraclebindingsCaller, error)

NewUv2oraclebindingsCaller creates a new read-only instance of Uv2oraclebindings, bound to a specific deployed contract.

func (*Uv2oraclebindingsCaller) CanUpdatePrice

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) CanUpdatePrice(opts *bind.CallOpts, token common.Address) (bool, error)

CanUpdatePrice is a free data retrieval call binding the contract method 0x5acd73d7.

Solidity: function canUpdatePrice(address token) view returns(bool)

func (*Uv2oraclebindingsCaller) CanUpdatePrices

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) CanUpdatePrices(opts *bind.CallOpts, tokens []common.Address) ([]bool, error)

CanUpdatePrices is a free data retrieval call binding the contract method 0x88a14c3c.

Solidity: function canUpdatePrices(address[] tokens) view returns(bool[])

func (*Uv2oraclebindingsCaller) ComputeAverageEthForTokens

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageEthForTokens(opts *bind.CallOpts, tokens []common.Address, tokenAmounts []*big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]*big.Int, error)

ComputeAverageEthForTokens is a free data retrieval call binding the contract method 0x7c906a2a.

Solidity: function computeAverageEthForTokens(address[] tokens, uint256[] tokenAmounts, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144[])

func (*Uv2oraclebindingsCaller) ComputeAverageEthForTokens0

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageEthForTokens0(opts *bind.CallOpts, token common.Address, tokenAmount *big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (*big.Int, error)

ComputeAverageEthForTokens0 is a free data retrieval call binding the contract method 0xbf6dd82e.

Solidity: function computeAverageEthForTokens(address token, uint256 tokenAmount, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144)

func (*Uv2oraclebindingsCaller) ComputeAverageEthPrice

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageEthPrice(opts *bind.CallOpts, token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (FixedPointuq112x112, error)

ComputeAverageEthPrice is a free data retrieval call binding the contract method 0x9691b116.

Solidity: function computeAverageEthPrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224))

func (*Uv2oraclebindingsCaller) ComputeAverageEthPrices

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageEthPrices(opts *bind.CallOpts, tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]FixedPointuq112x112, error)

ComputeAverageEthPrices is a free data retrieval call binding the contract method 0x2d726197.

Solidity: function computeAverageEthPrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224)[])

func (*Uv2oraclebindingsCaller) ComputeAverageTokenPrice

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageTokenPrice(opts *bind.CallOpts, token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (FixedPointuq112x112, error)

ComputeAverageTokenPrice is a free data retrieval call binding the contract method 0x3a9d6535.

Solidity: function computeAverageTokenPrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224))

func (*Uv2oraclebindingsCaller) ComputeAverageTokenPrices

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageTokenPrices(opts *bind.CallOpts, tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]FixedPointuq112x112, error)

ComputeAverageTokenPrices is a free data retrieval call binding the contract method 0xcdee7f6e.

Solidity: function computeAverageTokenPrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224)[])

func (*Uv2oraclebindingsCaller) ComputeAverageTokensForEth

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageTokensForEth(opts *bind.CallOpts, tokens []common.Address, wethAmounts []*big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]*big.Int, error)

ComputeAverageTokensForEth is a free data retrieval call binding the contract method 0x45060060.

Solidity: function computeAverageTokensForEth(address[] tokens, uint256[] wethAmounts, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144[])

func (*Uv2oraclebindingsCaller) ComputeAverageTokensForEth0

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeAverageTokensForEth0(opts *bind.CallOpts, token common.Address, wethAmount *big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (*big.Int, error)

ComputeAverageTokensForEth0 is a free data retrieval call binding the contract method 0x4f2acedf.

Solidity: function computeAverageTokensForEth(address token, uint256 wethAmount, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144)

func (*Uv2oraclebindingsCaller) ComputeTwoWayAveragePrice

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeTwoWayAveragePrice(opts *bind.CallOpts, token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (PriceLibraryTwoWayAveragePrice, error)

ComputeTwoWayAveragePrice is a free data retrieval call binding the contract method 0x57653615.

Solidity: function computeTwoWayAveragePrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224,uint224))

func (*Uv2oraclebindingsCaller) ComputeTwoWayAveragePrices

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) ComputeTwoWayAveragePrices(opts *bind.CallOpts, tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]PriceLibraryTwoWayAveragePrice, error)

ComputeTwoWayAveragePrices is a free data retrieval call binding the contract method 0x768d2c19.

Solidity: function computeTwoWayAveragePrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224,uint224)[])

func (*Uv2oraclebindingsCaller) GetPriceObservationInWindow

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) GetPriceObservationInWindow(opts *bind.CallOpts, token common.Address, priceKey *big.Int) (PriceLibraryPriceObservation, error)

GetPriceObservationInWindow is a free data retrieval call binding the contract method 0xc735e38c.

Solidity: function getPriceObservationInWindow(address token, uint256 priceKey) view returns((uint32,uint224,uint224))

func (*Uv2oraclebindingsCaller) GetPriceObservationsInRange

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) GetPriceObservationsInRange(opts *bind.CallOpts, token common.Address, timeFrom *big.Int, timeTo *big.Int) ([]PriceLibraryPriceObservation, error)

GetPriceObservationsInRange is a free data retrieval call binding the contract method 0xffd97b6f.

Solidity: function getPriceObservationsInRange(address token, uint256 timeFrom, uint256 timeTo) view returns((uint32,uint224,uint224)[] prices)

func (*Uv2oraclebindingsCaller) HasPriceObservationInWindow

func (_Uv2oraclebindings *Uv2oraclebindingsCaller) HasPriceObservationInWindow(opts *bind.CallOpts, token common.Address, priceKey *big.Int) (bool, error)

HasPriceObservationInWindow is a free data retrieval call binding the contract method 0x10bc482a.

Solidity: function hasPriceObservationInWindow(address token, uint256 priceKey) view returns(bool)

type Uv2oraclebindingsCallerRaw

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

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

func (*Uv2oraclebindingsCallerRaw) Call

func (_Uv2oraclebindings *Uv2oraclebindingsCallerRaw) 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 Uv2oraclebindingsCallerSession

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

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

func (*Uv2oraclebindingsCallerSession) CanUpdatePrice

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) CanUpdatePrice(token common.Address) (bool, error)

CanUpdatePrice is a free data retrieval call binding the contract method 0x5acd73d7.

Solidity: function canUpdatePrice(address token) view returns(bool)

func (*Uv2oraclebindingsCallerSession) CanUpdatePrices

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) CanUpdatePrices(tokens []common.Address) ([]bool, error)

CanUpdatePrices is a free data retrieval call binding the contract method 0x88a14c3c.

Solidity: function canUpdatePrices(address[] tokens) view returns(bool[])

func (*Uv2oraclebindingsCallerSession) ComputeAverageEthForTokens

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageEthForTokens(tokens []common.Address, tokenAmounts []*big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]*big.Int, error)

ComputeAverageEthForTokens is a free data retrieval call binding the contract method 0x7c906a2a.

Solidity: function computeAverageEthForTokens(address[] tokens, uint256[] tokenAmounts, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144[])

func (*Uv2oraclebindingsCallerSession) ComputeAverageEthForTokens0

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageEthForTokens0(token common.Address, tokenAmount *big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (*big.Int, error)

ComputeAverageEthForTokens0 is a free data retrieval call binding the contract method 0xbf6dd82e.

Solidity: function computeAverageEthForTokens(address token, uint256 tokenAmount, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144)

func (*Uv2oraclebindingsCallerSession) ComputeAverageEthPrice

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageEthPrice(token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (FixedPointuq112x112, error)

ComputeAverageEthPrice is a free data retrieval call binding the contract method 0x9691b116.

Solidity: function computeAverageEthPrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224))

func (*Uv2oraclebindingsCallerSession) ComputeAverageEthPrices

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageEthPrices(tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]FixedPointuq112x112, error)

ComputeAverageEthPrices is a free data retrieval call binding the contract method 0x2d726197.

Solidity: function computeAverageEthPrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224)[])

func (*Uv2oraclebindingsCallerSession) ComputeAverageTokenPrice

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageTokenPrice(token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (FixedPointuq112x112, error)

ComputeAverageTokenPrice is a free data retrieval call binding the contract method 0x3a9d6535.

Solidity: function computeAverageTokenPrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224))

func (*Uv2oraclebindingsCallerSession) ComputeAverageTokenPrices

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageTokenPrices(tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]FixedPointuq112x112, error)

ComputeAverageTokenPrices is a free data retrieval call binding the contract method 0xcdee7f6e.

Solidity: function computeAverageTokenPrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224)[])

func (*Uv2oraclebindingsCallerSession) ComputeAverageTokensForEth

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageTokensForEth(tokens []common.Address, wethAmounts []*big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]*big.Int, error)

ComputeAverageTokensForEth is a free data retrieval call binding the contract method 0x45060060.

Solidity: function computeAverageTokensForEth(address[] tokens, uint256[] wethAmounts, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144[])

func (*Uv2oraclebindingsCallerSession) ComputeAverageTokensForEth0

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeAverageTokensForEth0(token common.Address, wethAmount *big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (*big.Int, error)

ComputeAverageTokensForEth0 is a free data retrieval call binding the contract method 0x4f2acedf.

Solidity: function computeAverageTokensForEth(address token, uint256 wethAmount, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144)

func (*Uv2oraclebindingsCallerSession) ComputeTwoWayAveragePrice

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeTwoWayAveragePrice(token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (PriceLibraryTwoWayAveragePrice, error)

ComputeTwoWayAveragePrice is a free data retrieval call binding the contract method 0x57653615.

Solidity: function computeTwoWayAveragePrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224,uint224))

func (*Uv2oraclebindingsCallerSession) ComputeTwoWayAveragePrices

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) ComputeTwoWayAveragePrices(tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]PriceLibraryTwoWayAveragePrice, error)

ComputeTwoWayAveragePrices is a free data retrieval call binding the contract method 0x768d2c19.

Solidity: function computeTwoWayAveragePrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224,uint224)[])

func (*Uv2oraclebindingsCallerSession) GetPriceObservationInWindow

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) GetPriceObservationInWindow(token common.Address, priceKey *big.Int) (PriceLibraryPriceObservation, error)

GetPriceObservationInWindow is a free data retrieval call binding the contract method 0xc735e38c.

Solidity: function getPriceObservationInWindow(address token, uint256 priceKey) view returns((uint32,uint224,uint224))

func (*Uv2oraclebindingsCallerSession) GetPriceObservationsInRange

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) GetPriceObservationsInRange(token common.Address, timeFrom *big.Int, timeTo *big.Int) ([]PriceLibraryPriceObservation, error)

GetPriceObservationsInRange is a free data retrieval call binding the contract method 0xffd97b6f.

Solidity: function getPriceObservationsInRange(address token, uint256 timeFrom, uint256 timeTo) view returns((uint32,uint224,uint224)[] prices)

func (*Uv2oraclebindingsCallerSession) HasPriceObservationInWindow

func (_Uv2oraclebindings *Uv2oraclebindingsCallerSession) HasPriceObservationInWindow(token common.Address, priceKey *big.Int) (bool, error)

HasPriceObservationInWindow is a free data retrieval call binding the contract method 0x10bc482a.

Solidity: function hasPriceObservationInWindow(address token, uint256 priceKey) view returns(bool)

type Uv2oraclebindingsFilterer

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

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

func NewUv2oraclebindingsFilterer

func NewUv2oraclebindingsFilterer(address common.Address, filterer bind.ContractFilterer) (*Uv2oraclebindingsFilterer, error)

NewUv2oraclebindingsFilterer creates a new log filterer instance of Uv2oraclebindings, bound to a specific deployed contract.

type Uv2oraclebindingsRaw

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

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

func (*Uv2oraclebindingsRaw) Call

func (_Uv2oraclebindings *Uv2oraclebindingsRaw) 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 (*Uv2oraclebindingsRaw) Transact

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

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

func (*Uv2oraclebindingsRaw) Transfer

func (_Uv2oraclebindings *Uv2oraclebindingsRaw) 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 Uv2oraclebindingsSession

type Uv2oraclebindingsSession struct {
	Contract     *Uv2oraclebindings // 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
}

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

func (*Uv2oraclebindingsSession) CanUpdatePrice

func (_Uv2oraclebindings *Uv2oraclebindingsSession) CanUpdatePrice(token common.Address) (bool, error)

CanUpdatePrice is a free data retrieval call binding the contract method 0x5acd73d7.

Solidity: function canUpdatePrice(address token) view returns(bool)

func (*Uv2oraclebindingsSession) CanUpdatePrices

func (_Uv2oraclebindings *Uv2oraclebindingsSession) CanUpdatePrices(tokens []common.Address) ([]bool, error)

CanUpdatePrices is a free data retrieval call binding the contract method 0x88a14c3c.

Solidity: function canUpdatePrices(address[] tokens) view returns(bool[])

func (*Uv2oraclebindingsSession) ComputeAverageEthForTokens

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageEthForTokens(tokens []common.Address, tokenAmounts []*big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]*big.Int, error)

ComputeAverageEthForTokens is a free data retrieval call binding the contract method 0x7c906a2a.

Solidity: function computeAverageEthForTokens(address[] tokens, uint256[] tokenAmounts, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144[])

func (*Uv2oraclebindingsSession) ComputeAverageEthForTokens0

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageEthForTokens0(token common.Address, tokenAmount *big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (*big.Int, error)

ComputeAverageEthForTokens0 is a free data retrieval call binding the contract method 0xbf6dd82e.

Solidity: function computeAverageEthForTokens(address token, uint256 tokenAmount, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144)

func (*Uv2oraclebindingsSession) ComputeAverageEthPrice

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageEthPrice(token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (FixedPointuq112x112, error)

ComputeAverageEthPrice is a free data retrieval call binding the contract method 0x9691b116.

Solidity: function computeAverageEthPrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224))

func (*Uv2oraclebindingsSession) ComputeAverageEthPrices

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageEthPrices(tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]FixedPointuq112x112, error)

ComputeAverageEthPrices is a free data retrieval call binding the contract method 0x2d726197.

Solidity: function computeAverageEthPrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224)[])

func (*Uv2oraclebindingsSession) ComputeAverageTokenPrice

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageTokenPrice(token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (FixedPointuq112x112, error)

ComputeAverageTokenPrice is a free data retrieval call binding the contract method 0x3a9d6535.

Solidity: function computeAverageTokenPrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224))

func (*Uv2oraclebindingsSession) ComputeAverageTokenPrices

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageTokenPrices(tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]FixedPointuq112x112, error)

ComputeAverageTokenPrices is a free data retrieval call binding the contract method 0xcdee7f6e.

Solidity: function computeAverageTokenPrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224)[])

func (*Uv2oraclebindingsSession) ComputeAverageTokensForEth

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageTokensForEth(tokens []common.Address, wethAmounts []*big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]*big.Int, error)

ComputeAverageTokensForEth is a free data retrieval call binding the contract method 0x45060060.

Solidity: function computeAverageTokensForEth(address[] tokens, uint256[] wethAmounts, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144[])

func (*Uv2oraclebindingsSession) ComputeAverageTokensForEth0

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeAverageTokensForEth0(token common.Address, wethAmount *big.Int, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (*big.Int, error)

ComputeAverageTokensForEth0 is a free data retrieval call binding the contract method 0x4f2acedf.

Solidity: function computeAverageTokensForEth(address token, uint256 wethAmount, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns(uint144)

func (*Uv2oraclebindingsSession) ComputeTwoWayAveragePrice

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeTwoWayAveragePrice(token common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) (PriceLibraryTwoWayAveragePrice, error)

ComputeTwoWayAveragePrice is a free data retrieval call binding the contract method 0x57653615.

Solidity: function computeTwoWayAveragePrice(address token, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224,uint224))

func (*Uv2oraclebindingsSession) ComputeTwoWayAveragePrices

func (_Uv2oraclebindings *Uv2oraclebindingsSession) ComputeTwoWayAveragePrices(tokens []common.Address, minTimeElapsed *big.Int, maxTimeElapsed *big.Int) ([]PriceLibraryTwoWayAveragePrice, error)

ComputeTwoWayAveragePrices is a free data retrieval call binding the contract method 0x768d2c19.

Solidity: function computeTwoWayAveragePrices(address[] tokens, uint256 minTimeElapsed, uint256 maxTimeElapsed) view returns((uint224,uint224)[])

func (*Uv2oraclebindingsSession) GetPriceObservationInWindow

func (_Uv2oraclebindings *Uv2oraclebindingsSession) GetPriceObservationInWindow(token common.Address, priceKey *big.Int) (PriceLibraryPriceObservation, error)

GetPriceObservationInWindow is a free data retrieval call binding the contract method 0xc735e38c.

Solidity: function getPriceObservationInWindow(address token, uint256 priceKey) view returns((uint32,uint224,uint224))

func (*Uv2oraclebindingsSession) GetPriceObservationsInRange

func (_Uv2oraclebindings *Uv2oraclebindingsSession) GetPriceObservationsInRange(token common.Address, timeFrom *big.Int, timeTo *big.Int) ([]PriceLibraryPriceObservation, error)

GetPriceObservationsInRange is a free data retrieval call binding the contract method 0xffd97b6f.

Solidity: function getPriceObservationsInRange(address token, uint256 timeFrom, uint256 timeTo) view returns((uint32,uint224,uint224)[] prices)

func (*Uv2oraclebindingsSession) HasPriceObservationInWindow

func (_Uv2oraclebindings *Uv2oraclebindingsSession) HasPriceObservationInWindow(token common.Address, priceKey *big.Int) (bool, error)

HasPriceObservationInWindow is a free data retrieval call binding the contract method 0x10bc482a.

Solidity: function hasPriceObservationInWindow(address token, uint256 priceKey) view returns(bool)

func (*Uv2oraclebindingsSession) UpdatePrice

func (_Uv2oraclebindings *Uv2oraclebindingsSession) UpdatePrice(token common.Address) (*types.Transaction, error)

UpdatePrice is a paid mutator transaction binding the contract method 0x96e85ced.

Solidity: function updatePrice(address token) returns(bool)

func (*Uv2oraclebindingsSession) UpdatePrices

func (_Uv2oraclebindings *Uv2oraclebindingsSession) UpdatePrices(tokens []common.Address) (*types.Transaction, error)

UpdatePrices is a paid mutator transaction binding the contract method 0x7e5296e0.

Solidity: function updatePrices(address[] tokens) returns(bool[])

type Uv2oraclebindingsTransactor

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

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

func NewUv2oraclebindingsTransactor

func NewUv2oraclebindingsTransactor(address common.Address, transactor bind.ContractTransactor) (*Uv2oraclebindingsTransactor, error)

NewUv2oraclebindingsTransactor creates a new write-only instance of Uv2oraclebindings, bound to a specific deployed contract.

func (*Uv2oraclebindingsTransactor) UpdatePrice

func (_Uv2oraclebindings *Uv2oraclebindingsTransactor) UpdatePrice(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)

UpdatePrice is a paid mutator transaction binding the contract method 0x96e85ced.

Solidity: function updatePrice(address token) returns(bool)

func (*Uv2oraclebindingsTransactor) UpdatePrices

func (_Uv2oraclebindings *Uv2oraclebindingsTransactor) UpdatePrices(opts *bind.TransactOpts, tokens []common.Address) (*types.Transaction, error)

UpdatePrices is a paid mutator transaction binding the contract method 0x7e5296e0.

Solidity: function updatePrices(address[] tokens) returns(bool[])

type Uv2oraclebindingsTransactorRaw

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

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

func (*Uv2oraclebindingsTransactorRaw) Transact

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

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

func (*Uv2oraclebindingsTransactorRaw) Transfer

func (_Uv2oraclebindings *Uv2oraclebindingsTransactorRaw) 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 Uv2oraclebindingsTransactorSession

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

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

func (*Uv2oraclebindingsTransactorSession) UpdatePrice

func (_Uv2oraclebindings *Uv2oraclebindingsTransactorSession) UpdatePrice(token common.Address) (*types.Transaction, error)

UpdatePrice is a paid mutator transaction binding the contract method 0x96e85ced.

Solidity: function updatePrice(address token) returns(bool)

func (*Uv2oraclebindingsTransactorSession) UpdatePrices

func (_Uv2oraclebindings *Uv2oraclebindingsTransactorSession) UpdatePrices(tokens []common.Address) (*types.Transaction, error)

UpdatePrices is a paid mutator transaction binding the contract method 0x7e5296e0.

Solidity: function updatePrices(address[] tokens) returns(bool[])

Jump to

Keyboard shortcuts

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