Versions in this module Expand all Collapse all v0 v0.0.1 Nov 17, 2020 Changes in this version + const CnsABI + type Cns struct + func NewCns(address common.Address, backend bind.ContractBackend) (*Cns, error) + type CnsCaller struct + func NewCnsCaller(address common.Address, caller bind.ContractCaller) (*CnsCaller, error) + func (_Cns *CnsCaller) GetContractAddress(opts *bind.CallOpts, name string, version string) (common.Address, error) + func (_Cns *CnsCaller) SelectByName(opts *bind.CallOpts, name string) (string, error) + func (_Cns *CnsCaller) SelectByNameAndVersion(opts *bind.CallOpts, name string, version string) (string, error) + type CnsCallerRaw struct + Contract *CnsCaller + func (_Cns *CnsCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + type CnsCallerSession struct + CallOpts bind.CallOpts + Contract *CnsCaller + func (_Cns *CnsCallerSession) GetContractAddress(name string, version string) (common.Address, error) + func (_Cns *CnsCallerSession) SelectByName(name string) (string, error) + func (_Cns *CnsCallerSession) SelectByNameAndVersion(name string, version string) (string, error) + type CnsFilterer struct + func NewCnsFilterer(address common.Address, filterer bind.ContractFilterer) (*CnsFilterer, error) + type CnsRaw struct + Contract *Cns + func (_Cns *CnsRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error + func (_Cns *CnsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (_Cns *CnsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type CnsSession struct + CallOpts bind.CallOpts + Contract *Cns + TransactOpts bind.TransactOpts + func (_Cns *CnsSession) GetContractAddress(name string, version string) (common.Address, error) + func (_Cns *CnsSession) Insert(name string, version string, addr string, abi string) (*types.Transaction, *types.Receipt, error) + func (_Cns *CnsSession) SelectByName(name string) (string, error) + func (_Cns *CnsSession) SelectByNameAndVersion(name string, version string) (string, error) + type CnsTransactor struct + func NewCnsTransactor(address common.Address, transactor bind.ContractTransactor) (*CnsTransactor, error) + func (_Cns *CnsTransactor) Insert(opts *bind.TransactOpts, name string, version string, addr string, abi string) (*types.Transaction, *types.Receipt, error) + type CnsTransactorRaw struct + Contract *CnsTransactor + func (_Cns *CnsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, *types.Receipt, error) + func (_Cns *CnsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, *types.Receipt, error) + type CnsTransactorSession struct + Contract *CnsTransactor + TransactOpts bind.TransactOpts + func (_Cns *CnsTransactorSession) Insert(name string, version string, addr string, abi string) (*types.Transaction, *types.Receipt, error) + type Info struct + Abi string + Address string + Name string + Version string + type Service struct + func NewCnsService(client *client.Client) (*Service, error) + func (service *Service) GetAddressByContractNameAndVersion(contractName, version string) (common.Address, error) + func (service *Service) QueryCnsByName(name string) ([]Info, error) + func (service *Service) QueryCnsByNameAndVersion(name string, version string) ([]Info, error) + func (service *Service) RegisterCns(name string, version string, addr string, abi string) (int64, error) + func (service *Service) SelectByName(name string) (string, error) + func (service *Service) SelectByNameAndVersion(name string, version string) (string, error)