Add blocknumber entity for echo accounts
This commit is contained in:
parent
92b18c448c
commit
7dff5223e8
@ -34,6 +34,7 @@ type EncryptedNote @entity {
|
||||
type NoteAccount @entity {
|
||||
id: ID!
|
||||
index: BigInt!
|
||||
blockNumber: BigInt!
|
||||
address: Bytes!
|
||||
encryptedAccount: Bytes!
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ export function handleEcho(event: Echo): void {
|
||||
let entity = new NoteAccountEntity(event.transaction.hash.toHex() + '-' + event.logIndex.toString());
|
||||
|
||||
entity.index = event.logIndex;
|
||||
entity.blockNumber = event.block.number;
|
||||
entity.address = event.params.who;
|
||||
entity.encryptedAccount = event.params.data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user