One decoded Anchor emit_cpi! event as stored in parsed_events.
name is the event struct name ("MintEvent", "TransferEvent", …) and
data its borsh payload after the two rewrites jsonb forces: u64 fields
arrive as decimal strings because bigint has no JSON form, and [u8; 16]
fields as UUID strings because a Uint8Array would otherwise serialize to
{"0":12,"1":95,…}.
Those UUIDs are sha256 → UUIDv5 hashes of a wallet id or idempotency key,
not the id itself — the derivation is deliberately one-way, so joining back
to ledger_account means re-deriving from the id, never decoding this.
One decoded Anchor
emit_cpi!event as stored inparsed_events.nameis the event struct name ("MintEvent","TransferEvent", …) anddataits borsh payload after the two rewrites jsonb forces:u64fields arrive as decimal strings becausebiginthas no JSON form, and[u8; 16]fields as UUID strings because aUint8Arraywould otherwise serialize to{"0":12,"1":95,…}.Those UUIDs are
sha256 → UUIDv5hashes of a wallet id or idempotency key, not the id itself — the derivation is deliberately one-way, so joining back toledger_accountmeans re-deriving from the id, never decoding this.