contracts

package
Version: v0.0.0-...-bac2a16 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CounterABI = "" /* 1132-byte string literal not displayed */

CounterABI is the input ABI used to generate the binding from.

Variables

View Source
var CounterBin = "" /* 1092-byte string literal not displayed */

CounterBin is the compiled bytecode used for deploying new contracts.

View Source
var CounterFuncSigs = map[string]string{
	"3a9ebefd": "decrement(uint256)",
	"8ada066e": "getCounter()",
	"7cf5dab0": "increment(uint256)",
	"60fe47b1": "set(uint256)",
}

CounterFuncSigs maps the 4-byte function signature to its string representation.

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.

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.

type CounterDecrement

type CounterDecrement struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

CounterDecrement represents a Decrement event raised by the Counter contract.

type CounterDecrementIterator

type CounterDecrementIterator struct {
	Event *CounterDecrement // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CounterDecrementIterator is returned from FilterDecrement and is used to iterate over the raw logs and unpacked data for Decrement events raised by the Counter contract.

func (*CounterDecrementIterator) Close

func (it *CounterDecrementIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*CounterDecrementIterator) Error

func (it *CounterDecrementIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterDecrementIterator) Next

func (it *CounterDecrementIterator) Next() bool

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.

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.

func (*CounterFilterer) FilterDecrement

func (_Counter *CounterFilterer) FilterDecrement(opts *bind.FilterOpts) (*CounterDecrementIterator, error)

FilterDecrement is a free log retrieval operation binding the contract event 0x32814a5bdfd1b8c3d76c49c54e043d6e8aa93d197a09e16599b567135503f748.

Solidity: event Decrement(uint256 arg0)

func (*CounterFilterer) FilterGetValue

func (_Counter *CounterFilterer) FilterGetValue(opts *bind.FilterOpts) (*CounterGetValueIterator, error)

FilterGetValue is a free log retrieval operation binding the contract event 0xf0282ee95e37b3f7538413a321ff8d12bc72094b9ac8861c5f765f0db3778628.

Solidity: event GetValue(uint256 arg0)

func (*CounterFilterer) FilterIncrement

func (_Counter *CounterFilterer) FilterIncrement(opts *bind.FilterOpts) (*CounterIncrementIterator, error)

FilterIncrement is a free log retrieval operation binding the contract event 0x51af157c2eee40f68107a47a49c32fbbeb0a3c9e5cd37aa56e88e6be92368a81.

Solidity: event Increment(uint256 arg0)

func (*CounterFilterer) ParseDecrement

func (_Counter *CounterFilterer) ParseDecrement(log types.Log) (*CounterDecrement, error)

ParseDecrement is a log parse operation binding the contract event 0x32814a5bdfd1b8c3d76c49c54e043d6e8aa93d197a09e16599b567135503f748.

Solidity: event Decrement(uint256 arg0)

func (*CounterFilterer) ParseGetValue

func (_Counter *CounterFilterer) ParseGetValue(log types.Log) (*CounterGetValue, error)

ParseGetValue is a log parse operation binding the contract event 0xf0282ee95e37b3f7538413a321ff8d12bc72094b9ac8861c5f765f0db3778628.

Solidity: event GetValue(uint256 arg0)

func (*CounterFilterer) ParseIncrement

func (_Counter *CounterFilterer) ParseIncrement(log types.Log) (*CounterIncrement, error)

ParseIncrement is a log parse operation binding the contract event 0x51af157c2eee40f68107a47a49c32fbbeb0a3c9e5cd37aa56e88e6be92368a81.

Solidity: event Increment(uint256 arg0)

func (*CounterFilterer) WatchDecrement

func (_Counter *CounterFilterer) WatchDecrement(opts *bind.WatchOpts, sink chan<- *CounterDecrement) (event.Subscription, error)

WatchDecrement is a free log subscription operation binding the contract event 0x32814a5bdfd1b8c3d76c49c54e043d6e8aa93d197a09e16599b567135503f748.

Solidity: event Decrement(uint256 arg0)

func (*CounterFilterer) WatchGetValue

func (_Counter *CounterFilterer) WatchGetValue(opts *bind.WatchOpts, sink chan<- *CounterGetValue) (event.Subscription, error)

WatchGetValue is a free log subscription operation binding the contract event 0xf0282ee95e37b3f7538413a321ff8d12bc72094b9ac8861c5f765f0db3778628.

Solidity: event GetValue(uint256 arg0)

func (*CounterFilterer) WatchIncrement

func (_Counter *CounterFilterer) WatchIncrement(opts *bind.WatchOpts, sink chan<- *CounterIncrement) (event.Subscription, error)

WatchIncrement is a free log subscription operation binding the contract event 0x51af157c2eee40f68107a47a49c32fbbeb0a3c9e5cd37aa56e88e6be92368a81.

Solidity: event Increment(uint256 arg0)

type CounterGetValue

type CounterGetValue struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

CounterGetValue represents a GetValue event raised by the Counter contract.

type CounterGetValueIterator

type CounterGetValueIterator struct {
	Event *CounterGetValue // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CounterGetValueIterator is returned from FilterGetValue and is used to iterate over the raw logs and unpacked data for GetValue events raised by the Counter contract.

func (*CounterGetValueIterator) Close

func (it *CounterGetValueIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*CounterGetValueIterator) Error

func (it *CounterGetValueIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterGetValueIterator) Next

func (it *CounterGetValueIterator) Next() bool

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.

type CounterIncrement

type CounterIncrement struct {
	Arg0 *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

CounterIncrement represents a Increment event raised by the Counter contract.

type CounterIncrementIterator

type CounterIncrementIterator struct {
	Event *CounterIncrement // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

CounterIncrementIterator is returned from FilterIncrement and is used to iterate over the raw logs and unpacked data for Increment events raised by the Counter contract.

func (*CounterIncrementIterator) Close

func (it *CounterIncrementIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*CounterIncrementIterator) Error

func (it *CounterIncrementIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CounterIncrementIterator) Next

func (it *CounterIncrementIterator) Next() bool

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.

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

func (_Counter *CounterSession) Decrement(value *big.Int) (*types.Transaction, error)

Decrement is a paid mutator transaction binding the contract method 0x3a9ebefd.

Solidity: function decrement(uint256 value) returns()

func (*CounterSession) GetCounter

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

GetCounter is a paid mutator transaction binding the contract method 0x8ada066e.

Solidity: function getCounter() returns()

func (*CounterSession) Increment

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

Increment is a paid mutator transaction binding the contract method 0x7cf5dab0.

Solidity: function increment(uint256 value) returns()

func (*CounterSession) Set

func (_Counter *CounterSession) Set(value *big.Int) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x60fe47b1.

Solidity: function set(uint256 value) 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) Decrement

func (_Counter *CounterTransactor) Decrement(opts *bind.TransactOpts, value *big.Int) (*types.Transaction, error)

Decrement is a paid mutator transaction binding the contract method 0x3a9ebefd.

Solidity: function decrement(uint256 value) returns()

func (*CounterTransactor) GetCounter

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

GetCounter is a paid mutator transaction binding the contract method 0x8ada066e.

Solidity: function getCounter() returns()

func (*CounterTransactor) Increment

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

Increment is a paid mutator transaction binding the contract method 0x7cf5dab0.

Solidity: function increment(uint256 value) returns()

func (*CounterTransactor) Set

func (_Counter *CounterTransactor) Set(opts *bind.TransactOpts, value *big.Int) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x60fe47b1.

Solidity: function set(uint256 value) 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) Decrement

func (_Counter *CounterTransactorSession) Decrement(value *big.Int) (*types.Transaction, error)

Decrement is a paid mutator transaction binding the contract method 0x3a9ebefd.

Solidity: function decrement(uint256 value) returns()

func (*CounterTransactorSession) GetCounter

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

GetCounter is a paid mutator transaction binding the contract method 0x8ada066e.

Solidity: function getCounter() returns()

func (*CounterTransactorSession) Increment

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

Increment is a paid mutator transaction binding the contract method 0x7cf5dab0.

Solidity: function increment(uint256 value) returns()

func (*CounterTransactorSession) Set

func (_Counter *CounterTransactorSession) Set(value *big.Int) (*types.Transaction, error)

Set is a paid mutator transaction binding the contract method 0x60fe47b1.

Solidity: function set(uint256 value) returns()

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL