-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1085 from JoinColony/develop-copy
Merge master in to develop
- Loading branch information
Showing
18 changed files
with
2,361 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const { execSync } = require("child_process"); | ||
const log = console.log; | ||
|
||
// Copies pre-built token artifacts to .coverage_artifacts/contracts | ||
function provisionTokenContracts(config){ | ||
let output; | ||
const provisionColonyToken = `bash ./scripts/provision-token-contracts.sh`; | ||
|
||
log('Provisioning ColonyToken contracts...') | ||
output = execSync(provisionColonyToken); | ||
log(output.toString()) | ||
} | ||
|
||
function getFilesToSkip(){ | ||
const array = [ | ||
'Migrations.sol', | ||
'common/EtherRouter.sol', | ||
'patriciaTree', | ||
'testHelpers', | ||
]; | ||
|
||
const output = execSync("ls ./**/*Updated*", {cwd: "./contracts/"}); | ||
|
||
return array.concat(output.toString().split('\n').slice(0,-1)) | ||
} | ||
|
||
module.exports = { | ||
skipFiles: getFilesToSkip(), | ||
providerOptions: { | ||
port: 8555, | ||
network_id: 1999, | ||
account_keys_path: "./ganache-accounts.json", | ||
vmErrorsOnRPCResponse: false, | ||
total_accounts: 18 | ||
}, | ||
onCompileComplete: provisionTokenContracts, | ||
istanbulFolder: "./coverage-upgrade" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
This file is part of The Colony Network. | ||
The Colony Network is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
The Colony Network is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with The Colony Network. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
pragma solidity 0.7.3; | ||
pragma experimental ABIEncoderV2; | ||
import "./../common/IBasicMetaTransaction.sol"; | ||
|
||
interface IColonyExtension is IBasicMetaTransaction { | ||
|
||
function identifier() external pure returns (bytes32); | ||
function version() external pure virtual returns (uint256); | ||
function install(address _colony) external virtual; | ||
function finishUpgrade() external virtual; | ||
function deprecate(bool _deprecated) external virtual; | ||
function uninstall() external virtual; | ||
|
||
function getCapabilityRoles(bytes4 _sig) external view virtual returns (bytes32); | ||
|
||
function getDeprecated() external view returns (bool); | ||
|
||
function getColony() external view returns(address); | ||
|
||
} |
Oops, something went wrong.