counter

package
v2.15.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CounterABI = CounterMetaData.ABI
View Source
var CounterBin = CounterMetaData.Bin
View Source
var CounterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"AlwaysRevert\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"alwaysRevert\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"alwaysRevertWithString\",\"outputs\":[],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"count\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"increment\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60806040526000805534801561001457600080fd5b506101af806100246000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c8063a7bc8cbc11610050578063a7bc8cbc14610091578063d09de08a14610099578063d826f88f146100a157600080fd5b806306661abd1461006c5780639fb3785314610087575b600080fd5b61007560005481565b60405190815260200160405180910390f35b61008f6100aa565b005b61008f6100dc565b610075610142565b61008f60008055565b6040517f8bba4aff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f616c776179732072657665727400000000000000000000000000000000000000604482015260640160405180910390fd5b600060016000808282546101569190610163565b9091555050600054919050565b6000821982111561019d577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50019056fea164736f6c6343000806000a",
}

Functions

This section is empty.

Types

type Counter

type Counter struct {
	CounterCaller
	CounterTransactor
	CounterFilterer
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter(address common.Address, backend bind.ContractBackend) (*Counter, error)

func (*Counter) Address

func (_Counter *Counter) Address() common.Address

type CounterCaller

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

func NewCounterCaller

func NewCounterCaller(address common.Address, caller bind.ContractCaller) (*CounterCaller, error)

func (*CounterCaller) AlwaysRevert

func (_Counter *CounterCaller) AlwaysRevert(opts *bind.CallOpts) error

func (*CounterCaller) AlwaysRevertWithString

func (_Counter *CounterCaller) AlwaysRevertWithString(opts *bind.CallOpts) error

func (*CounterCaller) Count

func (_Counter *CounterCaller) Count(opts *bind.CallOpts) (*big.Int, error)

type CounterCallerRaw

type CounterCallerRaw struct {
	Contract *CounterCaller
}

func (*CounterCallerRaw) Call

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

type CounterCallerSession

type CounterCallerSession struct {
	Contract *CounterCaller
	CallOpts bind.CallOpts
}

func (*CounterCallerSession) AlwaysRevert

func (_Counter *CounterCallerSession) AlwaysRevert() error

func (*CounterCallerSession) AlwaysRevertWithString

func (_Counter *CounterCallerSession) AlwaysRevertWithString() error

func (*CounterCallerSession) Count

func (_Counter *CounterCallerSession) Count() (*big.Int, error)

type CounterFilterer

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

func NewCounterFilterer

func NewCounterFilterer(address common.Address, filterer bind.ContractFilterer) (*CounterFilterer, error)

type CounterInterface

type CounterInterface interface {
	AlwaysRevert(opts *bind.CallOpts) error

	AlwaysRevertWithString(opts *bind.CallOpts) error

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

	Increment(opts *bind.TransactOpts) (*types.Transaction, error)

	Reset(opts *bind.TransactOpts) (*types.Transaction, error)

	Address() common.Address
}

type CounterRaw

type CounterRaw struct {
	Contract *Counter
}

func (*CounterRaw) Call

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

func (*CounterRaw) Transact

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

func (*CounterRaw) Transfer

func (_Counter *CounterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type CounterSession

type CounterSession struct {
	Contract     *Counter
	CallOpts     bind.CallOpts
	TransactOpts bind.TransactOpts
}

func (*CounterSession) AlwaysRevert

func (_Counter *CounterSession) AlwaysRevert() error

func (*CounterSession) AlwaysRevertWithString

func (_Counter *CounterSession) AlwaysRevertWithString() error

func (*CounterSession) Count

func (_Counter *CounterSession) Count() (*big.Int, error)

func (*CounterSession) Increment

func (_Counter *CounterSession) Increment() (*types.Transaction, error)

func (*CounterSession) Reset

func (_Counter *CounterSession) Reset() (*types.Transaction, error)

type CounterTransactor

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

func NewCounterTransactor

func NewCounterTransactor(address common.Address, transactor bind.ContractTransactor) (*CounterTransactor, error)

func (*CounterTransactor) Increment

func (_Counter *CounterTransactor) Increment(opts *bind.TransactOpts) (*types.Transaction, error)

func (*CounterTransactor) Reset

func (_Counter *CounterTransactor) Reset(opts *bind.TransactOpts) (*types.Transaction, error)

type CounterTransactorRaw

type CounterTransactorRaw struct {
	Contract *CounterTransactor
}

func (*CounterTransactorRaw) Transact

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

func (*CounterTransactorRaw) Transfer

func (_Counter *CounterTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

type CounterTransactorSession

type CounterTransactorSession struct {
	Contract     *CounterTransactor
	TransactOpts bind.TransactOpts
}

func (*CounterTransactorSession) Increment

func (_Counter *CounterTransactorSession) Increment() (*types.Transaction, error)

func (*CounterTransactorSession) Reset

func (_Counter *CounterTransactorSession) Reset() (*types.Transaction, error)

Jump to

Keyboard shortcuts

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