It extracts the accounts array with the relevant configs as well as instruction args.
As part of this a generic Enum parser was included.
NOTE: that for now all instructions are expected to be part of an instruction enum as shown in
the example.
NOTE: the name of the enum, i.e. Instruction is not included in the naming, thus two enums
with the same variants would cause naming conflicts (this is since we only expect one
Instruction enum per program)
This PR adds ability to parse Instruction enums, i.e. of this form:
It extracts the accounts array with the relevant configs as well as instruction args.
As part of this a generic Enum parser was included.
NOTE: that for now all instructions are expected to be part of an instruction enum as shown in the example.
NOTE: the name of the enum, i.e.
Instruction
is not included in the naming, thus two enums with the same variants would cause naming conflicts (this is since we only expect one Instruction enum per program)