Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
feat(warp): add block timestamp to interactions endpoint
Browse files Browse the repository at this point in the history
We already fetch the height, so easy enough to add the timestamp
  • Loading branch information
dtfiedler committed Nov 27, 2023
1 parent ac91c90 commit 6bc6870
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export async function getWalletInteractionsForContract(
}
block {
height
timestamp
}
}
}
Expand Down Expand Up @@ -177,6 +178,7 @@ export async function getWalletInteractionsForContract(
: undefined;
interactions.set(e.node.id, {
height: e.node.block.height,
timestamp: e.node.block.timestamp,
input: parsedInput,
owner: e.node.owner.address,
});
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type ArNSInteraction = {
input: PstInput | undefined;
height: number;
owner: string;
timestamp: number;
errorMessage?: string;
};

Expand Down

0 comments on commit 6bc6870

Please sign in to comment.