Skip to content
/ dfm-min Public

A helper script for development with Diamond Facet Manager. Spin up your ERC2535 development environment with a diamond.json file and a 1 liner.

Notifications You must be signed in to change notification settings

proggR/dfm-min

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

dfm-min.js: the lazy sibling of Diamond Facet Manager

Assuming nothing more than node and git are installed, and starting with nothing more than a diamond.json file, dfm-min.js clones the base project referenced by the repository url field (or falls back on the base DFM repo if no base is referenced), installs its NPM dependencies, and then imports the Diamond dependencies into the project using dfm's lib/dfm/dfm.js script.

TL;DR: it stands up your ERC2535/Diamond development environment with a 1 liner.

Its all a work in progress, but once dfm.js is updated to properly link tasks/tests without manual process, dfm-min will be updated to run through a complete process including spinning up your local Hardhat node, and automatically running your tests for you (or potentially even a full deployment... in a future/stable version perhaps, but pls, not now :\ lol)

Note: This README will self destruct (to avoid conflict). A copy exists in README.min.md.

Use

node dfm-min.js

... and that's it*!

*: WIP. Current limitations exist in dfm (namely linking tasks/tests) that block this claim. But soon...

From this diamond.json file, you'll be standing up a copy of the dfm repo example project, which includes DiamondGreeterFacet and DiamondERC20Facet and their related contracts/ tasks/ tests/ interfaces/ storage contracts. For the currently manual task/test linking instructions, please refer to the README there.

About

A helper script for development with Diamond Facet Manager. Spin up your ERC2535 development environment with a diamond.json file and a 1 liner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published