Skip to content

Commit ed79101

Browse files
committed
Merge branch 'main' into staging
2 parents b14f0e9 + 85d5f70 commit ed79101

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ type ERC721BuyOrder @entity {
472472
validationHash: Bytes!
473473
createdAt: BigInt!
474474
executedAt: BigInt
475+
executedAtBlock: BigInt
475476
canceledAt: BigInt
476477
canceled: Boolean
477478
}

src/mappings/diamond.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,8 @@ export function handleTransfer(event: Transfer): void {
531531

532532
if (newOwner.id == "0x0000000000000000000000000000000000000000") {
533533
let stats = getStatisticEntity();
534-
stats.aavegotchisSacrificed = stats.aavegotchisSacrificed.plus(
535-
BIGINT_ONE
536-
);
534+
stats.aavegotchisSacrificed =
535+
stats.aavegotchisSacrificed.plus(BIGINT_ONE);
537536
stats.save();
538537
}
539538
} else {
@@ -1877,6 +1876,7 @@ export function handleERC721BuyOrderExecuted(
18771876
entity.priceInWei = event.params.priceInWei;
18781877
entity.buyer = event.params.buyer;
18791878
entity.executedAt = event.params.time;
1879+
entity.executedAtBlock = event.block.number;
18801880
entity.save();
18811881
}
18821882

0 commit comments

Comments
 (0)