js-algorand-sdk
js-algorand-sdk copied to clipboard
AlgodV2: Add disassemble/decompile function to correspond with new disassemble endpoint
Problem
There was recently a new disassemble
endpoint implemented on the node software to allow you to get human-readable TEAL code from bytecode: https://github.com/algorand/go-algorand/pull/3908. However, there is no corresponding function for the Javascript AlgodV2 client.
Solution
Add a function to correspond to this new endpoint. While I do not like the name, disassemble
, used in the endpoint, I believe it's important to maintain consistency between the implementations, so I propose the following function signature:
interface AlgodV2Interface {
//....
disassemble(bytecodeHex: string): Promise<string>;
}
Dependencies
Figure out who needs to sign off on the proposed addition.
Urgency
Not urgent.