When generating the resolverScope object which is then passed to every resolver function call, we could provide more available data to enable more powerful and reusable resolver logic.
For instance we could add:
- The
dependsOn array which tells the resolver the arguments and accounts it depends on.
- The
resolvedInputName string which tells the resolver the name of the account or argument currently being resolved.
That way, the same resolver function can be used for multiple values as the dependsOn array and the resolvedInputName string can be used to distinguish between them.