registry

package
v0.0.0-...-5a544cf Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const RegistryABI = "" /* 3012-byte string literal not displayed */

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

View Source
const RegistryBin = `` /* 6464-byte string literal not displayed */

RegistryBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

func GetAARContractAddress

func GetAARContractAddress() (*common.Address, error)

GetAARContractAddress get Attestation Agency Registry Contract Address

func GetAMContractAddress

func GetAMContractAddress() (*common.Address, error)

GetAMContractAddress get Achievement Manager Contract Address

func GetAcContractAddress

func GetAcContractAddress() (*common.Address, error)

GetAcContractAddress get Achievement Contract Address

func GetAllContractAddress

func GetAllContractAddress() (map[string]*common.Address, error)

GetAllContractAddress get All System Contract Addresses

func GetIMContractAddress

func GetIMContractAddress() (*common.Address, error)

GetIMContractAddress get IdentityManager Contract Address

func GetRegistryContractAddress

func GetRegistryContractAddress() (*common.Address, error)

GetRegistryContractAddress get Registry Contract Address

func GetTRContractAddress

func GetTRContractAddress() (*common.Address, error)

GetTRContractAddress get Topic Registry Contract Address

Types

type Registry

type Registry struct {
	RegistryCaller     // Read-only binding to the contract
	RegistryTransactor // Write-only binding to the contract
	RegistryFilterer   // Log filterer for contract events
}

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

func DeployRegistry

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

DeployRegistry deploys a new Ethereum contract, binding an instance of Registry to it.

func NewRegistry

func NewRegistry(address common.Address, backend bind.ContractBackend) (*Registry, error)

NewRegistry creates a new instance of Registry, bound to a specific deployed contract.

type RegistryCaller

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

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

func NewRegistryCaller

func NewRegistryCaller(address common.Address, caller bind.ContractCaller) (*RegistryCaller, error)

NewRegistryCaller creates a new read-only instance of Registry, bound to a specific deployed contract.

func (*RegistryCaller) Contracts

func (_Registry *RegistryCaller) Contracts(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

Contracts is a free data retrieval call binding the contract method 0xec56a373.

Solidity: function contracts(bytes32 ) constant returns(address)

func (*RegistryCaller) GetContractAddress

func (_Registry *RegistryCaller) GetContractAddress(opts *bind.CallOpts, _name [32]byte) (common.Address, error)

GetContractAddress is a free data retrieval call binding the contract method 0x0d2020dd.

Solidity: function getContractAddress(bytes32 _name) constant returns(address addr)

func (*RegistryCaller) GetPermission

func (_Registry *RegistryCaller) GetPermission(opts *bind.CallOpts, _contract [32]byte, _granted common.Address) (bool, error)

GetPermission is a free data retrieval call binding the contract method 0x60d6c7cf.

Solidity: function getPermission(bytes32 _contract, address _granted) constant returns(bool found)

func (*RegistryCaller) IsOwner

func (_Registry *RegistryCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() constant returns(bool)

func (*RegistryCaller) Owner

func (_Registry *RegistryCaller) 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 (*RegistryCaller) Permissions

func (_Registry *RegistryCaller) Permissions(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (bool, error)

Permissions is a free data retrieval call binding the contract method 0x3ec50c6c.

Solidity: function permissions(bytes32 , address ) constant returns(bool)

type RegistryCallerRaw

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

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

func (*RegistryCallerRaw) Call

func (_Registry *RegistryCallerRaw) 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 RegistryCallerSession

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

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

func (*RegistryCallerSession) Contracts

func (_Registry *RegistryCallerSession) Contracts(arg0 [32]byte) (common.Address, error)

Contracts is a free data retrieval call binding the contract method 0xec56a373.

Solidity: function contracts(bytes32 ) constant returns(address)

func (*RegistryCallerSession) GetContractAddress

func (_Registry *RegistryCallerSession) GetContractAddress(_name [32]byte) (common.Address, error)

GetContractAddress is a free data retrieval call binding the contract method 0x0d2020dd.

Solidity: function getContractAddress(bytes32 _name) constant returns(address addr)

func (*RegistryCallerSession) GetPermission

func (_Registry *RegistryCallerSession) GetPermission(_contract [32]byte, _granted common.Address) (bool, error)

GetPermission is a free data retrieval call binding the contract method 0x60d6c7cf.

Solidity: function getPermission(bytes32 _contract, address _granted) constant returns(bool found)

func (*RegistryCallerSession) IsOwner

func (_Registry *RegistryCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() constant returns(bool)

func (*RegistryCallerSession) Owner

func (_Registry *RegistryCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*RegistryCallerSession) Permissions

func (_Registry *RegistryCallerSession) Permissions(arg0 [32]byte, arg1 common.Address) (bool, error)

Permissions is a free data retrieval call binding the contract method 0x3ec50c6c.

Solidity: function permissions(bytes32 , address ) constant returns(bool)

type RegistryFilterer

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

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

func NewRegistryFilterer

func NewRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryFilterer, error)

NewRegistryFilterer creates a new log filterer instance of Registry, bound to a specific deployed contract.

func (*RegistryFilterer) FilterOwnershipTransferred

func (_Registry *RegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*RegistryOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RegistryFilterer) FilterSetContractDomain

func (_Registry *RegistryFilterer) FilterSetContractDomain(opts *bind.FilterOpts, name [][32]byte, addr []common.Address) (*RegistrySetContractDomainIterator, error)

FilterSetContractDomain is a free log retrieval operation binding the contract event 0x37724a4a9968ac9654e6ee52f3d0c93e5ef8863e057254ee2e36e8ad3e8429db.

Solidity: event SetContractDomain(address setter, bytes32 indexed name, address indexed addr)

func (*RegistryFilterer) FilterSetPermission

func (_Registry *RegistryFilterer) FilterSetPermission(opts *bind.FilterOpts, _contract [][32]byte, granted []common.Address) (*RegistrySetPermissionIterator, error)

FilterSetPermission is a free log retrieval operation binding the contract event 0xe9f5231bbfb4b32867755b94562215cff6c8998489de8ba20926f8d0980e7818.

Solidity: event SetPermission(bytes32 indexed _contract, address indexed granted, bool status)

func (*RegistryFilterer) WatchOwnershipTransferred

func (_Registry *RegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *RegistryOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*RegistryFilterer) WatchSetContractDomain

func (_Registry *RegistryFilterer) WatchSetContractDomain(opts *bind.WatchOpts, sink chan<- *RegistrySetContractDomain, name [][32]byte, addr []common.Address) (event.Subscription, error)

WatchSetContractDomain is a free log subscription operation binding the contract event 0x37724a4a9968ac9654e6ee52f3d0c93e5ef8863e057254ee2e36e8ad3e8429db.

Solidity: event SetContractDomain(address setter, bytes32 indexed name, address indexed addr)

func (*RegistryFilterer) WatchSetPermission

func (_Registry *RegistryFilterer) WatchSetPermission(opts *bind.WatchOpts, sink chan<- *RegistrySetPermission, _contract [][32]byte, granted []common.Address) (event.Subscription, error)

WatchSetPermission is a free log subscription operation binding the contract event 0xe9f5231bbfb4b32867755b94562215cff6c8998489de8ba20926f8d0980e7818.

Solidity: event SetPermission(bytes32 indexed _contract, address indexed granted, bool status)

type RegistryOwnershipTransferred

type RegistryOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

RegistryOwnershipTransferred represents a OwnershipTransferred event raised by the Registry contract.

type RegistryOwnershipTransferredIterator

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

RegistryOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Registry contract.

func (*RegistryOwnershipTransferredIterator) Close

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

func (*RegistryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistryOwnershipTransferredIterator) 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 RegistryRaw

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

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

func (*RegistryRaw) Call

func (_Registry *RegistryRaw) 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 (*RegistryRaw) Transact

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

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

func (*RegistryRaw) Transfer

func (_Registry *RegistryRaw) 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 RegistrySession

type RegistrySession struct {
	Contract     *Registry         // 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
}

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

func (*RegistrySession) Contracts

func (_Registry *RegistrySession) Contracts(arg0 [32]byte) (common.Address, error)

Contracts is a free data retrieval call binding the contract method 0xec56a373.

Solidity: function contracts(bytes32 ) constant returns(address)

func (*RegistrySession) GetContractAddress

func (_Registry *RegistrySession) GetContractAddress(_name [32]byte) (common.Address, error)

GetContractAddress is a free data retrieval call binding the contract method 0x0d2020dd.

Solidity: function getContractAddress(bytes32 _name) constant returns(address addr)

func (*RegistrySession) GetPermission

func (_Registry *RegistrySession) GetPermission(_contract [32]byte, _granted common.Address) (bool, error)

GetPermission is a free data retrieval call binding the contract method 0x60d6c7cf.

Solidity: function getPermission(bytes32 _contract, address _granted) constant returns(bool found)

func (*RegistrySession) IsOwner

func (_Registry *RegistrySession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() constant returns(bool)

func (*RegistrySession) Owner

func (_Registry *RegistrySession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*RegistrySession) Permissions

func (_Registry *RegistrySession) Permissions(arg0 [32]byte, arg1 common.Address) (bool, error)

Permissions is a free data retrieval call binding the contract method 0x3ec50c6c.

Solidity: function permissions(bytes32 , address ) constant returns(bool)

func (*RegistrySession) RenounceOwnership

func (_Registry *RegistrySession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RegistrySession) SetContractDomain

func (_Registry *RegistrySession) SetContractDomain(_name [32]byte, _addr common.Address) (*types.Transaction, error)

SetContractDomain is a paid mutator transaction binding the contract method 0x04af66ad.

Solidity: function setContractDomain(bytes32 _name, address _addr) returns(bool success)

func (*RegistrySession) SetPermission

func (_Registry *RegistrySession) SetPermission(_contract [32]byte, _granted common.Address, _status bool) (*types.Transaction, error)

SetPermission is a paid mutator transaction binding the contract method 0x599e4c70.

Solidity: function setPermission(bytes32 _contract, address _granted, bool _status) returns(bool success)

func (*RegistrySession) TransferOwnership

func (_Registry *RegistrySession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type RegistrySetContractDomain

type RegistrySetContractDomain struct {
	Setter common.Address
	Name   [32]byte
	Addr   common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

RegistrySetContractDomain represents a SetContractDomain event raised by the Registry contract.

type RegistrySetContractDomainIterator

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

RegistrySetContractDomainIterator is returned from FilterSetContractDomain and is used to iterate over the raw logs and unpacked data for SetContractDomain events raised by the Registry contract.

func (*RegistrySetContractDomainIterator) Close

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

func (*RegistrySetContractDomainIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistrySetContractDomainIterator) 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 RegistrySetPermission

type RegistrySetPermission struct {
	Contract [32]byte
	Granted  common.Address
	Status   bool
	Raw      types.Log // Blockchain specific contextual infos
}

RegistrySetPermission represents a SetPermission event raised by the Registry contract.

type RegistrySetPermissionIterator

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

RegistrySetPermissionIterator is returned from FilterSetPermission and is used to iterate over the raw logs and unpacked data for SetPermission events raised by the Registry contract.

func (*RegistrySetPermissionIterator) Close

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

func (*RegistrySetPermissionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*RegistrySetPermissionIterator) 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 RegistryTransactor

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

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

func NewRegistryTransactor

func NewRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryTransactor, error)

NewRegistryTransactor creates a new write-only instance of Registry, bound to a specific deployed contract.

func (*RegistryTransactor) RenounceOwnership

func (_Registry *RegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RegistryTransactor) SetContractDomain

func (_Registry *RegistryTransactor) SetContractDomain(opts *bind.TransactOpts, _name [32]byte, _addr common.Address) (*types.Transaction, error)

SetContractDomain is a paid mutator transaction binding the contract method 0x04af66ad.

Solidity: function setContractDomain(bytes32 _name, address _addr) returns(bool success)

func (*RegistryTransactor) SetPermission

func (_Registry *RegistryTransactor) SetPermission(opts *bind.TransactOpts, _contract [32]byte, _granted common.Address, _status bool) (*types.Transaction, error)

SetPermission is a paid mutator transaction binding the contract method 0x599e4c70.

Solidity: function setPermission(bytes32 _contract, address _granted, bool _status) returns(bool success)

func (*RegistryTransactor) TransferOwnership

func (_Registry *RegistryTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type RegistryTransactorRaw

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

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

func (*RegistryTransactorRaw) Transact

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

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

func (*RegistryTransactorRaw) Transfer

func (_Registry *RegistryTransactorRaw) 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 RegistryTransactorSession

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

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

func (*RegistryTransactorSession) RenounceOwnership

func (_Registry *RegistryTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*RegistryTransactorSession) SetContractDomain

func (_Registry *RegistryTransactorSession) SetContractDomain(_name [32]byte, _addr common.Address) (*types.Transaction, error)

SetContractDomain is a paid mutator transaction binding the contract method 0x04af66ad.

Solidity: function setContractDomain(bytes32 _name, address _addr) returns(bool success)

func (*RegistryTransactorSession) SetPermission

func (_Registry *RegistryTransactorSession) SetPermission(_contract [32]byte, _granted common.Address, _status bool) (*types.Transaction, error)

SetPermission is a paid mutator transaction binding the contract method 0x599e4c70.

Solidity: function setPermission(bytes32 _contract, address _granted, bool _status) returns(bool success)

func (*RegistryTransactorSession) TransferOwnership

func (_Registry *RegistryTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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