v039

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisState

type GenesisState struct {
	Bindings NameRecords `json:"bindings"`
}

GenesisState is the initial set of name -> address bindings.

type NameRecord

type NameRecord struct {
	// The bound name
	Name string `json:"name" yaml:"name"`
	// The address the name resolved to.
	Address sdk.AccAddress `json:"address" yaml:"address"`
	// Whether owner signature is required to add sub-names.
	Restricted bool `json:"restricted,omitempty" yaml:"restricted"`
	// The value exchange address
	Pointer sdk.AccAddress `json:"pointer,omitempty" yaml:"pointer"`
}

NameRecord is an address with a flag that indicates if the name is restricted

func NewNameRecord

func NewNameRecord(name string, address sdk.AccAddress, restricted bool) NameRecord

NewNameRecord creates a name record binding that is restricted for child updates to the owner.

func (NameRecord) String

func (nr NameRecord) String() string

implement fmt.Stringer

type NameRecords

type NameRecords []NameRecord

NameRecords within the GenesisState

Jump to

Keyboard shortcuts

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