Setup & Run
After installing Scaf, you can scaffold a sample project with:
This will create a sample project with the following structure on the current directory:
- The
packages/
directory includes sample Sui Move packages. This is where the package build and deploy function will look for your packages. - The
scripts/
directory is where your scripts for interracting with the Sui blockchain will be. Initially, it includes a sample script that:- Starts a local, project-specific Sui blockchain.
- Publishes the
packages/fungible_token
package on a local Sui blockchain. - Interracts with the published package by minting tokens.
genesis.yaml
is the file used byNetwork.resetNetwork()
to configure the initial state of the local blockchain. You need to update the file with your public addresses underaccounts:
. If you comment out theNetwork.resetNetwork()
forscaf.config.js
selects against which network the script actions will run. The options aremainnet
,testnet
,devnet
, andlocalnet
.
You can delete any of the files under packages/
and scripts/
and customize
the genesis.yaml
and scaf.config.js
based on your needs.