parent
c8de349fec
commit
d9353b6814
@ -1,3 +0,0 @@ |
||||
module.exports = { |
||||
"silent": true |
||||
} |
@ -1,14 +0,0 @@ |
||||
// This contract should throw a parse error in instrumentSolidity.js |
||||
pragma solidity ^0.5.0; |
||||
|
||||
contract SimpleError { |
||||
uint x = 0; |
||||
|
||||
function test(uint val) public { |
||||
x = x + val // <-- no semi-colon |
||||
} |
||||
|
||||
function getX() public returns (uint){ |
||||
return x; |
||||
} |
||||
} |
@ -1 +0,0 @@ |
||||
module.exports = { value: true }; |
@ -1,25 +0,0 @@ |
||||
pragma solidity >=0.4.22 <0.6.0; |
||||
|
||||
|
||||
contract Migrations { |
||||
address public owner; |
||||
|
||||
uint public last_completed_migration; |
||||
|
||||
modifier restricted() { |
||||
if (msg.sender == owner) { _; } |
||||
} |
||||
|
||||
constructor() public { |
||||
owner = msg.sender; |
||||
} |
||||
|
||||
function setCompleted(uint completed) public restricted { |
||||
last_completed_migration = completed; |
||||
} |
||||
|
||||
function upgrade(address new_address) public restricted { |
||||
Migrations upgraded = Migrations(new_address); |
||||
upgraded.setCompleted(last_completed_migration); |
||||
} |
||||
} |
@ -1,6 +0,0 @@ |
||||
pragma solidity ^0.5.0; |
||||
|
||||
contract Test { |
||||
address a; |
||||
address a; |
||||
} |
@ -1,4 +0,0 @@ |
||||
const Migrations = artifacts.require('./Migrations.sol'); |
||||
module.exports = async function(deployer) { |
||||
await deployer.deploy(Migrations); |
||||
}; |
@ -1,4 +0,0 @@ |
||||
|
||||
const A = artifacts.require("SimpleError"); |
||||
module.exports = function(deployer) { deployer.deploy(A) }; |
||||
|
@ -1,10 +0,0 @@ |
||||
const Simple = artifacts.require('Simple'); |
||||
|
||||
contract('Simple', () => { |
||||
it('should set x to 5', async function(){ |
||||
const simple = await Simple.deployed() |
||||
await simple.test(5); |
||||
const val = await simple.getX.call(); |
||||
assert.equal(val.toNumber(), 5); |
||||
}); |
||||
}); |
@ -1,86 +0,0 @@ |
||||
module.exports = { |
||||
"_deepCopy": [ |
||||
"compilers" |
||||
], |
||||
"_values": { |
||||
"truffle_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/node_modules", |
||||
"working_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage", |
||||
"networks": {}, |
||||
"verboseRpc": false, |
||||
"gas": null, |
||||
"gasPrice": null, |
||||
"from": null, |
||||
"confirmations": 0, |
||||
"timeoutBlocks": 0, |
||||
"production": false, |
||||
"skipDryRun": false, |
||||
"build": null, |
||||
"resolver": null, |
||||
"artifactor": null, |
||||
"ethpm": { |
||||
"ipfs_host": "ipfs.infura.io", |
||||
"ipfs_protocol": "https", |
||||
"registry": "0x8011df4830b4f696cd81393997e5371b93338878", |
||||
"install_provider_uri": "https://ropsten.infura.io/truffle" |
||||
}, |
||||
"compilers": { |
||||
"solc": { |
||||
"settings": { |
||||
"optimizer": { |
||||
"enabled": false, |
||||
"runs": 200 |
||||
} |
||||
} |
||||
}, |
||||
"vyper": {} |
||||
}, |
||||
"logger": {} |
||||
}, |
||||
"truffle_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/node_modules", |
||||
"working_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/temp", |
||||
"networks": { |
||||
"development": { |
||||
"host": "localhost", |
||||
"port": 8545, |
||||
"network_id": "*" |
||||
} |
||||
}, |
||||
"verboseRpc": false, |
||||
"build": null, |
||||
"resolver": null, |
||||
"artifactor": null, |
||||
"ethpm": { |
||||
"ipfs_host": "ipfs.infura.io", |
||||
"ipfs_protocol": "https", |
||||
"registry": "0x8011df4830b4f696cd81393997e5371b93338878", |
||||
"install_provider_uri": "https://ropsten.infura.io/truffle" |
||||
}, |
||||
"logger": {}, |
||||
"compilers": { |
||||
"solc": { |
||||
"version": "0.5.3", |
||||
"settings": { |
||||
"optimizer": {} |
||||
} |
||||
} |
||||
}, |
||||
"build_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/temp/build", |
||||
"contracts_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/temp/contracts", |
||||
"contracts_build_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/temp/build/contracts", |
||||
"migrations_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/temp/migrations", |
||||
"migrations_file_extension_regexp": {}, |
||||
"test_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/temp/test", |
||||
"test_file_extension_regexp": {}, |
||||
"example_project_directory": "/Users/cgewecke/code/sc-forks/v2/solidity-coverage/node_modules/example", |
||||
"network_id": null, |
||||
"from": null, |
||||
"gas": 6721975, |
||||
"gasPrice": 20000000000, |
||||
"provider": null, |
||||
"confirmations": 0, |
||||
"production": false, |
||||
"timeoutBlocks": 0, |
||||
"mocha": { |
||||
"reporter": "dot" |
||||
} |
||||
} |
@ -0,0 +1 @@ |
||||
// because circle won't copy the folder w/out contents |
Loading…
Reference in new issue