geth

package module
v0.0.0-...-0a045f8 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelloABI = HelloMetaData.ABI

HelloABI is the input ABI used to generate the binding from. Deprecated: Use HelloMetaData.ABI instead.

View Source
var HelloBin = HelloMetaData.Bin

HelloBin is the compiled bytecode used for deploying new contracts. Deprecated: Use HelloMetaData.Bin instead.

View Source
var HelloFuncSigs = HelloMetaData.Sigs

Deprecated: Use HelloMetaData.Sigs instead. HelloFuncSigs maps the 4-byte function signature to its string representation.

View Source
var HelloMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_msg\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"getMsg\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_msg\",\"type\":\"string\"}],\"name\":\"setMsg\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Sigs: map[string]string{
		"b5fdeb23": "getMsg()",
		"c4784fd4": "setMsg(string)",
	},
	Bin: "0x608060405234801561001057600080fd5b5060405161054e38038061054e83398101604081905261002f916100e2565b8051610042906000906020840190610049565b5050610202565b828054610055906101b1565b90600052602060002090601f01602090048101928261007757600085556100bd565b82601f1061009057805160ff19168380011785556100bd565b828001600101855582156100bd579182015b828111156100bd5782518255916020019190600101906100a2565b506100c99291506100cd565b5090565b5b808211156100c957600081556001016100ce565b600060208083850312156100f557600080fd5b82516001600160401b038082111561010c57600080fd5b818501915085601f83011261012057600080fd5b815181811115610132576101326101ec565b604051601f8201601f19908116603f0116810190838211818310171561015a5761015a6101ec565b81604052828152888684870101111561017257600080fd5b600093505b828410156101945784840186015181850187015292850192610177565b828411156101a55760008684830101525b98975050505050505050565b600181811c908216806101c557607f821691505b602082108114156101e657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61033d806102116000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063b5fdeb231461003b578063c4784fd414610059575b600080fd5b61004361006e565b6040516100509190610261565b60405180910390f35b61006c6100673660046101b0565b610100565b005b60606000805461007d906102b6565b80601f01602080910402602001604051908101604052809291908181526020018280546100a9906102b6565b80156100f65780601f106100cb576101008083540402835291602001916100f6565b820191906000526020600020905b8154815290600101906020018083116100d957829003601f168201915b5050505050905090565b8051610113906000906020840190610117565b5050565b828054610123906102b6565b90600052602060002090601f016020900481019282610145576000855561018b565b82601f1061015e57805160ff191683800117855561018b565b8280016001018555821561018b579182015b8281111561018b578251825591602001919060010190610170565b5061019792915061019b565b5090565b5b80821115610197576000815560010161019c565b6000602082840312156101c257600080fd5b813567ffffffffffffffff808211156101da57600080fd5b818401915084601f8301126101ee57600080fd5b813581811115610200576102006102f1565b604051601f8201601f19908116603f01168101908382118183101715610228576102286102f1565b8160405282815287602084870101111561024157600080fd5b826020860160208301376000928101602001929092525095945050505050565b600060208083528351808285015260005b8181101561028e57858101830151858201604001528201610272565b818111156102a0576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c908216806102ca57607f821691505b602082108114156102eb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220e2b115cd38ec93b818000188628b87fcd8722ecdbb74c5d885257a0a3baf0afb64736f6c63430008060033",
}

HelloMetaData contains all meta data concerning the Hello contract.

Functions

This section is empty.

Types

type Hello

type Hello struct {
	HelloCaller     // Read-only binding to the contract
	HelloTransactor // Write-only binding to the contract
	HelloFilterer   // Log filterer for contract events
}

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

func DeployHello

func DeployHello(auth *bind.TransactOpts, backend bind.ContractBackend, _msg string) (common.Address, *types.Transaction, *Hello, error)

DeployHello deploys a new Ethereum contract, binding an instance of Hello to it.

func NewHello

func NewHello(address common.Address, backend bind.ContractBackend) (*Hello, error)

NewHello creates a new instance of Hello, bound to a specific deployed contract.

type HelloCaller

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

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

func NewHelloCaller

func NewHelloCaller(address common.Address, caller bind.ContractCaller) (*HelloCaller, error)

NewHelloCaller creates a new read-only instance of Hello, bound to a specific deployed contract.

func (*HelloCaller) GetMsg

func (_Hello *HelloCaller) GetMsg(opts *bind.CallOpts) (string, error)

GetMsg is a free data retrieval call binding the contract method 0xb5fdeb23.

Solidity: function getMsg() view returns(string)

type HelloCallerRaw

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

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

func (*HelloCallerRaw) Call

func (_Hello *HelloCallerRaw) 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 HelloCallerSession

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

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

func (*HelloCallerSession) GetMsg

func (_Hello *HelloCallerSession) GetMsg() (string, error)

GetMsg is a free data retrieval call binding the contract method 0xb5fdeb23.

Solidity: function getMsg() view returns(string)

type HelloFilterer

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

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

func NewHelloFilterer

func NewHelloFilterer(address common.Address, filterer bind.ContractFilterer) (*HelloFilterer, error)

NewHelloFilterer creates a new log filterer instance of Hello, bound to a specific deployed contract.

type HelloRaw

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

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

func (*HelloRaw) Call

func (_Hello *HelloRaw) 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 (*HelloRaw) Transact

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

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

func (*HelloRaw) Transfer

func (_Hello *HelloRaw) 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 HelloSession

type HelloSession struct {
	Contract     *Hello            // 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
}

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

func (*HelloSession) GetMsg

func (_Hello *HelloSession) GetMsg() (string, error)

GetMsg is a free data retrieval call binding the contract method 0xb5fdeb23.

Solidity: function getMsg() view returns(string)

func (*HelloSession) SetMsg

func (_Hello *HelloSession) SetMsg(_msg string) (*types.Transaction, error)

SetMsg is a paid mutator transaction binding the contract method 0xc4784fd4.

Solidity: function setMsg(string _msg) returns()

type HelloTransactor

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

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

func NewHelloTransactor

func NewHelloTransactor(address common.Address, transactor bind.ContractTransactor) (*HelloTransactor, error)

NewHelloTransactor creates a new write-only instance of Hello, bound to a specific deployed contract.

func (*HelloTransactor) SetMsg

func (_Hello *HelloTransactor) SetMsg(opts *bind.TransactOpts, _msg string) (*types.Transaction, error)

SetMsg is a paid mutator transaction binding the contract method 0xc4784fd4.

Solidity: function setMsg(string _msg) returns()

type HelloTransactorRaw

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

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

func (*HelloTransactorRaw) Transact

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

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

func (*HelloTransactorRaw) Transfer

func (_Hello *HelloTransactorRaw) 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 HelloTransactorSession

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

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

func (*HelloTransactorSession) SetMsg

func (_Hello *HelloTransactorSession) SetMsg(_msg string) (*types.Transaction, error)

SetMsg is a paid mutator transaction binding the contract method 0xc4784fd4.

Solidity: function setMsg(string _msg) returns()

Jump to

Keyboard shortcuts

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