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.
Click to show internal directories.
Click to hide internal directories.