FailureTest

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FailureTestABI = FailureTestMetaData.ABI

FailureTestABI is the input ABI used to generate the binding from. Deprecated: Use FailureTestMetaData.ABI instead.

View Source
var FailureTestBin = FailureTestMetaData.Bin

FailureTestBin is the compiled bytecode used for deploying new contracts. Deprecated: Use FailureTestMetaData.Bin instead.

View Source
var FailureTestMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"from\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"to\",\"type\":\"uint256\"}],\"name\":\"numberChanged\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"getNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"}],\"name\":\"storeAndFail\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b5061016c806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80636057361d14610046578063b99f3d721461005b578063f2c9ecd81461006e575b600080fd5b61005961005436600461011d565b610083565b005b61005961006936600461011d565b6100c8565b60005460405190815260200160405180910390f35b600080549082905560408051828152602081018490527f64f52b55f0d87dc11f539f2fe367a83c370795772e3312de727215ce118b8fef910160405180910390a15050565b6100d181610083565b60405162461bcd60e51b815260206004820152601860248201527f74686973206d6574686f6420616c77617973206661696c730000000000000000604482015260640160405180910390fd5b60006020828403121561012f57600080fd5b503591905056fea26469706673582212205f0653d69b95544dde31143743c51b6e438ac63084ed44018d865ccfc3ea7c0164736f6c634300080c0033",
}

FailureTestMetaData contains all meta data concerning the FailureTest contract.

Functions

This section is empty.

Types

type FailureTest

type FailureTest struct {
	FailureTestCaller     // Read-only binding to the contract
	FailureTestTransactor // Write-only binding to the contract
	FailureTestFilterer   // Log filterer for contract events
}

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

func DeployFailureTest

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

DeployFailureTest deploys a new Ethereum contract, binding an instance of FailureTest to it.

func NewFailureTest

func NewFailureTest(address common.Address, backend bind.ContractBackend) (*FailureTest, error)

NewFailureTest creates a new instance of FailureTest, bound to a specific deployed contract.

type FailureTestCaller

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

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

func NewFailureTestCaller

func NewFailureTestCaller(address common.Address, caller bind.ContractCaller) (*FailureTestCaller, error)

NewFailureTestCaller creates a new read-only instance of FailureTest, bound to a specific deployed contract.

func (*FailureTestCaller) GetNumber

func (_FailureTest *FailureTestCaller) GetNumber(opts *bind.CallOpts) (*big.Int, error)

GetNumber is a free data retrieval call binding the contract method 0xf2c9ecd8.

Solidity: function getNumber() view returns(uint256)

type FailureTestCallerRaw

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

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

func (*FailureTestCallerRaw) Call

func (_FailureTest *FailureTestCallerRaw) 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 FailureTestCallerSession

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

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

func (*FailureTestCallerSession) GetNumber

func (_FailureTest *FailureTestCallerSession) GetNumber() (*big.Int, error)

GetNumber is a free data retrieval call binding the contract method 0xf2c9ecd8.

Solidity: function getNumber() view returns(uint256)

type FailureTestFilterer

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

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

func NewFailureTestFilterer

func NewFailureTestFilterer(address common.Address, filterer bind.ContractFilterer) (*FailureTestFilterer, error)

NewFailureTestFilterer creates a new log filterer instance of FailureTest, bound to a specific deployed contract.

func (*FailureTestFilterer) FilterNumberChanged

func (_FailureTest *FailureTestFilterer) FilterNumberChanged(opts *bind.FilterOpts) (*FailureTestNumberChangedIterator, error)

FilterNumberChanged is a free log retrieval operation binding the contract event 0x64f52b55f0d87dc11f539f2fe367a83c370795772e3312de727215ce118b8fef.

Solidity: event numberChanged(uint256 from, uint256 to)

func (*FailureTestFilterer) ParseNumberChanged

func (_FailureTest *FailureTestFilterer) ParseNumberChanged(log types.Log) (*FailureTestNumberChanged, error)

ParseNumberChanged is a log parse operation binding the contract event 0x64f52b55f0d87dc11f539f2fe367a83c370795772e3312de727215ce118b8fef.

Solidity: event numberChanged(uint256 from, uint256 to)

func (*FailureTestFilterer) WatchNumberChanged

func (_FailureTest *FailureTestFilterer) WatchNumberChanged(opts *bind.WatchOpts, sink chan<- *FailureTestNumberChanged) (event.Subscription, error)

WatchNumberChanged is a free log subscription operation binding the contract event 0x64f52b55f0d87dc11f539f2fe367a83c370795772e3312de727215ce118b8fef.

Solidity: event numberChanged(uint256 from, uint256 to)

type FailureTestNumberChanged

type FailureTestNumberChanged struct {
	From *big.Int
	To   *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

FailureTestNumberChanged represents a NumberChanged event raised by the FailureTest contract.

type FailureTestNumberChangedIterator

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

FailureTestNumberChangedIterator is returned from FilterNumberChanged and is used to iterate over the raw logs and unpacked data for NumberChanged events raised by the FailureTest contract.

func (*FailureTestNumberChangedIterator) Close

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

func (*FailureTestNumberChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FailureTestNumberChangedIterator) 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 FailureTestRaw

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

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

func (*FailureTestRaw) Call

func (_FailureTest *FailureTestRaw) 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 (*FailureTestRaw) Transact

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

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

func (*FailureTestRaw) Transfer

func (_FailureTest *FailureTestRaw) 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 FailureTestSession

type FailureTestSession struct {
	Contract     *FailureTest      // 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
}

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

func (*FailureTestSession) GetNumber

func (_FailureTest *FailureTestSession) GetNumber() (*big.Int, error)

GetNumber is a free data retrieval call binding the contract method 0xf2c9ecd8.

Solidity: function getNumber() view returns(uint256)

func (*FailureTestSession) Store

func (_FailureTest *FailureTestSession) Store(num *big.Int) (*types.Transaction, error)

Store is a paid mutator transaction binding the contract method 0x6057361d.

Solidity: function store(uint256 num) returns()

func (*FailureTestSession) StoreAndFail

func (_FailureTest *FailureTestSession) StoreAndFail(num *big.Int) (*types.Transaction, error)

StoreAndFail is a paid mutator transaction binding the contract method 0xb99f3d72.

Solidity: function storeAndFail(uint256 num) returns()

type FailureTestTransactor

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

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

func NewFailureTestTransactor

func NewFailureTestTransactor(address common.Address, transactor bind.ContractTransactor) (*FailureTestTransactor, error)

NewFailureTestTransactor creates a new write-only instance of FailureTest, bound to a specific deployed contract.

func (*FailureTestTransactor) Store

func (_FailureTest *FailureTestTransactor) Store(opts *bind.TransactOpts, num *big.Int) (*types.Transaction, error)

Store is a paid mutator transaction binding the contract method 0x6057361d.

Solidity: function store(uint256 num) returns()

func (*FailureTestTransactor) StoreAndFail

func (_FailureTest *FailureTestTransactor) StoreAndFail(opts *bind.TransactOpts, num *big.Int) (*types.Transaction, error)

StoreAndFail is a paid mutator transaction binding the contract method 0xb99f3d72.

Solidity: function storeAndFail(uint256 num) returns()

type FailureTestTransactorRaw

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

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

func (*FailureTestTransactorRaw) Transact

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

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

func (*FailureTestTransactorRaw) Transfer

func (_FailureTest *FailureTestTransactorRaw) 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 FailureTestTransactorSession

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

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

func (*FailureTestTransactorSession) Store

func (_FailureTest *FailureTestTransactorSession) Store(num *big.Int) (*types.Transaction, error)

Store is a paid mutator transaction binding the contract method 0x6057361d.

Solidity: function store(uint256 num) returns()

func (*FailureTestTransactorSession) StoreAndFail

func (_FailureTest *FailureTestTransactorSession) StoreAndFail(num *big.Int) (*types.Transaction, error)

StoreAndFail is a paid mutator transaction binding the contract method 0xb99f3d72.

Solidity: function storeAndFail(uint256 num) returns()

Jump to

Keyboard shortcuts

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