Comments (3)
should be able to compile the contracts without error. The github workflow in this project uses node v14 and ubuntu to compile the contracts and deploy without error. Which template did you try to compile?
from dao-templates.
I tried with the bare and membership templates which are what I'm interested in.
If I do a simple compile I get:
$ npx truffle compile
^
RangeError: Maximum call stack size exceeded
at Object._db [as dynCall_viiiiii] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:120931)
at invoke_viiiiii (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:1:1117622)
at Array.ova (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:13:29030)
at Object.L9a [as dynCall_vi] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:99033)
at invoke_vi (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:1:1114426)
at Array.wta (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:10:704789)
at Object.Cfb [as dynCall_iii] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:130740)
at invoke_iii (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:1:1118857)
at Array.uta (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:10:703085)
at Object.Xfb [as dynCall_iiiiii] (.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12:131900)
Since this truncates the output, I tried doing the following and got this:
$ npx truffle compile 2>&1 | less
...
...
Compiling @aragon/os/contracts/kernel/KernelProxy.sol...
Compiling @aragon/os/contracts/kernel/KernelStorage.sol...
Compiling @aragon/os/contracts/lib/ens/AbstractENS.sol...
Compiling @aragon/os/contracts/lib/ens/ENS.sol...
Compiling @aragon/os/contracts/lib/ens/PublicResolver.sol...
Compiling @aragon/os/contracts/lib/math/SafeMath.sol...
Compiling @aragon/os/contracts/lib/math/SafeMath64.sol...
Compiling @aragon/os/contracts/lib/misc/ERCProxy.sol...
Compiling @aragon/os/contracts/lib/token/ERC20.sol...
Compiling @aragon/ppf-contracts/contracts/IFeed.sol...
Compiling @aragon/templates-shared/contracts/BaseTemplate.sol...
Compiling @aragon/templates-shared/contracts/Migrations.sol...
.../dao-templates/templates/bare/node_modules/truffle/node_modules/solc/soljson.js:12
function T5a(a){...... [[[a lot of minified javascript code]]]
....
Maybe this is because it uses an old version of truffle? If there an easier way to develop a new template?
from dao-templates.
I was able to compile by doing this in the compile command in the package.json:
npx --node-arg="--stack-size=1000000" truffle compile --all
from dao-templates.
Related Issues (20)
- Add tests for shared components
- Document new templates architecture and functionality
- Improve geth dependency HOT 3
- Provide helpers to mint tokens
- Add scripts to run tests with ganache
- Parameterize new templates app settings HOT 1
- Allow toggling between a Vault or Agent app
- Helpers: TemplatesDeployer should also deploy an open.aragonpm.eth instance on local chains
- Silent failure while validating multi-component parameters HOT 2
- Template request: Protocol Governance
- Tests preparing for the Istanbul hard fork
- Truffle.js not found
- Update truffle.js of `template-shared`
- Iterate on deployment script to prevent registering non existent repos HOT 4
- shared: TemplatesDeployer should not assume template constructor params
- shared: add configuration to TemplatesDeployer to specify aragonPM registries they'd like
- Membership Template Hangs After creating DAO.
- Can't run `scripts/create.js` or `scripts/deploy.js` HOT 2
- Creating subgraph
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dao-templates.