aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

Core Script Builder Codegen Logic

Open runtian-zhou opened this issue 1 year ago • 3 comments

Description

Implemented a library to

  • compile a list of intent calls to Script
  • decompile from a Script into a list of intent calls.

Type of Change

  • [x] New feature
  • [ ] Bug fix
  • [ ] Breaking change
  • [ ] Performance improvement
  • [ ] Refactoring
  • [ ] Dependency update
  • [ ] Documentation update
  • [ ] Tests

Which Components or Systems Does This Change Impact?

  • [ ] Validator Node
  • [ ] Full Node (API, Indexer, etc.)
  • [ ] Move/Aptos Virtual Machine
  • [ ] Aptos Framework
  • [ ] Aptos CLI/SDK
  • [x] Developer Infrastructure
  • [ ] Other (specify)

How Has This Been Tested?

Published round trip tests to make sure they can be compiled and decompiled correctly.

Key Areas to Review

For the decompilation logic, we will be hosting this logic as part of the api service so it's important to make sure it will not crash.

Checklist

  • [x] I have read and followed the CONTRIBUTING doc
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I identified and added all stakeholders and component owners affected by this change as reviewers
  • [ ] I tested both happy and unhappy path of the functionality
  • [ ] I have made corresponding changes to the documentation

runtian-zhou avatar Jul 30 '24 21:07 runtian-zhou