mirror of
https://github.com/tornadocash/tornado-subgraph.git
synced 2024-12-22 17:33:17 +01:00
Add from for deposit events
This commit is contained in:
parent
a6f896a581
commit
69cf2b5aeb
@ -1,5 +1,6 @@
|
|||||||
type Deposit @entity {
|
type Deposit @entity {
|
||||||
id: ID!
|
id: ID!
|
||||||
|
from: Bytes!
|
||||||
index: BigInt!
|
index: BigInt!
|
||||||
amount: String!
|
amount: String!
|
||||||
currency: String!
|
currency: String!
|
||||||
|
@ -30,6 +30,7 @@ export function handleDeposit(event: Deposit): void {
|
|||||||
entity.amount = result[1];
|
entity.amount = result[1];
|
||||||
entity.currency = result[0];
|
entity.currency = result[0];
|
||||||
|
|
||||||
|
entity.from = event.address;
|
||||||
entity.index = event.params.leafIndex;
|
entity.index = event.params.leafIndex;
|
||||||
entity.blockNumber = event.block.number;
|
entity.blockNumber = event.block.number;
|
||||||
entity.timestamp = event.block.timestamp;
|
entity.timestamp = event.block.timestamp;
|
||||||
|
Loading…
Reference in New Issue
Block a user