counter

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Code generated by synapse abigen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var Contracts map[string]*compiler.Contract

Contracts are unmarshalled on start

View Source
var CounterABI = CounterMetaData.ABI

CounterABI is the input ABI used to generate the binding from. Deprecated: Use CounterMetaData.ABI instead.

View Source
var CounterBin = CounterMetaData.Bin

CounterBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CounterMetaData.Bin instead.

View Source
var CounterFuncSigs = CounterMetaData.Sigs

Deprecated: Use CounterMetaData.Sigs instead. CounterFuncSigs maps the 4-byte function signature to its string representation.

View Source
var CounterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"decrementCounter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCount\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVitalikCount\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incrementCounter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"vitalikIncrement\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"f5c5ad83": "decrementCounter()",
		"a87d942c": "getCount()",
		"9f6f1ec1": "getVitalikCount()",
		"5b34b966": "incrementCounter()",
		"6c573535": "vitalikIncrement()",
	},
	Bin: "0x608060405260008055600060015534801561001957600080fd5b506102b0806100296000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80639f6f1ec1116100505780639f6f1ec11461007e578063a87d942c14610094578063f5c5ad831461009c57600080fd5b80635b34b9661461006c5780636c57353514610076575b600080fd5b6100746100a4565b005b6100746100bd565b6001545b60405190815260200160405180910390f35b600054610082565b610074610151565b60016000808282546100b69190610163565b9091555050565b3373d8da6bf26964af9d7eed9e03e53415d37aa960451461013e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4f6e6c7920566974616c696b2063616e20636f756e7420627920313000000000604482015260640160405180910390fd5b600a600160008282546100b69190610163565b60016000808282546100b691906101d7565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0384138115161561019d5761019d61024b565b827f80000000000000000000000000000000000000000000000000000000000000000384128116156101d1576101d161024b565b50500190565b6000808312837f8000000000000000000000000000000000000000000000000000000000000000018312811516156102115761021161024b565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0183138116156102455761024561024b565b50500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212201e03c8b68dcbcef6344fae810afa5d485b33bc238c0e8cb1508114b9c0ca702964736f6c63430008040033",
}

CounterMetaData contains all meta data concerning the Counter contract.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	CounterCaller     // Read-only binding to the contract
	CounterTransactor // Write-only binding to the contract
	CounterFilterer   // Log filterer for contract events
}

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

func DeployCounter

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

DeployCounter deploys a new Ethereum contract, binding an instance of Counter to it.

func NewCounter

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

NewCounter creates a new instance of Counter, bound to a specific deployed contract.

type CounterCaller

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

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

func NewCounterCaller

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

NewCounterCaller creates a new read-only instance of Counter, bound to a specific deployed contract.

func (*CounterCaller) GetCount

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

GetCount is a free data retrieval call binding the contract method 0xa87d942c.

Solidity: function getCount() view returns(int256)

func (*CounterCaller) GetVitalikCount added in v0.0.43

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

GetVitalikCount is a free data retrieval call binding the contract method 0x9f6f1ec1.

Solidity: function getVitalikCount() view returns(int256)

type CounterCallerRaw

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

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

func (*CounterCallerRaw) Call

func (_Counter *CounterCallerRaw) 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 CounterCallerSession

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

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

func (*CounterCallerSession) GetCount

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

GetCount is a free data retrieval call binding the contract method 0xa87d942c.

Solidity: function getCount() view returns(int256)

func (*CounterCallerSession) GetVitalikCount added in v0.0.43

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

GetVitalikCount is a free data retrieval call binding the contract method 0x9f6f1ec1.

Solidity: function getVitalikCount() view returns(int256)

type CounterFilterer

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

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

func NewCounterFilterer

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

NewCounterFilterer creates a new log filterer instance of Counter, bound to a specific deployed contract.

type CounterRaw

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

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

func (*CounterRaw) Call

func (_Counter *CounterRaw) 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 (*CounterRaw) Transact

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

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

func (*CounterRaw) Transfer

func (_Counter *CounterRaw) 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 CounterRef added in v0.0.46

type CounterRef struct {
	*Counter
	// contains filtered or unexported fields
}

CounterRef is a bound counter.

func NewCounterRef added in v0.0.46

func NewCounterRef(address common.Address, backend bind.ContractBackend) (*CounterRef, error)

NewCounterRef creates a new test client.

func (CounterRef) Address added in v0.0.46

func (a CounterRef) Address() common.Address

Address gets the address of the contract.

type CounterSession

type CounterSession struct {
	Contract     *Counter          // 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
}

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

func (*CounterSession) DecrementCounter

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

DecrementCounter is a paid mutator transaction binding the contract method 0xf5c5ad83.

Solidity: function decrementCounter() returns()

func (*CounterSession) GetCount

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

GetCount is a free data retrieval call binding the contract method 0xa87d942c.

Solidity: function getCount() view returns(int256)

func (*CounterSession) GetVitalikCount added in v0.0.43

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

GetVitalikCount is a free data retrieval call binding the contract method 0x9f6f1ec1.

Solidity: function getVitalikCount() view returns(int256)

func (*CounterSession) IncrementCounter

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

IncrementCounter is a paid mutator transaction binding the contract method 0x5b34b966.

Solidity: function incrementCounter() returns()

func (*CounterSession) VitalikIncrement added in v0.0.43

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

VitalikIncrement is a paid mutator transaction binding the contract method 0x6c573535.

Solidity: function vitalikIncrement() returns()

type CounterTransactor

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

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

func NewCounterTransactor

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

NewCounterTransactor creates a new write-only instance of Counter, bound to a specific deployed contract.

func (*CounterTransactor) DecrementCounter

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

DecrementCounter is a paid mutator transaction binding the contract method 0xf5c5ad83.

Solidity: function decrementCounter() returns()

func (*CounterTransactor) IncrementCounter

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

IncrementCounter is a paid mutator transaction binding the contract method 0x5b34b966.

Solidity: function incrementCounter() returns()

func (*CounterTransactor) VitalikIncrement added in v0.0.43

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

VitalikIncrement is a paid mutator transaction binding the contract method 0x6c573535.

Solidity: function vitalikIncrement() returns()

type CounterTransactorRaw

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

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

func (*CounterTransactorRaw) Transact

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

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

func (*CounterTransactorRaw) Transfer

func (_Counter *CounterTransactorRaw) 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 CounterTransactorSession

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

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

func (*CounterTransactorSession) DecrementCounter

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

DecrementCounter is a paid mutator transaction binding the contract method 0xf5c5ad83.

Solidity: function decrementCounter() returns()

func (*CounterTransactorSession) IncrementCounter

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

IncrementCounter is a paid mutator transaction binding the contract method 0x5b34b966.

Solidity: function incrementCounter() returns()

func (*CounterTransactorSession) VitalikIncrement added in v0.0.43

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

VitalikIncrement is a paid mutator transaction binding the contract method 0x6c573535.

Solidity: function vitalikIncrement() returns()

Jump to

Keyboard shortcuts

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