You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case in which I need to decode a stream of bytes and an array of accounts into the generated args and accounts of an instruction.
I would like to have the following additions to the client gen:
Export the identifier of each instruction.
Add a decode_<instruction_name> function that accepts bytes and Sequence[Pubkey] and returns a tuple of <instruction_name>Args and <instruction_name>Accounts (or better yet a class that wraps both the args and accounts to a single type).
A general decode function that accepts bytes and Sequence[Pubkey] and calls a decode_X based on the identifier at the start of the byte array that returns the value of the decode function.
The text was updated successfully, but these errors were encountered:
I have a use case in which I need to decode a stream of bytes and an array of accounts into the generated args and accounts of an instruction.
I would like to have the following additions to the client gen:
decode_<instruction_name>
function that acceptsbytes
andSequence[Pubkey]
and returns a tuple of<instruction_name>Args
and<instruction_name>Accounts
(or better yet a class that wraps both the args and accounts to a single type).bytes
andSequence[Pubkey]
and calls adecode_X
based on the identifier at the start of the byte array that returns the value of the decode function.The text was updated successfully, but these errors were encountered: