Smart Contract Template VSCode Extension

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”.

Last updated