Smart Contract Template VSCode Extension
Last updated
Last updated
Smart Contract Generation with VSCode Extension
Concordium now has a direct extension on VSCode that allows you to easily set up your projects within minutes. You can use the search box in VSCode to find it and click the βInstallβ button to install it and then βEnableβ.
Letβs create our project using the VSCode extension, open up VSCodeβs Command Palette and start typing Concordium, you should be seeing the list of commands applicable. By default, you can open up using the shortcuts below.
macOS: Command+Shift+P
Windows: Ctrl+Shift+P
Linux: Ctrl+Shift+P
Select βInitialize a smart contract projectβ and click your folder to set up your project.
Then you will have two template options including cis2-nft and default. Continue with cis2-nft, give your project a name, specify a URL of your tokenβs metadata, and add a description.
Now letβs build it. Open up the βCommand Palletteβ again, and select βBuild contractβ this time, please note that this option will build your contract and embed your schema in the module.
You can find the module file in the created folder called βconcordium-outβ.