Socket
Book a DemoInstallSign in
Socket

@astar-network/swanky-templates

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astar-network/swanky-templates

Templates for initialising Swanky projects

latest
Source
npmnpm
Version
2.2.2
Version published
Maintainers
5
Created
Source

Swanky templates

Templates used to generate Swanky projects as well as new ink! and ask! language contracts. Templates are parsed using Handlebars templating engine, and are passed the following object:

{
  project_name: string;
  author_name: string;
  author_email: string | undefined;
  swanky_version: string;
  contract_name: string;
  contract_name_snake: string;
  contract_name_pascal: string;
  contract_language: "ask" | "ink";
}

Project templates

General config templates used by every generated project:

  • config.json.hbs: config used by typechain
  • package.json.hbs
  • tsconfig.json
  • gitignore

Contract templates

Contract-specific templates are grouped by language:

  • ask
  • ink

Each contract directory must contain contract and tests subdirectories.

All the files contained within will be copied, respecting the directory structure, and the .hbs files will be processed by the templating engine.

FAQs

Package last updated on 18 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts