near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

Storage location of non conforming event logs #285

Closed 0xaaiden closed 1 year ago

0xaaiden commented 2 years ago

Hello,

I'd like to ask where are event logs from receipt outcomes for non-standard events stored in the DB?

For example: EVENT_JSON:{"standard":"burrow","version":"1.0.0","event":"repay","data:[

{"account_id":"niemtin.near","amount":"80730114048068486192848022","token_id":"linear-protocol.near"}

]}

khorolets commented 2 years ago

We don't store logs from ExecutionOutcomes in the database.

0xaaiden commented 2 years ago

Is there a way around it? most dapps emit event logs

khorolets commented 2 years ago

Indexer Database won't help here. You'd probably need to write your own indexer for that.

I'd recommend to use NEAR Lake Framework for that. We have a tutorial about the Events, for JS though https://near-indexers.io/tutorials/lake/nft-indexer