Openzeppelin defender hardhat plugin

hello community, I would like to share a plugin that I created for hardhat that integrates the modules of the referent defender api, allowing a more effective and organized integration :grinning:

I look forward to your feedback :grinning:

2 Likes

Hey @asmel,

This is amazing!, we really appreciate your hard work, and also we'd like to know more about a use case for this.

Going through the README I think there's still some improvements to do in regards to the documentation, however, it's still something I personally think might help to setup Defender environments from code, which is one of our future roadmap items.

Can you write any tutorial for doing so? Or examples?
I'll forward this to the team and get back to you with some more feedback.

Best!

1 Like

hi @ernestognw

Thanks for your comment :grinning:, I am going to prepare a repository with use cases, and small examples, I could also send you a demo video, only since my native language is Spanish and my English is very basic, I could send it without audio

1 Like

Hey Asmel,

Sounds good, as I said, I see this as a good way to setup a Defender environment using it. Like creating sentinels, relayers, and for example, setup a deployment via relayer and immediately creating sentinels to monitor the deployment.

Feel free to post a tutorial in the forum or anything similar, I think @slw.eth might help/guide you if needed :smiley:

Hey @ernestognw

I share the repository of examples that I built and also the update of the plugin documentation

plugin

I look forward to your opinion :smiley:

2 Likes

The plugin seems great, thanks for putting this together and for the example usages in your sample repo! It seems like a good package to import to help simplify things when spinning up a new project.

One thought: What would you think about the idea of incorporating the Wizard API as well? If you wanted this to serve as a solid starting point for bootstrapping new projects, incorporating Wizard in the mix could be interesting, too.

hi @slw.eth

Thank you for your comment about the plugin.

I am going to study Wizard Api in depth, to find the possible use cases to perform an integration, I am also preparing an update to make the openzeppelin defender packages available in the hardhat console.

since I would like to create an environment for the creation of autoTask, sentinel and relayer within the same project and easy to configure.

As soon as I have the first demo I will inform you so that you can review it and tell me your opinion

hi @slw.eth

I share a video tutorial of the Wizard Api that you shared with me already integrated into the hardhat plugin, it is not publicly available yet, I would like to know your opinion :grinning:

in the same way I am creating a CLI for the defender api

1 Like

This is cool! I like how it gives the additional option of creating a contract via CLI, which gets me thinking about the possibility of taking any modifiers as command line args, optionally, to shortcut the process even further. Sort of how it feels to run npm init -y rather than npm init and hitting Y to all the prompts.

It's great as-is, so my suggestion might be overengineering it, but it just gets me thinking. This is a great way of taking the API and offering cli functionality.

Hi @slw.eth

Thanks for your opinion . I also thought of accepting parameters when creating the contracts to do it faster. but I decided on a more user friendly flow.

In another order of ideas, I would like to know if you have any api or package to create secret in autotasks. since I checked the autotask admin package and I didn't find a way