RFC: nebula-importer #11
geofmureithi
started this conversation in
Ideas
Replies: 2 comments 6 replies
-
I consider this a nice idea. Once the contract architecture starts to get enough modular and composable, a must have IMO. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was wondering .. regarding the fetch logic, would it add value to optionally fetch contracts directly from a git repository ? Many languages like |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
A simplified contract management for soroban. This is an improvement to the current cross-contract example.
Basic Example
A basic example showing how to do basic dependency management of contracts instead of having to compile or manage .wasm files.
Create a
build.rs
Create the dependency metadata in
Cargo.toml
with imported contractsUse the contracts in your lib.rs
Motivation
Currently importing a contract works like this:
This has several downsides:
Detailed description
Under the hood, we are going to hook a file to the build process.
It will try to find the contract in cache else download it.
It will rebuild every time it changes.
It still uses
soroban_sdk::contractimport
under the hood.We are using OCI and any valid registry eg Github packages can be used
Beta Was this translation helpful? Give feedback.
All reactions