Comments (7)
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.
You need to use an abi deserializer, such as abieos or eosjs
from history-tools.
@tbfleming maybe it makes sense to save the result of this action immediately in storage (postgresql) when filling out the scheme?
from history-tools.
You need to use an abi deserializer, such as abieos or eosjs
hm, i just tried eosjs (rawAbiToJson method) - dont work
from history-tools.
rawAbiToJson
converts an abi, not action data
from history-tools.
converts an abi, not action data
so
how parse act_data
in 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.
@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)
- catch_and_close Stream overrun HOT 9
- catch_and_close w/ Bad variant index HOT 5
- How to build this project in centos?
- action_trace in the table transaction_trace is messy code
- hex string has incorrect length & stuck at switch forks at block HOT 3
- How to decode transaction_trace.act.data v1.0.0 HOT 1
- transaction_trace.account_ram_delta in v1.0.0
- New Issue to test Automation's Github/Jira integration HOT 4
- no data in the block_info table
- No rocksdb in build. Removed from CMake HOT 3
- Performance improvement for fill-pg
- what's your plan to support eosio 2.0.x completely?
- add https server functionality HOT 2
- query descending order HOT 12
- Building on mac HOT 1
- Double Data In Table Not Unpacking Properly HOT 3
- Wasm-ql Query Lumps Strings Into Last Structs Key
- How to use it? HOT 4
- The binary link is broken
- Does the balance-snapshot example work? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from history-tools.