eosjs icon indicating copy to clipboard operation
eosjs copied to clipboard

Request: format module in eosjs2

Open MrToph opened this issue 6 years ago • 3 comments

The encodeName and other functions of the format module of eosjs1 are really useful.

It would be great if they are still available in eosjs2.

MrToph avatar Dec 09 '18 20:12 MrToph

Could go well with implementing #385 as it has to be done there anyway.

MrToph avatar Dec 11 '18 16:12 MrToph

eosio-serialize converts between json and binary for all the ABI types. Is there a use case that goes beyond conversions?

tbfleming avatar Feb 18 '20 15:02 tbfleming

Conversions would cover all of my use cases.

I assume you are talking about the SerialBuffer class here in the eosjs repo.

Its API is not really pleasant to work with if you just want to convert something, let's say a raw value to a name. But if you want to keep eosjs lean, I'm fine with closing this. In fact, I wrote my own wrapper + helper functions

MrToph avatar Feb 22 '20 08:02 MrToph