diff --git a/Readme.md b/Readme.md index 68fd40e..0f693b9 100644 --- a/Readme.md +++ b/Readme.md @@ -34,6 +34,7 @@ Scripts exists to make your life easier! Here are available scripts and features | :---: | :---: | | Build Contract | ✅ | | Format Contract | ✅ | +| Verify Contract | ✅ | | Run custom scripts | ✅ | | Generate SRC5 Interface | ✅ | | Prepare Account | ✅ | @@ -93,6 +94,14 @@ Scarb comes with an in-built cairo formatter. To utilize it run: npm run format-contracts ``` +#### Verify contracts + +To verify your smart contracts, from the base repository run: + +``` +npm run verify-contracts --contract-address= --contract-name= --network= +``` + #### Test contracts To run your tests: diff --git a/docs/src/chapter_5.md b/docs/src/chapter_5.md index 141b9ab..8bf433d 100644 --- a/docs/src/chapter_5.md +++ b/docs/src/chapter_5.md @@ -17,6 +17,14 @@ Leverage `Scarb’s` native formatting capabilities by running: npm run format-contracts ``` +#### Verify contracts + +To verify your smart contracts, from the base repository run: + +``` +npm run verify-contracts --contract-address= --contract-name= --network= +``` + ### Test contracts To run your Starknet Foundry tests: ``` diff --git a/package.json b/package.json index 23e7041..930bbe7 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build-contracts": "cd contracts && scarb build", "test-contracts": "cd contracts && snforge test", "format-contracts": "cd contracts && scarb fmt", + "verify-contracts": "cd contracts && sncast verify --contract-address ${npm_config_contract-address} --contract-name ${npm_config_contract-name} --verifier walnut --network ${npm_config-network}", "contract-scripts": "cd contracts/scripts && sncast script run ${npm_config_script} --url ${npm_config_url}", "generate-interface": "cd contracts && src5_rs parse", "prepare-account": "cd contracts && sncast account create --url ${npm_config_url} --name ${npm_config_name} --add-profile",