metadata

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package metadata provides helpers for querying the metadata registry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntitiesFromOasisscan

func EntitiesFromOasisscan(ctx context.Context) (map[types.Address]*Entity, error)

EntitiesFromOasisscan queries oasisscan for all known entities.

func EntitiesFromRegistry

func EntitiesFromRegistry(ctx context.Context) (map[types.Address]*Entity, error)

EntitiesFromRegistry queries the metadata registry for all known entities.

Types

type Entity

type Entity struct {
	// ID is the entity's public key.
	ID signature.PublicKey
	// Name is the entity's human readable name.
	Name string
}

Entity is a metadata registry entity for a Entity.

func (*Entity) Address

func (e *Entity) Address() types.Address

Address is the entity's staking address.

Jump to

Keyboard shortcuts

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