upkeep_counter_wrapper

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpkeepCounterABI = UpkeepCounterMetaData.ABI
View Source
var UpkeepCounterBin = UpkeepCounterMetaData.Bin
View Source
var UpkeepCounterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_testRange\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_interval\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initialBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lastBlock\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"counter\",\"type\":\"uint256\"}],\"name\":\"PerformingUpkeep\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"checkUpkeep\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"counter\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"eligible\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"interval\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"performData\",\"type\":\"bytes\"}],\"name\":\"performUpkeep\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_testRange\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_interval\",\"type\":\"uint256\"}],\"name\":\"setSpread\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"testRange\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506040516104163803806104168339818101604052604081101561003357600080fd5b50805160209091015160009182556001554360025560038190556004556103b78061005f6000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c80636e04ff0d11610076578063806b984f1161005b578063806b984f14610258578063947a36fb14610260578063d832d92f14610268576100a3565b80636e04ff0d146101445780637f407edf14610235576100a3565b80632cb15864146100a85780634585e33b146100c257806361bc221a146101345780636250a13a1461013c575b600080fd5b6100b0610284565b60408051918252519081900360200190f35b610132600480360360208110156100d857600080fd5b8101906020810181356401000000008111156100f357600080fd5b82018360208201111561010557600080fd5b8035906020019184600183028401116401000000008311171561012757600080fd5b50909250905061028a565b005b6100b06102f8565b6100b06102fe565b6101b46004803603602081101561015a57600080fd5b81019060208101813564010000000081111561017557600080fd5b82018360208201111561018757600080fd5b803590602001918460018302840111640100000000831117156101a957600080fd5b509092509050610304565b60405180831515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156101f95781810151838201526020016101e1565b50505050905090810190601f1680156102265780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6101326004803603604081101561024b57600080fd5b5080359060200135610356565b6100b0610368565b6100b061036e565b610270610374565b604080519115158252519081900360200190f35b60035481565b60035461029657436003555b436002819055600480546001019081905560035460408051328152602081019290925281810193909352606081019190915290517f1313be6f6d6263f115d3e986c9622f868fcda43c8b8e7ef193e7a53d75a4d27c9181900360800190a15050565b60045481565b60005481565b60006060610310610374565b848481818080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250959a92995091975050505050505050565b60009182556001556003819055600455565b60025481565b60015481565b600060035460001415610389575060016103a7565b60005460035443031080156103a45750600154600254430310155b90505b9056fea164736f6c6343000706000a",
}

Functions

This section is empty.

Types

type UpkeepCounter

type UpkeepCounter struct {
	UpkeepCounterCaller
	UpkeepCounterTransactor
	UpkeepCounterFilterer
	// contains filtered or unexported fields
}

func DeployUpkeepCounter

func DeployUpkeepCounter(auth *bind.TransactOpts, backend bind.ContractBackend, _testRange *big.Int, _interval *big.Int) (common.Address, *types.Transaction, *UpkeepCounter, error)

func NewUpkeepCounter

func NewUpkeepCounter(address common.Address, backend bind.ContractBackend) (*UpkeepCounter, error)

func (*UpkeepCounter) Address

func (_UpkeepCounter *UpkeepCounter) Address() common.Address

func (*UpkeepCounter) ParseLog

func (_UpkeepCounter *UpkeepCounter) ParseLog(log types.Log) (generated.AbigenLog, error)

type UpkeepCounterCaller

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

func NewUpkeepCounterCaller

func NewUpkeepCounterCaller(address common.Address, caller bind.ContractCaller) (*UpkeepCounterCaller, error)

func (*UpkeepCounterCaller) CheckUpkeep

func (_UpkeepCounter *UpkeepCounterCaller) CheckUpkeep(opts *bind.CallOpts, data []byte) (bool, []byte, error)

func (*UpkeepCounterCaller) Counter

func (_UpkeepCounter *UpkeepCounterCaller) Counter(opts *bind.CallOpts) (*big.Int, error)

func (*UpkeepCounterCaller) Eligible

func (_UpkeepCounter *UpkeepCounterCaller) Eligible(opts *bind.CallOpts) (bool, error)

func (*UpkeepCounterCaller) InitialBlock

func (_UpkeepCounter *UpkeepCounterCaller) InitialBlock(opts *bind.CallOpts) (*big.Int, error)

func (*UpkeepCounterCaller) Interval

func (_UpkeepCounter *UpkeepCounterCaller) Interval(opts *bind.CallOpts) (*big.Int, error)

func (*UpkeepCounterCaller) LastBlock

func (_UpkeepCounter *UpkeepCounterCaller) LastBlock(opts *bind.CallOpts) (*big.Int, error)

func (*UpkeepCounterCaller) TestRange

func (_UpkeepCounter *UpkeepCounterCaller) TestRange(opts *bind.CallOpts) (*big.Int, error)

type UpkeepCounterCallerRaw

type UpkeepCounterCallerRaw struct {
	Contract *UpkeepCounterCaller
}

func (*UpkeepCounterCallerRaw) Call

func (_UpkeepCounter *UpkeepCounterCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

type UpkeepCounterCallerSession

type UpkeepCounterCallerSession struct {
	Contract *UpkeepCounterCaller
	CallOpts bind.CallOpts
}

func (*UpkeepCounterCallerSession) CheckUpkeep

func (_UpkeepCounter *UpkeepCounterCallerSession) CheckUpkeep(data []byte) (bool, []byte, error)

func (*UpkeepCounterCallerSession) Counter

func (_UpkeepCounter *UpkeepCounterCallerSession) Counter() (*big.Int, error)

func (*UpkeepCounterCallerSession) Eligible

func (_UpkeepCounter *UpkeepCounterCallerSession) Eligible() (bool, error)

func (*UpkeepCounterCallerSession) InitialBlock

func (_UpkeepCounter *UpkeepCounterCallerSession) InitialBlock() (*big.Int, error)

func (*UpkeepCounterCallerSession) Interval

func (_UpkeepCounter *UpkeepCounterCallerSession) Interval() (*big.Int, error)

func (*UpkeepCounterCallerSession) LastBlock

func (_UpkeepCounter *UpkeepCounterCallerSession) LastBlock() (*big.Int, error)

func (*UpkeepCounterCallerSession) TestRange

func (_UpkeepCounter *UpkeepCounterCallerSession) TestRange() (*big.Int, error)

type UpkeepCounterFilterer

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

func NewUpkeepCounterFilterer

func NewUpkeepCounterFilterer(address common.Address, filterer bind.ContractFilterer) (*UpkeepCounterFilterer, error)

func (*UpkeepCounterFilterer) FilterPerformingUpkeep

func (_UpkeepCounter *UpkeepCounterFilterer) FilterPerformingUpkeep(opts *bind.FilterOpts) (*UpkeepCounterPerformingUpkeepIterator, error)

func (*UpkeepCounterFilterer) ParsePerformingUpkeep

func (_UpkeepCounter *UpkeepCounterFilterer) ParsePerformingUpkeep(log types.Log) (*UpkeepCounterPerformingUpkeep, error)

func (*UpkeepCounterFilterer) WatchPerformingUpkeep

func (_UpkeepCounter *UpkeepCounterFilterer) WatchPerformingUpkeep(opts *bind.WatchOpts, sink chan<- *UpkeepCounterPerformingUpkeep) (event.Subscription, error)

type UpkeepCounterInterface

type UpkeepCounterInterface interface {
	CheckUpkeep(opts *bind.CallOpts, data []byte) (bool, []byte, error)

	Counter(opts *bind.CallOpts) (*big.Int, error)

	Eligible(opts *bind.CallOpts) (bool, error)

	InitialBlock(opts *bind.CallOpts) (*big.Int, error)

	Interval(opts *bind.CallOpts) (*big.Int, error)

	LastBlock(opts *bind.CallOpts) (*big.Int, error)

	TestRange(opts *bind.CallOpts) (*big.Int, error)

	PerformUpkeep(opts *bind.TransactOpts, performData []byte) (*types.Transaction, error)

	SetSpread(opts *bind.TransactOpts, _testRange *big.Int, _interval *big.Int) (*types.Transaction, error)

	FilterPerformingUpkeep(opts *bind.FilterOpts) (*UpkeepCounterPerformingUpkeepIterator, error)

	WatchPerformingUpkeep(opts *bind.WatchOpts, sink chan<- *UpkeepCounterPerformingUpkeep) (event.Subscription, error)

	ParsePerformingUpkeep(log types.Log) (*UpkeepCounterPerformingUpkeep, error)

	ParseLog(log types.Log) (generated.AbigenLog, error)

	Address() common.Address
}

type UpkeepCounterPerformingUpkeep

type UpkeepCounterPerformingUpkeep struct {
	From         common.Address
	InitialBlock *big.Int
	LastBlock    *big.Int
	Counter      *big.Int
	Raw          types.Log
}

func (UpkeepCounterPerformingUpkeep) Topic

type UpkeepCounterPerformingUpkeepIterator

type UpkeepCounterPerformingUpkeepIterator struct {
	Event *UpkeepCounterPerformingUpkeep
	// contains filtered or unexported fields
}

func (*UpkeepCounterPerformingUpkeepIterator) Close

func (*UpkeepCounterPerformingUpkeepIterator) Error

func (*UpkeepCounterPerformingUpkeepIterator) Next

type UpkeepCounterRaw

type UpkeepCounterRaw struct {
	Contract *UpkeepCounter
}

func (*UpkeepCounterRaw) Call

func (_UpkeepCounter *UpkeepCounterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

func (*UpkeepCounterRaw) Transact

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

func (*UpkeepCounterRaw) Transfer

func (_UpkeepCounter *UpkeepCounterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type UpkeepCounterSession

type UpkeepCounterSession struct {
	Contract     *UpkeepCounter
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*UpkeepCounterSession) CheckUpkeep

func (_UpkeepCounter *UpkeepCounterSession) CheckUpkeep(data []byte) (bool, []byte, error)

func (*UpkeepCounterSession) Counter

func (_UpkeepCounter *UpkeepCounterSession) Counter() (*big.Int, error)

func (*UpkeepCounterSession) Eligible

func (_UpkeepCounter *UpkeepCounterSession) Eligible() (bool, error)

func (*UpkeepCounterSession) InitialBlock

func (_UpkeepCounter *UpkeepCounterSession) InitialBlock() (*big.Int, error)

func (*UpkeepCounterSession) Interval

func (_UpkeepCounter *UpkeepCounterSession) Interval() (*big.Int, error)

func (*UpkeepCounterSession) LastBlock

func (_UpkeepCounter *UpkeepCounterSession) LastBlock() (*big.Int, error)

func (*UpkeepCounterSession) PerformUpkeep

func (_UpkeepCounter *UpkeepCounterSession) PerformUpkeep(performData []byte) (*types.Transaction, error)

func (*UpkeepCounterSession) SetSpread

func (_UpkeepCounter *UpkeepCounterSession) SetSpread(_testRange *big.Int, _interval *big.Int) (*types.Transaction, error)

func (*UpkeepCounterSession) TestRange

func (_UpkeepCounter *UpkeepCounterSession) TestRange() (*big.Int, error)

type UpkeepCounterTransactor

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

func NewUpkeepCounterTransactor

func NewUpkeepCounterTransactor(address common.Address, transactor bind.ContractTransactor) (*UpkeepCounterTransactor, error)

func (*UpkeepCounterTransactor) PerformUpkeep

func (_UpkeepCounter *UpkeepCounterTransactor) PerformUpkeep(opts *bind.TransactOpts, performData []byte) (*types.Transaction, error)

func (*UpkeepCounterTransactor) SetSpread

func (_UpkeepCounter *UpkeepCounterTransactor) SetSpread(opts *bind.TransactOpts, _testRange *big.Int, _interval *big.Int) (*types.Transaction, error)

type UpkeepCounterTransactorRaw

type UpkeepCounterTransactorRaw struct {
	Contract *UpkeepCounterTransactor
}

func (*UpkeepCounterTransactorRaw) Transact

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

func (*UpkeepCounterTransactorRaw) Transfer

func (_UpkeepCounter *UpkeepCounterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type UpkeepCounterTransactorSession

type UpkeepCounterTransactorSession struct {
	Contract     *UpkeepCounterTransactor
	TransactOpts bind.TransactOpts
}

func (*UpkeepCounterTransactorSession) PerformUpkeep

func (_UpkeepCounter *UpkeepCounterTransactorSession) PerformUpkeep(performData []byte) (*types.Transaction, error)

func (*UpkeepCounterTransactorSession) SetSpread

func (_UpkeepCounter *UpkeepCounterTransactorSession) SetSpread(_testRange *big.Int, _interval *big.Int) (*types.Transaction, error)

Jump to

Keyboard shortcuts

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