testvalidator

package
v0.0.0-...-fd3cab2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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: "0x608060405234801561001057600080fd5b50610178806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806311a8f41314610046578063beed9b5114610060578063c4792df4146100a3575b600080fd5b61004e6100c8565b60408051918252519081900360200190f35b61008f6004803603608081101561007657600080fd5b50803590602081013590604081013590606001356100ce565b604080519115158252519081900360200190f35b6100c6600480360360208110156100b957600080fd5b503563ffffffff1661014f565b005b60015490565b6000805a6040805188815260208101889052808201879052606081018690526080810183905290519192507fdb623f4f39d41e75ae1cbe50460c3d1496b6cf9a0db391b7197f82cab2744d21919081900360a00190a1600184905560005463ffffffff165b805a8303101561014257610133565b5060019695505050505050565b6000805463ffffffff191663ffffffff9290921691909117905556fea164736f6c6343000706000a",
}

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