Skip to content

Commit

Permalink
add block number when ready or staked and updatedat for deposit and w…
Browse files Browse the repository at this point in the history
…ithdrawal
  • Loading branch information
marc-aurele-besner committed Aug 16, 2024
1 parent 4178b56 commit 70f309e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions indexers/staking-squid/src/events/epoch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ export async function processEpochTransitionEvent(
)
.forEach((w) => {
w.status = WithdrawalStatus.READY;
w.readyAt = currentBlockNumber;
w.updatedAt = currentBlockNumber;
cache.withdrawals.set(w.id, w);
});
}
Expand Down Expand Up @@ -212,6 +214,8 @@ export async function processEpochTransitionEvent(
)
.forEach((d) => {
d.status = DepositStatus.DEPOSITED;
d.stakedAt = currentBlockNumber;
d.updatedAt = currentBlockNumber;
cache.deposits.set(d.id, d);
});

Expand Down

0 comments on commit 70f309e

Please sign in to comment.