diff --git a/packages/stargate/src/aminoconverters.ts b/packages/stargate/src/aminoconverters.ts deleted file mode 100644 index 8657992b..00000000 --- a/packages/stargate/src/aminoconverters.ts +++ /dev/null @@ -1,8 +0,0 @@ -export interface AminoConverter { - readonly aminoType: string; - readonly toAmino: (value: any) => any; - readonly fromAmino: (value: any) => any; -} - -/** A map from protobuf type URL to the AminoConverter implementation if supported on chain */ -export type AminoConverters = Record; diff --git a/packages/stargate/src/aminotypes.ts b/packages/stargate/src/aminotypes.ts index 23ecf848..cd7f83b0 100644 --- a/packages/stargate/src/aminotypes.ts +++ b/packages/stargate/src/aminotypes.ts @@ -2,7 +2,14 @@ import { AminoMsg } from "@cosmjs/amino"; import { EncodeObject } from "@cosmjs/proto-signing"; -import { AminoConverter, AminoConverters } from "./aminoconverters"; +export interface AminoConverter { + readonly aminoType: string; + readonly toAmino: (value: any) => any; + readonly fromAmino: (value: any) => any; +} + +/** A map from protobuf type URL to the AminoConverter implementation if supported on chain */ +export type AminoConverters = Record; function isAminoConverter( converter: [string, AminoConverter | "not_supported_by_chain"],