Crates.io | essential-deploy-contract |
lib.rs | essential-deploy-contract |
version | 0.2.0 |
source | src |
created_at | 2024-07-08 04:15:50.375292 |
updated_at | 2024-08-23 03:13:48.533062 |
description | Cli and library for deploying contracts to the Essential protocol |
homepage | https://essential.builders/ |
repository | https://github.com/essential-contributions/essential-integration |
max_upload_size | |
id | 1295343 |
size | 93,424 |
This is a rust library and cli tool that allows you to easily deploy your contract to the server. Additionally it provides functionality to sign the contract if it's not already signed.
Usage: essential-deploy-contract <COMMAND>
Commands:
create-account
deploy-signed
deploy
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
This command allows you to create a new account in your essential-wallet
if you don't have one already.
You can then use this account to sign and deploy your contract.
Usage: essential-deploy-contract create-account [OPTIONS] <ACCOUNT>
Arguments:
<ACCOUNT> The name of the account to create
Options:
-p, --path <PATH> Set the path to the wallet directory. If not set then a sensible default will be used (like ~/.essential-wallet)
-h, --help Print help
essential-deploy-contract create-account "alice"
This command allows you to deploy a contract that you've already signed and serialized as json.
The json contract should be saved as a file.
The file should deserialize into a SignedContract
.
Usage: essential-deploy-contract deploy-signed <SERVER> <SIGNED_CONTRACT>
Arguments:
<SERVER> The address of the server to connect to
<SIGNED_CONTRACT> The path to the signed contract to deploy. Serialized as json
Options:
-h, --help Print help
essential-deploy-contract deploy-signed 0.0.0.0:8080 ./signed_contract.json
This command allows you to sign an unsigned contract using your essential-wallet
account and then deploy them to the server.
The unsigned contract should be saved as a file as json.
The file should deserialize into a Contract
.
Usage: essential-deploy-contract deploy [OPTIONS] <SERVER> <ACCOUNT> <CONTRACT>
Arguments:
<SERVER> The address of the server to connect to
<ACCOUNT> The name of the account to deploy the app with
<CONTRACT> The path to the unsigned contract to deploy. Serialized as json
Options:
-p, --path <PATH> Set the path to the wallet directory. If not set then a sensible default will be used (like ~/.essential-wallet)
-h, --help Print help
essential-deploy-contract deploy 0.0.0.0:8080 "alice" ./unsigned_contract.json