GithubHelp home page GithubHelp logo

Comments (7)

tbfleming avatar tbfleming commented on June 1, 2024 1

fill-pg leaves it in binary to save space and to save fill time. JSON conversion expands the size by large factor. Some applications work better with data in its binary format; e.g. wasm-ql. Applications which need the data in json, but only need a small subset (e.g. transfers) are better off not having the overhead of the remaining data converted to json.

If the database will only be used by apps which need a small subset of the data, then a custom-written filler that works in place of fill-pg will probably be a better match.

from history-tools.

tbfleming avatar tbfleming commented on June 1, 2024

You need to use an abi deserializer, such as abieos or eosjs

from history-tools.

salisbury-espinosa avatar salisbury-espinosa commented on June 1, 2024

@tbfleming maybe it makes sense to save the result of this action immediately in storage (postgresql) when filling out the scheme?

from history-tools.

salisbury-espinosa avatar salisbury-espinosa commented on June 1, 2024

@tbfleming

You need to use an abi deserializer, such as abieos or eosjs

hm, i just tried eosjs (rawAbiToJson method) - dont work

from history-tools.

tbfleming avatar tbfleming commented on June 1, 2024

rawAbiToJson converts an abi, not action data

from history-tools.

salisbury-espinosa avatar salisbury-espinosa commented on June 1, 2024

converts an abi, not action data

so
how parse act_datain action_trace table to fetch payload?
example from mongodb plugin: EOSIO/eos#4968 (comment)
how can I understand what happened in this action? (for example, how many tokens are transfered)

from history-tools.

salisbury-espinosa avatar salisbury-espinosa commented on June 1, 2024

@tbfleming if I understood everything correctly, it is necessary to retrieve this data before inserting it into the database using this method:

https://github.com/EOSIO/eos/blob/master/libraries/chain/include/eosio/chain/controller.hpp#L273

otherwise, will have to add a column action_data_deserialized in the table + for each trace to call and update it in the background by
https://github.com/EOSIO/eosjs/blob/master/src/eosjs-serialize.ts#L1085
export function deserializeActionData

from history-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.