You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently exploring what's stored on the chain with a goal to do some analysis (and maybe make my own indexer later).
I've successfully established the connection with some mainnet validators and checked a few blocks so far.
It looks like all blocks contain these four messages
import{decodeTxRaw}from"@cosmjs/proto-signing";vardata=decodeTxRaw(operation.shortTermOrderPlacement);console.log(data.body.messages);// decode message then
what brilliant developers and detailed documentation we have.
Hey,
I'm currently exploring what's stored on the chain with a goal to do some analysis (and maybe make my own indexer later).
I've successfully established the connection with some mainnet validators and checked a few blocks so far.
It looks like all blocks contain these four messages
I'm wondering, what's the correct way to decode them?
This is what i came up with so far https://github.com/miran248/dydx-v4-test/blob/a6581251eacfa488c85f564287fb1955097a0555/validator-client.ts#L6
Feels wrong, and
MsgProposedOperations
was not fully decodedAre there any other ways to replay the events?
Indexer has some functions but there i can't target a specific block height.
(didn't know where to ask this question, hence the issue)
Thanks,
Miran
EDIT: It looks like i'll have to do the mapping myself, like here https://github.com/dydxprotocol/v4-clients/blob/c94bcbf4fc91bb896ea716ccd02ace32b0cb50d0/v4-client-js/src/clients/lib/registry.ts
The text was updated successfully, but these errors were encountered: