akropolisio / akropolis-sale Goto Github PK
View Code? Open in Web Editor NEWToken Sale contracts
License: MIT License
Token Sale contracts
License: MIT License
Jakub, not sure if we can test this line- it seems that trying to set the cap greater than maxcap always fails, so perhaps line of code will never be reached for testing.
Some strategies:
buyers who purchase in various rounds
presale allocated investors who also white list and purchase in the ICO
Different allocation setups
Trying to finalize the token sale in innappropriate times
Trying to buy when token sale is over
*Will continue to add to this list
I tried to open a PR, which might be simpler but I have it working on my machine.
.solcover.js
looks like:
module.exports = {
port: 8555,
compileCommand: '../node_modules/.bin/truffle compile',
testCommand: '../node_modules/.bin/truffle test --network coverage',
copyPackages: ['zeppelin-solidity']
}
truffle.js
// Allows us to use ES6 in our migrations and tests.
require('babel-register');
require('babel-polyfill');
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*' // Match any network id
},
coverage: {
host: 'localhost',
network_id: '*', // eslint-disable-line camelcase
port: 8555,
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};
Modified the package.json
scripts to look like this so just run: npm run coverage
:
"coverage": "./node_modules/.bin/solidity-coverage",
There's also a full line by line coverage report generated by Istanbul in the coverage
directory.
This test doesn't pass. Can you let me know if I set up this test, or another piece of the scenario incorrectly?
Thanks
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.