contracts

package
v0.0.0-...-aac2cf8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyContract2ABI = MyContract2MetaData.ABI

MyContract2ABI is the input ABI used to generate the binding from. Deprecated: Use MyContract2MetaData.ABI instead.

View Source
var MyContract2Bin = MyContract2MetaData.Bin

MyContract2Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use MyContract2MetaData.Bin instead.

View Source
var MyContract2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"purpose\",\"type\":\"string\"}],\"name\":\"SetPurpose\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"purpose\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"newPurpose\",\"type\":\"string\"}],\"name\":\"setPurpose\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60806040526040518060400160405280601c81526020017f4275696c64696e6720556e73746f707061626c652041707073212121000000008152506000908051906020019061004f929190610055565b50610158565b82805461006190610127565b90600052602060002090601f01602090048101928261008357600085556100ca565b82601f1061009c57805160ff19168380011785556100ca565b828001600101855582156100ca579182015b828111156100c95782518255916020019190600101906100ae565b5b5090506100d791906100db565b5090565b5b808211156100f45760008160009055506001016100dc565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061013f57607f821691505b602082108103610152576101516100f8565b5b50919050565b6105f8806101676000396000f3fe60806040526004361061002d5760003560e01c806370740aab14610036578063eb68757f1461006157610034565b3661003457005b005b34801561004257600080fd5b5061004b61008a565b60405161005891906102a8565b60405180910390f35b34801561006d57600080fd5b5061008860048036038101906100839190610413565b610118565b005b600080546100979061048b565b80601f01602080910402602001604051908101604052809291908181526020018280546100c39061048b565b80156101105780601f106100e557610100808354040283529160200191610110565b820191906000526020600020905b8154815290600101906020018083116100f357829003601f168201915b505050505081565b806000908051906020019061012e92919061016c565b507f6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de336000604051610161929190610592565b60405180910390a150565b8280546101789061048b565b90600052602060002090601f01602090048101928261019a57600085556101e1565b82601f106101b357805160ff19168380011785556101e1565b828001600101855582156101e1579182015b828111156101e05782518255916020019190600101906101c5565b5b5090506101ee91906101f2565b5090565b5b8082111561020b5760008160009055506001016101f3565b5090565b600081519050919050565b600082825260208201905092915050565b60005b8381101561024957808201518184015260208101905061022e565b83811115610258576000848401525b50505050565b6000601f19601f8301169050919050565b600061027a8261020f565b610284818561021a565b935061029481856020860161022b565b61029d8161025e565b840191505092915050565b600060208201905081810360008301526102c2818461026f565b905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6103208261025e565b810181811067ffffffffffffffff8211171561033f5761033e6102e8565b5b80604052505050565b60006103526102ca565b905061035e8282610317565b919050565b600067ffffffffffffffff82111561037e5761037d6102e8565b5b6103878261025e565b9050602081019050919050565b82818337600083830152505050565b60006103b66103b184610363565b610348565b9050828152602081018484840111156103d2576103d16102e3565b5b6103dd848285610394565b509392505050565b600082601f8301126103fa576103f96102de565b5b813561040a8482602086016103a3565b91505092915050565b600060208284031215610429576104286102d4565b5b600082013567ffffffffffffffff811115610447576104466102d9565b5b610453848285016103e5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806104a357607f821691505b6020821081036104b6576104b561045c565b5b50919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104e7826104bc565b9050919050565b6104f7816104dc565b82525050565b60008190508160005260206000209050919050565b6000815461051f8161048b565b610529818661021a565b94506001821660008114610544576001811461055657610589565b60ff1983168652602086019350610589565b61055f856104fd565b60005b8381101561058157815481890152600182019150602081019050610562565b808801955050505b50505092915050565b60006040820190506105a760008301856104ee565b81810360208301526105b98184610512565b9050939250505056fea2646970667358221220c4721efcac35de3f60424ad5183634edec0daf4ba271644c0b2fdbd0a42bf60f64736f6c634300080d0033",
}

MyContract2MetaData contains all meta data concerning the MyContract2 contract.

View Source
var MyContractABI = MyContractMetaData.ABI

MyContractABI is the input ABI used to generate the binding from. Deprecated: Use MyContractMetaData.ABI instead.

View Source
var MyContractBin = MyContractMetaData.Bin

MyContractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MyContractMetaData.Bin instead.

View Source
var MyContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"purpose\",\"type\":\"string\"}],\"name\":\"SetPurpose\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"purpose\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"newPurpose\",\"type\":\"string\"}],\"name\":\"setPurpose\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60806040526040518060400160405280601c81526020017f4275696c64696e6720556e73746f707061626c652041707073212121000000008152506000908051906020019061004f929190610055565b50610158565b82805461006190610127565b90600052602060002090601f01602090048101928261008357600085556100ca565b82601f1061009c57805160ff19168380011785556100ca565b828001600101855582156100ca579182015b828111156100c95782518255916020019190600101906100ae565b5b5090506100d791906100db565b5090565b5b808211156100f45760008160009055506001016100dc565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061013f57607f821691505b602082108103610152576101516100f8565b5b50919050565b6105f8806101676000396000f3fe60806040526004361061002d5760003560e01c806370740aab14610036578063eb68757f1461006157610034565b3661003457005b005b34801561004257600080fd5b5061004b61008a565b60405161005891906102a8565b60405180910390f35b34801561006d57600080fd5b5061008860048036038101906100839190610413565b610118565b005b600080546100979061048b565b80601f01602080910402602001604051908101604052809291908181526020018280546100c39061048b565b80156101105780601f106100e557610100808354040283529160200191610110565b820191906000526020600020905b8154815290600101906020018083116100f357829003601f168201915b505050505081565b806000908051906020019061012e92919061016c565b507f6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de336000604051610161929190610592565b60405180910390a150565b8280546101789061048b565b90600052602060002090601f01602090048101928261019a57600085556101e1565b82601f106101b357805160ff19168380011785556101e1565b828001600101855582156101e1579182015b828111156101e05782518255916020019190600101906101c5565b5b5090506101ee91906101f2565b5090565b5b8082111561020b5760008160009055506001016101f3565b5090565b600081519050919050565b600082825260208201905092915050565b60005b8381101561024957808201518184015260208101905061022e565b83811115610258576000848401525b50505050565b6000601f19601f8301169050919050565b600061027a8261020f565b610284818561021a565b935061029481856020860161022b565b61029d8161025e565b840191505092915050565b600060208201905081810360008301526102c2818461026f565b905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6103208261025e565b810181811067ffffffffffffffff8211171561033f5761033e6102e8565b5b80604052505050565b60006103526102ca565b905061035e8282610317565b919050565b600067ffffffffffffffff82111561037e5761037d6102e8565b5b6103878261025e565b9050602081019050919050565b82818337600083830152505050565b60006103b66103b184610363565b610348565b9050828152602081018484840111156103d2576103d16102e3565b5b6103dd848285610394565b509392505050565b600082601f8301126103fa576103f96102de565b5b813561040a8482602086016103a3565b91505092915050565b600060208284031215610429576104286102d4565b5b600082013567ffffffffffffffff811115610447576104466102d9565b5b610453848285016103e5565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806104a357607f821691505b6020821081036104b6576104b561045c565b5b50919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104e7826104bc565b9050919050565b6104f7816104dc565b82525050565b60008190508160005260206000209050919050565b6000815461051f8161048b565b610529818661021a565b94506001821660008114610544576001811461055657610589565b60ff1983168652602086019350610589565b61055f856104fd565b60005b8381101561058157815481890152600182019150602081019050610562565b808801955050505b50505092915050565b60006040820190506105a760008301856104ee565b81810360208301526105b98184610512565b9050939250505056fea2646970667358221220a689eba4bd6c3d1e7c4a5db765a868d6e7ac1292ff7e8856a73c8f024bd0e25364736f6c634300080d0033",
}

MyContractMetaData contains all meta data concerning the MyContract contract.

Functions

This section is empty.

Types

type MyContract

type MyContract struct {
	MyContractCaller     // Read-only binding to the contract
	MyContractTransactor // Write-only binding to the contract
	MyContractFilterer   // Log filterer for contract events
}

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

func DeployMyContract

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

DeployMyContract deploys a new Ethereum contract, binding an instance of MyContract to it.

func NewMyContract

func NewMyContract(address common.Address, backend bind.ContractBackend) (*MyContract, error)

NewMyContract creates a new instance of MyContract, bound to a specific deployed contract.

type MyContract2

type MyContract2 struct {
	MyContract2Caller     // Read-only binding to the contract
	MyContract2Transactor // Write-only binding to the contract
	MyContract2Filterer   // Log filterer for contract events
}

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

func DeployMyContract2

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

DeployMyContract2 deploys a new Ethereum contract, binding an instance of MyContract2 to it.

func NewMyContract2

func NewMyContract2(address common.Address, backend bind.ContractBackend) (*MyContract2, error)

NewMyContract2 creates a new instance of MyContract2, bound to a specific deployed contract.

type MyContract2Caller

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

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

func NewMyContract2Caller

func NewMyContract2Caller(address common.Address, caller bind.ContractCaller) (*MyContract2Caller, error)

NewMyContract2Caller creates a new read-only instance of MyContract2, bound to a specific deployed contract.

func (*MyContract2Caller) Purpose

func (_MyContract2 *MyContract2Caller) Purpose(opts *bind.CallOpts) (string, error)

Purpose is a free data retrieval call binding the contract method 0x70740aab.

Solidity: function purpose() view returns(string)

type MyContract2CallerRaw

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

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

func (*MyContract2CallerRaw) Call

func (_MyContract2 *MyContract2CallerRaw) 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 MyContract2CallerSession

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

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

func (*MyContract2CallerSession) Purpose

func (_MyContract2 *MyContract2CallerSession) Purpose() (string, error)

Purpose is a free data retrieval call binding the contract method 0x70740aab.

Solidity: function purpose() view returns(string)

type MyContract2Filterer

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

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

func NewMyContract2Filterer

func NewMyContract2Filterer(address common.Address, filterer bind.ContractFilterer) (*MyContract2Filterer, error)

NewMyContract2Filterer creates a new log filterer instance of MyContract2, bound to a specific deployed contract.

func (*MyContract2Filterer) FilterSetPurpose

func (_MyContract2 *MyContract2Filterer) FilterSetPurpose(opts *bind.FilterOpts) (*MyContract2SetPurposeIterator, error)

FilterSetPurpose is a free log retrieval operation binding the contract event 0x6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de.

Solidity: event SetPurpose(address sender, string purpose)

func (*MyContract2Filterer) ParseSetPurpose

func (_MyContract2 *MyContract2Filterer) ParseSetPurpose(log types.Log) (*MyContract2SetPurpose, error)

ParseSetPurpose is a log parse operation binding the contract event 0x6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de.

Solidity: event SetPurpose(address sender, string purpose)

func (*MyContract2Filterer) WatchSetPurpose

func (_MyContract2 *MyContract2Filterer) WatchSetPurpose(opts *bind.WatchOpts, sink chan<- *MyContract2SetPurpose) (event.Subscription, error)

WatchSetPurpose is a free log subscription operation binding the contract event 0x6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de.

Solidity: event SetPurpose(address sender, string purpose)

type MyContract2Raw

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

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

func (*MyContract2Raw) Call

func (_MyContract2 *MyContract2Raw) 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 (*MyContract2Raw) Transact

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

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

func (*MyContract2Raw) Transfer

func (_MyContract2 *MyContract2Raw) 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 MyContract2Session

type MyContract2Session struct {
	Contract     *MyContract2      // 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
}

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

func (*MyContract2Session) Fallback

func (_MyContract2 *MyContract2Session) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MyContract2Session) Purpose

func (_MyContract2 *MyContract2Session) Purpose() (string, error)

Purpose is a free data retrieval call binding the contract method 0x70740aab.

Solidity: function purpose() view returns(string)

func (*MyContract2Session) Receive

func (_MyContract2 *MyContract2Session) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MyContract2Session) SetPurpose

func (_MyContract2 *MyContract2Session) SetPurpose(newPurpose string) (*types.Transaction, error)

SetPurpose is a paid mutator transaction binding the contract method 0xeb68757f.

Solidity: function setPurpose(string newPurpose) returns()

type MyContract2SetPurpose

type MyContract2SetPurpose struct {
	Sender  common.Address
	Purpose string
	Raw     types.Log // Blockchain specific contextual infos
}

MyContract2SetPurpose represents a SetPurpose event raised by the MyContract2 contract.

type MyContract2SetPurposeIterator

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

MyContract2SetPurposeIterator is returned from FilterSetPurpose and is used to iterate over the raw logs and unpacked data for SetPurpose events raised by the MyContract2 contract.

func (*MyContract2SetPurposeIterator) Close

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

func (*MyContract2SetPurposeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MyContract2SetPurposeIterator) 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 MyContract2Transactor

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

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

func NewMyContract2Transactor

func NewMyContract2Transactor(address common.Address, transactor bind.ContractTransactor) (*MyContract2Transactor, error)

NewMyContract2Transactor creates a new write-only instance of MyContract2, bound to a specific deployed contract.

func (*MyContract2Transactor) Fallback

func (_MyContract2 *MyContract2Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MyContract2Transactor) Receive

func (_MyContract2 *MyContract2Transactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MyContract2Transactor) SetPurpose

func (_MyContract2 *MyContract2Transactor) SetPurpose(opts *bind.TransactOpts, newPurpose string) (*types.Transaction, error)

SetPurpose is a paid mutator transaction binding the contract method 0xeb68757f.

Solidity: function setPurpose(string newPurpose) returns()

type MyContract2TransactorRaw

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

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

func (*MyContract2TransactorRaw) Transact

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

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

func (*MyContract2TransactorRaw) Transfer

func (_MyContract2 *MyContract2TransactorRaw) 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 MyContract2TransactorSession

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

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

func (*MyContract2TransactorSession) Fallback

func (_MyContract2 *MyContract2TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MyContract2TransactorSession) Receive

func (_MyContract2 *MyContract2TransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MyContract2TransactorSession) SetPurpose

func (_MyContract2 *MyContract2TransactorSession) SetPurpose(newPurpose string) (*types.Transaction, error)

SetPurpose is a paid mutator transaction binding the contract method 0xeb68757f.

Solidity: function setPurpose(string newPurpose) returns()

type MyContractCaller

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

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

func NewMyContractCaller

func NewMyContractCaller(address common.Address, caller bind.ContractCaller) (*MyContractCaller, error)

NewMyContractCaller creates a new read-only instance of MyContract, bound to a specific deployed contract.

func (*MyContractCaller) Purpose

func (_MyContract *MyContractCaller) Purpose(opts *bind.CallOpts) (string, error)

Purpose is a free data retrieval call binding the contract method 0x70740aab.

Solidity: function purpose() view returns(string)

type MyContractCallerRaw

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

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

func (*MyContractCallerRaw) Call

func (_MyContract *MyContractCallerRaw) 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 MyContractCallerSession

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

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

func (*MyContractCallerSession) Purpose

func (_MyContract *MyContractCallerSession) Purpose() (string, error)

Purpose is a free data retrieval call binding the contract method 0x70740aab.

Solidity: function purpose() view returns(string)

type MyContractFilterer

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

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

func NewMyContractFilterer

func NewMyContractFilterer(address common.Address, filterer bind.ContractFilterer) (*MyContractFilterer, error)

NewMyContractFilterer creates a new log filterer instance of MyContract, bound to a specific deployed contract.

func (*MyContractFilterer) FilterSetPurpose

func (_MyContract *MyContractFilterer) FilterSetPurpose(opts *bind.FilterOpts) (*MyContractSetPurposeIterator, error)

FilterSetPurpose is a free log retrieval operation binding the contract event 0x6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de.

Solidity: event SetPurpose(address sender, string purpose)

func (*MyContractFilterer) ParseSetPurpose

func (_MyContract *MyContractFilterer) ParseSetPurpose(log types.Log) (*MyContractSetPurpose, error)

ParseSetPurpose is a log parse operation binding the contract event 0x6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de.

Solidity: event SetPurpose(address sender, string purpose)

func (*MyContractFilterer) WatchSetPurpose

func (_MyContract *MyContractFilterer) WatchSetPurpose(opts *bind.WatchOpts, sink chan<- *MyContractSetPurpose) (event.Subscription, error)

WatchSetPurpose is a free log subscription operation binding the contract event 0x6ea5d6383a120235c7728a9a6751672a8ac068e4ed34dcca2ee444182c1812de.

Solidity: event SetPurpose(address sender, string purpose)

type MyContractRaw

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

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

func (*MyContractRaw) Call

func (_MyContract *MyContractRaw) 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 (*MyContractRaw) Transact

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

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

func (*MyContractRaw) Transfer

func (_MyContract *MyContractRaw) 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 MyContractSession

type MyContractSession struct {
	Contract     *MyContract       // 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
}

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

func (*MyContractSession) Fallback

func (_MyContract *MyContractSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MyContractSession) Purpose

func (_MyContract *MyContractSession) Purpose() (string, error)

Purpose is a free data retrieval call binding the contract method 0x70740aab.

Solidity: function purpose() view returns(string)

func (*MyContractSession) Receive

func (_MyContract *MyContractSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MyContractSession) SetPurpose

func (_MyContract *MyContractSession) SetPurpose(newPurpose string) (*types.Transaction, error)

SetPurpose is a paid mutator transaction binding the contract method 0xeb68757f.

Solidity: function setPurpose(string newPurpose) returns()

type MyContractSetPurpose

type MyContractSetPurpose struct {
	Sender  common.Address
	Purpose string
	Raw     types.Log // Blockchain specific contextual infos
}

MyContractSetPurpose represents a SetPurpose event raised by the MyContract contract.

type MyContractSetPurposeIterator

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

MyContractSetPurposeIterator is returned from FilterSetPurpose and is used to iterate over the raw logs and unpacked data for SetPurpose events raised by the MyContract contract.

func (*MyContractSetPurposeIterator) Close

func (it *MyContractSetPurposeIterator) Close() error

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

func (*MyContractSetPurposeIterator) Error

func (it *MyContractSetPurposeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MyContractSetPurposeIterator) 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 MyContractTransactor

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

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

func NewMyContractTransactor

func NewMyContractTransactor(address common.Address, transactor bind.ContractTransactor) (*MyContractTransactor, error)

NewMyContractTransactor creates a new write-only instance of MyContract, bound to a specific deployed contract.

func (*MyContractTransactor) Fallback

func (_MyContract *MyContractTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MyContractTransactor) Receive

func (_MyContract *MyContractTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MyContractTransactor) SetPurpose

func (_MyContract *MyContractTransactor) SetPurpose(opts *bind.TransactOpts, newPurpose string) (*types.Transaction, error)

SetPurpose is a paid mutator transaction binding the contract method 0xeb68757f.

Solidity: function setPurpose(string newPurpose) returns()

type MyContractTransactorRaw

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

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

func (*MyContractTransactorRaw) Transact

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

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

func (*MyContractTransactorRaw) Transfer

func (_MyContract *MyContractTransactorRaw) 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 MyContractTransactorSession

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

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

func (*MyContractTransactorSession) Fallback

func (_MyContract *MyContractTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*MyContractTransactorSession) Receive

func (_MyContract *MyContractTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

func (*MyContractTransactorSession) SetPurpose

func (_MyContract *MyContractTransactorSession) SetPurpose(newPurpose string) (*types.Transaction, error)

SetPurpose is a paid mutator transaction binding the contract method 0xeb68757f.

Solidity: function setPurpose(string newPurpose) returns()

Jump to

Keyboard shortcuts

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