Skip to content

Commit

Permalink
feat: add auction created block
Browse files Browse the repository at this point in the history
  • Loading branch information
orionstardust committed Apr 3, 2024
1 parent 02a40c4 commit 1abfe32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Auction @entity {
endsAt: BigInt
endsAtOriginal: BigInt
claimAt: BigInt
createdBlock: BigInt!

quantity: BigInt
presetId: Int
Expand Down
1 change: 1 addition & 0 deletions src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export function handleAuction_Initialized(
auction.stepMin = presets.stepMin;
auction.seller = auctionInfo.owner;
auction.createdAt = event.block.timestamp;
auction.createdBlock = event.block.number;
auction.quantity = event.params._tokenAmount;
auction.startsAt = event.block.timestamp;
auction.dueIncentives = auctionInfo.dueIncentives;
Expand Down
2 changes: 1 addition & 1 deletion subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dataSources:
startBlock: 36176058
mapping:
kind: ethereum/events
apiVersion: 0.0.5
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- AuctionCancelled
Expand Down

0 comments on commit 1abfe32

Please sign in to comment.