std

package
v0.0.0-...-7c30539 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package std defines all the common and standard inter-module Cosmos SDK types and definitions modules and applications can depend on. These types and definitions serve as convenient starting point and also to act as an example or template of how said types and definitions can be overridden/redefined.

Typically these will be used in application-specific units of business logic. These types and definitions are different from the types you may find in a "core" or "types" package as those should be considered the defacto types to be used and are not application-specific.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsensusParamsKeyTable

func ConsensusParamsKeyTable() paramstypes.KeyTable

ConsensusParamsKeyTable returns an x/params module keyTable to be used in the BaseApp's ParamStore. The KeyTable registers the types along with the standard validation functions. Applications can choose to adopt this KeyTable or provider their own when the existing validation functions do not suite their needs.

func MakeCodec

func MakeCodec(bm module.BasicManager) *codec.Codec

---------------------------------------------------------------------------- necessary types and interfaces registered. This codec is provided to all the modules the application depends on.

NOTE: This codec will be deprecated in favor of AppCodec once all modules are migrated.

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

func RegisterInterfaces

func RegisterInterfaces(interfaceRegistry types.InterfaceRegistry)

RegisterInterfaces registers Interfaces from sdk/types and vesting

Types

type DefaultPublicKeyCodec

type DefaultPublicKeyCodec struct{}

DefaultPublicKeyCodec implements the standard PublicKeyCodec for the SDK which supports a standard set of public key types

func (DefaultPublicKeyCodec) Decode

Decode implements the PublicKeyCodec.Decode method

func (DefaultPublicKeyCodec) Encode

Encode implements the PublicKeyCodec.Encode method

Jump to

Keyboard shortcuts

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