leo icon indicating copy to clipboard operation
leo copied to clipboard

Leo Deploy

Open evan-schott opened this issue 1 year ago • 1 comments

  • TLDR:
    • cd into project directory and type leo deploy
  • Motivation:
    • Make it super easy for new developers to deploy their programs
      • A lot of defaults preselected
      • If devs want more options they can just use the snarkos tool
    • Not just a wrapper around snarkos developer deploy, the reason its being built in Leo is so that it can recursively deploy local dependencies.
      • This is an absolute pain to do using snarkos because have to move all the local dependencies into their own folders, and name them main.aleo with imports directory of their imports
  • Defaults:
    • Endpoint: Aleo node
    • Builds project if unbuilt
    • Recursively deploys imports
      • Already know all the paths to local directories
      • Do quick check to see if the local project name already taken on chain

evan-schott avatar Jan 05 '24 22:01 evan-schott

Codecov Report

Attention: 114 lines in your changes are missing coverage. Please review.

Comparison is base (e0632d6) 76.05% compared to head (95d95f2) 75.65%.

Files Patch % Lines
compiler/ast/src/stub/function_stub.rs 17.94% 32 Missing :warning:
leo/cli/cli.rs 81.31% 17 Missing :warning:
compiler/passes/src/common/symbol_table/mod.rs 58.33% 15 Missing :warning:
compiler/ast/src/struct/mod.rs 56.25% 7 Missing :warning:
...ompiler/passes/src/common/symbol_table/location.rs 50.00% 5 Missing :warning:
compiler/passes/src/type_checking/checker.rs 88.37% 5 Missing :warning:
...rors/src/errors/type_checker/type_checker_error.rs 20.00% 4 Missing :warning:
leo/cli/commands/deploy.rs 0.00% 3 Missing :warning:
compiler/ast/src/mapping/mod.rs 33.33% 2 Missing :warning:
compiler/ast/src/types/array.rs 0.00% 2 Missing :warning:
... and 16 more
Additional details and impacted files
@@             Coverage Diff              @@
##           testnet3   #26901      +/-   ##
============================================
- Coverage     76.05%   75.65%   -0.41%     
============================================
  Files           200      203       +3     
  Lines          6800     7049     +249     
  Branches       6800     7049     +249     
============================================
+ Hits           5172     5333     +161     
- Misses         1628     1716      +88     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 09 '24 23:02 codecov[bot]