Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removal of the beforeBroadcast hook. Resolves #13. After discussions with other developers, it became clear that the `afterSign` and `beforeBroadcast` hooks currently serve the same function. To simplify the approach developers can take for plugin development, the `beforeBroadcast` hook was removed, and if required, can be added back at a later date. * Added default esrOptions to the TransactContext Resolves #15. This gives developers a default set of options when creating ESR requests. * Renamed Context `session` to `permissionLevel` * Renamed getters to be more specific Motivation was that I imagine we'll want the `.account` getter to return an Account Kit instance. * Added getters to the TransactContext * Deduplicating code by adding a helper function * Added the ABICache and implemented in the TransactContext * Removed unused import * Allow specifying `expireSeconds` throughout the stack Resolves #22 * An ENV variable to dump http request traffic for debugging * Add creation of a wharfkitnoop account for cosigning tests * Ignore any local notes * Refector TransactContext and ABICache * Allow context to resolve transactions (ease for developers) * Retain a revision history of request modifications in the TransactResult This will * Removed unused import * Fix for nodejs v14 Cannot use the at method in older nodejs versions * Manually clone incoming SigningRequest This is to preserve all data and override the zlib/abiProvider values. * Migrate plugin tests into new suite * Split cloneRequest into its own function * Added and implemented updateRequest method Resolves #18. This new update method ensures the metadata from the original request will persist through modification by a `beforeSign` plugin. The original metadata will take precedent over metadata from the new request, ensuring no plugin upstream can overwrite it. A warning will be displayed when this happens to let the developer know. * Syntax * Adding an appendAction and prependAction helper * Finished testing resolve * Fixed browser test runner * Allow either actor + permission or permissionLevel during Session instantiation Fixes #17
- Loading branch information