Skip to content

Commit

Permalink
Merge pull request #558 from ckb-js/ckb2023-tx-status
Browse files Browse the repository at this point in the history
  • Loading branch information
homura authored Sep 27, 2023
2 parents 72bca3f + 3fea672 commit 0b9b247
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-houses-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-lumos/rpc": minor
---

`unknown` and `rejected` are available in the `TransactionWithStatus`
8 changes: 7 additions & 1 deletion packages/rpc/src/types/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export namespace RPC {
Pending = "pending",
Proposed = "proposed",
Committed = "committed",
Unknown = "unknown",
Rejected = "rejected",
}

export type DepType = "code" | "dep_group";
Expand Down Expand Up @@ -118,7 +120,11 @@ export namespace RPC {
}
| {
block_hash: undefined;
status: TransactionStatus.Pending | TransactionStatus.Proposed;
status:
| TransactionStatus.Pending
| TransactionStatus.Proposed
| TransactionStatus.Rejected
| TransactionStatus.Unknown;
};
time_added_to_pool: Uint64 | null;
cycles: Uint64 | null;
Expand Down

1 comment on commit 0b9b247

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 New canary release: 0.0.0-ckb2023-0b9b247-20230927113116

npm install @ckb-lumos/[email protected]

Please sign in to comment.