counter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 12 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\":\"incrementCounter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"f5c5ad83": "decrementCounter()",
		"a87d942c": "getCount()",
		"5b34b966": "incrementCounter()",
	},
	Bin: "0x60806040526000805534801561001457600080fd5b506101e5806100246000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80635b34b96614610046578063a87d942c14610050578063f5c5ad8314610065575b600080fd5b61004e61006d565b005b60005460405190815260200160405180910390f35b61004e610086565b600160008082825461007f9190610098565b9091555050565b600160008082825461007f919061010c565b6000808212827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038413811516156100d2576100d2610180565b827f800000000000000000000000000000000000000000000000000000000000000003841281161561010657610106610180565b50500190565b6000808312837f80000000000000000000000000000000000000000000000000000000000000000183128115161561014657610146610180565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01831381161561017a5761017a610180565b50500390565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212208e6f95b29b6fd0d6e6de152a6d4668686bb1c2027b45a91e7253a56909edb05364736f6c63430008040033",
}

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)

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)

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 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) IncrementCounter

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

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

Solidity: function incrementCounter() 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()

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()

Jump to

Keyboard shortcuts

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