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
Name | Type |
---|---|
converters | AminoConverters |
registry | Registry |
Returns
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
Name | Type |
---|---|
«destructured» | AminoMsg |
Returns
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
Name | Type | Description |
---|---|---|
anyEncodedObject | Any | The object to convert to amino. |
Returns
AminoMsg
Defined in
packages/core/src/aminotypes.ts:106
toAmino
▸ toAmino(«destructured»
): AminoMsg
Parameters
Name | Type |
---|---|
«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
Name | Type | Description |
---|---|---|
aminoEncodedObject | AminoMsg | The object to convert to Any. |
Returns
Any