Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 917 Bytes

README.md

File metadata and controls

47 lines (30 loc) · 917 Bytes

Nepswap

Compile smart contract

scarb build

Test smart contract

Use cairo-test

cairo-test --starknet --path .

Declare and deploy smart contract

Declare:

starknet declare --contract ${sierra_path} --account ${startnet_account}

Deploy:

starknet deploy --class_hash ${class_hash} --inputs ${constructor_param_1} ${constructor_param_2}  --account ${startnet_account}

Commitizen

Commitizen is a tool for writing qualified Commit messages.

Installing the command line tool

npm install -g commitizen

Then, in the project directory, run the following command to support Angular's Commit Message format.

commitizen init cz-conventional-changelog --save --save-exact

Use git cz instead of git commit. At this point, options are presented to generate a Commit message that matches the format.