The mono repository is managed via pnpm, including contracts, backend and frontend.
├── project_root/
├── docs # design documents
├── packages
│ ├── move
│ │ ├── pkg1 # standard move package
│ │ ├── pkg2 # standard move package
│ │ ├── scripts # move package operation scripts
│ │ ├── package.json
│ ├── frondend
│ │ ├── ...
│ └── backend
│ │ ├── ...
├── ...
└── package.json- Install prerequisite and dependencies
- Install
suibaseby following suibase instruction. - Install dependencies
pnpm install
- Create move package
> cd packages/move
> lsui move new <my_first_package>- Build and test move package
> cd package/move/greeting
> lsui move build
> lsui move test- Start localnet for development and tests
- Start suibase localnet:
localnet start - Start local sui explorer:
pnpm localnet:start
- Deploy package on localnet|devnet|testnet|mainnet
> pnpm --filter move localnet:deploy:greeting