mirror of
https://github.com/tornadocash/tornado-subgraph.git
synced 2024-12-22 09:23:16 +01:00
Add from for deposit events
This commit is contained in:
parent
a6f896a581
commit
69cf2b5aeb
@ -1,5 +1,6 @@
|
||||
type Deposit @entity {
|
||||
id: ID!
|
||||
from: Bytes!
|
||||
index: BigInt!
|
||||
amount: String!
|
||||
currency: String!
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user