ethcontracts

package
v0.0.0-...-b29c596 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeAddressFromPrivateKey

func ComputeAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) string

func GetContractAddr

func GetContractAddr(client *ethclient.Client, ethRegistryAddr common.Address, contractRegistryKey string) (common.Address, error)

func GetServiceProviderIdFromEndpoint

func GetServiceProviderIdFromEndpoint(endpoint string, delegateOwnerWallet string) (int, error)

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)

Jump to

Keyboard shortcuts

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