encoding

package
v0.2.1-workflow.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexWrapperDecoder added in v0.12.0

func IndexWrapperDecoder(dec sdk.TxDecoder) sdk.TxDecoder

Types

type Config added in v0.7.0

type Config struct {
	InterfaceRegistry codectypes.InterfaceRegistry
	Codec             codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

Config specifies the concrete encoding types to use for a given app. This is provided for compatibility between protobuf and amino implementations.

func MakeConfig added in v0.7.0

func MakeConfig(regs ...ModuleRegister) Config

MakeConfig creates an encoding config for the app.

type ModuleRegister

type ModuleRegister interface {
	RegisterLegacyAminoCodec(*codec.LegacyAmino)
	RegisterInterfaces(codectypes.InterfaceRegistry)
}

Jump to

Keyboard shortcuts

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