demo

package
v0.0.0-...-e382abe Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DemoABI = DemoMetaData.ABI

DemoABI is the input ABI used to generate the binding from. Deprecated: Use DemoMetaData.ABI instead.

View Source
var DemoMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"foo\",\"outputs\":[{\"internalType\":\"contractFoo\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFooName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

DemoMetaData contains all meta data concerning the Demo contract.

View Source
var FooABI = FooMetaData.ABI

FooABI is the input ABI used to generate the binding from. Deprecated: Use FooMetaData.ABI instead.

View Source
var FooMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

FooMetaData contains all meta data concerning the Foo contract.

Functions

This section is empty.

Types

type Demo

type Demo struct {
	DemoCaller     // Read-only binding to the contract
	DemoTransactor // Write-only binding to the contract
	DemoFilterer   // Log filterer for contract events
}

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

func NewDemo

func NewDemo(address common.Address, backend bind.ContractBackend) (*Demo, error)

NewDemo creates a new instance of Demo, bound to a specific deployed contract.

type DemoCaller

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

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

func NewDemoCaller

func NewDemoCaller(address common.Address, caller bind.ContractCaller) (*DemoCaller, error)

NewDemoCaller creates a new read-only instance of Demo, bound to a specific deployed contract.

func (*DemoCaller) Foo

func (_Demo *DemoCaller) Foo(opts *bind.CallOpts) (common.Address, error)

Foo is a free data retrieval call binding the contract method 0xc2985578.

Solidity: function foo() view returns(address)

func (*DemoCaller) GetFooName

func (_Demo *DemoCaller) GetFooName(opts *bind.CallOpts) (string, error)

GetFooName is a free data retrieval call binding the contract method 0xc6261261.

Solidity: function getFooName() view returns(string)

type DemoCallerRaw

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

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

func (*DemoCallerRaw) Call

func (_Demo *DemoCallerRaw) 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 DemoCallerSession

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

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

func (*DemoCallerSession) Foo

func (_Demo *DemoCallerSession) Foo() (common.Address, error)

Foo is a free data retrieval call binding the contract method 0xc2985578.

Solidity: function foo() view returns(address)

func (*DemoCallerSession) GetFooName

func (_Demo *DemoCallerSession) GetFooName() (string, error)

GetFooName is a free data retrieval call binding the contract method 0xc6261261.

Solidity: function getFooName() view returns(string)

type DemoFilterer

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

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

func NewDemoFilterer

func NewDemoFilterer(address common.Address, filterer bind.ContractFilterer) (*DemoFilterer, error)

NewDemoFilterer creates a new log filterer instance of Demo, bound to a specific deployed contract.

type DemoRaw

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

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

func (*DemoRaw) Call

func (_Demo *DemoRaw) 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 (*DemoRaw) Transact

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

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

func (*DemoRaw) Transfer

func (_Demo *DemoRaw) 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 DemoSession

type DemoSession struct {
	Contract     *Demo             // 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
}

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

func (*DemoSession) Foo

func (_Demo *DemoSession) Foo() (common.Address, error)

Foo is a free data retrieval call binding the contract method 0xc2985578.

Solidity: function foo() view returns(address)

func (*DemoSession) GetFooName

func (_Demo *DemoSession) GetFooName() (string, error)

GetFooName is a free data retrieval call binding the contract method 0xc6261261.

Solidity: function getFooName() view returns(string)

type DemoTransactor

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

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

func NewDemoTransactor

func NewDemoTransactor(address common.Address, transactor bind.ContractTransactor) (*DemoTransactor, error)

NewDemoTransactor creates a new write-only instance of Demo, bound to a specific deployed contract.

type DemoTransactorRaw

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

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

func (*DemoTransactorRaw) Transact

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

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

func (*DemoTransactorRaw) Transfer

func (_Demo *DemoTransactorRaw) 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 DemoTransactorSession

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

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

type Foo

type Foo struct {
	FooCaller     // Read-only binding to the contract
	FooTransactor // Write-only binding to the contract
	FooFilterer   // Log filterer for contract events
}

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

func NewFoo

func NewFoo(address common.Address, backend bind.ContractBackend) (*Foo, error)

NewFoo creates a new instance of Foo, bound to a specific deployed contract.

type FooCaller

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

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

func NewFooCaller

func NewFooCaller(address common.Address, caller bind.ContractCaller) (*FooCaller, error)

NewFooCaller creates a new read-only instance of Foo, bound to a specific deployed contract.

func (*FooCaller) Name

func (_Foo *FooCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

type FooCallerRaw

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

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

func (*FooCallerRaw) Call

func (_Foo *FooCallerRaw) 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 FooCallerSession

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

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

func (*FooCallerSession) Name

func (_Foo *FooCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

type FooFilterer

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

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

func NewFooFilterer

func NewFooFilterer(address common.Address, filterer bind.ContractFilterer) (*FooFilterer, error)

NewFooFilterer creates a new log filterer instance of Foo, bound to a specific deployed contract.

type FooRaw

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

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

func (*FooRaw) Call

func (_Foo *FooRaw) 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 (*FooRaw) Transact

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

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

func (*FooRaw) Transfer

func (_Foo *FooRaw) 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 FooSession

type FooSession struct {
	Contract     *Foo              // 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
}

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

func (*FooSession) Name

func (_Foo *FooSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

type FooTransactor

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

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

func NewFooTransactor

func NewFooTransactor(address common.Address, transactor bind.ContractTransactor) (*FooTransactor, error)

NewFooTransactor creates a new write-only instance of Foo, bound to a specific deployed contract.

type FooTransactorRaw

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

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

func (*FooTransactorRaw) Transact

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

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

func (*FooTransactorRaw) Transfer

func (_Foo *FooTransactorRaw) 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 FooTransactorSession

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

FooTransactorSession 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