cns

package
v0.0.0-...-5663add Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CnsABI = "" /* 831-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Cns

type Cns struct {
	CnsCaller     // Read-only binding to the contract
	CnsTransactor // Write-only binding to the contract
	CnsFilterer   // Log filterer for contract events
}

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

func NewCns

func NewCns(address common.Address, backend bind.ContractBackend) (*Cns, error)

NewCns creates a new instance of Cns, bound to a specific deployed contract.

type CnsCaller

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

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

func NewCnsCaller

func NewCnsCaller(address common.Address, caller bind.ContractCaller) (*CnsCaller, error)

NewCnsCaller creates a new read-only instance of Cns, bound to a specific deployed contract.

func (*CnsCaller) SelectByName

func (_Cns *CnsCaller) SelectByName(opts *bind.CallOpts, name string) (string, error)

SelectByName is a free data retrieval call binding the contract method 0x819a3d62.

Solidity: function selectByName(string name) constant returns(string)

func (*CnsCaller) SelectByNameAndVersion

func (_Cns *CnsCaller) SelectByNameAndVersion(opts *bind.CallOpts, name string, version string) (string, error)

SelectByNameAndVersion is a free data retrieval call binding the contract method 0x897f0251.

Solidity: function selectByNameAndVersion(string name, string version) constant returns(string)

type CnsCallerRaw

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

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

func (*CnsCallerRaw) Call

func (_Cns *CnsCallerRaw) 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 CnsCallerSession

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

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

func (*CnsCallerSession) SelectByName

func (_Cns *CnsCallerSession) SelectByName(name string) (string, error)

SelectByName is a free data retrieval call binding the contract method 0x819a3d62.

Solidity: function selectByName(string name) constant returns(string)

func (*CnsCallerSession) SelectByNameAndVersion

func (_Cns *CnsCallerSession) SelectByNameAndVersion(name string, version string) (string, error)

SelectByNameAndVersion is a free data retrieval call binding the contract method 0x897f0251.

Solidity: function selectByNameAndVersion(string name, string version) constant returns(string)

type CnsFilterer

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

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

func NewCnsFilterer

func NewCnsFilterer(address common.Address, filterer bind.ContractFilterer) (*CnsFilterer, error)

NewCnsFilterer creates a new log filterer instance of Cns, bound to a specific deployed contract.

type CnsInfo

type CnsInfo struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Address string `json:"address"`
	Abi     string `json:"abi"`
}

CnsInfo is used for the CNSService

func (*CnsInfo) GetAbi

func (cns *CnsInfo) GetAbi() string

GetAbi returns the abi of the CNS

func (*CnsInfo) GetAddress

func (cns *CnsInfo) GetAddress() string

GetAddress returns the address of the CNS

func (*CnsInfo) GetName

func (cns *CnsInfo) GetName() string

GetName returns the name of the CNS

func (*CnsInfo) GetVersion

func (cns *CnsInfo) GetVersion() string

GetVersion returns the version of the CNS

func (*CnsInfo) SetAbi

func (cns *CnsInfo) SetAbi(newAbi string)

SetAbi modified the abi of CNS

func (*CnsInfo) SetAddress

func (cns *CnsInfo) SetAddress(newAddress string)

SetAddress modified the address of CNS

func (*CnsInfo) SetName

func (cns *CnsInfo) SetName(newName string)

SetName modified the name of CNS

func (*CnsInfo) SetVersion

func (cns *CnsInfo) SetVersion(newVersion string)

SetVersion modified the version of CNS

func (*CnsInfo) String

func (cns *CnsInfo) String() string

String method of CnsInfo

type CnsRaw

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

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

func (*CnsRaw) Call

func (_Cns *CnsRaw) 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 (*CnsRaw) Transact

func (_Cns *CnsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.RawTransaction, error)

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

func (*CnsRaw) Transfer

func (_Cns *CnsRaw) Transfer(opts *bind.TransactOpts) (*types.RawTransaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CnsService

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

CnsService is a precompile contract service.

func NewCnsService

func NewCnsService(client *client.Client, privateKey *ecdsa.PrivateKey) (*CnsService, error)

NewCnsService returns ptr of CnsService

func (*CnsService) GetAddressByContractNameAndVersion

func (service *CnsService) GetAddressByContractNameAndVersion(contractNameAndVersion string) (string, error)

GetAddressByContractNameAndVersion returns the contract address.

func (*CnsService) QueryCnsByName

func (service *CnsService) QueryCnsByName(name string) ([]CnsInfo, error)

QueryCnsByName returns the CNS info according to the CNS name

func (*CnsService) QueryCnsByNameAndVersion

func (service *CnsService) QueryCnsByNameAndVersion(name string, version string) ([]CnsInfo, error)

QueryCnsByNameAndVersion returns the CNS info according to the name and version

func (*CnsService) RegisterCns

func (service *CnsService) RegisterCns(name string, version string, addr string, abi string) (*types.RawTransaction, error)

RegisterCns registers a contract for its CNS.

func (*CnsService) SelectByName

func (service *CnsService) SelectByName(name string) (string, error)

SelectByName returns the cns information according to the name string.

func (*CnsService) SelectByNameAndVersion

func (service *CnsService) SelectByNameAndVersion(name string, version string) (string, error)

SelectByNameAndVersion returns the cns information according to the name string and version string.

type CnsSession

type CnsSession struct {
	Contract     *Cns              // 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
}

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

func (*CnsSession) Insert

func (_Cns *CnsSession) Insert(name string, version string, addr string, abi string) (*types.RawTransaction, error)

Insert is a paid mutator transaction binding the contract method 0xa216464b.

Solidity: function insert(string name, string version, string addr, string abi) returns(int256)

func (*CnsSession) SelectByName

func (_Cns *CnsSession) SelectByName(name string) (string, error)

SelectByName is a free data retrieval call binding the contract method 0x819a3d62.

Solidity: function selectByName(string name) constant returns(string)

func (*CnsSession) SelectByNameAndVersion

func (_Cns *CnsSession) SelectByNameAndVersion(name string, version string) (string, error)

SelectByNameAndVersion is a free data retrieval call binding the contract method 0x897f0251.

Solidity: function selectByNameAndVersion(string name, string version) constant returns(string)

type CnsTransactor

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

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

func NewCnsTransactor

func NewCnsTransactor(address common.Address, transactor bind.ContractTransactor) (*CnsTransactor, error)

NewCnsTransactor creates a new write-only instance of Cns, bound to a specific deployed contract.

func (*CnsTransactor) Insert

func (_Cns *CnsTransactor) Insert(opts *bind.TransactOpts, name string, version string, addr string, abi string) (*types.RawTransaction, error)

Insert is a paid mutator transaction binding the contract method 0xa216464b.

Solidity: function insert(string name, string version, string addr, string abi) returns(int256)

type CnsTransactorRaw

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

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

func (*CnsTransactorRaw) Transact

func (_Cns *CnsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.RawTransaction, error)

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

func (*CnsTransactorRaw) Transfer

func (_Cns *CnsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.RawTransaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CnsTransactorSession

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

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

func (*CnsTransactorSession) Insert

func (_Cns *CnsTransactorSession) Insert(name string, version string, addr string, abi string) (*types.RawTransaction, error)

Insert is a paid mutator transaction binding the contract method 0xa216464b.

Solidity: function insert(string name, string version, string addr, string abi) returns(int256)

Jump to

Keyboard shortcuts

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