Function createAminoConverter
- createAminoConverter<T>(ProtoMessage, aminoType, toAmino?, fromAmino?): {}
Type Parameters
- T extends Message<T> = AnyMessage
Parameters
- ProtoMessage: typeof Message
- aminoType: string
- toAmino: (<T>(protoValue: any, ProtoMessage: typeof Message) => AnyJSON) = convertProtoValueToDefaultAmino
- <T>(protoValue, ProtoMessage): AnyJSON
Type Parameters
- T extends Message<T> = AnyMessage
Parameters
- protoValue: any
- ProtoMessage: typeof Message
Returns AnyJSON
- fromAmino: (<T>(aminoValue: any, ProtoMessage: typeof Message) => AnyJSON) = convertAminoToProtoValue
- <T>(aminoValue, ProtoMessage): AnyJSON
Type Parameters
- T extends Message<T> = AnyMessage
Parameters
- aminoValue: any
- ProtoMessage: typeof Message
Returns AnyJSON
Returns {}