Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spicy-walls-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@3loop/transaction-interpreter': patch
---

Add timestamp to interpreted transaction
1 change: 1 addition & 0 deletions packages/transaction-interpreter/interpreters/std.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ export function defaultEvent(event: DecodedTransaction): InterpretedTransaction
action: "Called method '" + event.methodCall.name + "'",
chain: event.chainID,
txHash: event.txHash,
timestamp: event.timestamp,
user: { address: event.fromAddress, name: null },
method: event.methodCall.name,
assetsSent: assetsSent(event.transfers, event.fromAddress),
Expand Down
1 change: 1 addition & 0 deletions packages/transaction-interpreter/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type InterpretedTransaction = {
chain: number
action: string
txHash: string
timestamp: number
user: Address
method: string | null
type: TransactionType
Expand Down
Loading