Skip to content

Commit

Permalink
feat(rpc): added unknown | rejected to TxStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Sep 27, 2023
1 parent 72bca3f commit 3fea672
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

0 comments on commit 3fea672

Please sign in to comment.