Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType byte
const ( Genesis AccountType = 0x01 Ordinary AccountType = 0x02 )
func AccountTypeFromString ¶
func AccountTypeFromString(str string) (AccountType, error)
String to AccountType byte, Returns ff if invalid.
func (AccountType) MarshalJSON ¶
func (bt AccountType) MarshalJSON() ([]byte, error)
Marshals to JSON using string
func (*AccountType) UnmarshalJSON ¶
func (bt *AccountType) UnmarshalJSON(data []byte) error
Unmarshals from JSON assuming Bech32 encoding
type GenesisState ¶
type Guardian ¶
type Guardian struct { Description string `json:"description"` AccountType AccountType `json:"type"` Address sdk.AccAddress `json:"address"` // this guardian's address AddedBy sdk.AccAddress `json:"added_by"` // address that initiated the AddGuardian tx }
Click to show internal directories.
Click to hide internal directories.