types

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = auth.ModuleName
	RouterKey  = ModuleName
)
View Source
const (
	EventTypeUnlock = "unlock"
)

Variables

View Source
var ModuleCdc = codec.New()

Functions

func RegisterAccountTypeCodec

func RegisterAccountTypeCodec(o interface{}, name string)

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type CertKeeper

type CertKeeper interface {
	IsCertifier(ctx sdk.Context, addr sdk.AccAddress) bool
}

type MsgUnlock

type MsgUnlock struct {
	Issuer       sdk.AccAddress `json:"certifier" yaml:"certifier"`
	Account      sdk.AccAddress `json:"account_address" yaml:"account_address"`
	UnlockAmount sdk.Coins      `json:"unlock_amount" yaml:"unlock_amount"`
}

MsgUnlock unlocks the specified amount in a manual vesting account.

func NewMsgUnlock

func NewMsgUnlock(issuer, account sdk.AccAddress, unlockAmount sdk.Coins) MsgUnlock

NewMsgUnlock returns a MsgUnlock object.

func (MsgUnlock) GetSignBytes

func (m MsgUnlock) GetSignBytes() []byte

GetSignBytes encodes the message for signing.

func (MsgUnlock) GetSigners

func (m MsgUnlock) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required.

func (MsgUnlock) Route

func (m MsgUnlock) Route() string

Route returns the name of the module.

func (MsgUnlock) Type

func (m MsgUnlock) Type() string

Type returns a human-readable string for the message.

func (MsgUnlock) ValidateBasic

func (m MsgUnlock) ValidateBasic() error

ValidateBasic runs stateless checks on the message.

Jump to

Keyboard shortcuts

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