testvalidator

package
v0.0.0-...-e5b78d8 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AggregatorValidatorInterfaceABI = AggregatorValidatorInterfaceMetaData.ABI

AggregatorValidatorInterfaceABI is the input ABI used to generate the binding from. Deprecated: Use AggregatorValidatorInterfaceMetaData.ABI instead.

View Source
var AggregatorValidatorInterfaceMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"previousRoundId\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"previousAnswer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"currentRoundId\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"currentAnswer\",\"type\":\"int256\"}],\"name\":\"validate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AggregatorValidatorInterfaceMetaData contains all meta data concerning the AggregatorValidatorInterface contract.

View Source
var TestValidatorABI = TestValidatorMetaData.ABI

TestValidatorABI is the input ABI used to generate the binding from. Deprecated: Use TestValidatorMetaData.ABI instead.

View Source
var TestValidatorBin = TestValidatorMetaData.Bin

TestValidatorBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestValidatorMetaData.Bin instead.

View Source
var TestValidatorMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousRoundId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"previousAnswer\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"currentRoundId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"int256\",\"name\":\"currentAnswer\",\"type\":\"int256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialGas\",\"type\":\"uint256\"}],\"name\":\"Validated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"latestRoundId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"minGasUse\",\"type\":\"uint32\"}],\"name\":\"setMinGasUse\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"previousRoundId\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"previousAnswer\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"currentRoundId\",\"type\":\"uint256\"},{\"internalType\":\"int256\",\"name\":\"currentAnswer\",\"type\":\"int256\"}],\"name\":\"validate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506101da806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806311a8f41314610046578063beed9b511461005c578063c4792df41461007f575b600080fd5b6001546040519081526020015b60405180910390f35b61006f61006a36600461012e565b6100ab565b6040519015158152602001610053565b6100a961008d366004610160565b6000805463ffffffff191663ffffffff92909216919091179055565b005b6000805a604080518881526020810188905290810186905260608101859052608081018290529091507fdb623f4f39d41e75ae1cbe50460c3d1496b6cf9a0db391b7197f82cab2744d219060a00160405180910390a1600184905560005463ffffffff165b805a61011c908461018d565b10610110575060019695505050505050565b6000806000806080858703121561014457600080fd5b5050823594602084013594506040840135936060013592509050565b60006020828403121561017257600080fd5b813563ffffffff8116811461018657600080fd5b9392505050565b818103818111156101c7577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea164736f6c6343000813000a",
}

TestValidatorMetaData contains all meta data concerning the TestValidator contract.

Functions

This section is empty.

Types

type AggregatorValidatorInterface

type AggregatorValidatorInterface struct {
	AggregatorValidatorInterfaceCaller     // Read-only binding to the contract
	AggregatorValidatorInterfaceTransactor // Write-only binding to the contract
	AggregatorValidatorInterfaceFilterer   // Log filterer for contract events
}

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

func NewAggregatorValidatorInterface

func NewAggregatorValidatorInterface(address common.Address, backend bind.ContractBackend) (*AggregatorValidatorInterface, error)

NewAggregatorValidatorInterface creates a new instance of AggregatorValidatorInterface, bound to a specific deployed contract.

type AggregatorValidatorInterfaceCaller

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

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

func NewAggregatorValidatorInterfaceCaller

func NewAggregatorValidatorInterfaceCaller(address common.Address, caller bind.ContractCaller) (*AggregatorValidatorInterfaceCaller, error)

NewAggregatorValidatorInterfaceCaller creates a new read-only instance of AggregatorValidatorInterface, bound to a specific deployed contract.

type AggregatorValidatorInterfaceCallerRaw

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

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

func (*AggregatorValidatorInterfaceCallerRaw) Call

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceCallerRaw) 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 AggregatorValidatorInterfaceCallerSession

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

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

type AggregatorValidatorInterfaceFilterer

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

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

func NewAggregatorValidatorInterfaceFilterer

func NewAggregatorValidatorInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*AggregatorValidatorInterfaceFilterer, error)

NewAggregatorValidatorInterfaceFilterer creates a new log filterer instance of AggregatorValidatorInterface, bound to a specific deployed contract.

type AggregatorValidatorInterfaceRaw

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

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

func (*AggregatorValidatorInterfaceRaw) Call

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceRaw) 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 (*AggregatorValidatorInterfaceRaw) Transact

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

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

func (*AggregatorValidatorInterfaceRaw) Transfer

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceRaw) 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 AggregatorValidatorInterfaceSession

type AggregatorValidatorInterfaceSession struct {
	Contract     *AggregatorValidatorInterface // 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
}

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

func (*AggregatorValidatorInterfaceSession) Validate

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceSession) Validate(previousRoundId *big.Int, previousAnswer *big.Int, currentRoundId *big.Int, currentAnswer *big.Int) (*types.Transaction, error)

Validate is a paid mutator transaction binding the contract method 0xbeed9b51.

Solidity: function validate(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer) returns(bool)

type AggregatorValidatorInterfaceTransactor

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

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

func NewAggregatorValidatorInterfaceTransactor

func NewAggregatorValidatorInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*AggregatorValidatorInterfaceTransactor, error)

NewAggregatorValidatorInterfaceTransactor creates a new write-only instance of AggregatorValidatorInterface, bound to a specific deployed contract.

func (*AggregatorValidatorInterfaceTransactor) Validate

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceTransactor) Validate(opts *bind.TransactOpts, previousRoundId *big.Int, previousAnswer *big.Int, currentRoundId *big.Int, currentAnswer *big.Int) (*types.Transaction, error)

Validate is a paid mutator transaction binding the contract method 0xbeed9b51.

Solidity: function validate(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer) returns(bool)

type AggregatorValidatorInterfaceTransactorRaw

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

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

func (*AggregatorValidatorInterfaceTransactorRaw) Transact

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

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

func (*AggregatorValidatorInterfaceTransactorRaw) Transfer

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceTransactorRaw) 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 AggregatorValidatorInterfaceTransactorSession

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

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

func (*AggregatorValidatorInterfaceTransactorSession) Validate

func (_AggregatorValidatorInterface *AggregatorValidatorInterfaceTransactorSession) Validate(previousRoundId *big.Int, previousAnswer *big.Int, currentRoundId *big.Int, currentAnswer *big.Int) (*types.Transaction, error)

Validate is a paid mutator transaction binding the contract method 0xbeed9b51.

Solidity: function validate(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer) returns(bool)

type TestValidator

type TestValidator struct {
	TestValidatorCaller     // Read-only binding to the contract
	TestValidatorTransactor // Write-only binding to the contract
	TestValidatorFilterer   // Log filterer for contract events
}

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

func DeployTestValidator

func DeployTestValidator(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TestValidator, error)

DeployTestValidator deploys a new Ethereum contract, binding an instance of TestValidator to it.

func NewTestValidator

func NewTestValidator(address common.Address, backend bind.ContractBackend) (*TestValidator, error)

NewTestValidator creates a new instance of TestValidator, bound to a specific deployed contract.

type TestValidatorCaller

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

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

func NewTestValidatorCaller

func NewTestValidatorCaller(address common.Address, caller bind.ContractCaller) (*TestValidatorCaller, error)

NewTestValidatorCaller creates a new read-only instance of TestValidator, bound to a specific deployed contract.

func (*TestValidatorCaller) LatestRoundId

func (_TestValidator *TestValidatorCaller) LatestRoundId(opts *bind.CallOpts) (*big.Int, error)

LatestRoundId is a free data retrieval call binding the contract method 0x11a8f413.

Solidity: function latestRoundId() view returns(uint256)

type TestValidatorCallerRaw

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

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

func (*TestValidatorCallerRaw) Call

func (_TestValidator *TestValidatorCallerRaw) 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 TestValidatorCallerSession

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

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

func (*TestValidatorCallerSession) LatestRoundId

func (_TestValidator *TestValidatorCallerSession) LatestRoundId() (*big.Int, error)

LatestRoundId is a free data retrieval call binding the contract method 0x11a8f413.

Solidity: function latestRoundId() view returns(uint256)

type TestValidatorFilterer

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

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

func NewTestValidatorFilterer

func NewTestValidatorFilterer(address common.Address, filterer bind.ContractFilterer) (*TestValidatorFilterer, error)

NewTestValidatorFilterer creates a new log filterer instance of TestValidator, bound to a specific deployed contract.

func (*TestValidatorFilterer) FilterValidated

func (_TestValidator *TestValidatorFilterer) FilterValidated(opts *bind.FilterOpts) (*TestValidatorValidatedIterator, error)

FilterValidated is a free log retrieval operation binding the contract event 0xdb623f4f39d41e75ae1cbe50460c3d1496b6cf9a0db391b7197f82cab2744d21.

Solidity: event Validated(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer, uint256 initialGas)

func (*TestValidatorFilterer) ParseValidated

func (_TestValidator *TestValidatorFilterer) ParseValidated(log types.Log) (*TestValidatorValidated, error)

ParseValidated is a log parse operation binding the contract event 0xdb623f4f39d41e75ae1cbe50460c3d1496b6cf9a0db391b7197f82cab2744d21.

Solidity: event Validated(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer, uint256 initialGas)

func (*TestValidatorFilterer) WatchValidated

func (_TestValidator *TestValidatorFilterer) WatchValidated(opts *bind.WatchOpts, sink chan<- *TestValidatorValidated) (event.Subscription, error)

WatchValidated is a free log subscription operation binding the contract event 0xdb623f4f39d41e75ae1cbe50460c3d1496b6cf9a0db391b7197f82cab2744d21.

Solidity: event Validated(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer, uint256 initialGas)

type TestValidatorRaw

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

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

func (*TestValidatorRaw) Call

func (_TestValidator *TestValidatorRaw) 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 (*TestValidatorRaw) Transact

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

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

func (*TestValidatorRaw) Transfer

func (_TestValidator *TestValidatorRaw) 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 TestValidatorSession

type TestValidatorSession struct {
	Contract     *TestValidator    // 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
}

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

func (*TestValidatorSession) LatestRoundId

func (_TestValidator *TestValidatorSession) LatestRoundId() (*big.Int, error)

LatestRoundId is a free data retrieval call binding the contract method 0x11a8f413.

Solidity: function latestRoundId() view returns(uint256)

func (*TestValidatorSession) SetMinGasUse

func (_TestValidator *TestValidatorSession) SetMinGasUse(minGasUse uint32) (*types.Transaction, error)

SetMinGasUse is a paid mutator transaction binding the contract method 0xc4792df4.

Solidity: function setMinGasUse(uint32 minGasUse) returns()

func (*TestValidatorSession) Validate

func (_TestValidator *TestValidatorSession) Validate(previousRoundId *big.Int, previousAnswer *big.Int, currentRoundId *big.Int, currentAnswer *big.Int) (*types.Transaction, error)

Validate is a paid mutator transaction binding the contract method 0xbeed9b51.

Solidity: function validate(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer) returns(bool)

type TestValidatorTransactor

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

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

func NewTestValidatorTransactor

func NewTestValidatorTransactor(address common.Address, transactor bind.ContractTransactor) (*TestValidatorTransactor, error)

NewTestValidatorTransactor creates a new write-only instance of TestValidator, bound to a specific deployed contract.

func (*TestValidatorTransactor) SetMinGasUse

func (_TestValidator *TestValidatorTransactor) SetMinGasUse(opts *bind.TransactOpts, minGasUse uint32) (*types.Transaction, error)

SetMinGasUse is a paid mutator transaction binding the contract method 0xc4792df4.

Solidity: function setMinGasUse(uint32 minGasUse) returns()

func (*TestValidatorTransactor) Validate

func (_TestValidator *TestValidatorTransactor) Validate(opts *bind.TransactOpts, previousRoundId *big.Int, previousAnswer *big.Int, currentRoundId *big.Int, currentAnswer *big.Int) (*types.Transaction, error)

Validate is a paid mutator transaction binding the contract method 0xbeed9b51.

Solidity: function validate(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer) returns(bool)

type TestValidatorTransactorRaw

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

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

func (*TestValidatorTransactorRaw) Transact

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

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

func (*TestValidatorTransactorRaw) Transfer

func (_TestValidator *TestValidatorTransactorRaw) 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 TestValidatorTransactorSession

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

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

func (*TestValidatorTransactorSession) SetMinGasUse

func (_TestValidator *TestValidatorTransactorSession) SetMinGasUse(minGasUse uint32) (*types.Transaction, error)

SetMinGasUse is a paid mutator transaction binding the contract method 0xc4792df4.

Solidity: function setMinGasUse(uint32 minGasUse) returns()

func (*TestValidatorTransactorSession) Validate

func (_TestValidator *TestValidatorTransactorSession) Validate(previousRoundId *big.Int, previousAnswer *big.Int, currentRoundId *big.Int, currentAnswer *big.Int) (*types.Transaction, error)

Validate is a paid mutator transaction binding the contract method 0xbeed9b51.

Solidity: function validate(uint256 previousRoundId, int256 previousAnswer, uint256 currentRoundId, int256 currentAnswer) returns(bool)

type TestValidatorValidated

type TestValidatorValidated struct {
	PreviousRoundId *big.Int
	PreviousAnswer  *big.Int
	CurrentRoundId  *big.Int
	CurrentAnswer   *big.Int
	InitialGas      *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

TestValidatorValidated represents a Validated event raised by the TestValidator contract.

type TestValidatorValidatedIterator

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

TestValidatorValidatedIterator is returned from FilterValidated and is used to iterate over the raw logs and unpacked data for Validated events raised by the TestValidator contract.

func (*TestValidatorValidatedIterator) Close

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

func (*TestValidatorValidatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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