testcontract

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestcontractABI = TestcontractMetaData.ABI

TestcontractABI is the input ABI used to generate the binding from. Deprecated: Use TestcontractMetaData.ABI instead.

View Source
var TestcontractBin = TestcontractMetaData.Bin

TestcontractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestcontractMetaData.Bin instead.

View Source
var TestcontractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"ErrorNoArgs\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"ErrorOneArg\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EventNoArgs\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"EventOneArg\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"revertNoMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"revertWithMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"revertWithNoArgsError\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"revertWithOneArgError\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"succeedNoEvents\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"succeedOneEvent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506102bc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630d60c8ae14610067578063185c38a4146100715780634740a9ce1461007b5780637050f4c0146100855780639fe554331461008f578063f583dabb14610099575b600080fd5b61006f6100a3565b005b6100796100d5565b005b610083610118565b005b61008d610156565b005b610097610158565b005b6100a1610165565b005b6040517fc1b1c82c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161010d906101fc565b60405180910390fd5b565b602a6040517fac91dbf900000000000000000000000000000000000000000000000000000000815260040161014d919061026b565b60405180910390fd5b565b600061016357600080fd5b565b7fe59bed36a0b9e33df7f92823525e084566de6674a92ed3c1560b217c5e37967d602a604051610195919061026b565b60405180910390a1565b600082825260208201905092915050565b7f4d792072657175697265206d6573736167650000000000000000000000000000600082015250565b60006101e660128361019f565b91506101f1826101b0565b602082019050919050565b60006020820190508181036000830152610215816101d9565b9050919050565b6000819050919050565b6000819050919050565b6000819050919050565b600061025561025061024b8461021c565b610230565b610226565b9050919050565b6102658161023a565b82525050565b6000602082019050610280600083018461025c565b9291505056fea264697066735822122036a0d816724ec37acbc20d4239ac67a94bb0d3e5342382713b073382e88d589c64736f6c63430008110033",
}

TestcontractMetaData contains all meta data concerning the Testcontract contract.

Functions

This section is empty.

Types

type Testcontract

type Testcontract struct {
	TestcontractCaller     // Read-only binding to the contract
	TestcontractTransactor // Write-only binding to the contract
	TestcontractFilterer   // Log filterer for contract events
}

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

func DeployTestcontract

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

DeployTestcontract deploys a new Ethereum contract, binding an instance of Testcontract to it.

func NewTestcontract

func NewTestcontract(address common.Address, backend bind.ContractBackend) (*Testcontract, error)

NewTestcontract creates a new instance of Testcontract, bound to a specific deployed contract.

type TestcontractCaller

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

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

func NewTestcontractCaller

func NewTestcontractCaller(address common.Address, caller bind.ContractCaller) (*TestcontractCaller, error)

NewTestcontractCaller creates a new read-only instance of Testcontract, bound to a specific deployed contract.

type TestcontractCallerRaw

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

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

func (*TestcontractCallerRaw) Call

func (_Testcontract *TestcontractCallerRaw) 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 TestcontractCallerSession

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

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

type TestcontractEventNoArgs

type TestcontractEventNoArgs struct {
	Raw types.Log // Blockchain specific contextual infos
}

TestcontractEventNoArgs represents a EventNoArgs event raised by the Testcontract contract.

type TestcontractEventNoArgsIterator

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

TestcontractEventNoArgsIterator is returned from FilterEventNoArgs and is used to iterate over the raw logs and unpacked data for EventNoArgs events raised by the Testcontract contract.

func (*TestcontractEventNoArgsIterator) Close

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

func (*TestcontractEventNoArgsIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestcontractEventNoArgsIterator) 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 TestcontractEventOneArg

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

TestcontractEventOneArg represents a EventOneArg event raised by the Testcontract contract.

type TestcontractEventOneArgIterator

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

TestcontractEventOneArgIterator is returned from FilterEventOneArg and is used to iterate over the raw logs and unpacked data for EventOneArg events raised by the Testcontract contract.

func (*TestcontractEventOneArgIterator) Close

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

func (*TestcontractEventOneArgIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestcontractEventOneArgIterator) 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 TestcontractFilterer

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

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

func NewTestcontractFilterer

func NewTestcontractFilterer(address common.Address, filterer bind.ContractFilterer) (*TestcontractFilterer, error)

NewTestcontractFilterer creates a new log filterer instance of Testcontract, bound to a specific deployed contract.

func (*TestcontractFilterer) FilterEventNoArgs

func (_Testcontract *TestcontractFilterer) FilterEventNoArgs(opts *bind.FilterOpts) (*TestcontractEventNoArgsIterator, error)

FilterEventNoArgs is a free log retrieval operation binding the contract event 0x688e0b89f9b2b23333f4566d66f2cfaf6bfc278bc1c3a26da937fce2c3c8259a.

Solidity: event EventNoArgs()

func (*TestcontractFilterer) FilterEventOneArg

func (_Testcontract *TestcontractFilterer) FilterEventOneArg(opts *bind.FilterOpts) (*TestcontractEventOneArgIterator, error)

FilterEventOneArg is a free log retrieval operation binding the contract event 0xe59bed36a0b9e33df7f92823525e084566de6674a92ed3c1560b217c5e37967d.

Solidity: event EventOneArg(uint256 number)

func (*TestcontractFilterer) ParseEventNoArgs

func (_Testcontract *TestcontractFilterer) ParseEventNoArgs(log types.Log) (*TestcontractEventNoArgs, error)

ParseEventNoArgs is a log parse operation binding the contract event 0x688e0b89f9b2b23333f4566d66f2cfaf6bfc278bc1c3a26da937fce2c3c8259a.

Solidity: event EventNoArgs()

func (*TestcontractFilterer) ParseEventOneArg

func (_Testcontract *TestcontractFilterer) ParseEventOneArg(log types.Log) (*TestcontractEventOneArg, error)

ParseEventOneArg is a log parse operation binding the contract event 0xe59bed36a0b9e33df7f92823525e084566de6674a92ed3c1560b217c5e37967d.

Solidity: event EventOneArg(uint256 number)

func (*TestcontractFilterer) WatchEventNoArgs

func (_Testcontract *TestcontractFilterer) WatchEventNoArgs(opts *bind.WatchOpts, sink chan<- *TestcontractEventNoArgs) (event.Subscription, error)

WatchEventNoArgs is a free log subscription operation binding the contract event 0x688e0b89f9b2b23333f4566d66f2cfaf6bfc278bc1c3a26da937fce2c3c8259a.

Solidity: event EventNoArgs()

func (*TestcontractFilterer) WatchEventOneArg

func (_Testcontract *TestcontractFilterer) WatchEventOneArg(opts *bind.WatchOpts, sink chan<- *TestcontractEventOneArg) (event.Subscription, error)

WatchEventOneArg is a free log subscription operation binding the contract event 0xe59bed36a0b9e33df7f92823525e084566de6674a92ed3c1560b217c5e37967d.

Solidity: event EventOneArg(uint256 number)

type TestcontractRaw

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

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

func (*TestcontractRaw) Call

func (_Testcontract *TestcontractRaw) 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 (*TestcontractRaw) Transact

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

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

func (*TestcontractRaw) Transfer

func (_Testcontract *TestcontractRaw) 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 TestcontractSession

type TestcontractSession struct {
	Contract     *Testcontract     // 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
}

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

func (*TestcontractSession) RevertNoMessage

func (_Testcontract *TestcontractSession) RevertNoMessage() (*types.Transaction, error)

RevertNoMessage is a paid mutator transaction binding the contract method 0x9fe55433.

Solidity: function revertNoMessage() returns()

func (*TestcontractSession) RevertWithMessage

func (_Testcontract *TestcontractSession) RevertWithMessage() (*types.Transaction, error)

RevertWithMessage is a paid mutator transaction binding the contract method 0x185c38a4.

Solidity: function revertWithMessage() returns()

func (*TestcontractSession) RevertWithNoArgsError

func (_Testcontract *TestcontractSession) RevertWithNoArgsError() (*types.Transaction, error)

RevertWithNoArgsError is a paid mutator transaction binding the contract method 0x0d60c8ae.

Solidity: function revertWithNoArgsError() returns()

func (*TestcontractSession) RevertWithOneArgError

func (_Testcontract *TestcontractSession) RevertWithOneArgError() (*types.Transaction, error)

RevertWithOneArgError is a paid mutator transaction binding the contract method 0x4740a9ce.

Solidity: function revertWithOneArgError() returns()

func (*TestcontractSession) SucceedNoEvents

func (_Testcontract *TestcontractSession) SucceedNoEvents() (*types.Transaction, error)

SucceedNoEvents is a paid mutator transaction binding the contract method 0x7050f4c0.

Solidity: function succeedNoEvents() returns()

func (*TestcontractSession) SucceedOneEvent

func (_Testcontract *TestcontractSession) SucceedOneEvent() (*types.Transaction, error)

SucceedOneEvent is a paid mutator transaction binding the contract method 0xf583dabb.

Solidity: function succeedOneEvent() returns()

type TestcontractTransactor

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

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

func NewTestcontractTransactor

func NewTestcontractTransactor(address common.Address, transactor bind.ContractTransactor) (*TestcontractTransactor, error)

NewTestcontractTransactor creates a new write-only instance of Testcontract, bound to a specific deployed contract.

func (*TestcontractTransactor) RevertNoMessage

func (_Testcontract *TestcontractTransactor) RevertNoMessage(opts *bind.TransactOpts) (*types.Transaction, error)

RevertNoMessage is a paid mutator transaction binding the contract method 0x9fe55433.

Solidity: function revertNoMessage() returns()

func (*TestcontractTransactor) RevertWithMessage

func (_Testcontract *TestcontractTransactor) RevertWithMessage(opts *bind.TransactOpts) (*types.Transaction, error)

RevertWithMessage is a paid mutator transaction binding the contract method 0x185c38a4.

Solidity: function revertWithMessage() returns()

func (*TestcontractTransactor) RevertWithNoArgsError

func (_Testcontract *TestcontractTransactor) RevertWithNoArgsError(opts *bind.TransactOpts) (*types.Transaction, error)

RevertWithNoArgsError is a paid mutator transaction binding the contract method 0x0d60c8ae.

Solidity: function revertWithNoArgsError() returns()

func (*TestcontractTransactor) RevertWithOneArgError

func (_Testcontract *TestcontractTransactor) RevertWithOneArgError(opts *bind.TransactOpts) (*types.Transaction, error)

RevertWithOneArgError is a paid mutator transaction binding the contract method 0x4740a9ce.

Solidity: function revertWithOneArgError() returns()

func (*TestcontractTransactor) SucceedNoEvents

func (_Testcontract *TestcontractTransactor) SucceedNoEvents(opts *bind.TransactOpts) (*types.Transaction, error)

SucceedNoEvents is a paid mutator transaction binding the contract method 0x7050f4c0.

Solidity: function succeedNoEvents() returns()

func (*TestcontractTransactor) SucceedOneEvent

func (_Testcontract *TestcontractTransactor) SucceedOneEvent(opts *bind.TransactOpts) (*types.Transaction, error)

SucceedOneEvent is a paid mutator transaction binding the contract method 0xf583dabb.

Solidity: function succeedOneEvent() returns()

type TestcontractTransactorRaw

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

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

func (*TestcontractTransactorRaw) Transact

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

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

func (*TestcontractTransactorRaw) Transfer

func (_Testcontract *TestcontractTransactorRaw) 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 TestcontractTransactorSession

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

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

func (*TestcontractTransactorSession) RevertNoMessage

func (_Testcontract *TestcontractTransactorSession) RevertNoMessage() (*types.Transaction, error)

RevertNoMessage is a paid mutator transaction binding the contract method 0x9fe55433.

Solidity: function revertNoMessage() returns()

func (*TestcontractTransactorSession) RevertWithMessage

func (_Testcontract *TestcontractTransactorSession) RevertWithMessage() (*types.Transaction, error)

RevertWithMessage is a paid mutator transaction binding the contract method 0x185c38a4.

Solidity: function revertWithMessage() returns()

func (*TestcontractTransactorSession) RevertWithNoArgsError

func (_Testcontract *TestcontractTransactorSession) RevertWithNoArgsError() (*types.Transaction, error)

RevertWithNoArgsError is a paid mutator transaction binding the contract method 0x0d60c8ae.

Solidity: function revertWithNoArgsError() returns()

func (*TestcontractTransactorSession) RevertWithOneArgError

func (_Testcontract *TestcontractTransactorSession) RevertWithOneArgError() (*types.Transaction, error)

RevertWithOneArgError is a paid mutator transaction binding the contract method 0x4740a9ce.

Solidity: function revertWithOneArgError() returns()

func (*TestcontractTransactorSession) SucceedNoEvents

func (_Testcontract *TestcontractTransactorSession) SucceedNoEvents() (*types.Transaction, error)

SucceedNoEvents is a paid mutator transaction binding the contract method 0x7050f4c0.

Solidity: function succeedNoEvents() returns()

func (*TestcontractTransactorSession) SucceedOneEvent

func (_Testcontract *TestcontractTransactorSession) SucceedOneEvent() (*types.Transaction, error)

SucceedOneEvent is a paid mutator transaction binding the contract method 0xf583dabb.

Solidity: function succeedOneEvent() returns()

Jump to

Keyboard shortcuts

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