SmartDeploy
A framework for publishing, deploying, and upgrading Soroban smart contracts.
Uses Loam-SDK
Publishing
Currently smart contracts are installed
to the network allowing them to be deployed using the hash of the installed contract. However, unless you are the author of the smart contract you won't know much about which hashes correspond to which contracts. Furthermore, there is no notion of a version of each hash so you would find many contracts with almost identical implementations.
Trying it out
Setup
just
install just
is a task running for helping executing graphs of dependent tasks.
cargo install just
though it's prefered to use
cargo binstall just
cargo install cargo-binstall
As this the relesaed binary, skipping having to build it.
At the moment only Unix OSes are supported (sorry!) in the follow steps.
Setup local soroban binary
just setup
Publish and deploy all the finished example contracts
just publish_all
This command creates a new smartdeploy contract and publishes all the examples to it. Then deploys a contract with the same name. Lastly a local script is created for each one and this path is visible to the just script.
just soroban --list
should print:
Installed Plugins:
smartdeploy
increment
errors
And now that soroban has a plugin system you can invoke it like
just soroban increment --help
or for short
just s incriment --help