api

package
v0.0.0-...-c0e2204 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiABI = ApiMetaData.ABI

ApiABI is the input ABI used to generate the binding from. Deprecated: Use ApiMetaData.ABI instead.

View Source
var ApiBin = ApiMetaData.Bin

ApiBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ApiMetaData.Bin instead.

View Source
var ApiMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"Greet\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Hello\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b506101d7806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c8063bcdfe0d51461003b578063efdeaaf514610074575b600080fd5b60408051808201909152600b81526a12195b1b1bc815dbdc9b1960aa1b60208201525b60405161006b9190610085565b60405180910390f35b61005e6100823660046100f0565b90565b600060208083528351808285015260005b818110156100b257858101830151858201604001528201610096565b818111156100c4576000604083870101525b50601f01601f1916929092016040019392505050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561010257600080fd5b813567ffffffffffffffff8082111561011a57600080fd5b818401915084601f83011261012e57600080fd5b813581811115610140576101406100da565b604051601f8201601f19908116603f01168101908382118183101715610168576101686100da565b8160405282815287602084870101111561018157600080fd5b82602086016020830137600092810160200192909252509594505050505056fea2646970667358221220a91aeb090a5513d3da0fe54b7b0227c657d2e17639b83de4239d0a008114592164736f6c634300080c0033",
}

ApiMetaData contains all meta data concerning the Api contract.

Functions

This section is empty.

Types

type Api

type Api struct {
	ApiCaller     // Read-only binding to the contract
	ApiTransactor // Write-only binding to the contract
	ApiFilterer   // Log filterer for contract events
}

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

func DeployApi

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

DeployApi deploys a new Ethereum contract, binding an instance of Api to it.

func NewApi

func NewApi(address common.Address, backend bind.ContractBackend) (*Api, error)

NewApi creates a new instance of Api, bound to a specific deployed contract.

type ApiCaller

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

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

func NewApiCaller

func NewApiCaller(address common.Address, caller bind.ContractCaller) (*ApiCaller, error)

NewApiCaller creates a new read-only instance of Api, bound to a specific deployed contract.

func (*ApiCaller) Greet

func (_Api *ApiCaller) Greet(opts *bind.CallOpts, str string) (string, error)

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

Solidity: function Greet(string str) pure returns(string)

func (*ApiCaller) Hello

func (_Api *ApiCaller) Hello(opts *bind.CallOpts) (string, error)

Hello is a free data retrieval call binding the contract method 0xbcdfe0d5.

Solidity: function Hello() pure returns(string)

type ApiCallerRaw

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

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

func (*ApiCallerRaw) Call

func (_Api *ApiCallerRaw) 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 ApiCallerSession

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

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

func (*ApiCallerSession) Greet

func (_Api *ApiCallerSession) Greet(str string) (string, error)

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

Solidity: function Greet(string str) pure returns(string)

func (*ApiCallerSession) Hello

func (_Api *ApiCallerSession) Hello() (string, error)

Hello is a free data retrieval call binding the contract method 0xbcdfe0d5.

Solidity: function Hello() pure returns(string)

type ApiFilterer

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

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

func NewApiFilterer

func NewApiFilterer(address common.Address, filterer bind.ContractFilterer) (*ApiFilterer, error)

NewApiFilterer creates a new log filterer instance of Api, bound to a specific deployed contract.

type ApiRaw

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

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

func (*ApiRaw) Call

func (_Api *ApiRaw) 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 (*ApiRaw) Transact

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

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

func (*ApiRaw) Transfer

func (_Api *ApiRaw) 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 ApiSession

type ApiSession struct {
	Contract     *Api              // 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
}

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

func (*ApiSession) Greet

func (_Api *ApiSession) Greet(str string) (string, error)

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

Solidity: function Greet(string str) pure returns(string)

func (*ApiSession) Hello

func (_Api *ApiSession) Hello() (string, error)

Hello is a free data retrieval call binding the contract method 0xbcdfe0d5.

Solidity: function Hello() pure returns(string)

type ApiTransactor

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

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

func NewApiTransactor

func NewApiTransactor(address common.Address, transactor bind.ContractTransactor) (*ApiTransactor, error)

NewApiTransactor creates a new write-only instance of Api, bound to a specific deployed contract.

type ApiTransactorRaw

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

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

func (*ApiTransactorRaw) Transact

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

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

func (*ApiTransactorRaw) Transfer

func (_Api *ApiTransactorRaw) 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 ApiTransactorSession

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

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

Jump to

Keyboard shortcuts

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