chainlink

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

Install abigen

go install github.com/ethereum/go-ethereum/cmd/abigen@latest

Generate Go types

abigen --abi chainlink.abi --pkg chainlink --type ChainlinkAggregator --out chainlink.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChainlinkAggregatorABI = ChainlinkAggregatorMetaData.ABI

ChainlinkAggregatorABI is the input ABI used to generate the binding from. Deprecated: Use ChainlinkAggregatorMetaData.ABI instead.

View Source
var ChainlinkAggregatorMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"description\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"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\"}]",
}

ChainlinkAggregatorMetaData contains all meta data concerning the ChainlinkAggregator contract.

Functions

This section is empty.

Types

type ChainlinkAggregator

type ChainlinkAggregator struct {
	ChainlinkAggregatorCaller     // Read-only binding to the contract
	ChainlinkAggregatorTransactor // Write-only binding to the contract
	ChainlinkAggregatorFilterer   // Log filterer for contract events
}

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

func NewChainlinkAggregator

func NewChainlinkAggregator(address common.Address, backend bind.ContractBackend) (*ChainlinkAggregator, error)

NewChainlinkAggregator creates a new instance of ChainlinkAggregator, bound to a specific deployed contract.

type ChainlinkAggregatorCaller

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

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

func NewChainlinkAggregatorCaller

func NewChainlinkAggregatorCaller(address common.Address, caller bind.ContractCaller) (*ChainlinkAggregatorCaller, error)

NewChainlinkAggregatorCaller creates a new read-only instance of ChainlinkAggregator, bound to a specific deployed contract.

func (*ChainlinkAggregatorCaller) Decimals

func (_ChainlinkAggregator *ChainlinkAggregatorCaller) 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 (*ChainlinkAggregatorCaller) Description

func (_ChainlinkAggregator *ChainlinkAggregatorCaller) 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 (*ChainlinkAggregatorCaller) LatestRoundData

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

type ChainlinkAggregatorCallerRaw

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

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

func (*ChainlinkAggregatorCallerRaw) Call

func (_ChainlinkAggregator *ChainlinkAggregatorCallerRaw) 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 ChainlinkAggregatorCallerSession

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

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

func (*ChainlinkAggregatorCallerSession) Decimals

func (_ChainlinkAggregator *ChainlinkAggregatorCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ChainlinkAggregatorCallerSession) Description

func (_ChainlinkAggregator *ChainlinkAggregatorCallerSession) Description() (string, error)

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

Solidity: function description() view returns(string)

func (*ChainlinkAggregatorCallerSession) LatestRoundData

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

type ChainlinkAggregatorFilterer

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

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

func NewChainlinkAggregatorFilterer

func NewChainlinkAggregatorFilterer(address common.Address, filterer bind.ContractFilterer) (*ChainlinkAggregatorFilterer, error)

NewChainlinkAggregatorFilterer creates a new log filterer instance of ChainlinkAggregator, bound to a specific deployed contract.

type ChainlinkAggregatorRaw

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

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

func (*ChainlinkAggregatorRaw) Call

func (_ChainlinkAggregator *ChainlinkAggregatorRaw) 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 (*ChainlinkAggregatorRaw) Transact

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

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

func (*ChainlinkAggregatorRaw) Transfer

func (_ChainlinkAggregator *ChainlinkAggregatorRaw) 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 ChainlinkAggregatorSession

type ChainlinkAggregatorSession struct {
	Contract     *ChainlinkAggregator // 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
}

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

func (*ChainlinkAggregatorSession) Decimals

func (_ChainlinkAggregator *ChainlinkAggregatorSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*ChainlinkAggregatorSession) Description

func (_ChainlinkAggregator *ChainlinkAggregatorSession) Description() (string, error)

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

Solidity: function description() view returns(string)

func (*ChainlinkAggregatorSession) LatestRoundData

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

type ChainlinkAggregatorTransactor

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

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

func NewChainlinkAggregatorTransactor

func NewChainlinkAggregatorTransactor(address common.Address, transactor bind.ContractTransactor) (*ChainlinkAggregatorTransactor, error)

NewChainlinkAggregatorTransactor creates a new write-only instance of ChainlinkAggregator, bound to a specific deployed contract.

type ChainlinkAggregatorTransactorRaw

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

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

func (*ChainlinkAggregatorTransactorRaw) Transact

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

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

func (*ChainlinkAggregatorTransactorRaw) Transfer

func (_ChainlinkAggregator *ChainlinkAggregatorTransactorRaw) 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 ChainlinkAggregatorTransactorSession

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

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

Jump to

Keyboard shortcuts

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