EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

Export module abiToFcSchema #207

Closed nsjames closed 6 years ago

nsjames commented 6 years ago

I'm using this inside of Scatter to cache and re-initialize fcbuffer from cached abis. Since the abiToFcSchema is not exported I'm pulling that function into my code, it would be great if eosjs could export that for use.

nsjames commented 6 years ago

https://github.com/EOSIO/eosjs/blob/master/src/abi-cache.js#L46

jcalfee commented 6 years ago

Great idea .. I need this for cold storage / offline environments so they can bring their own ABI..

jcalfee commented 6 years ago

There is an example in the unit test at the bottom https://github.com/EOSIO/eosjs/commit/7d8ba2ac84ddcd1897b63eed4a8d5d9b822404f3

nsjames commented 6 years ago

https://github.com/EOSIO/eosjs/blob/master/src/abi-cache.js#L38 You know I love you right? <3

jcalfee commented 6 years ago

Here is an example in the README: https://github.com/EOSIO/eosjs#offline-or-cold-storage-contract

this is released as v15.0.1