Test

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestABI = TestMetaData.ABI

TestABI is the input ABI used to generate the binding from. Deprecated: Use TestMetaData.ABI instead.

View Source
var TestBin = TestMetaData.Bin

TestBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TestMetaData.Bin instead.

View Source
var TestMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldCount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newCount\",\"type\":\"uint256\"}],\"name\":\"increased\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"count\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"n\",\"type\":\"uint64\"}],\"name\":\"get_blockhash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"get_msg_sender\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"increase\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
	Bin: "0x6080604052610385806100115f395ff3fe60806040526004361061003e575f3560e01c806306661abd14610042578063ac7fde5f1461006c578063cfcc3abe146100a8578063e8927fbc146100d2575b5f80fd5b34801561004d575f80fd5b506100566100dc565b6040516100639190610173565b60405180910390f35b348015610077575f80fd5b50610092600480360381019061008d91906101cd565b6100e1565b60405161009f9190610210565b60405180910390f35b3480156100b3575f80fd5b506100bc6100f5565b6040516100c99190610268565b60405180910390f35b6100da6100fc565b005b5f5481565b5f8167ffffffffffffffff16409050919050565b5f33905090565b5f8081548092919061010d906102ae565b91905055507f61996fe196f72cb598c483e896a1221263a28bb630480aa89495f737d4a8e3df60015f5461014191906102f5565b5f54604051610151929190610328565b60405180910390a1565b5f819050919050565b61016d8161015b565b82525050565b5f6020820190506101865f830184610164565b92915050565b5f80fd5b5f67ffffffffffffffff82169050919050565b6101ac81610190565b81146101b6575f80fd5b50565b5f813590506101c7816101a3565b92915050565b5f602082840312156101e2576101e161018c565b5b5f6101ef848285016101b9565b91505092915050565b5f819050919050565b61020a816101f8565b82525050565b5f6020820190506102235f830184610201565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61025282610229565b9050919050565b61026281610248565b82525050565b5f60208201905061027b5f830184610259565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6102b88261015b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036102ea576102e9610281565b5b600182019050919050565b5f6102ff8261015b565b915061030a8361015b565b925082820390508181111561032257610321610281565b5b92915050565b5f60408201905061033b5f830185610164565b6103486020830184610164565b939250505056fea2646970667358221220c07b6902dac89c1059e217782116d585a01b2fa0ef6d890c01ca5bdde24fcd5f64736f6c63430008190033",
}

TestMetaData contains all meta data concerning the Test contract.

Functions

This section is empty.

Types

type Test

type Test struct {
	TestCaller     // Read-only binding to the contract
	TestTransactor // Write-only binding to the contract
	TestFilterer   // Log filterer for contract events
}

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

func DeployTest

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

DeployTest deploys a new Ethereum contract, binding an instance of Test to it.

func NewTest

func NewTest(address common.Address, backend bind.ContractBackend) (*Test, error)

NewTest creates a new instance of Test, bound to a specific deployed contract.

type TestCaller

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

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

func NewTestCaller

func NewTestCaller(address common.Address, caller bind.ContractCaller) (*TestCaller, error)

NewTestCaller creates a new read-only instance of Test, bound to a specific deployed contract.

func (*TestCaller) Count

func (_Test *TestCaller) Count(opts *bind.CallOpts) (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*TestCaller) GetBlockhash

func (_Test *TestCaller) GetBlockhash(opts *bind.CallOpts, n uint64) ([32]byte, error)

GetBlockhash is a free data retrieval call binding the contract method 0xac7fde5f.

Solidity: function get_blockhash(uint64 n) view returns(bytes32)

func (*TestCaller) GetMsgSender

func (_Test *TestCaller) GetMsgSender(opts *bind.CallOpts) (common.Address, error)

GetMsgSender is a free data retrieval call binding the contract method 0xcfcc3abe.

Solidity: function get_msg_sender() view returns(address)

type TestCallerRaw

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

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

func (*TestCallerRaw) Call

func (_Test *TestCallerRaw) 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 TestCallerSession

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

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

func (*TestCallerSession) Count

func (_Test *TestCallerSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*TestCallerSession) GetBlockhash

func (_Test *TestCallerSession) GetBlockhash(n uint64) ([32]byte, error)

GetBlockhash is a free data retrieval call binding the contract method 0xac7fde5f.

Solidity: function get_blockhash(uint64 n) view returns(bytes32)

func (*TestCallerSession) GetMsgSender

func (_Test *TestCallerSession) GetMsgSender() (common.Address, error)

GetMsgSender is a free data retrieval call binding the contract method 0xcfcc3abe.

Solidity: function get_msg_sender() view returns(address)

type TestFilterer

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

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

func NewTestFilterer

func NewTestFilterer(address common.Address, filterer bind.ContractFilterer) (*TestFilterer, error)

NewTestFilterer creates a new log filterer instance of Test, bound to a specific deployed contract.

func (*TestFilterer) FilterIncreased

func (_Test *TestFilterer) FilterIncreased(opts *bind.FilterOpts) (*TestIncreasedIterator, error)

FilterIncreased is a free log retrieval operation binding the contract event 0x61996fe196f72cb598c483e896a1221263a28bb630480aa89495f737d4a8e3df.

Solidity: event increased(uint256 oldCount, uint256 newCount)

func (*TestFilterer) ParseIncreased

func (_Test *TestFilterer) ParseIncreased(log types.Log) (*TestIncreased, error)

ParseIncreased is a log parse operation binding the contract event 0x61996fe196f72cb598c483e896a1221263a28bb630480aa89495f737d4a8e3df.

Solidity: event increased(uint256 oldCount, uint256 newCount)

func (*TestFilterer) WatchIncreased

func (_Test *TestFilterer) WatchIncreased(opts *bind.WatchOpts, sink chan<- *TestIncreased) (event.Subscription, error)

WatchIncreased is a free log subscription operation binding the contract event 0x61996fe196f72cb598c483e896a1221263a28bb630480aa89495f737d4a8e3df.

Solidity: event increased(uint256 oldCount, uint256 newCount)

type TestIncreased

type TestIncreased struct {
	OldCount *big.Int
	NewCount *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

TestIncreased represents a Increased event raised by the Test contract.

type TestIncreasedIterator

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

TestIncreasedIterator is returned from FilterIncreased and is used to iterate over the raw logs and unpacked data for Increased events raised by the Test contract.

func (*TestIncreasedIterator) Close

func (it *TestIncreasedIterator) Close() error

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

func (*TestIncreasedIterator) Error

func (it *TestIncreasedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TestIncreasedIterator) Next

func (it *TestIncreasedIterator) 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 TestRaw

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

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

func (*TestRaw) Call

func (_Test *TestRaw) 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 (*TestRaw) Transact

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

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

func (*TestRaw) Transfer

func (_Test *TestRaw) 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 TestSession

type TestSession struct {
	Contract     *Test             // 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
}

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

func (*TestSession) Count

func (_Test *TestSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*TestSession) GetBlockhash

func (_Test *TestSession) GetBlockhash(n uint64) ([32]byte, error)

GetBlockhash is a free data retrieval call binding the contract method 0xac7fde5f.

Solidity: function get_blockhash(uint64 n) view returns(bytes32)

func (*TestSession) GetMsgSender

func (_Test *TestSession) GetMsgSender() (common.Address, error)

GetMsgSender is a free data retrieval call binding the contract method 0xcfcc3abe.

Solidity: function get_msg_sender() view returns(address)

func (*TestSession) Increase

func (_Test *TestSession) Increase() (*types.Transaction, error)

Increase is a paid mutator transaction binding the contract method 0xe8927fbc.

Solidity: function increase() payable returns()

type TestTransactor

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

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

func NewTestTransactor

func NewTestTransactor(address common.Address, transactor bind.ContractTransactor) (*TestTransactor, error)

NewTestTransactor creates a new write-only instance of Test, bound to a specific deployed contract.

func (*TestTransactor) Increase

func (_Test *TestTransactor) Increase(opts *bind.TransactOpts) (*types.Transaction, error)

Increase is a paid mutator transaction binding the contract method 0xe8927fbc.

Solidity: function increase() payable returns()

type TestTransactorRaw

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

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

func (*TestTransactorRaw) Transact

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

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

func (*TestTransactorRaw) Transfer

func (_Test *TestTransactorRaw) 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 TestTransactorSession

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

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

func (*TestTransactorSession) Increase

func (_Test *TestTransactorSession) Increase() (*types.Transaction, error)

Increase is a paid mutator transaction binding the contract method 0xe8927fbc.

Solidity: function increase() payable returns()

Jump to

Keyboard shortcuts

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