Greeter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GreeterABI = "" /* 2797-byte string literal not displayed */

GreeterABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Greeter

type Greeter struct {
	GreeterCaller     // Read-only binding to the contract
	GreeterTransactor // Write-only binding to the contract
	GreeterFilterer   // Log filterer for contract events
}

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

func NewGreeter

func NewGreeter(address common.Address, backend bind.ContractBackend) (*Greeter, error)

NewGreeter creates a new instance of Greeter, bound to a specific deployed contract.

type GreeterCaller

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

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

func NewGreeterCaller

func NewGreeterCaller(address common.Address, caller bind.ContractCaller) (*GreeterCaller, error)

NewGreeterCaller creates a new read-only instance of Greeter, bound to a specific deployed contract.

func (*GreeterCaller) GetNGreeting

func (_Greeter *GreeterCaller) GetNGreeting(opts *bind.CallOpts) (*big.Int, error)

GetNGreeting is a free data retrieval call binding the contract method 0x43ae9581.

Solidity: function getNGreeting() constant returns(uint256)

func (*GreeterCaller) Greet

func (_Greeter *GreeterCaller) Greet(opts *bind.CallOpts) (string, error)

Greet is a free data retrieval call binding the contract method 0xcfae3217.

Solidity: function greet() constant returns(string)

func (*GreeterCaller) Ngreeting

func (_Greeter *GreeterCaller) Ngreeting(opts *bind.CallOpts) (*big.Int, error)

Ngreeting is a free data retrieval call binding the contract method 0x8e554e98.

Solidity: function ngreeting() constant returns(uint256)

func (*GreeterCaller) Owner

func (_Greeter *GreeterCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*GreeterCaller) Xgreeting

func (_Greeter *GreeterCaller) Xgreeting(opts *bind.CallOpts) (string, error)

Xgreeting is a free data retrieval call binding the contract method 0x0753fea8.

Solidity: function xgreeting() constant returns(string)

type GreeterCallerRaw

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

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

func (*GreeterCallerRaw) Call

func (_Greeter *GreeterCallerRaw) 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 GreeterCallerSession

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

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

func (*GreeterCallerSession) GetNGreeting

func (_Greeter *GreeterCallerSession) GetNGreeting() (*big.Int, error)

GetNGreeting is a free data retrieval call binding the contract method 0x43ae9581.

Solidity: function getNGreeting() constant returns(uint256)

func (*GreeterCallerSession) Greet

func (_Greeter *GreeterCallerSession) Greet() (string, error)

Greet is a free data retrieval call binding the contract method 0xcfae3217.

Solidity: function greet() constant returns(string)

func (*GreeterCallerSession) Ngreeting

func (_Greeter *GreeterCallerSession) Ngreeting() (*big.Int, error)

Ngreeting is a free data retrieval call binding the contract method 0x8e554e98.

Solidity: function ngreeting() constant returns(uint256)

func (*GreeterCallerSession) Owner

func (_Greeter *GreeterCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*GreeterCallerSession) Xgreeting

func (_Greeter *GreeterCallerSession) Xgreeting() (string, error)

Xgreeting is a free data retrieval call binding the contract method 0x0753fea8.

Solidity: function xgreeting() constant returns(string)

type GreeterFilterer

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

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

func NewGreeterFilterer

func NewGreeterFilterer(address common.Address, filterer bind.ContractFilterer) (*GreeterFilterer, error)

NewGreeterFilterer creates a new log filterer instance of Greeter, bound to a specific deployed contract.

func (*GreeterFilterer) FilterReportGreetingChangedEvent

func (_Greeter *GreeterFilterer) FilterReportGreetingChangedEvent(opts *bind.FilterOpts) (*GreeterReportGreetingChangedEventIterator, error)

FilterReportGreetingChangedEvent is a free log retrieval operation binding the contract event 0xfc2d6907db7ce1823e4bae783aeda0363c138aba19e7a497ebc3dd80a0a3453a.

Solidity: event ReportGreetingChangedEvent(greeting string)

func (*GreeterFilterer) FilterReportGreetingEvent

func (_Greeter *GreeterFilterer) FilterReportGreetingEvent(opts *bind.FilterOpts) (*GreeterReportGreetingEventIterator, error)

FilterReportGreetingEvent is a free log retrieval operation binding the contract event 0xcd8a940e2f36da995f021b62a2ae60d67db78ea2004f4c3aec74c8458db73e4b.

Solidity: event ReportGreetingEvent(greeting string)

func (*GreeterFilterer) WatchReportGreetingChangedEvent

func (_Greeter *GreeterFilterer) WatchReportGreetingChangedEvent(opts *bind.WatchOpts, sink chan<- *GreeterReportGreetingChangedEvent) (event.Subscription, error)

WatchReportGreetingChangedEvent is a free log subscription operation binding the contract event 0xfc2d6907db7ce1823e4bae783aeda0363c138aba19e7a497ebc3dd80a0a3453a.

Solidity: event ReportGreetingChangedEvent(greeting string)

func (*GreeterFilterer) WatchReportGreetingEvent

func (_Greeter *GreeterFilterer) WatchReportGreetingEvent(opts *bind.WatchOpts, sink chan<- *GreeterReportGreetingEvent) (event.Subscription, error)

WatchReportGreetingEvent is a free log subscription operation binding the contract event 0xcd8a940e2f36da995f021b62a2ae60d67db78ea2004f4c3aec74c8458db73e4b.

Solidity: event ReportGreetingEvent(greeting string)

type GreeterRaw

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

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

func (*GreeterRaw) Call

func (_Greeter *GreeterRaw) 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 (*GreeterRaw) Transact

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

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

func (*GreeterRaw) Transfer

func (_Greeter *GreeterRaw) 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 GreeterReportGreetingChangedEvent

type GreeterReportGreetingChangedEvent struct {
	Greeting string
	Raw      types.Log // Blockchain specific contextual infos
}

GreeterReportGreetingChangedEvent represents a ReportGreetingChangedEvent event raised by the Greeter contract.

type GreeterReportGreetingChangedEventIterator

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

GreeterReportGreetingChangedEventIterator is returned from FilterReportGreetingChangedEvent and is used to iterate over the raw logs and unpacked data for ReportGreetingChangedEvent events raised by the Greeter contract.

func (*GreeterReportGreetingChangedEventIterator) Close

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

func (*GreeterReportGreetingChangedEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GreeterReportGreetingChangedEventIterator) 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 GreeterReportGreetingEvent

type GreeterReportGreetingEvent struct {
	Greeting string
	Raw      types.Log // Blockchain specific contextual infos
}

GreeterReportGreetingEvent represents a ReportGreetingEvent event raised by the Greeter contract.

type GreeterReportGreetingEventIterator

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

GreeterReportGreetingEventIterator is returned from FilterReportGreetingEvent and is used to iterate over the raw logs and unpacked data for ReportGreetingEvent events raised by the Greeter contract.

func (*GreeterReportGreetingEventIterator) Close

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

func (*GreeterReportGreetingEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GreeterReportGreetingEventIterator) 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 GreeterSession

type GreeterSession struct {
	Contract     *Greeter          // 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
}

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

func (*GreeterSession) GetGreeting

func (_Greeter *GreeterSession) GetGreeting() (*types.Transaction, error)

GetGreeting is a paid mutator transaction binding the contract method 0xfe50cc72.

Solidity: function getGreeting() returns(string)

func (*GreeterSession) GetNGreeting

func (_Greeter *GreeterSession) GetNGreeting() (*big.Int, error)

GetNGreeting is a free data retrieval call binding the contract method 0x43ae9581.

Solidity: function getNGreeting() constant returns(uint256)

func (*GreeterSession) Greet

func (_Greeter *GreeterSession) Greet() (string, error)

Greet is a free data retrieval call binding the contract method 0xcfae3217.

Solidity: function greet() constant returns(string)

func (*GreeterSession) Greeter

func (_Greeter *GreeterSession) Greeter(_greeting string) (*types.Transaction, error)

Greeter is a paid mutator transaction binding the contract method 0xfaf27bca.

Solidity: function greeter(_greeting string) returns()

func (*GreeterSession) Kill

func (_Greeter *GreeterSession) Kill() (*types.Transaction, error)

Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.

Solidity: function kill() returns()

func (*GreeterSession) Ngreeting

func (_Greeter *GreeterSession) Ngreeting() (*big.Int, error)

Ngreeting is a free data retrieval call binding the contract method 0x8e554e98.

Solidity: function ngreeting() constant returns(uint256)

func (*GreeterSession) Owner

func (_Greeter *GreeterSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() constant returns(address)

func (*GreeterSession) SetGreeting

func (_Greeter *GreeterSession) SetGreeting(_greeting string) (*types.Transaction, error)

SetGreeting is a paid mutator transaction binding the contract method 0xa4136862.

Solidity: function setGreeting(_greeting string) returns()

func (*GreeterSession) SetNGreeting

func (_Greeter *GreeterSession) SetNGreeting(_greeting *big.Int) (*types.Transaction, error)

SetNGreeting is a paid mutator transaction binding the contract method 0x2df045ff.

Solidity: function setNGreeting(_greeting uint256) returns()

func (*GreeterSession) Test01

func (_Greeter *GreeterSession) Test01(aNum *big.Int) (*types.Transaction, error)

Test01 is a paid mutator transaction binding the contract method 0x7cc22ea9.

Solidity: function test01(aNum uint256) returns(id uint256)

func (*GreeterSession) Withdraw

func (_Greeter *GreeterSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

func (*GreeterSession) WithdrawAmount

func (_Greeter *GreeterSession) WithdrawAmount(_amt *big.Int) (*types.Transaction, error)

WithdrawAmount is a paid mutator transaction binding the contract method 0x0562b9f7.

Solidity: function withdrawAmount(_amt uint256) returns()

func (*GreeterSession) Xgreeting

func (_Greeter *GreeterSession) Xgreeting() (string, error)

Xgreeting is a free data retrieval call binding the contract method 0x0753fea8.

Solidity: function xgreeting() constant returns(string)

type GreeterTransactor

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

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

func NewGreeterTransactor

func NewGreeterTransactor(address common.Address, transactor bind.ContractTransactor) (*GreeterTransactor, error)

NewGreeterTransactor creates a new write-only instance of Greeter, bound to a specific deployed contract.

func (*GreeterTransactor) GetGreeting

func (_Greeter *GreeterTransactor) GetGreeting(opts *bind.TransactOpts) (*types.Transaction, error)

GetGreeting is a paid mutator transaction binding the contract method 0xfe50cc72.

Solidity: function getGreeting() returns(string)

func (*GreeterTransactor) Greeter

func (_Greeter *GreeterTransactor) Greeter(opts *bind.TransactOpts, _greeting string) (*types.Transaction, error)

Greeter is a paid mutator transaction binding the contract method 0xfaf27bca.

Solidity: function greeter(_greeting string) returns()

func (*GreeterTransactor) Kill

func (_Greeter *GreeterTransactor) Kill(opts *bind.TransactOpts) (*types.Transaction, error)

Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.

Solidity: function kill() returns()

func (*GreeterTransactor) SetGreeting

func (_Greeter *GreeterTransactor) SetGreeting(opts *bind.TransactOpts, _greeting string) (*types.Transaction, error)

SetGreeting is a paid mutator transaction binding the contract method 0xa4136862.

Solidity: function setGreeting(_greeting string) returns()

func (*GreeterTransactor) SetNGreeting

func (_Greeter *GreeterTransactor) SetNGreeting(opts *bind.TransactOpts, _greeting *big.Int) (*types.Transaction, error)

SetNGreeting is a paid mutator transaction binding the contract method 0x2df045ff.

Solidity: function setNGreeting(_greeting uint256) returns()

func (*GreeterTransactor) Test01

func (_Greeter *GreeterTransactor) Test01(opts *bind.TransactOpts, aNum *big.Int) (*types.Transaction, error)

Test01 is a paid mutator transaction binding the contract method 0x7cc22ea9.

Solidity: function test01(aNum uint256) returns(id uint256)

func (*GreeterTransactor) Withdraw

func (_Greeter *GreeterTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

func (*GreeterTransactor) WithdrawAmount

func (_Greeter *GreeterTransactor) WithdrawAmount(opts *bind.TransactOpts, _amt *big.Int) (*types.Transaction, error)

WithdrawAmount is a paid mutator transaction binding the contract method 0x0562b9f7.

Solidity: function withdrawAmount(_amt uint256) returns()

type GreeterTransactorRaw

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

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

func (*GreeterTransactorRaw) Transact

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

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

func (*GreeterTransactorRaw) Transfer

func (_Greeter *GreeterTransactorRaw) 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 GreeterTransactorSession

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

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

func (*GreeterTransactorSession) GetGreeting

func (_Greeter *GreeterTransactorSession) GetGreeting() (*types.Transaction, error)

GetGreeting is a paid mutator transaction binding the contract method 0xfe50cc72.

Solidity: function getGreeting() returns(string)

func (*GreeterTransactorSession) Greeter

func (_Greeter *GreeterTransactorSession) Greeter(_greeting string) (*types.Transaction, error)

Greeter is a paid mutator transaction binding the contract method 0xfaf27bca.

Solidity: function greeter(_greeting string) returns()

func (*GreeterTransactorSession) Kill

func (_Greeter *GreeterTransactorSession) Kill() (*types.Transaction, error)

Kill is a paid mutator transaction binding the contract method 0x41c0e1b5.

Solidity: function kill() returns()

func (*GreeterTransactorSession) SetGreeting

func (_Greeter *GreeterTransactorSession) SetGreeting(_greeting string) (*types.Transaction, error)

SetGreeting is a paid mutator transaction binding the contract method 0xa4136862.

Solidity: function setGreeting(_greeting string) returns()

func (*GreeterTransactorSession) SetNGreeting

func (_Greeter *GreeterTransactorSession) SetNGreeting(_greeting *big.Int) (*types.Transaction, error)

SetNGreeting is a paid mutator transaction binding the contract method 0x2df045ff.

Solidity: function setNGreeting(_greeting uint256) returns()

func (*GreeterTransactorSession) Test01

func (_Greeter *GreeterTransactorSession) Test01(aNum *big.Int) (*types.Transaction, error)

Test01 is a paid mutator transaction binding the contract method 0x7cc22ea9.

Solidity: function test01(aNum uint256) returns(id uint256)

func (*GreeterTransactorSession) Withdraw

func (_Greeter *GreeterTransactorSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

func (*GreeterTransactorSession) WithdrawAmount

func (_Greeter *GreeterTransactorSession) WithdrawAmount(_amt *big.Int) (*types.Transaction, error)

WithdrawAmount is a paid mutator transaction binding the contract method 0x0562b9f7.

Solidity: function withdrawAmount(_amt uint256) returns()

Jump to

Keyboard shortcuts

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