-
Import Required Models
Ensure you import all necessary models in the parent module of your function. -
Compile the Contract
After making changes, compile the contract by running:sozo build
-
Migrate and Deploy
Update and deploy the contract using:sozo migrate
-
Start the Local Environment
Run the local development environment with:katana --dev
-
Execute Actions
Execute your new action using:sozo execute actions {function_name} -c {params}
-
For
felt252
data types, format strings assstr:"string"
. -
Example:
sozo execute actions update_username -c 1,sstr:"misty" --wait --receipt
Note: Separate parameters with commas without spaces.
-
-
Key Arguments for Execution
--wait
: Waits for the transaction to complete before returning the transaction hash.--receipt
: Provides a receipt of the transaction.
-
Fetching Data
To retrieve data from a deployed contract, use:sozo model get {model_name} {key}
- Example:
sozo model get Player 1
-
Notifications
You must be signed in to change notification settings - Fork 0
Mistydoe033/dojo-starter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Dojo App made with TypeScript and Cairo
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published