codec

package
v0.0.0-...-095f669 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Overview

Package codec provides a singleton instance of Amino codec that should be used to register any concrete type that can later be referenced inside a MsgGrant or MsgExec instance so that they can be (de)serialized properly.

Amino types should be ideally registered inside this codec within the init function of each module's codec.go file as follows:

func init() {
	// ...

	RegisterLegacyAminoCodec(authzcodec.Amino)
}

The codec instance is put inside this package and not the x/authz package in order to avoid any dependency cycle.

Index

Constants

This section is empty.

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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