deploy
Send the app to Vulcan
The deploy
command is used to deploy your Micro-Rollup to the Vulcan network as well as set the initial genesis conditions on-chain.
It performs the following 4 operations:
- Reads the
stackr.config.ts
file for your project's configuration such as the operator account, L1 and Vulcan RPC URLs, anddeployment.json
file for your project's registration details such as the app ID and app inbox contract address. - Extracts and compiles the State Machine into Wasm (
compile
command) - Creates a commitment of the Wasm (binary) and genesis state (JSON), signs it using the operator private key and sends it to the
AppInbox
contract to initialize the application - Uploads the Wasm binary to Vulcan.
Usage
» stackr deploy --help
USAGE
$ stackr deploy [--envFile <value>] [--privateKey <value>]
FLAGS
--envFile=<value> [default: .env] Path to the .env file
--privateKey=<value> Private key of the account to be used to deploy the contract
EXAMPLES
$ stackr deploy
$ stackr deploy --privateKey <privateKey>
Example
npx @stackr/cli@latest deploy
If all goes well, you will see the following output:
✔ 🏗️ State Machine built
✔ 📝 Registered STF to AppInbox
✔ 🖖 Deployed to Vulcan
Now the application is ready to be run and send blocks to the Vulcan network for verification.