Skip to content

Commit

Permalink
refactor(explored-types): change all keys except id to optional for E…
Browse files Browse the repository at this point in the history
…xplorerTransaction type
  • Loading branch information
telestrial committed Oct 15, 2024
1 parent 866fc68 commit 002104f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-zoos-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/explored-types': minor
---

Changed all fields except id to optional on the ExplorerTransaction type.
22 changes: 11 additions & 11 deletions libs/explored-types/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,17 +192,17 @@ export type ExplorerFileContractRevision = ExplorerFileContract & {
*/
export type ExplorerTransaction = {
id: string
siacoinInputs: ExplorerSiacoinInput[]
siacoinOutputs: ExplorerSiacoinOutput[]
siafundInputs: ExplorerSiafundInput[]
siafundOutputs: ExplorerSiafundOutput[]
fileContracts: ExplorerFileContract[]
fileContractRevisions: ExplorerFileContractRevision[]
storageProofs: StorageProof[]
minerFees: Currency
arbitraryData: string[][]
signatures: TransactionSignature[]
hostAnnouncements: HostAnnouncement[]
siacoinInputs?: ExplorerSiacoinInput[]
siacoinOutputs?: ExplorerSiacoinOutput[]
siafundInputs?: ExplorerSiafundInput[]
siafundOutputs?: ExplorerSiafundOutput[]
fileContracts?: ExplorerFileContract[]
fileContractRevisions?: ExplorerFileContractRevision[]
storageProofs?: StorageProof[]
minerFees?: Currency
arbitraryData?: string[][]
signatures?: TransactionSignature[]
hostAnnouncements?: HostAnnouncement[]
}

/**
Expand Down

0 comments on commit 002104f

Please sign in to comment.