mirror of
https://github.com/tornadocash/tornado-subgraph.git
synced 2025-02-17 07:26:44 +01:00
13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
import { Echo } from '../generated'
|
|
import { NoteAccount as NoteAccountEntity } from '../generated/schema'
|
|
|
|
export function handleEcho(event: Echo): void {
|
|
let entity = new NoteAccountEntity(event.transaction.hash.toHex() + '-' + event.logIndex.toString());
|
|
|
|
entity.index = event.logIndex;
|
|
entity.address = event.params.who;
|
|
entity.encryptedAccount = event.params.data;
|
|
|
|
entity.save();
|
|
}
|