Documentation ¶
Index ¶
- Variables
- type Chat
- type ChatCaller
- type ChatCallerRaw
- type ChatCallerSession
- type ChatFilterer
- type ChatRaw
- func (_Chat *ChatRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Chat *ChatRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Chat *ChatRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ChatSession
- type ChatTransactor
- type ChatTransactorRaw
- type ChatTransactorSession
Constants ¶
This section is empty.
Variables ¶
var ChatABI = ChatMetaData.ABI
ChatABI is the input ABI used to generate the binding from. Deprecated: Use ChatMetaData.ABI instead.
var ChatBin = ChatMetaData.Bin
ChatBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ChatMetaData.Bin instead.
var ChatMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"getValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"a\",\"type\":\"uint256\"}],\"name\":\"increase\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b506101c4806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063209652551461003b57806330f3f0db14610059575b600080fd5b610043610075565b60405161005091906100b2565b60405180910390f35b610073600480360381019061006e91906100fe565b61007e565b005b60008054905090565b8060008082825461008f919061015a565b9250508190555050565b6000819050919050565b6100ac81610099565b82525050565b60006020820190506100c760008301846100a3565b92915050565b600080fd5b6100db81610099565b81146100e657600080fd5b50565b6000813590506100f8816100d2565b92915050565b600060208284031215610114576101136100cd565b5b6000610122848285016100e9565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061016582610099565b915061017083610099565b92508282019050808211156101885761018761012b565b5b9291505056fea2646970667358221220e624749545f5f1f9718af423f0b5695faeea92cda439f59779fbcbbb3aa8785d64736f6c63430008130033",
}
ChatMetaData contains all meta data concerning the Chat contract.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct { ChatCaller // Read-only binding to the contract ChatTransactor // Write-only binding to the contract ChatFilterer // Log filterer for contract events }
Chat is an auto generated Go binding around an Ethereum contract.
func DeployChat ¶
func DeployChat(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Chat, error)
DeployChat deploys a new Ethereum contract, binding an instance of Chat to it.
type ChatCaller ¶
type ChatCaller struct {
// contains filtered or unexported fields
}
ChatCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewChatCaller ¶
func NewChatCaller(address common.Address, caller bind.ContractCaller) (*ChatCaller, error)
NewChatCaller creates a new read-only instance of Chat, bound to a specific deployed contract.
type ChatCallerRaw ¶
type ChatCallerRaw struct {
Contract *ChatCaller // Generic read-only contract binding to access the raw methods on
}
ChatCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ChatCallerRaw) Call ¶
func (_Chat *ChatCallerRaw) 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 ChatCallerSession ¶
type ChatCallerSession struct { Contract *ChatCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ChatCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ChatFilterer ¶
type ChatFilterer struct {
// contains filtered or unexported fields
}
ChatFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewChatFilterer ¶
func NewChatFilterer(address common.Address, filterer bind.ContractFilterer) (*ChatFilterer, error)
NewChatFilterer creates a new log filterer instance of Chat, bound to a specific deployed contract.
type ChatRaw ¶
type ChatRaw struct {
Contract *Chat // Generic contract binding to access the raw methods on
}
ChatRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ChatRaw) Call ¶
func (_Chat *ChatRaw) 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 (*ChatRaw) Transact ¶
func (_Chat *ChatRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ChatRaw) Transfer ¶
func (_Chat *ChatRaw) 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 ChatSession ¶
type ChatSession struct { Contract *Chat // 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 }
ChatSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ChatSession) GetValue ¶
func (_Chat *ChatSession) GetValue() (*big.Int, error)
GetValue is a free data retrieval call binding the contract method 0x20965255.
Solidity: function getValue() view returns(uint256)
func (*ChatSession) Increase ¶
func (_Chat *ChatSession) Increase(a *big.Int) (*types.Transaction, error)
Increase is a paid mutator transaction binding the contract method 0x30f3f0db.
Solidity: function increase(uint256 a) returns()
type ChatTransactor ¶
type ChatTransactor struct {
// contains filtered or unexported fields
}
ChatTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewChatTransactor ¶
func NewChatTransactor(address common.Address, transactor bind.ContractTransactor) (*ChatTransactor, error)
NewChatTransactor creates a new write-only instance of Chat, bound to a specific deployed contract.
func (*ChatTransactor) Increase ¶
func (_Chat *ChatTransactor) Increase(opts *bind.TransactOpts, a *big.Int) (*types.Transaction, error)
Increase is a paid mutator transaction binding the contract method 0x30f3f0db.
Solidity: function increase(uint256 a) returns()
type ChatTransactorRaw ¶
type ChatTransactorRaw struct {
Contract *ChatTransactor // Generic write-only contract binding to access the raw methods on
}
ChatTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ChatTransactorRaw) Transact ¶
func (_Chat *ChatTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ChatTransactorRaw) Transfer ¶
func (_Chat *ChatTransactorRaw) 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 ChatTransactorSession ¶
type ChatTransactorSession struct { Contract *ChatTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ChatTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ChatTransactorSession) Increase ¶
func (_Chat *ChatTransactorSession) Increase(a *big.Int) (*types.Transaction, error)
Increase is a paid mutator transaction binding the contract method 0x30f3f0db.
Solidity: function increase(uint256 a) returns()