CLI: Log per-instruction details when using --export#46
CLI: Log per-instruction details when using --export#46aoikurokawa wants to merge 2 commits intosolana-program:mainfrom
Conversation
|
Hi there, thanks for the PR. Would you mind just adding a bit more information regarding what use-cases to unlocks or problems this solves? Additionally, I have an UI issue with logging all instructions before the serialised transactions since it's not clear which instruction is part of which transaction. |
|
Thanks for the feedback! |
This comment was marked as spam.
This comment was marked as spam.
|
Complete |
|
@aoikurokawa Are you sure about this? I've managed to upload IDL via a Squads multisig before using the export command as-is. In fact, this is how the Program Metadata IDL itself was uploaded. In any case, I'm happy to have this extra "instruction export" mode, but I would rather it was as a separate export mode so we don't pollute the CLI output when users only need the raw transaction bytes. Perhaps something like |
Summary
logInstructionshelper toclients/js/src/cli/utils.tsthat prints a breakdown of each instruction in a transaction when--exportis usedW) and signer (S) flags, and base58-encoded instruction dataexportTransactionPlanto split thepipeinto two steps so the pre-compiled message is accessible beforecompileTransactionExample output