File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments