Closed
Description
Right now, AminoTypes works by having a set of default types and additions.
However, that conflicts with the idea of having independent modules and very different client configurations for each chain. It also makes testing hard.
- Let The
AminoTypes
class take aAminoConverters
(same asRecord<string, AminoConverter | "not_supported_by_chain">
) argument in the constructor - Move
function createDefaultTypes(prefix: string): AminoConverters
to theSigningStargateClient
- Export all
create*AminoConverters
in @cosmjs/stargate - Use only auth, bank and wasm Amino converter types in the
AminoTypes
instance of theSigningCosmWasmClient
- Split test from
packages/stargate/src/aminotypes.spec.ts
and move them tosrc/modules/*/aminomessages.spec.ts
- Move
AminoConverter
/AminoConverters
intopackages/stargate/src/aminotypes.ts
- CHANGELOG
Metadata
Assignees
Labels
No labels