tylerjohnhaden / __truffle-boilerplate Goto Github PK
View Code? Open in Web Editor NEWA shared repo for building a boilerplate smart contract project
License: MIT License
A shared repo for building a boilerplate smart contract project
License: MIT License
See below
From RFC 1:
research if this makes a difference
Add a script "npm run audit". Needs research into auditing/coverage/testing etc.
From RFC 1:
In .soliumignore, we ignore node_modules. Maybe we should have a full auditing suite that also checks any dependencies (as this is still a burgeoning field)
This could be a nice enhancement, though we won't be able to fix a lot of those issues without a lot of work on other open source projects
From RFC 1:
Epic - Building a default suite of testing.
This should not be the behavior if we don't need infura. For example, if we are testing locally on a non-forked ganache.
When I run npm run coverage
which is just short for node_modules/.bin/solidity-coverage
, I get an error:
There was a problem instrumenting ./coverageEnv/contracts/TreasureChest.sol: SyntaxError: Expected ")", ",", comment, end of line, or whitespace but "d" found. Line: 150, Column: 35
... which would be a syntax error if I wasn't using Solidity 0.5.0.
I forgot to add in "migrate:kovan" inside the "start:kovan" or "test:kovan" scripts
Decisions that I'd like to get an opinion on:
truffle-config.js
instead of truffle.js
or both.
INFURA_PROJECT_ID
as the canonical env name instead of INFURA_KEY
.
"config": { "ganache": { ... } }
in package.json.
truffleConfig.networks.development.from
do we need this?pragma solidity >=0.4.21 <0.6.0;
in Migrations.sol
From RFC 1:
Using pragma solidity >=0.4.21 <0.6.0; in Migrations.sol
It appears that when I write tests where very many contract function calls are made, only the first 16 are displayed. This is very low priority, but figured it should be documented.
This came up when I was writing some automated test generation, and the use of...
for (let i = 0; i < n; i++) {
await myContract['myFunction' + i.toString()](myValue, { from: accounts[0] });
}
blew up the number of functions being called.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.