-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support importing local and remote programs. #2881
Conversation
e9d5939
to
406e82e
Compare
I resolved the 2 |
…e();` and `let a:super_valuable_token = token.aleo/mint_private();`
7630601
to
8796e8c
Compare
Signed-off-by: evan-schott <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Amazing work @evan-schott!
Signed-off-by: d0cd <[email protected]>
tldr
program.json
as well asmain.leo
import credits.leo
, but now we have changed it toimport credits.aleo
for consistency.Motivation
.leo
source files.Components:
program.json
leo build
leveragesretriever
module to pull programs from network/FSleo.lock
file to house the dependency configurationdisassembler.rs
to convert Aleo instructions into valid stubRetriever Design
Modifications to
~/.aleo
file structure.aleo/registry
:.aleo/registry/git
: Where.aleo
files fromgithub.com
are stored.aleo/registry/testnet3
: Where.aleo
files from the network are stored./mainnet
Suppose building leo project
dex
and callleo build
withdex/program.json
set to:Specification and example flow
dex/program.json
:"location": "network"
:credits.aleo
cached already in~/.aleo/registry/testnet3/credits.aleo
leo.lock
"location": "local"
:program.json
to see its dependencies).aleo
and updateleo.lock
"location": "git"
: TODO"url": "<https://github.com/alice/foo.git>"
board.aleo
cached already as~/.aleo/registry/git/pranav/foo/board.aleo
dex/build/imports/
main.leo