(Update) Add ChainSecurity audit report

This commit is contained in:
Vadim Arasev 2018-09-21 16:51:25 +03:00
parent 971d53b075
commit 8575766ecd
4 changed files with 9 additions and 8 deletions

View File

@ -3,9 +3,10 @@
[![Build Status](https://travis-ci.org/poanetwork/poa-network-consensus-contracts.svg?branch=master)](https://travis-ci.org/poanetwork/poa-network-consensus-contracts)
## Security Audit
- [PoA Consensus Audit.pdf](https://github.com/poanetwork/poa-network-consensus-contracts/blob/a9f63b19e5e4f0f238211d0cd8c456ad384d4a6c/audit/MixBytes/PoA%20Consensus%20Audit.pdf) by MixBytes
- [PoA Consensus Audit](https://github.com/poanetwork/poa-network-consensus-contracts/blob/master/audit/MixBytes/PoA%20Consensus%20Audit.pdf) by MixBytes
- [PoA Consensus Audit](https://github.com/poanetwork/poa-network-consensus-contracts/blob/master/audit/ChainSecurity/ChainSecurity_PoA.pdf) by ChainSecurity
### Start POA network
## Start POA network
- Install npm dependencies `npm i`
- Generate flat sources of contracts with the script `./make_flat.sh`
@ -18,7 +19,7 @@ $ MASTER_OF_CEREMONY=0x0039F22efB07A647557C7C5d17854CFD6D489eF3 node poa-bytecod
```
It will show the bytecode of `PoaNetworkConsensus` contract. Copy the bytecode and paste it into `spec.json`.
### Add Contracts to Parity UI.
## Add Contracts to Parity UI.
Start Parity UI. In the contracts section press `Develop` button.
Select `0.4.24` Solidity compiler version. Set `Optimize` to `true`.

Binary file not shown.

View File

@ -185,7 +185,7 @@ contract('VotingToManageEmissionFunds [all features]', function (accounts) {
const ballotInfo = await voting.getBallotInfo.call(id);
ballotInfo.should.be.deep.equal([
await voting.getTime(), // creationTime
await voting.getTime.call(), // creationTime
new web3.BigNumber(VOTING_START_DATE), // startTime
new web3.BigNumber(VOTING_END_DATE), // endTime
false, // isCanceled
@ -333,7 +333,7 @@ contract('VotingToManageEmissionFunds [all features]', function (accounts) {
VOTING_START_DATE, VOTING_END_DATE, accounts[5], "memo", {from: votingKey}
).should.be.fulfilled;
let creationTime = await voting.getTime();
let creationTime = await voting.getTime.call();
await voting.setTime(moment.utc().add(20, 'minutes').unix());
let result = await voting.cancelNewBallot({from: votingKey}).should.be.fulfilled;
@ -1096,7 +1096,7 @@ contract('VotingToManageEmissionFunds [all features]', function (accounts) {
const ballotInfo = await votingNew.getBallotInfo.call(id);
ballotInfo.should.be.deep.equal([
await voting.getTime(), // creationTime
await voting.getTime.call(), // creationTime
new web3.BigNumber(VOTING_START_DATE), // startTime
new web3.BigNumber(VOTING_END_DATE), // endTime
false, // isCanceled

View File

@ -192,7 +192,7 @@ contract('VotingToManageEmissionFunds upgraded [all features]', function (accoun
const ballotInfo = await voting.getBallotInfo.call(id);
ballotInfo.should.be.deep.equal([
await voting.getTime(), // creationTime
await voting.getTime.call(), // creationTime
new web3.BigNumber(VOTING_START_DATE), // startTime
new web3.BigNumber(VOTING_END_DATE), // endTime
false, // isCanceled
@ -340,7 +340,7 @@ contract('VotingToManageEmissionFunds upgraded [all features]', function (accoun
VOTING_START_DATE, VOTING_END_DATE, accounts[5], "memo", {from: votingKey}
).should.be.fulfilled;
let creationTime = await voting.getTime();
let creationTime = await voting.getTime.call();
await voting.setTime(moment.utc().add(20, 'minutes').unix());
let result = await voting.cancelNewBallot({from: votingKey}).should.be.fulfilled;