Extend Clarinet to integrate clarity contracts with your own tooling and workflow.
Topics covered in this guide:
|Name||wallet access||disk write||disk read||Deployment||Description|
|stacksjs-helper-generator||no||yes||no||https://firstname.lastname@example.org/ext/stacksjs-helper-generator.ts||Facilitates contract integration by generating some typescript constants that can be used with stacks.js. Never hard code a stacks address again!|
Extensions are run with the following syntax:
$ clarinet run --allow-write https://email@example.com/ext/stacksjs-helper-generator.ts
An extension can be deployed as a standalone plugin on Deno, or can also just be a local file if it includes sensitive / private setup informations.
As illustrated in the example above, permissions (wallet / disk read / disk write) are declared using command flags. If at runtime, the Clarinet extension is trying to write to disk, read disk, or access wallets without permission, the script will end up failing.