std

package
v0.45.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 3

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 Canonical

func Canonical(t time.Time) time.Time

Canonical returns UTC time with no monotonic component. Stripping the monotonic component is for time equality. See https://github.com/tendermint/tendermint/pull/2203#discussion_r215064334

func Now

func Now() time.Time

Now returns the current time in UTC with no monotonic component.

func RegisterInterfaces

func RegisterInterfaces(interfaceRegistry types.InterfaceRegistry)

RegisterInterfaces registers Interfaces from sdk/types, vesting, crypto, tx.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers types with the Amino codec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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