Documentation ¶
Index ¶
- Constants
- func HashDOT(dat []byte) []byte
- type AliasAPI
- type AliasAPICaller
- func (_AliasAPI *AliasAPICaller) GetHead(opts *bind.CallOpts, tld [32]byte, domain [32]byte) ([32]byte, error)
- func (_AliasAPI *AliasAPICaller) GetSubdomain(opts *bind.CallOpts, tld [32]byte, domain [32]byte, subdomain [32]byte) ([]byte, error)
- func (_AliasAPI *AliasAPICaller) Toplevels(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)
- type AliasAPICallerRaw
- type AliasAPICallerSession
- func (_AliasAPI *AliasAPICallerSession) GetHead(tld [32]byte, domain [32]byte) ([32]byte, error)
- func (_AliasAPI *AliasAPICallerSession) GetSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte) ([]byte, error)
- func (_AliasAPI *AliasAPICallerSession) Toplevels(arg0 [32]byte) (common.Address, error)
- type AliasAPIRaw
- func (_AliasAPI *AliasAPIRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_AliasAPI *AliasAPIRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_AliasAPI *AliasAPIRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type AliasAPISession
- func (_AliasAPI *AliasAPISession) CreateSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte, value []byte) (*types.Transaction, error)
- func (_AliasAPI *AliasAPISession) CreateTLD(tld [32]byte) (*types.Transaction, error)
- func (_AliasAPI *AliasAPISession) GetHead(tld [32]byte, domain [32]byte) ([32]byte, error)
- func (_AliasAPI *AliasAPISession) GetSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte) ([]byte, error)
- func (_AliasAPI *AliasAPISession) Toplevels(arg0 [32]byte) (common.Address, error)
- type AliasAPITransactor
- type AliasAPITransactorRaw
- type AliasAPITransactorSession
- type AliasRegistration
- type ChangeEvent
- type DOTRegistration
- type EntityRegistration
- type EthereumStorage
- func (es *EthereumStorage) CreateAlias(ctx context.Context, account common.Address, subdomain [32]byte, ...) (*Transaction, error)
- func (es *EthereumStorage) CreateTLD(ctx context.Context, controller common.Address, tld [32]byte, signFn SignerFn) (*Transaction, error)
- func (es *EthereumStorage) GetStateInformation(ctx context.Context) (*StateInformation, error)
- func (es *EthereumStorage) InsertDOTOffChain(ctx context.Context, account common.Address, DstHash []byte, hash []byte, ...) (*Transaction, error)
- func (es *EthereumStorage) InsertDOTOnChain(ctx context.Context, account common.Address, DstHash []byte, data []byte, ...) (*Transaction, error)
- func (es *EthereumStorage) InsertEntity(ctx context.Context, controller common.Address, data []byte, signFn SignerFn) (*Transaction, error)
- func (es *EthereumStorage) InsertRevocation(ctx context.Context, controller common.Address, data []byte, signFn SignerFn) (*Transaction, error)
- func (es *EthereumStorage) ResolveAlias(ctx context.Context, subdomain [32]byte, domain [32]byte, tld [32]byte) (*AliasRegistration, *StateInformation, error)
- func (es *EthereumStorage) ResolvePartialAlias(ctx context.Context, domain [32]byte, tld [32]byte) (*AliasRegistration, *StateInformation, error)
- func (es *EthereumStorage) RetrieveDOTByEntityIndex(ctx context.Context, DstHash []byte, index int) (*DOTRegistration, *StateInformation, error)
- func (es *EthereumStorage) RetrieveDOTByHash(ctx context.Context, hash []byte, location Location) (*DOTRegistration, *StateInformation, error)
- func (es *EthereumStorage) RetrieveEntity(ctx context.Context, hash []byte) (*EntityRegistration, *StateInformation, error)
- func (es *EthereumStorage) RetrieveRevocation(ctx context.Context, hash []byte) ([]byte, *StateInformation, error)
- func (es *EthereumStorage) SubscribeStorageChange(ctx context.Context, ch chan *ChangeEvent) error
- func (es *EthereumStorage) TransactionInfo(ctx context.Context, hash []byte) (*TransactionInfo, error)
- type Location
- type RegistryAPI
- type RegistryAPICaller
- func (_RegistryAPI *RegistryAPICaller) Dots(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) (struct{ ... }, error)
- func (_RegistryAPI *RegistryAPICaller) DotsByHash(opts *bind.CallOpts, arg0 [32]byte) ([]byte, error)
- func (_RegistryAPI *RegistryAPICaller) Entities(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_RegistryAPI *RegistryAPICaller) Revocations(opts *bind.CallOpts, arg0 [32]byte) ([]byte, error)
- type RegistryAPICallerRaw
- type RegistryAPICallerSession
- func (_RegistryAPI *RegistryAPICallerSession) Dots(arg0 [32]byte, arg1 *big.Int) (struct{ ... }, error)
- func (_RegistryAPI *RegistryAPICallerSession) DotsByHash(arg0 [32]byte) ([]byte, error)
- func (_RegistryAPI *RegistryAPICallerSession) Entities(arg0 [32]byte) (struct{ ... }, error)
- func (_RegistryAPI *RegistryAPICallerSession) Revocations(arg0 [32]byte) ([]byte, error)
- type RegistryAPIRaw
- func (_RegistryAPI *RegistryAPIRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_RegistryAPI *RegistryAPIRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPIRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type RegistryAPISession
- func (_RegistryAPI *RegistryAPISession) Dots(arg0 [32]byte, arg1 *big.Int) (struct{ ... }, error)
- func (_RegistryAPI *RegistryAPISession) DotsByHash(arg0 [32]byte) ([]byte, error)
- func (_RegistryAPI *RegistryAPISession) Entities(arg0 [32]byte) (struct{ ... }, error)
- func (_RegistryAPI *RegistryAPISession) RegisterDot(dsthash [32]byte, data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPISession) RegisterEntity(data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPISession) RegisterOffChainDot(dsthash [32]byte, hash [32]byte, storageType *big.Int) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPISession) RegisterRevocation(data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPISession) Revocations(arg0 [32]byte) ([]byte, error)
- type RegistryAPITransactor
- func (_RegistryAPI *RegistryAPITransactor) RegisterDot(opts *bind.TransactOpts, dsthash [32]byte, data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPITransactor) RegisterEntity(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPITransactor) RegisterOffChainDot(opts *bind.TransactOpts, dsthash [32]byte, hash [32]byte, storageType *big.Int) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPITransactor) RegisterRevocation(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
- type RegistryAPITransactorRaw
- type RegistryAPITransactorSession
- func (_RegistryAPI *RegistryAPITransactorSession) RegisterDot(dsthash [32]byte, data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPITransactorSession) RegisterEntity(data []byte) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPITransactorSession) RegisterOffChainDot(dsthash [32]byte, hash [32]byte, storageType *big.Int) (*types.Transaction, error)
- func (_RegistryAPI *RegistryAPITransactorSession) RegisterRevocation(data []byte) (*types.Transaction, error)
- type SignerFn
- type StateInformation
- type Storage
- type Transaction
- type TransactionInfo
Constants ¶
const AliasAPIABI = "" /* 1456-byte string literal not displayed */
AliasAPIABI is the input ABI used to generate the binding from.
const LocationOnChain = Location(1)
const RegistryAPIABI = "" /* 2033-byte string literal not displayed */
RegistryAPIABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AliasAPI ¶
type AliasAPI struct { AliasAPICaller // Read-only binding to the contract AliasAPITransactor // Write-only binding to the contract }
AliasAPI is an auto generated Go binding around an Ethereum contract.
func NewAliasAPI ¶
NewAliasAPI creates a new instance of AliasAPI, bound to a specific deployed contract.
type AliasAPICaller ¶
type AliasAPICaller struct {
// contains filtered or unexported fields
}
AliasAPICaller is an auto generated read-only Go binding around an Ethereum contract.
func NewAliasAPICaller ¶
func NewAliasAPICaller(address common.Address, caller bind.ContractCaller) (*AliasAPICaller, error)
NewAliasAPICaller creates a new read-only instance of AliasAPI, bound to a specific deployed contract.
func (*AliasAPICaller) GetHead ¶
func (_AliasAPI *AliasAPICaller) GetHead(opts *bind.CallOpts, tld [32]byte, domain [32]byte) ([32]byte, error)
GetHead is a free data retrieval call binding the contract method 0x869753f0.
Solidity: function GetHead(tld bytes32, domain bytes32) constant returns(head bytes32)
func (*AliasAPICaller) GetSubdomain ¶
func (_AliasAPI *AliasAPICaller) GetSubdomain(opts *bind.CallOpts, tld [32]byte, domain [32]byte, subdomain [32]byte) ([]byte, error)
GetSubdomain is a free data retrieval call binding the contract method 0x4c664b92.
Solidity: function GetSubdomain(tld bytes32, domain bytes32, subdomain bytes32) constant returns(v bytes)
type AliasAPICallerRaw ¶
type AliasAPICallerRaw struct {
Contract *AliasAPICaller // Generic read-only contract binding to access the raw methods on
}
AliasAPICallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*AliasAPICallerRaw) Call ¶
func (_AliasAPI *AliasAPICallerRaw) 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 AliasAPICallerSession ¶
type AliasAPICallerSession struct { Contract *AliasAPICaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
AliasAPICallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*AliasAPICallerSession) GetHead ¶
func (_AliasAPI *AliasAPICallerSession) GetHead(tld [32]byte, domain [32]byte) ([32]byte, error)
GetHead is a free data retrieval call binding the contract method 0x869753f0.
Solidity: function GetHead(tld bytes32, domain bytes32) constant returns(head bytes32)
func (*AliasAPICallerSession) GetSubdomain ¶
func (_AliasAPI *AliasAPICallerSession) GetSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte) ([]byte, error)
GetSubdomain is a free data retrieval call binding the contract method 0x4c664b92.
Solidity: function GetSubdomain(tld bytes32, domain bytes32, subdomain bytes32) constant returns(v bytes)
type AliasAPIRaw ¶
type AliasAPIRaw struct {
Contract *AliasAPI // Generic contract binding to access the raw methods on
}
AliasAPIRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*AliasAPIRaw) Call ¶
func (_AliasAPI *AliasAPIRaw) 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 (*AliasAPIRaw) Transact ¶
func (_AliasAPI *AliasAPIRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*AliasAPIRaw) Transfer ¶
func (_AliasAPI *AliasAPIRaw) 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 AliasAPISession ¶
type AliasAPISession struct { Contract *AliasAPI // 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 }
AliasAPISession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*AliasAPISession) CreateSubdomain ¶
func (_AliasAPI *AliasAPISession) CreateSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte, value []byte) (*types.Transaction, error)
CreateSubdomain is a paid mutator transaction binding the contract method 0x4ef3b3cc.
Solidity: function CreateSubdomain(tld bytes32, domain bytes32, subdomain bytes32, value bytes) returns()
func (*AliasAPISession) CreateTLD ¶
func (_AliasAPI *AliasAPISession) CreateTLD(tld [32]byte) (*types.Transaction, error)
CreateTLD is a paid mutator transaction binding the contract method 0xb44bbd25.
Solidity: function CreateTLD(tld bytes32) returns()
func (*AliasAPISession) GetHead ¶
func (_AliasAPI *AliasAPISession) GetHead(tld [32]byte, domain [32]byte) ([32]byte, error)
GetHead is a free data retrieval call binding the contract method 0x869753f0.
Solidity: function GetHead(tld bytes32, domain bytes32) constant returns(head bytes32)
func (*AliasAPISession) GetSubdomain ¶
func (_AliasAPI *AliasAPISession) GetSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte) ([]byte, error)
GetSubdomain is a free data retrieval call binding the contract method 0x4c664b92.
Solidity: function GetSubdomain(tld bytes32, domain bytes32, subdomain bytes32) constant returns(v bytes)
type AliasAPITransactor ¶
type AliasAPITransactor struct {
// contains filtered or unexported fields
}
AliasAPITransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewAliasAPITransactor ¶
func NewAliasAPITransactor(address common.Address, transactor bind.ContractTransactor) (*AliasAPITransactor, error)
NewAliasAPITransactor creates a new write-only instance of AliasAPI, bound to a specific deployed contract.
func (*AliasAPITransactor) CreateSubdomain ¶
func (_AliasAPI *AliasAPITransactor) CreateSubdomain(opts *bind.TransactOpts, tld [32]byte, domain [32]byte, subdomain [32]byte, value []byte) (*types.Transaction, error)
CreateSubdomain is a paid mutator transaction binding the contract method 0x4ef3b3cc.
Solidity: function CreateSubdomain(tld bytes32, domain bytes32, subdomain bytes32, value bytes) returns()
func (*AliasAPITransactor) CreateTLD ¶
func (_AliasAPI *AliasAPITransactor) CreateTLD(opts *bind.TransactOpts, tld [32]byte) (*types.Transaction, error)
CreateTLD is a paid mutator transaction binding the contract method 0xb44bbd25.
Solidity: function CreateTLD(tld bytes32) returns()
type AliasAPITransactorRaw ¶
type AliasAPITransactorRaw struct {
Contract *AliasAPITransactor // Generic write-only contract binding to access the raw methods on
}
AliasAPITransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*AliasAPITransactorRaw) Transact ¶
func (_AliasAPI *AliasAPITransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*AliasAPITransactorRaw) Transfer ¶
func (_AliasAPI *AliasAPITransactorRaw) 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 AliasAPITransactorSession ¶
type AliasAPITransactorSession struct { Contract *AliasAPITransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
AliasAPITransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*AliasAPITransactorSession) CreateSubdomain ¶
func (_AliasAPI *AliasAPITransactorSession) CreateSubdomain(tld [32]byte, domain [32]byte, subdomain [32]byte, value []byte) (*types.Transaction, error)
CreateSubdomain is a paid mutator transaction binding the contract method 0x4ef3b3cc.
Solidity: function CreateSubdomain(tld bytes32, domain bytes32, subdomain bytes32, value bytes) returns()
func (*AliasAPITransactorSession) CreateTLD ¶
func (_AliasAPI *AliasAPITransactorSession) CreateTLD(tld [32]byte) (*types.Transaction, error)
CreateTLD is a paid mutator transaction binding the contract method 0xb44bbd25.
Solidity: function CreateTLD(tld bytes32) returns()
type AliasRegistration ¶
type ChangeEvent ¶
type DOTRegistration ¶
type EntityRegistration ¶
type EthereumStorage ¶
type EthereumStorage struct {
// contains filtered or unexported fields
}
func NewEthereumStorage ¶
func NewEthereumStorage(ctx context.Context, ipcaddr string) (*EthereumStorage, error)
func (*EthereumStorage) CreateAlias ¶
func (*EthereumStorage) CreateTLD ¶
func (es *EthereumStorage) CreateTLD(ctx context.Context, controller common.Address, tld [32]byte, signFn SignerFn) (*Transaction, error)
func (*EthereumStorage) GetStateInformation ¶
func (es *EthereumStorage) GetStateInformation(ctx context.Context) (*StateInformation, error)
func (*EthereumStorage) InsertDOTOffChain ¶
func (*EthereumStorage) InsertDOTOnChain ¶
func (es *EthereumStorage) InsertDOTOnChain(ctx context.Context, account common.Address, DstHash []byte, data []byte, signFn SignerFn) (*Transaction, error)
func (*EthereumStorage) InsertEntity ¶
func (es *EthereumStorage) InsertEntity(ctx context.Context, controller common.Address, data []byte, signFn SignerFn) (*Transaction, error)
func (*EthereumStorage) InsertRevocation ¶
func (es *EthereumStorage) InsertRevocation(ctx context.Context, controller common.Address, data []byte, signFn SignerFn) (*Transaction, error)
func (*EthereumStorage) ResolveAlias ¶
func (es *EthereumStorage) ResolveAlias(ctx context.Context, subdomain [32]byte, domain [32]byte, tld [32]byte) (*AliasRegistration, *StateInformation, error)
func (*EthereumStorage) ResolvePartialAlias ¶
func (es *EthereumStorage) ResolvePartialAlias(ctx context.Context, domain [32]byte, tld [32]byte) (*AliasRegistration, *StateInformation, error)
func (*EthereumStorage) RetrieveDOTByEntityIndex ¶
func (es *EthereumStorage) RetrieveDOTByEntityIndex(ctx context.Context, DstHash []byte, index int) (*DOTRegistration, *StateInformation, error)
func (*EthereumStorage) RetrieveDOTByHash ¶
func (es *EthereumStorage) RetrieveDOTByHash(ctx context.Context, hash []byte, location Location) (*DOTRegistration, *StateInformation, error)
func (*EthereumStorage) RetrieveEntity ¶
func (es *EthereumStorage) RetrieveEntity(ctx context.Context, hash []byte) (*EntityRegistration, *StateInformation, error)
func (*EthereumStorage) RetrieveRevocation ¶
func (es *EthereumStorage) RetrieveRevocation(ctx context.Context, hash []byte) ([]byte, *StateInformation, error)
func (*EthereumStorage) SubscribeStorageChange ¶
func (es *EthereumStorage) SubscribeStorageChange(ctx context.Context, ch chan *ChangeEvent) error
func (*EthereumStorage) TransactionInfo ¶
func (es *EthereumStorage) TransactionInfo(ctx context.Context, hash []byte) (*TransactionInfo, error)
type RegistryAPI ¶
type RegistryAPI struct { RegistryAPICaller // Read-only binding to the contract RegistryAPITransactor // Write-only binding to the contract }
RegistryAPI is an auto generated Go binding around an Ethereum contract.
func NewRegistryAPI ¶
func NewRegistryAPI(address common.Address, backend bind.ContractBackend) (*RegistryAPI, error)
NewRegistryAPI creates a new instance of RegistryAPI, bound to a specific deployed contract.
type RegistryAPICaller ¶
type RegistryAPICaller struct {
// contains filtered or unexported fields
}
RegistryAPICaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRegistryAPICaller ¶
func NewRegistryAPICaller(address common.Address, caller bind.ContractCaller) (*RegistryAPICaller, error)
NewRegistryAPICaller creates a new read-only instance of RegistryAPI, bound to a specific deployed contract.
func (*RegistryAPICaller) Dots ¶
func (_RegistryAPI *RegistryAPICaller) Dots(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) (struct { Hash [32]byte StorageType *big.Int }, error)
Dots is a free data retrieval call binding the contract method 0xefb49d2d.
Solidity: function dots( bytes32, uint256) constant returns(hash bytes32, storageType uint256)
func (*RegistryAPICaller) DotsByHash ¶
func (_RegistryAPI *RegistryAPICaller) DotsByHash(opts *bind.CallOpts, arg0 [32]byte) ([]byte, error)
DotsByHash is a free data retrieval call binding the contract method 0x24557875.
Solidity: function dotsByHash( bytes32) constant returns(bytes)
func (*RegistryAPICaller) Entities ¶
func (_RegistryAPI *RegistryAPICaller) Entities(opts *bind.CallOpts, arg0 [32]byte) (struct { Controller common.Address Data []byte }, error)
Entities is a free data retrieval call binding the contract method 0xe5b338fd.
Solidity: function entities( bytes32) constant returns(controller address, data bytes)
func (*RegistryAPICaller) Revocations ¶
func (_RegistryAPI *RegistryAPICaller) Revocations(opts *bind.CallOpts, arg0 [32]byte) ([]byte, error)
Revocations is a free data retrieval call binding the contract method 0xbbe48780.
Solidity: function revocations( bytes32) constant returns(bytes)
type RegistryAPICallerRaw ¶
type RegistryAPICallerRaw struct {
Contract *RegistryAPICaller // Generic read-only contract binding to access the raw methods on
}
RegistryAPICallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RegistryAPICallerRaw) Call ¶
func (_RegistryAPI *RegistryAPICallerRaw) 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 RegistryAPICallerSession ¶
type RegistryAPICallerSession struct { Contract *RegistryAPICaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RegistryAPICallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RegistryAPICallerSession) Dots ¶
func (_RegistryAPI *RegistryAPICallerSession) Dots(arg0 [32]byte, arg1 *big.Int) (struct { Hash [32]byte StorageType *big.Int }, error)
Dots is a free data retrieval call binding the contract method 0xefb49d2d.
Solidity: function dots( bytes32, uint256) constant returns(hash bytes32, storageType uint256)
func (*RegistryAPICallerSession) DotsByHash ¶
func (_RegistryAPI *RegistryAPICallerSession) DotsByHash(arg0 [32]byte) ([]byte, error)
DotsByHash is a free data retrieval call binding the contract method 0x24557875.
Solidity: function dotsByHash( bytes32) constant returns(bytes)
func (*RegistryAPICallerSession) Entities ¶
func (_RegistryAPI *RegistryAPICallerSession) Entities(arg0 [32]byte) (struct { Controller common.Address Data []byte }, error)
Entities is a free data retrieval call binding the contract method 0xe5b338fd.
Solidity: function entities( bytes32) constant returns(controller address, data bytes)
func (*RegistryAPICallerSession) Revocations ¶
func (_RegistryAPI *RegistryAPICallerSession) Revocations(arg0 [32]byte) ([]byte, error)
Revocations is a free data retrieval call binding the contract method 0xbbe48780.
Solidity: function revocations( bytes32) constant returns(bytes)
type RegistryAPIRaw ¶
type RegistryAPIRaw struct {
Contract *RegistryAPI // Generic contract binding to access the raw methods on
}
RegistryAPIRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RegistryAPIRaw) Call ¶
func (_RegistryAPI *RegistryAPIRaw) 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 (*RegistryAPIRaw) Transact ¶
func (_RegistryAPI *RegistryAPIRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RegistryAPIRaw) Transfer ¶
func (_RegistryAPI *RegistryAPIRaw) 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 RegistryAPISession ¶
type RegistryAPISession struct { Contract *RegistryAPI // 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 }
RegistryAPISession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RegistryAPISession) Dots ¶
func (_RegistryAPI *RegistryAPISession) Dots(arg0 [32]byte, arg1 *big.Int) (struct { Hash [32]byte StorageType *big.Int }, error)
Dots is a free data retrieval call binding the contract method 0xefb49d2d.
Solidity: function dots( bytes32, uint256) constant returns(hash bytes32, storageType uint256)
func (*RegistryAPISession) DotsByHash ¶
func (_RegistryAPI *RegistryAPISession) DotsByHash(arg0 [32]byte) ([]byte, error)
DotsByHash is a free data retrieval call binding the contract method 0x24557875.
Solidity: function dotsByHash( bytes32) constant returns(bytes)
func (*RegistryAPISession) Entities ¶
func (_RegistryAPI *RegistryAPISession) Entities(arg0 [32]byte) (struct { Controller common.Address Data []byte }, error)
Entities is a free data retrieval call binding the contract method 0xe5b338fd.
Solidity: function entities( bytes32) constant returns(controller address, data bytes)
func (*RegistryAPISession) RegisterDot ¶
func (_RegistryAPI *RegistryAPISession) RegisterDot(dsthash [32]byte, data []byte) (*types.Transaction, error)
RegisterDot is a paid mutator transaction binding the contract method 0x6fa36c80.
Solidity: function registerDot(dsthash bytes32, data bytes) returns()
func (*RegistryAPISession) RegisterEntity ¶
func (_RegistryAPI *RegistryAPISession) RegisterEntity(data []byte) (*types.Transaction, error)
RegisterEntity is a paid mutator transaction binding the contract method 0xc93b1335.
Solidity: function registerEntity(data bytes) returns()
func (*RegistryAPISession) RegisterOffChainDot ¶
func (_RegistryAPI *RegistryAPISession) RegisterOffChainDot(dsthash [32]byte, hash [32]byte, storageType *big.Int) (*types.Transaction, error)
RegisterOffChainDot is a paid mutator transaction binding the contract method 0x427fde4c.
Solidity: function registerOffChainDot(dsthash bytes32, hash bytes32, storageType uint256) returns()
func (*RegistryAPISession) RegisterRevocation ¶
func (_RegistryAPI *RegistryAPISession) RegisterRevocation(data []byte) (*types.Transaction, error)
RegisterRevocation is a paid mutator transaction binding the contract method 0x18c22a6d.
Solidity: function registerRevocation(data bytes) returns()
func (*RegistryAPISession) Revocations ¶
func (_RegistryAPI *RegistryAPISession) Revocations(arg0 [32]byte) ([]byte, error)
Revocations is a free data retrieval call binding the contract method 0xbbe48780.
Solidity: function revocations( bytes32) constant returns(bytes)
type RegistryAPITransactor ¶
type RegistryAPITransactor struct {
// contains filtered or unexported fields
}
RegistryAPITransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRegistryAPITransactor ¶
func NewRegistryAPITransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryAPITransactor, error)
NewRegistryAPITransactor creates a new write-only instance of RegistryAPI, bound to a specific deployed contract.
func (*RegistryAPITransactor) RegisterDot ¶
func (_RegistryAPI *RegistryAPITransactor) RegisterDot(opts *bind.TransactOpts, dsthash [32]byte, data []byte) (*types.Transaction, error)
RegisterDot is a paid mutator transaction binding the contract method 0x6fa36c80.
Solidity: function registerDot(dsthash bytes32, data bytes) returns()
func (*RegistryAPITransactor) RegisterEntity ¶
func (_RegistryAPI *RegistryAPITransactor) RegisterEntity(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
RegisterEntity is a paid mutator transaction binding the contract method 0xc93b1335.
Solidity: function registerEntity(data bytes) returns()
func (*RegistryAPITransactor) RegisterOffChainDot ¶
func (_RegistryAPI *RegistryAPITransactor) RegisterOffChainDot(opts *bind.TransactOpts, dsthash [32]byte, hash [32]byte, storageType *big.Int) (*types.Transaction, error)
RegisterOffChainDot is a paid mutator transaction binding the contract method 0x427fde4c.
Solidity: function registerOffChainDot(dsthash bytes32, hash bytes32, storageType uint256) returns()
func (*RegistryAPITransactor) RegisterRevocation ¶
func (_RegistryAPI *RegistryAPITransactor) RegisterRevocation(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
RegisterRevocation is a paid mutator transaction binding the contract method 0x18c22a6d.
Solidity: function registerRevocation(data bytes) returns()
type RegistryAPITransactorRaw ¶
type RegistryAPITransactorRaw struct {
Contract *RegistryAPITransactor // Generic write-only contract binding to access the raw methods on
}
RegistryAPITransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RegistryAPITransactorRaw) Transact ¶
func (_RegistryAPI *RegistryAPITransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RegistryAPITransactorRaw) Transfer ¶
func (_RegistryAPI *RegistryAPITransactorRaw) 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 RegistryAPITransactorSession ¶
type RegistryAPITransactorSession struct { Contract *RegistryAPITransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RegistryAPITransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RegistryAPITransactorSession) RegisterDot ¶
func (_RegistryAPI *RegistryAPITransactorSession) RegisterDot(dsthash [32]byte, data []byte) (*types.Transaction, error)
RegisterDot is a paid mutator transaction binding the contract method 0x6fa36c80.
Solidity: function registerDot(dsthash bytes32, data bytes) returns()
func (*RegistryAPITransactorSession) RegisterEntity ¶
func (_RegistryAPI *RegistryAPITransactorSession) RegisterEntity(data []byte) (*types.Transaction, error)
RegisterEntity is a paid mutator transaction binding the contract method 0xc93b1335.
Solidity: function registerEntity(data bytes) returns()
func (*RegistryAPITransactorSession) RegisterOffChainDot ¶
func (_RegistryAPI *RegistryAPITransactorSession) RegisterOffChainDot(dsthash [32]byte, hash [32]byte, storageType *big.Int) (*types.Transaction, error)
RegisterOffChainDot is a paid mutator transaction binding the contract method 0x427fde4c.
Solidity: function registerOffChainDot(dsthash bytes32, hash bytes32, storageType uint256) returns()
func (*RegistryAPITransactorSession) RegisterRevocation ¶
func (_RegistryAPI *RegistryAPITransactorSession) RegisterRevocation(data []byte) (*types.Transaction, error)
RegisterRevocation is a paid mutator transaction binding the contract method 0x18c22a6d.
Solidity: function registerRevocation(data bytes) returns()
type StateInformation ¶
type Storage ¶
type Storage interface { GetStateInformation(ctx context.Context) (*StateInformation, error) RetrieveEntity(ctx context.Context, Hash []byte) (*EntityRegistration, *StateInformation, error) RetrieveDOTByEntityIndex(ctx context.Context, DstHash []byte, index int) (*DOTRegistration, *StateInformation, error) RetrieveDOTByHash(ctx context.Context, hash []byte, location Location) (*DOTRegistration, *StateInformation, error) RetrieveRevocation(ctx context.Context, hash []byte) ([]byte, *StateInformation, error) ResolvePartialAlias(ctx context.Context, domain [32]byte, tld [32]byte) (*AliasRegistration, *StateInformation, error) ResolveAlias(ctx context.Context, subdomain [32]byte, domain [32]byte, tld [32]byte) (*AliasRegistration, *StateInformation, error) InsertEntity(ctx context.Context, controller common.Address, data []byte, signFn SignerFn) (*Transaction, error) InsertDOTOnChain(ctx context.Context, account common.Address, DstHash []byte, data []byte, signFn SignerFn) (*Transaction, error) InsertDOTOffChain(ctx context.Context, account common.Address, DstHash []byte, hash []byte, location uint64, signFn SignerFn) (*Transaction, error) InsertRevocation(ctx context.Context, account common.Address, body []byte, signFn SignerFn) (*Transaction, error) CreateAlias(ctx context.Context, controller common.Address, subdomain [32]byte, domain [32]byte, tld [32]byte, value []byte, signFn SignerFn) (*Transaction, error) CreateTLD(ctx context.Context, controller common.Address, tld [32]byte, signFn SignerFn) (*Transaction, error) SubscribeStorageChange(ctx context.Context, ch chan *ChangeEvent) error TransactionInfo(ctx context.Context, hash []byte) (*TransactionInfo, error) }
type Transaction ¶
type Transaction = types.Transaction