I'm creating a plugin and want to test it locally.
While reviewing examples at https://github.com/aragon/osx/blob/develop/packages/contracts/test/plugins, I found two different ways to deploy a local DAO to install and test the plugin.
- One approach uses a
DaoMockcontract, as shown in this example: https://github.com/aragon/osx/blob/a362749d3859edcfbb301cf5fb8ed81b1b510337/packages/contracts/test/plugins/counter-example/counter-plugin-setup.ts#L7.
- The other approach involves using a function to deploy a new DAO, as demonstrated here: https://github.com/aragon/osx/blob/a362749d3859edcfbb301cf5fb8ed81b1b510337/packages/contracts/test/plugins/governance/admin/admin.ts#L69.
Which approach would be best? In both cases, I think it means copying some code from the OSx repository to my local plugin repository.
I checked whether any of these functions are exported in the OSx npm package, but it seems they are not.
Do you have any recommendations? Thank you.