Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rabbitholegg/create-plugin

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rabbitholegg/create-plugin

## Using it

  • 2.0.0-alpha.11
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

BoostDK Plugin Creator

Using it

from the root of the project run:

pnpm build
cd apps/create-plugin
pnpm run create

then you can enter your plugins name, the supported chains, and the actions.

The script will create a template for you in the packages directory structure.

Templates

the following actions will be performed, assuming the tool is used to collect [project] name, [chain] ids, and [actions]:

  1. Create a new directory in the packages directory with the name @rabbitholegg/questdk-plugin-<project>
  2. Create index.ts, [project].ts, [project].test.ts, and test-transaction.ts files in the new directory as well as readme, package.json, etc with the [project] name
  3. index.ts imports and interface definition is written based on selected [action]
  4. [project].ts imports, a function declaration for each action, and getSupportedChainIds are populated

Development

the following command will both compile and run the plugin creator

first cd apps/create-plugin

pnpm run dev

Summary

The src/index.ts file is the entry point for the plugin creator. This file renders and parses the arguments from the CLI.

The src/builder.ts file is the main logic for creating the plugin. It uses mustache templates and file operations to copy the /template directory to the ../../packages directory and populate it appropriately.

so:

  • if you want to change the output plugin, modify the source in the /template directory
  • if you want to change the CLI, modify the source of src/index.ts
  • if you want to change the logic of the plugin creator, modify the source of src/builder.ts

FAQs

Package last updated on 02 Jul 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc