Documentation
¶
Index ¶
- func ComputeAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) string
- func GetContractAddr(client *ethclient.Client, ethRegistryAddr common.Address, ...) (common.Address, error)
- func GetServiceProviderIdFromEndpoint(endpoint string, delegateOwnerWallet string) (int, error)
- func ParsePrivateKeyHex(pk string) (*ecdsa.PrivateKey, error)
- type NotifierInfo
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeAddressFromPrivateKey ¶
func ComputeAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) string
func GetContractAddr ¶
func ParsePrivateKeyHex ¶
func ParsePrivateKeyHex(pk string) (*ecdsa.PrivateKey, error)
Types ¶
type NotifierInfo ¶
type NotifierInfo struct { Wallet string `json:"wallet"` Endpoint string `json:"endpoint"` Email string `json:"email"` }
func GetNotifierForID ¶
func GetNotifierForID(ID string, delegateOwnerWallet string) (NotifierInfo, error)
type ServiceProvider ¶
type ServiceProvider struct { Owner string Endpoint string SpID int Type string BlockNumber int DelegateOwnerWallet string }
func GetServiceProviderList ¶
func GetServiceProviderList(serviceType string) ([]ServiceProvider, error)
Click to show internal directories.
Click to hide internal directories.