Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@aragon/buidler-aragon
Advanced tools
Buidler plugin for developing Aragon apps with full front end and back end hot reloading.
This plugin currently requires:
yarn add --dev @aragon/buidler-aragon @nomiclabs/buidler-truffle5 @nomiclabs/buidler-web3 web3
And add the following statement to your buidler.config.js:
usePlugin('@aragon/buidler-aragon')
This plugin provides the "start" task, which allows you to develop an application while visualizing it in the browser.
Task options:
This plugin does not extend the environment.
To use this plugin, please use create-aragon-app with the buidler boilerplate option. For instructions on how to use this boilerplate, please refer to aragon-buidler-boilerplate.
If you don't want to use a create-aragon-app or a boilerplate, you can follow the structure of the boilerplate linked above. In essence, the regular structure of a Buidler project should do. Please refer to the Buidler docs.
This plugin extends BuidlerConfig by adding the following fields:
export interface AragonConfig {
appServePort?: number
clientServePort?: number
appSrcPath?: string
appBuildOutputPath?: string
hooks?: AragonConfigHooks
}
If you need to perform some tasks before deploying your application's proxy, e.g. deploying a token and passing that token in your proxy's initialize function, you can use the hooks object within the BuidlerConfig object. This object simply contains functions, which, if named correctly, will be called at the appropriate moments in the development pipeline:
export interface AragonConfigHooks {
preDao?: (bre: BuidlerRuntimeEnvironment) => Promise<void> | void
postDao?: (
dao: KernelInstance,
bre: BuidlerRuntimeEnvironment
) => Promise<void> | void
preInit?: (bre: BuidlerRuntimeEnvironment) => Promise<void> | void
postInit?: (
proxy: Truffle.ContractInstance,
bre: BuidlerRuntimeEnvironment
) => Promise<void> | void
getInitParams?: (bre: BuidlerRuntimeEnvironment) => Promise<any[]> | any[]
postUpdate?: (
proxy: Truffle.ContractInstance,
bre: BuidlerRuntimeEnvironment
) => Promise<void> | void
}
For an example on how to use these hooks, please see the token-wrapper tests within the plugin's test projects.
Please refer to the Buidler docs for plugin development.
After cloning this repository, make sure you run npm run dev
so that all required contract artifacts are available.
You need to add this to your tsconfig.json's files array: "node_modules/@aragon/buidler-aragon/src/type-extensions.d.ts"
FAQs
Aragon Buidler plugin
The npm package @aragon/buidler-aragon receives a total of 99 weekly downloads. As such, @aragon/buidler-aragon popularity was classified as not popular.
We found that @aragon/buidler-aragon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.