forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AN-Issue-1346] Implemented custom handling of automation transaction (…
…#134) * [AN-Issue-1346] Implemented custom handling of automation transactions - Added separate flow for automation transaction handling. It differes from user transaction flow only by custom validation step of inner-payload of automation transaction - Added validation logic for the automation transaction inner-payload - Introuced specific StatusCode for failures during automation transaction inner-payload validation. They are qualified as verification status type and will lead to have transaction kept and the account will be charged. * Updated copyright info * Added language-e2e-testsuite to ci-flow with fixed tests * Addressed review comments and added tests - Introduced a new type PayloadTypeReference which will describe user-transaction payload type and reference payload if required. - Updated TransactionMetadata and UserTransctionContext to utilize PayloadTypeReference enabling easy extension of any new payload type when needed - Updated transaction_arg_validation::validate_combine_signer_and_txn_args to accept GasMeter as input argument. - Updated automation inner payload validation to charge gas for it - Added initial set of e2e tests to check Automation transaction flow. * Fixed test failures after rebase * Fixed copyright comment * Introduce means to create and process automation transaction specifying the required arguments for registration * Addressed review comments * Renamed 'automation transaction' to 'automation registration' * Updated automation::registry to be non-entry and made direct call from native layer * Cosmetic chagnes * Copyright fix * Temporarly fixed test failure * Split and reordered test runs in ci * Increased nextest timeout from 2100 to 3000 --------- Co-authored-by: Aregnaz Harutyunyan <>
- Loading branch information
Showing
59 changed files
with
5,229 additions
and
2,358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.