cosmology-tech / telescope

A TypeScript Transpiler for Cosmos Protobufs ⚛️
https://cosmology.zone/products/telescope
Apache License 2.0
146 stars 43 forks source link

feat: local Decimal supporting bigint #652

Open Zetazzz opened 2 weeks ago

Zetazzz commented 2 weeks ago

https://github.com/cosmology-tech/telescope/commit/2609ef829e6a8d0e0d45b86c7bf7fe9c973fd66e

solution:

create a separate helper file "decimal.ts" to export Decimal from cosmjs or the helper file.

options to add:

prototypes.typingsFormat.customTypes.useAgoricDec | default to undefined

Zetazzz commented 5 days ago

Based on the feedback from agoric team, we need to change the flag name from:

prototypes.typingsFormat.customTypes.useAgoricDec(default to undefined)

to:

prototypes.typingsFormat.customTypes.useCosmjsDecimal(default to true)

And all related logic need to be changed.