Interface: AminoConverterI
Interface that represents an object capable of convert an EncodeObject from and to AminoMsg. NOTE: This is an extension of the CosmJSAminoConverter from cosmjs to allow the conversion of objects that have a field with type Any like the MsgExec of the x/authz module.
Hierarchy
AminoConverter
↳
AminoConverterI
Properties
aminoType
• Readonly
aminoType: string
Inherited from
CosmJSAminoConverter.aminoType
Defined in
node_modules/@cosmjs/stargate/build/aminotypes.d.ts:4
fromAmino
• Readonly
fromAmino: (value
: any
, aminoTypes?
: AminoTypes
) => any
Converts an amino encoded object to its protobuf representation.
Param
The object to convert.
Param
An object to convert an Any encoded object from and to AminoMsg. NOTE: This is optional to make the interface backward compatible with CosmJSAminoConverter.
Type declaration
▸ (value
, aminoTypes?
): any
Converts an amino encoded object to its protobuf representation.
Parameters
Name | Type | Description |
---|---|---|
value | any | The object to convert. |
aminoTypes? | AminoTypes | An object to convert an Any encoded object from and to AminoMsg. NOTE: This is optional to make the interface backward compatible with CosmJSAminoConverter. |
Returns
any
Overrides
CosmJSAminoConverter.fromAmino
Defined in
packages/core/src/aminotypes.ts:34
toAmino
• Readonly
toAmino: (value
: any
, aminoTypes?
: AminoTypes
) => any
Converts an object to its amino representation.
Param
The object to convert to AminoMsg.
Param
An object to convert an Any encoded object from and to AminoMsg. NOTE: This is optional to make the interface backward compatible with CosmJSAminoConverter.
Type declaration
▸ (value
, aminoTypes?
): any
Converts an object to its amino representation.
Parameters
Name | Type | Description |
---|---|---|
value | any | The object to convert to AminoMsg. |
aminoTypes? | AminoTypes | An object to convert an Any encoded object from and to AminoMsg. NOTE: This is optional to make the interface backward compatible with CosmJSAminoConverter. |
Returns
any
Overrides
CosmJSAminoConverter.toAmino