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/jolly-spies-lose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/explored-types': minor
---

Added unconfirmed field to ExplorerTransaction and ExplorerV2Transaction types.
6 changes: 4 additions & 2 deletions libs/explored-types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,12 @@ export type ExplorerFileContractRevision = ExplorerFileContract & {

/**
* An `ExplorerTransaction` differs from a core type `Transaction` in the `siacoinOutputs`,
* `siafundOutputs`,`fileContracts`, and `fileContractRevisions` key values, which are custom
* to explorerd.
* `siafundOutputs`, `fileContracts`, `fileContractRevisions`, and `unconfirmed` key values,
* which are custom to explorerd.
*/
export type ExplorerTransaction = {
id: string
unconfirmed?: boolean
siacoinInputs?: ExplorerSiacoinInput[]
siacoinOutputs?: ExplorerSiacoinOutput[]
siafundInputs?: ExplorerSiafundInput[]
Expand Down Expand Up @@ -468,6 +469,7 @@ export type ExplorerV2FileContractResolution =

export type ExplorerV2Transaction = {
id: TransactionID
unconfirmed?: boolean

siacoinInputs?: V2SiacoinInput[]
siacoinOutputs?: ExplorerSiacoinOutput[]
Expand Down
Loading