EncodeObject:
Typed Encode Objects
CosmJS also provides typed encode objects for common messages. These narrow thetypeUrl to a string literal and constrain value to the correct Protobuf
type, giving you compile-time safety:
The JavaScript representation of Cosmos SDK messages in CosmJS
EncodeObject:
typeUrl to a string literal and constrain value to the correct Protobuf
type, giving you compile-time safety:
@cosmjs/stargate@cosmjs/cosmwasm