Skip to main content

Class: AminoTypes

Extensions of the CosmJSAminoTypes that supports the amino serialization of messages that have Any encoed messages as child like the MsgExec of the x/authz module.

Hierarchy

  • AminoTypes

    AminoTypes

Constructors

constructor

new AminoTypes(converters, registry): AminoTypes

Parameters

NameType
convertersAminoConverters
registryRegistry

Returns

AminoTypes

Overrides

CosmJSAminoTypes.constructor

Defined in

packages/core/src/aminotypes.ts:49

Properties

converters

Private Readonly converters: AminoConverters

Defined in

packages/core/src/aminotypes.ts:45


registry

Private Readonly registry: Registry

Defined in

packages/core/src/aminotypes.ts:47

Methods

fromAmino

fromAmino(«destructured»): EncodeObject

Parameters

NameType
«destructured»AminoMsg

Returns

EncodeObject

Overrides

CosmJSAminoTypes.fromAmino

Defined in

packages/core/src/aminotypes.ts:71


fromAny

fromAny(anyEncodedObject): AminoMsg

Function to convert a Any encoded object to its amino representation.

Parameters

NameTypeDescription
anyEncodedObjectAnyThe object to convert to amino.

Returns

AminoMsg

Defined in

packages/core/src/aminotypes.ts:106


toAmino

toAmino(«destructured»): AminoMsg

Parameters

NameType
«destructured»EncodeObject

Returns

AminoMsg

Overrides

CosmJSAminoTypes.toAmino

Defined in

packages/core/src/aminotypes.ts:55


toAny

toAny(aminoEncodedObject): Any

Function to convert a AminoMsg to its Any representation.

Parameters

NameTypeDescription
aminoEncodedObjectAminoMsgThe object to convert to Any.

Returns

Any

Defined in

packages/core/src/aminotypes.ts:120