We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long
Seems that we need Long type to serialize to a string to correctly pass through the toAmino/fromAmino inside of stargate.sign
string
correct
"poolId": "4"
incorrect
"poolId": { "low": 4, "high": 0, "unsigned": false }
relates to #21
The text was updated successfully, but these errors were encountered:
idea 1: can we replace the long library, and update it's toObject or toJSON
long
toObject
toJSON
> a = Long.fromString('1') Long { low: 1, high: 0, unsigned: false } > a.toString() '1'
Looks like Long is inherently a JSON object that we don't need in actual serialization
Sorry, something went wrong.
Here is the current schema
export interface MsgJoinPool { sender: string; poolId: Long; shareOutAmount: string; tokenInMaxs: Coin[]; }
what if instead we did something like this?
export interface MsgJoinPool { sender: string; poolId: Long | string; shareOutAmount: string; tokenInMaxs: Coin[]; }
try this option
-ts_proto_opt=forceLong=string
potentially look at making a plugin for duration
proto.Writer.create().uint32(16).uint64(Long.fromNumber(20)) proto.Writer.create().uint32(16).uint64('20')
No branches or pull requests
Seems that we need
Long
type to serialize to astring
to correctly pass through the toAmino/fromAmino inside of stargate.signcorrect
incorrect
relates to #21
The text was updated successfully, but these errors were encountered: