Skip to content

Halloweenx10/dai-plugin-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dai Plugin Template

Fork this repository and replace the sample code with your own to easily build a plugin for dai.js.

  • src/SampleService.js is an example of how to structure your plugin's services
  • src/index.js is an example of how to package your services and contracts into a plugin (so you can inject it into a Maker instance)
  • test/src/SampleService.spec.js is an example of how to create a Maker instance with your plugin injected, and how to access services from your new plugin

Get started developing with:

  • yarn to install dependencies

  • yarn testchain will launch a ganache testchain with all relevant Maker contracts deployed

  • Add tests with the suffix *.spec.js in the test directory and run them with yarn test

  • Build the code for production with yarn build

About

A template for building dai.js plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.6%
  • Shell 23.4%