Add from for deposit events

This commit is contained in:
Ayanami 2022-03-13 01:43:38 +09:00 committed by Danil Kovtonyuk
parent a6f896a581
commit 69cf2b5aeb
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
type Deposit @entity {
id: ID!
from: Bytes!
index: BigInt!
amount: String!
currency: String!

View File

@ -30,6 +30,7 @@ export function handleDeposit(event: Deposit): void {
entity.amount = result[1];
entity.currency = result[0];
entity.from = event.address;
entity.index = event.params.leafIndex;
entity.blockNumber = event.block.number;
entity.timestamp = event.block.timestamp;