types

package
v1.0.1-0...-15b148a Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "did"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// RouterKey to be used for routing msgs
	RouterKey = ModuleName

	// QuerierRoute to be used for querier msgs
	QuerierRoute = ModuleName
)
View Source
const (
	AttributeValueCategory = ModuleName
)

did module event types

View Source
const (
	DefaultParamspace = ModuleName
)

Default parameter namespace

View Source
const (
	IdentifierPrefix = "identifier-"
)
View Source
const QueryGetIdentifier = "get-identifier"
View Source
const QueryListIdentifier = "list-identifier"

Variables

View Source
var (
	ErrInvalid = sdkerrors.Register(ModuleName, 1, "custom error message")
)
View Source
var ModuleCdc *codec.Codec

ModuleCdc defines the module codec

Functions

func ParamKeyTable

func ParamKeyTable() params.KeyTable

ParamKeyTable for did module

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec registers concrete types on codec

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the did genesis parameters

Types

type GenesisState

type GenesisState struct {
}

GenesisState - all did state that must be provided at genesis

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState - default GenesisState used by Cosmos Hub

func NewGenesisState

func NewGenesisState() GenesisState

NewGenesisState creates a new GenesisState object

type Identifier

type Identifier struct {
	Creator sdk.AccAddress `json:"creator" yaml:"creator"`
	ID      string         `json:"id" yaml:"id"`
	Diddoc  string         `json:"diddoc" yaml:"diddoc"`
}

type MsgCreateIdentifier

type MsgCreateIdentifier struct {
	ID      string
	Creator sdk.AccAddress `json:"creator" yaml:"creator"`
	Diddoc  string         `json:"diddoc" yaml:"diddoc"`
}

func NewMsgCreateIdentifier

func NewMsgCreateIdentifier(creator sdk.AccAddress, diddoc string) MsgCreateIdentifier

func (MsgCreateIdentifier) GetSignBytes

func (msg MsgCreateIdentifier) GetSignBytes() []byte

func (MsgCreateIdentifier) GetSigners

func (msg MsgCreateIdentifier) GetSigners() []sdk.AccAddress

func (MsgCreateIdentifier) Route

func (msg MsgCreateIdentifier) Route() string

func (MsgCreateIdentifier) Type

func (msg MsgCreateIdentifier) Type() string

func (MsgCreateIdentifier) ValidateBasic

func (msg MsgCreateIdentifier) ValidateBasic() error

type MsgDeleteIdentifier

type MsgDeleteIdentifier struct {
	ID      string         `json:"id" yaml:"id"`
	Creator sdk.AccAddress `json:"creator" yaml:"creator"`
}

func NewMsgDeleteIdentifier

func NewMsgDeleteIdentifier(id string, creator sdk.AccAddress) MsgDeleteIdentifier

func (MsgDeleteIdentifier) GetSignBytes

func (msg MsgDeleteIdentifier) GetSignBytes() []byte

func (MsgDeleteIdentifier) GetSigners

func (msg MsgDeleteIdentifier) GetSigners() []sdk.AccAddress

func (MsgDeleteIdentifier) Route

func (msg MsgDeleteIdentifier) Route() string

func (MsgDeleteIdentifier) Type

func (msg MsgDeleteIdentifier) Type() string

func (MsgDeleteIdentifier) ValidateBasic

func (msg MsgDeleteIdentifier) ValidateBasic() error

type MsgSetIdentifier

type MsgSetIdentifier struct {
	ID      string         `json:"id" yaml:"id"`
	Creator sdk.AccAddress `json:"creator" yaml:"creator"`
	Diddoc  string         `json:"diddoc" yaml:"diddoc"`
}

func NewMsgSetIdentifier

func NewMsgSetIdentifier(creator sdk.AccAddress, id string, diddoc string) MsgSetIdentifier

func (MsgSetIdentifier) GetSignBytes

func (msg MsgSetIdentifier) GetSignBytes() []byte

func (MsgSetIdentifier) GetSigners

func (msg MsgSetIdentifier) GetSigners() []sdk.AccAddress

func (MsgSetIdentifier) Route

func (msg MsgSetIdentifier) Route() string

func (MsgSetIdentifier) Type

func (msg MsgSetIdentifier) Type() string

func (MsgSetIdentifier) ValidateBasic

func (msg MsgSetIdentifier) ValidateBasic() error

type ParamSubspace

type ParamSubspace interface {
	WithKeyTable(table params.KeyTable) params.Subspace
	Get(ctx sdk.Context, key []byte, ptr interface{})
	GetParamSet(ctx sdk.Context, ps params.ParamSet)
	SetParamSet(ctx sdk.Context, ps params.ParamSet)
}

ParamSubspace defines the expected Subspace interfacace

type Params

type Params struct {
}

Params - used for initializing default parameter for did at genesis

func DefaultParams

func DefaultParams() Params

DefaultParams defines the parameters for this module

func NewParams

func NewParams() Params

NewParams creates a new Params object

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() params.ParamSetPairs

ParamSetPairs - Implements params.ParamSet

func (Params) String

func (p Params) String() string

String implements the stringer interface for Params

Jump to

Keyboard shortcuts

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