This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move decompile-transaction to decompile-message in transaction-messag…
…es (#2465) This PR adds decompile-message to the transaction-messages package. This is the inverse of compile-message: it takes a compiled message (the form we serialise) and returns a TransactionMessage. I think this completes the transaction messages package, other than renaming stuff! The code and tests come from decompile-transaction, which is moved. Changes are very minimal, just renaming things and removing everything to do with signatures This was used by the previous transaction deserializer. I've inlined the signatures code into this, and refactored it to use decompile-message and then handle signatures itself. This is all just temporary since this previous transaction serializer will be removed. I've also modified the library `decodeTransaction`, which uses an RPC to fetch address lookup tables and then uses them to decompile the transaction message, to use the previous `getTransactionDecoder`. This will keep its behaviour unchanged for now. I think this will be refactored to `decodeTransactionMessage` that takes message bytes + an RPC and returns a transaction message object. But that's for another PR!
- Loading branch information
1 parent
be788e3
commit f060e52
Showing
11 changed files
with
1,548 additions
and
1,825 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.