chainlink_feed

package
v0.0.0-...-b8dc01b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeedABI = FeedMetaData.ABI

FeedABI is the input ABI used to generate the binding from. Deprecated: Use FeedMetaData.ABI instead.

View Source
var FeedMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_aggregator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_accessController\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"int256\",\"name\":\"current\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"roundId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"}],\"name\":\"AnswerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"roundId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"startedBy\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"}],\"name\":\"NewRound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"OwnershipTransferRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accessController\",\"outputs\":[{\"internalType\":\"contractAccessControllerInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"aggregator\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_aggregator\",\"type\":\"address\"}],\"name\":\"confirmAggregator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"description\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_roundId\",\"type\":\"uint256\"}],\"name\":\"getAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint80\",\"name\":\"_roundId\",\"type\":\"uint80\"}],\"name\":\"getRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_roundId\",\"type\":\"uint256\"}],\"name\":\"getTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestAnswer\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestRound\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"phaseAggregators\",\"outputs\":[{\"internalType\":\"contractAggregatorV2V3Interface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"phaseId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_aggregator\",\"type\":\"address\"}],\"name\":\"proposeAggregator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proposedAggregator\",\"outputs\":[{\"internalType\":\"contractAggregatorV2V3Interface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint80\",\"name\":\"_roundId\",\"type\":\"uint80\"}],\"name\":\"proposedGetRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proposedLatestRoundData\",\"outputs\":[{\"internalType\":\"uint80\",\"name\":\"roundId\",\"type\":\"uint80\"},{\"internalType\":\"int256\",\"name\":\"answer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"startedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"updatedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint80\",\"name\":\"answeredInRound\",\"type\":\"uint80\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_accessController\",\"type\":\"address\"}],\"name\":\"setController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

FeedMetaData contains all meta data concerning the Feed contract.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	FeedCaller     // Read-only binding to the contract
	FeedTransactor // Write-only binding to the contract
	FeedFilterer   // Log filterer for contract events
}

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

func NewFeed

func NewFeed(address common.Address, backend bind.ContractBackend) (*Feed, error)

NewFeed creates a new instance of Feed, bound to a specific deployed contract.

type FeedAnswerUpdated

type FeedAnswerUpdated struct {
	Current   *big.Int
	RoundId   *big.Int
	UpdatedAt *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

FeedAnswerUpdated represents a AnswerUpdated event raised by the Feed contract.

type FeedAnswerUpdatedIterator

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

FeedAnswerUpdatedIterator is returned from FilterAnswerUpdated and is used to iterate over the raw logs and unpacked data for AnswerUpdated events raised by the Feed contract.

func (*FeedAnswerUpdatedIterator) Close

func (it *FeedAnswerUpdatedIterator) Close() error

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

func (*FeedAnswerUpdatedIterator) Error

func (it *FeedAnswerUpdatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeedAnswerUpdatedIterator) Next

func (it *FeedAnswerUpdatedIterator) 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 FeedCaller

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

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

func NewFeedCaller

func NewFeedCaller(address common.Address, caller bind.ContractCaller) (*FeedCaller, error)

NewFeedCaller creates a new read-only instance of Feed, bound to a specific deployed contract.

func (*FeedCaller) AccessController

func (_Feed *FeedCaller) AccessController(opts *bind.CallOpts) (common.Address, error)

AccessController is a free data retrieval call binding the contract method 0xbc43cbaf.

Solidity: function accessController() view returns(address)

func (*FeedCaller) Aggregator

func (_Feed *FeedCaller) Aggregator(opts *bind.CallOpts) (common.Address, error)

Aggregator is a free data retrieval call binding the contract method 0x245a7bfc.

Solidity: function aggregator() view returns(address)

func (*FeedCaller) Decimals

func (_Feed *FeedCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*FeedCaller) Description

func (_Feed *FeedCaller) Description(opts *bind.CallOpts) (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*FeedCaller) GetAnswer

func (_Feed *FeedCaller) GetAnswer(opts *bind.CallOpts, _roundId *big.Int) (*big.Int, error)

GetAnswer is a free data retrieval call binding the contract method 0xb5ab58dc.

Solidity: function getAnswer(uint256 _roundId) view returns(int256)

func (*FeedCaller) GetRoundData

func (_Feed *FeedCaller) GetRoundData(opts *bind.CallOpts, _roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

GetRoundData is a free data retrieval call binding the contract method 0x9a6fc8f5.

Solidity: function getRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCaller) GetTimestamp

func (_Feed *FeedCaller) GetTimestamp(opts *bind.CallOpts, _roundId *big.Int) (*big.Int, error)

GetTimestamp is a free data retrieval call binding the contract method 0xb633620c.

Solidity: function getTimestamp(uint256 _roundId) view returns(uint256)

func (*FeedCaller) LatestAnswer

func (_Feed *FeedCaller) LatestAnswer(opts *bind.CallOpts) (*big.Int, error)

LatestAnswer is a free data retrieval call binding the contract method 0x50d25bcd.

Solidity: function latestAnswer() view returns(int256)

func (*FeedCaller) LatestRound

func (_Feed *FeedCaller) LatestRound(opts *bind.CallOpts) (*big.Int, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(uint256)

func (*FeedCaller) LatestRoundData

func (_Feed *FeedCaller) LatestRoundData(opts *bind.CallOpts) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

LatestRoundData is a free data retrieval call binding the contract method 0xfeaf968c.

Solidity: function latestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCaller) LatestTimestamp

func (_Feed *FeedCaller) LatestTimestamp(opts *bind.CallOpts) (*big.Int, error)

LatestTimestamp is a free data retrieval call binding the contract method 0x8205bf6a.

Solidity: function latestTimestamp() view returns(uint256)

func (*FeedCaller) Owner

func (_Feed *FeedCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeedCaller) PhaseAggregators

func (_Feed *FeedCaller) PhaseAggregators(opts *bind.CallOpts, arg0 uint16) (common.Address, error)

PhaseAggregators is a free data retrieval call binding the contract method 0xc1597304.

Solidity: function phaseAggregators(uint16 ) view returns(address)

func (*FeedCaller) PhaseId

func (_Feed *FeedCaller) PhaseId(opts *bind.CallOpts) (uint16, error)

PhaseId is a free data retrieval call binding the contract method 0x58303b10.

Solidity: function phaseId() view returns(uint16)

func (*FeedCaller) ProposedAggregator

func (_Feed *FeedCaller) ProposedAggregator(opts *bind.CallOpts) (common.Address, error)

ProposedAggregator is a free data retrieval call binding the contract method 0xe8c4be30.

Solidity: function proposedAggregator() view returns(address)

func (*FeedCaller) ProposedGetRoundData

func (_Feed *FeedCaller) ProposedGetRoundData(opts *bind.CallOpts, _roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

ProposedGetRoundData is a free data retrieval call binding the contract method 0x6001ac53.

Solidity: function proposedGetRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCaller) ProposedLatestRoundData

func (_Feed *FeedCaller) ProposedLatestRoundData(opts *bind.CallOpts) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

ProposedLatestRoundData is a free data retrieval call binding the contract method 0x8f6b4d91.

Solidity: function proposedLatestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCaller) Version

func (_Feed *FeedCaller) Version(opts *bind.CallOpts) (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint256)

type FeedCallerRaw

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

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

func (*FeedCallerRaw) Call

func (_Feed *FeedCallerRaw) 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 FeedCallerSession

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

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

func (*FeedCallerSession) AccessController

func (_Feed *FeedCallerSession) AccessController() (common.Address, error)

AccessController is a free data retrieval call binding the contract method 0xbc43cbaf.

Solidity: function accessController() view returns(address)

func (*FeedCallerSession) Aggregator

func (_Feed *FeedCallerSession) Aggregator() (common.Address, error)

Aggregator is a free data retrieval call binding the contract method 0x245a7bfc.

Solidity: function aggregator() view returns(address)

func (*FeedCallerSession) Decimals

func (_Feed *FeedCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*FeedCallerSession) Description

func (_Feed *FeedCallerSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*FeedCallerSession) GetAnswer

func (_Feed *FeedCallerSession) GetAnswer(_roundId *big.Int) (*big.Int, error)

GetAnswer is a free data retrieval call binding the contract method 0xb5ab58dc.

Solidity: function getAnswer(uint256 _roundId) view returns(int256)

func (*FeedCallerSession) GetRoundData

func (_Feed *FeedCallerSession) GetRoundData(_roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

GetRoundData is a free data retrieval call binding the contract method 0x9a6fc8f5.

Solidity: function getRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCallerSession) GetTimestamp

func (_Feed *FeedCallerSession) GetTimestamp(_roundId *big.Int) (*big.Int, error)

GetTimestamp is a free data retrieval call binding the contract method 0xb633620c.

Solidity: function getTimestamp(uint256 _roundId) view returns(uint256)

func (*FeedCallerSession) LatestAnswer

func (_Feed *FeedCallerSession) LatestAnswer() (*big.Int, error)

LatestAnswer is a free data retrieval call binding the contract method 0x50d25bcd.

Solidity: function latestAnswer() view returns(int256)

func (*FeedCallerSession) LatestRound

func (_Feed *FeedCallerSession) LatestRound() (*big.Int, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(uint256)

func (*FeedCallerSession) LatestRoundData

func (_Feed *FeedCallerSession) LatestRoundData() (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

LatestRoundData is a free data retrieval call binding the contract method 0xfeaf968c.

Solidity: function latestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCallerSession) LatestTimestamp

func (_Feed *FeedCallerSession) LatestTimestamp() (*big.Int, error)

LatestTimestamp is a free data retrieval call binding the contract method 0x8205bf6a.

Solidity: function latestTimestamp() view returns(uint256)

func (*FeedCallerSession) Owner

func (_Feed *FeedCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeedCallerSession) PhaseAggregators

func (_Feed *FeedCallerSession) PhaseAggregators(arg0 uint16) (common.Address, error)

PhaseAggregators is a free data retrieval call binding the contract method 0xc1597304.

Solidity: function phaseAggregators(uint16 ) view returns(address)

func (*FeedCallerSession) PhaseId

func (_Feed *FeedCallerSession) PhaseId() (uint16, error)

PhaseId is a free data retrieval call binding the contract method 0x58303b10.

Solidity: function phaseId() view returns(uint16)

func (*FeedCallerSession) ProposedAggregator

func (_Feed *FeedCallerSession) ProposedAggregator() (common.Address, error)

ProposedAggregator is a free data retrieval call binding the contract method 0xe8c4be30.

Solidity: function proposedAggregator() view returns(address)

func (*FeedCallerSession) ProposedGetRoundData

func (_Feed *FeedCallerSession) ProposedGetRoundData(_roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

ProposedGetRoundData is a free data retrieval call binding the contract method 0x6001ac53.

Solidity: function proposedGetRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCallerSession) ProposedLatestRoundData

func (_Feed *FeedCallerSession) ProposedLatestRoundData() (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

ProposedLatestRoundData is a free data retrieval call binding the contract method 0x8f6b4d91.

Solidity: function proposedLatestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedCallerSession) Version

func (_Feed *FeedCallerSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint256)

type FeedFilterer

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

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

func NewFeedFilterer

func NewFeedFilterer(address common.Address, filterer bind.ContractFilterer) (*FeedFilterer, error)

NewFeedFilterer creates a new log filterer instance of Feed, bound to a specific deployed contract.

func (*FeedFilterer) FilterAnswerUpdated

func (_Feed *FeedFilterer) FilterAnswerUpdated(opts *bind.FilterOpts, current []*big.Int, roundId []*big.Int) (*FeedAnswerUpdatedIterator, error)

FilterAnswerUpdated is a free log retrieval operation binding the contract event 0x0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f.

Solidity: event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt)

func (*FeedFilterer) FilterNewRound

func (_Feed *FeedFilterer) FilterNewRound(opts *bind.FilterOpts, roundId []*big.Int, startedBy []common.Address) (*FeedNewRoundIterator, error)

FilterNewRound is a free log retrieval operation binding the contract event 0x0109fc6f55cf40689f02fbaad7af7fe7bbac8a3d2186600afc7d3e10cac60271.

Solidity: event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)

func (*FeedFilterer) FilterOwnershipTransferRequested

func (_Feed *FeedFilterer) FilterOwnershipTransferRequested(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*FeedOwnershipTransferRequestedIterator, error)

FilterOwnershipTransferRequested is a free log retrieval operation binding the contract event 0xed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278.

Solidity: event OwnershipTransferRequested(address indexed from, address indexed to)

func (*FeedFilterer) FilterOwnershipTransferred

func (_Feed *FeedFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*FeedOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed from, address indexed to)

func (*FeedFilterer) ParseAnswerUpdated

func (_Feed *FeedFilterer) ParseAnswerUpdated(log types.Log) (*FeedAnswerUpdated, error)

ParseAnswerUpdated is a log parse operation binding the contract event 0x0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f.

Solidity: event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt)

func (*FeedFilterer) ParseNewRound

func (_Feed *FeedFilterer) ParseNewRound(log types.Log) (*FeedNewRound, error)

ParseNewRound is a log parse operation binding the contract event 0x0109fc6f55cf40689f02fbaad7af7fe7bbac8a3d2186600afc7d3e10cac60271.

Solidity: event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)

func (*FeedFilterer) ParseOwnershipTransferRequested

func (_Feed *FeedFilterer) ParseOwnershipTransferRequested(log types.Log) (*FeedOwnershipTransferRequested, error)

ParseOwnershipTransferRequested is a log parse operation binding the contract event 0xed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278.

Solidity: event OwnershipTransferRequested(address indexed from, address indexed to)

func (*FeedFilterer) ParseOwnershipTransferred

func (_Feed *FeedFilterer) ParseOwnershipTransferred(log types.Log) (*FeedOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed from, address indexed to)

func (*FeedFilterer) WatchAnswerUpdated

func (_Feed *FeedFilterer) WatchAnswerUpdated(opts *bind.WatchOpts, sink chan<- *FeedAnswerUpdated, current []*big.Int, roundId []*big.Int) (event.Subscription, error)

WatchAnswerUpdated is a free log subscription operation binding the contract event 0x0559884fd3a460db3073b7fc896cc77986f16e378210ded43186175bf646fc5f.

Solidity: event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt)

func (*FeedFilterer) WatchNewRound

func (_Feed *FeedFilterer) WatchNewRound(opts *bind.WatchOpts, sink chan<- *FeedNewRound, roundId []*big.Int, startedBy []common.Address) (event.Subscription, error)

WatchNewRound is a free log subscription operation binding the contract event 0x0109fc6f55cf40689f02fbaad7af7fe7bbac8a3d2186600afc7d3e10cac60271.

Solidity: event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)

func (*FeedFilterer) WatchOwnershipTransferRequested

func (_Feed *FeedFilterer) WatchOwnershipTransferRequested(opts *bind.WatchOpts, sink chan<- *FeedOwnershipTransferRequested, from []common.Address, to []common.Address) (event.Subscription, error)

WatchOwnershipTransferRequested is a free log subscription operation binding the contract event 0xed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae1278.

Solidity: event OwnershipTransferRequested(address indexed from, address indexed to)

func (*FeedFilterer) WatchOwnershipTransferred

func (_Feed *FeedFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FeedOwnershipTransferred, from []common.Address, to []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed from, address indexed to)

type FeedNewRound

type FeedNewRound struct {
	RoundId   *big.Int
	StartedBy common.Address
	StartedAt *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

FeedNewRound represents a NewRound event raised by the Feed contract.

type FeedNewRoundIterator

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

FeedNewRoundIterator is returned from FilterNewRound and is used to iterate over the raw logs and unpacked data for NewRound events raised by the Feed contract.

func (*FeedNewRoundIterator) Close

func (it *FeedNewRoundIterator) Close() error

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

func (*FeedNewRoundIterator) Error

func (it *FeedNewRoundIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FeedNewRoundIterator) Next

func (it *FeedNewRoundIterator) 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 FeedOwnershipTransferRequested

type FeedOwnershipTransferRequested struct {
	From common.Address
	To   common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

FeedOwnershipTransferRequested represents a OwnershipTransferRequested event raised by the Feed contract.

type FeedOwnershipTransferRequestedIterator

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

FeedOwnershipTransferRequestedIterator is returned from FilterOwnershipTransferRequested and is used to iterate over the raw logs and unpacked data for OwnershipTransferRequested events raised by the Feed contract.

func (*FeedOwnershipTransferRequestedIterator) Close

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

func (*FeedOwnershipTransferRequestedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type FeedOwnershipTransferred struct {
	From common.Address
	To   common.Address
	Raw  types.Log // Blockchain specific contextual infos
}

FeedOwnershipTransferred represents a OwnershipTransferred event raised by the Feed contract.

type FeedOwnershipTransferredIterator

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

FeedOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Feed contract.

func (*FeedOwnershipTransferredIterator) Close

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

func (*FeedOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*FeedRaw) Call

func (_Feed *FeedRaw) 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 (*FeedRaw) Transact

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

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

func (*FeedRaw) Transfer

func (_Feed *FeedRaw) 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 FeedSession

type FeedSession struct {
	Contract     *Feed             // 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
}

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

func (*FeedSession) AcceptOwnership

func (_Feed *FeedSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*FeedSession) AccessController

func (_Feed *FeedSession) AccessController() (common.Address, error)

AccessController is a free data retrieval call binding the contract method 0xbc43cbaf.

Solidity: function accessController() view returns(address)

func (*FeedSession) Aggregator

func (_Feed *FeedSession) Aggregator() (common.Address, error)

Aggregator is a free data retrieval call binding the contract method 0x245a7bfc.

Solidity: function aggregator() view returns(address)

func (*FeedSession) ConfirmAggregator

func (_Feed *FeedSession) ConfirmAggregator(_aggregator common.Address) (*types.Transaction, error)

ConfirmAggregator is a paid mutator transaction binding the contract method 0xa928c096.

Solidity: function confirmAggregator(address _aggregator) returns()

func (*FeedSession) Decimals

func (_Feed *FeedSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*FeedSession) Description

func (_Feed *FeedSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*FeedSession) GetAnswer

func (_Feed *FeedSession) GetAnswer(_roundId *big.Int) (*big.Int, error)

GetAnswer is a free data retrieval call binding the contract method 0xb5ab58dc.

Solidity: function getAnswer(uint256 _roundId) view returns(int256)

func (*FeedSession) GetRoundData

func (_Feed *FeedSession) GetRoundData(_roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

GetRoundData is a free data retrieval call binding the contract method 0x9a6fc8f5.

Solidity: function getRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedSession) GetTimestamp

func (_Feed *FeedSession) GetTimestamp(_roundId *big.Int) (*big.Int, error)

GetTimestamp is a free data retrieval call binding the contract method 0xb633620c.

Solidity: function getTimestamp(uint256 _roundId) view returns(uint256)

func (*FeedSession) LatestAnswer

func (_Feed *FeedSession) LatestAnswer() (*big.Int, error)

LatestAnswer is a free data retrieval call binding the contract method 0x50d25bcd.

Solidity: function latestAnswer() view returns(int256)

func (*FeedSession) LatestRound

func (_Feed *FeedSession) LatestRound() (*big.Int, error)

LatestRound is a free data retrieval call binding the contract method 0x668a0f02.

Solidity: function latestRound() view returns(uint256)

func (*FeedSession) LatestRoundData

func (_Feed *FeedSession) LatestRoundData() (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

LatestRoundData is a free data retrieval call binding the contract method 0xfeaf968c.

Solidity: function latestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedSession) LatestTimestamp

func (_Feed *FeedSession) LatestTimestamp() (*big.Int, error)

LatestTimestamp is a free data retrieval call binding the contract method 0x8205bf6a.

Solidity: function latestTimestamp() view returns(uint256)

func (*FeedSession) Owner

func (_Feed *FeedSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*FeedSession) PhaseAggregators

func (_Feed *FeedSession) PhaseAggregators(arg0 uint16) (common.Address, error)

PhaseAggregators is a free data retrieval call binding the contract method 0xc1597304.

Solidity: function phaseAggregators(uint16 ) view returns(address)

func (*FeedSession) PhaseId

func (_Feed *FeedSession) PhaseId() (uint16, error)

PhaseId is a free data retrieval call binding the contract method 0x58303b10.

Solidity: function phaseId() view returns(uint16)

func (*FeedSession) ProposeAggregator

func (_Feed *FeedSession) ProposeAggregator(_aggregator common.Address) (*types.Transaction, error)

ProposeAggregator is a paid mutator transaction binding the contract method 0xf8a2abd3.

Solidity: function proposeAggregator(address _aggregator) returns()

func (*FeedSession) ProposedAggregator

func (_Feed *FeedSession) ProposedAggregator() (common.Address, error)

ProposedAggregator is a free data retrieval call binding the contract method 0xe8c4be30.

Solidity: function proposedAggregator() view returns(address)

func (*FeedSession) ProposedGetRoundData

func (_Feed *FeedSession) ProposedGetRoundData(_roundId *big.Int) (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

ProposedGetRoundData is a free data retrieval call binding the contract method 0x6001ac53.

Solidity: function proposedGetRoundData(uint80 _roundId) view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedSession) ProposedLatestRoundData

func (_Feed *FeedSession) ProposedLatestRoundData() (struct {
	RoundId         *big.Int
	Answer          *big.Int
	StartedAt       *big.Int
	UpdatedAt       *big.Int
	AnsweredInRound *big.Int
}, error)

ProposedLatestRoundData is a free data retrieval call binding the contract method 0x8f6b4d91.

Solidity: function proposedLatestRoundData() view returns(uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)

func (*FeedSession) SetController

func (_Feed *FeedSession) SetController(_accessController common.Address) (*types.Transaction, error)

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

Solidity: function setController(address _accessController) returns()

func (*FeedSession) TransferOwnership

func (_Feed *FeedSession) TransferOwnership(_to common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _to) returns()

func (*FeedSession) Version

func (_Feed *FeedSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(uint256)

type FeedTransactor

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

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

func NewFeedTransactor

func NewFeedTransactor(address common.Address, transactor bind.ContractTransactor) (*FeedTransactor, error)

NewFeedTransactor creates a new write-only instance of Feed, bound to a specific deployed contract.

func (*FeedTransactor) AcceptOwnership

func (_Feed *FeedTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*FeedTransactor) ConfirmAggregator

func (_Feed *FeedTransactor) ConfirmAggregator(opts *bind.TransactOpts, _aggregator common.Address) (*types.Transaction, error)

ConfirmAggregator is a paid mutator transaction binding the contract method 0xa928c096.

Solidity: function confirmAggregator(address _aggregator) returns()

func (*FeedTransactor) ProposeAggregator

func (_Feed *FeedTransactor) ProposeAggregator(opts *bind.TransactOpts, _aggregator common.Address) (*types.Transaction, error)

ProposeAggregator is a paid mutator transaction binding the contract method 0xf8a2abd3.

Solidity: function proposeAggregator(address _aggregator) returns()

func (*FeedTransactor) SetController

func (_Feed *FeedTransactor) SetController(opts *bind.TransactOpts, _accessController common.Address) (*types.Transaction, error)

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

Solidity: function setController(address _accessController) returns()

func (*FeedTransactor) TransferOwnership

func (_Feed *FeedTransactor) TransferOwnership(opts *bind.TransactOpts, _to common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _to) returns()

type FeedTransactorRaw

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

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

func (*FeedTransactorRaw) Transact

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

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

func (*FeedTransactorRaw) Transfer

func (_Feed *FeedTransactorRaw) 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 FeedTransactorSession

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

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

func (*FeedTransactorSession) AcceptOwnership

func (_Feed *FeedTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*FeedTransactorSession) ConfirmAggregator

func (_Feed *FeedTransactorSession) ConfirmAggregator(_aggregator common.Address) (*types.Transaction, error)

ConfirmAggregator is a paid mutator transaction binding the contract method 0xa928c096.

Solidity: function confirmAggregator(address _aggregator) returns()

func (*FeedTransactorSession) ProposeAggregator

func (_Feed *FeedTransactorSession) ProposeAggregator(_aggregator common.Address) (*types.Transaction, error)

ProposeAggregator is a paid mutator transaction binding the contract method 0xf8a2abd3.

Solidity: function proposeAggregator(address _aggregator) returns()

func (*FeedTransactorSession) SetController

func (_Feed *FeedTransactorSession) SetController(_accessController common.Address) (*types.Transaction, error)

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

Solidity: function setController(address _accessController) returns()

func (*FeedTransactorSession) TransferOwnership

func (_Feed *FeedTransactorSession) TransferOwnership(_to common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address _to) returns()

Jump to

Keyboard shortcuts

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