Help us shape the future of Go! Take the 2026 Go Developer Survey

TestContractTwo

package
v1.51.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UniqueEventTwoABI = UniqueEventTwoMetaData.ABI

UniqueEventTwoABI is the input ABI used to generate the binding from. Deprecated: Use UniqueEventTwoMetaData.ABI instead.

View Source
var UniqueEventTwoBin = UniqueEventTwoMetaData.Bin

UniqueEventTwoBin is the compiled bytecode used for deploying new contracts. Deprecated: Use UniqueEventTwoMetaData.Bin instead.

View Source
var UniqueEventTwoMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"int256\",\"name\":\"a\",\"type\":\"int256\"},{\"indexed\":true,\"internalType\":\"int256\",\"name\":\"b\",\"type\":\"int256\"}],\"name\":\"NonUniqueEvent\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"x\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"y\",\"type\":\"int256\"}],\"name\":\"executeSecondOperation\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506101f2806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063e31279c514610030575b600080fd5b61004a600480360381019061004591906100df565b610060565b604051610057919061012e565b60405180910390f35b600081837f192aedde7837c0cbfb2275e082ba2391de36cf5a893681e9dac2cced6947614e60405160405180910390a3818361009c9190610178565b905092915050565b600080fd5b6000819050919050565b6100bc816100a9565b81146100c757600080fd5b50565b6000813590506100d9816100b3565b92915050565b600080604083850312156100f6576100f56100a4565b5b6000610104858286016100ca565b9250506020610115858286016100ca565b9150509250929050565b610128816100a9565b82525050565b6000602082019050610143600083018461011f565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610183826100a9565b915061018e836100a9565b9250828201905082811215600083121683821260008412151617156101b6576101b5610149565b5b9291505056fea264697066735822122036206ffb0222909d65d2a872080e677681bc6601dce2b4cfebd9503a1187280964736f6c63430008130033",
}

UniqueEventTwoMetaData contains all meta data concerning the UniqueEventTwo contract.

Functions

This section is empty.

Types

type UniqueEventTwo

type UniqueEventTwo struct {
	UniqueEventTwoCaller     // Read-only binding to the contract
	UniqueEventTwoTransactor // Write-only binding to the contract
	UniqueEventTwoFilterer   // Log filterer for contract events
}

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

func DeployUniqueEventTwo

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

DeployUniqueEventTwo deploys a new Ethereum contract, binding an instance of UniqueEventTwo to it.

func NewUniqueEventTwo

func NewUniqueEventTwo(address common.Address, backend bind.ContractBackend) (*UniqueEventTwo, error)

NewUniqueEventTwo creates a new instance of UniqueEventTwo, bound to a specific deployed contract.

type UniqueEventTwoCaller

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

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

func NewUniqueEventTwoCaller

func NewUniqueEventTwoCaller(address common.Address, caller bind.ContractCaller) (*UniqueEventTwoCaller, error)

NewUniqueEventTwoCaller creates a new read-only instance of UniqueEventTwo, bound to a specific deployed contract.

type UniqueEventTwoCallerRaw

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

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

func (*UniqueEventTwoCallerRaw) Call

func (_UniqueEventTwo *UniqueEventTwoCallerRaw) 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 UniqueEventTwoCallerSession

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

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

type UniqueEventTwoFilterer

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

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

func NewUniqueEventTwoFilterer

func NewUniqueEventTwoFilterer(address common.Address, filterer bind.ContractFilterer) (*UniqueEventTwoFilterer, error)

NewUniqueEventTwoFilterer creates a new log filterer instance of UniqueEventTwo, bound to a specific deployed contract.

func (*UniqueEventTwoFilterer) FilterNonUniqueEvent

func (_UniqueEventTwo *UniqueEventTwoFilterer) FilterNonUniqueEvent(opts *bind.FilterOpts, a []*big.Int, b []*big.Int) (*UniqueEventTwoNonUniqueEventIterator, error)

FilterNonUniqueEvent is a free log retrieval operation binding the contract event 0x192aedde7837c0cbfb2275e082ba2391de36cf5a893681e9dac2cced6947614e.

Solidity: event NonUniqueEvent(int256 indexed a, int256 indexed b)

func (*UniqueEventTwoFilterer) ParseNonUniqueEvent

func (_UniqueEventTwo *UniqueEventTwoFilterer) ParseNonUniqueEvent(log types.Log) (*UniqueEventTwoNonUniqueEvent, error)

ParseNonUniqueEvent is a log parse operation binding the contract event 0x192aedde7837c0cbfb2275e082ba2391de36cf5a893681e9dac2cced6947614e.

Solidity: event NonUniqueEvent(int256 indexed a, int256 indexed b)

func (*UniqueEventTwoFilterer) WatchNonUniqueEvent

func (_UniqueEventTwo *UniqueEventTwoFilterer) WatchNonUniqueEvent(opts *bind.WatchOpts, sink chan<- *UniqueEventTwoNonUniqueEvent, a []*big.Int, b []*big.Int) (event.Subscription, error)

WatchNonUniqueEvent is a free log subscription operation binding the contract event 0x192aedde7837c0cbfb2275e082ba2391de36cf5a893681e9dac2cced6947614e.

Solidity: event NonUniqueEvent(int256 indexed a, int256 indexed b)

type UniqueEventTwoNonUniqueEvent

type UniqueEventTwoNonUniqueEvent struct {
	A   *big.Int
	B   *big.Int
	Raw types.Log // Blockchain specific contextual infos
}

UniqueEventTwoNonUniqueEvent represents a NonUniqueEvent event raised by the UniqueEventTwo contract.

type UniqueEventTwoNonUniqueEventIterator

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

UniqueEventTwoNonUniqueEventIterator is returned from FilterNonUniqueEvent and is used to iterate over the raw logs and unpacked data for NonUniqueEvent events raised by the UniqueEventTwo contract.

func (*UniqueEventTwoNonUniqueEventIterator) Close

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

func (*UniqueEventTwoNonUniqueEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*UniqueEventTwoNonUniqueEventIterator) Next

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 UniqueEventTwoRaw

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

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

func (*UniqueEventTwoRaw) Call

func (_UniqueEventTwo *UniqueEventTwoRaw) 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 (*UniqueEventTwoRaw) Transact

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

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

func (*UniqueEventTwoRaw) Transfer

func (_UniqueEventTwo *UniqueEventTwoRaw) 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 UniqueEventTwoSession

type UniqueEventTwoSession struct {
	Contract     *UniqueEventTwo   // 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
}

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

func (*UniqueEventTwoSession) ExecuteSecondOperation

func (_UniqueEventTwo *UniqueEventTwoSession) ExecuteSecondOperation(x *big.Int, y *big.Int) (*types.Transaction, error)

ExecuteSecondOperation is a paid mutator transaction binding the contract method 0xe31279c5.

Solidity: function executeSecondOperation(int256 x, int256 y) returns(int256)

type UniqueEventTwoTransactor

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

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

func NewUniqueEventTwoTransactor

func NewUniqueEventTwoTransactor(address common.Address, transactor bind.ContractTransactor) (*UniqueEventTwoTransactor, error)

NewUniqueEventTwoTransactor creates a new write-only instance of UniqueEventTwo, bound to a specific deployed contract.

func (*UniqueEventTwoTransactor) ExecuteSecondOperation

func (_UniqueEventTwo *UniqueEventTwoTransactor) ExecuteSecondOperation(opts *bind.TransactOpts, x *big.Int, y *big.Int) (*types.Transaction, error)

ExecuteSecondOperation is a paid mutator transaction binding the contract method 0xe31279c5.

Solidity: function executeSecondOperation(int256 x, int256 y) returns(int256)

type UniqueEventTwoTransactorRaw

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

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

func (*UniqueEventTwoTransactorRaw) Transact

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

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

func (*UniqueEventTwoTransactorRaw) Transfer

func (_UniqueEventTwo *UniqueEventTwoTransactorRaw) 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 UniqueEventTwoTransactorSession

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

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

func (*UniqueEventTwoTransactorSession) ExecuteSecondOperation

func (_UniqueEventTwo *UniqueEventTwoTransactorSession) ExecuteSecondOperation(x *big.Int, y *big.Int) (*types.Transaction, error)

ExecuteSecondOperation is a paid mutator transaction binding the contract method 0xe31279c5.

Solidity: function executeSecondOperation(int256 x, int256 y) returns(int256)

Jump to

Keyboard shortcuts

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