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 ¶
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 RegisterInterfaces ¶
func RegisterInterfaces(interfaceRegistry types.InterfaceRegistry)
RegisterInterfaces registers Interfaces from sdk/types and vesting
Types ¶
type Codec ¶
Codec defines the application-level codec. This codec contains all the required module-specific codecs that are to be provided upon initialization.
func NewAppCodec ¶
func NewAppCodec(amino *codec.Codec, anyUnpacker types.AnyUnpacker) *Codec