Contributor app tests #143
@ -28,5 +28,6 @@ module.exports = {
|
||||
named: 'always',
|
||||
asyncArrow: 'always',
|
||||
}],
|
||||
'indent': ['error', 2]
|
||||
}
|
||||
}
|
||||
|
||||
14
.travis.yml
@ -6,13 +6,25 @@ node_js:
|
||||
sudo: false
|
||||
dist: xenial
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
- apps/contribution/node_modules
|
||||
- apps/contributor/node_modules
|
||||
- apps/proposal/node_modules
|
||||
- apps/token/node_modules
|
||||
- apps/vault/node_modules
|
||||
|
||||
install:
|
||||
- npm install
|
||||
|
||||
before_script:
|
||||
- npm run devchain &
|
||||
|
||||
script:
|
||||
- npm run lint:wrapper
|
||||
- npm run lint:contract-tests
|
||||
# - yarn lint:contracts
|
||||
- npm run test
|
||||
|
||||
branches:
|
||||
only:
|
||||
|
||||
290
apps/contribution/package-lock.json
generated
@ -7,7 +7,7 @@
|
||||
"@aragon/cli": "^5.9.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aragon/test-helpers": "^1.1.0",
|
||||
"@aragon/test-helpers": "^2.0.0",
|
||||
"eth-gas-reporter": "^0.2.0",
|
||||
"ganache-cli": "^6.4.3",
|
||||
"solidity-coverage": "^0.5.11"
|
||||
@ -26,10 +26,7 @@
|
||||
"publish:minor": "aragon apm publish minor",
|
||||
"publish:major": "aragon apm publish major",
|
||||
"versions": "aragon apm versions",
|
||||
"test": "TRUFFLE_TEST=true PORT=7545 npm run ganache-cli:test",
|
||||
"test:gas": "GAS_REPORTER=true npm test",
|
||||
"coverage": "SOLIDITY_COVERAGE=true npm run ganache-cli:test",
|
||||
"ganache-cli:test": "./node_modules/@aragon/test-helpers/ganache-cli.sh"
|
||||
"test": "aragon contracts test"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
|
||||
@ -64,10 +64,13 @@ contract Contributor is AragonApp {
|
||||
}
|
||||
|
||||
function updateContributorAccount(uint32 id, address oldAccount, address newAccount) public auth(MANAGE_CONTRIBUTORS_ROLE) {
|
||||
require(newAccount != address(0), "invalid new account address");
|
||||
require(getContributorAddressById(id) == oldAccount, "contributor does not exist");
|
||||
|
|
||||
|
||||
contributorIds[oldAccount] = 0;
|
||||
contributorIds[newAccount] = id;
|
||||
contributors[id].account = newAccount;
|
||||
ContributorAccountUpdated(id, oldAccount, newAccount);
|
||||
emit ContributorAccountUpdated(id, oldAccount, newAccount);
|
||||
}
|
||||
|
||||
function updateContributorProfileHash(uint32 id, bytes32 hashDigest, uint8 hashFunction, uint8 hashSize) public isInitialized auth(MANAGE_CONTRIBUTORS_ROLE) {
|
||||
|
||||
16
apps/contributor/contracts/test/Spoof.sol
Normal file
@ -0,0 +1,16 @@
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import "@aragon/os/contracts/acl/ACL.sol";
|
||||
import "@aragon/os/contracts/kernel/Kernel.sol";
|
||||
import "@aragon/os/contracts/factory/DAOFactory.sol";
|
||||
|
||||
// You might think this file is a bit odd, but let me explain.
|
||||
// We only use for now those imported contracts in our tests, which
|
||||
// means Truffle will not compile them for us, because they are from
|
||||
// an external dependency.
|
||||
|
||||
|
||||
// solium-disable-next-line no-empty-blocks
|
||||
contract Spoof {
|
||||
// ...
|
||||
}
|
||||
290
apps/contributor/package-lock.json
generated
@ -7,10 +7,10 @@
|
||||
"@aragon/cli": "^5.9.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aragon/test-helpers": "^1.1.0",
|
||||
"eth-gas-reporter": "^0.2.0",
|
||||
"ganache-cli": "^6.4.3",
|
||||
"solidity-coverage": "^0.5.11"
|
||||
"solidity-coverage": "^0.5.11",
|
||||
"@aragon/test-helpers": "^2.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "npm run start:aragon:ipfs",
|
||||
@ -26,10 +26,7 @@
|
||||
"publish:minor": "aragon apm publish minor",
|
||||
"publish:major": "aragon apm publish major",
|
||||
"versions": "aragon apm versions",
|
||||
"test": "TRUFFLE_TEST=true PORT=7545 npm run ganache-cli:test",
|
||||
"test:gas": "GAS_REPORTER=true npm test",
|
||||
"coverage": "SOLIDITY_COVERAGE=true npm run ganache-cli:test",
|
||||
"ganache-cli:test": "./node_modules/@aragon/test-helpers/ganache-cli.sh"
|
||||
"test": "aragon contracts test"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
// const Contributor = artifacts.require('Contributor.sol');
|
||||
|
||||
contract('Contributor', (_accounts) => {
|
||||
it('should be tested');
|
||||
});
|
||||
170
apps/contributor/test/contributor.js
Normal file
@ -0,0 +1,170 @@
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const namehash = require('ethers').utils.namehash;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const Contributor = artifacts.require("Contributor.sol");
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const getContract = name => artifacts.require(name);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const { assertRevert } = require('@aragon/test-helpers/assertThrow');
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const ZERO_ADDR = '0x0000000000000000000000000000000000000000';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
contract('Contributor app', (accounts) => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let kernelBase, aclBase, daoFactory, r, dao, acl, contributor;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const root = accounts[0];
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const member1 = accounts[1];
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
before(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
kernelBase = await getContract('Kernel').new(true); // petrify immediately
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
aclBase = await getContract('ACL').new();
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
daoFactory = await getContract('DAOFactory').new(kernelBase.address, aclBase.address, ZERO_ADDR);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
r = await daoFactory.newDAO(root);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
dao = getContract('Kernel').at(r.logs.filter(l => l.event == 'DeployDAO')[0].args.dao);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
acl = getContract('ACL').at(await dao.acl());
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
//create dao mamnager permission for coin owner
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await acl.createPermission(
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
root,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
dao.address,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await dao.APP_MANAGER_ROLE(),
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
root,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
{ from: root }
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
//get new app instance from DAO
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
const receipt = await dao.newAppInstance(
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'0x1234',
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
(await Contributor.new()).address,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
0x0,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
false,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
{ from: root }
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
contributor = Contributor.at(
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
receipt.logs.filter(l => l.event == 'NewAppProxy')[0].args.proxy
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
//apps id
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let appsId = [];
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
appsId[0] = namehash("kredits-contribution");
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
appsId[1] = namehash("kredits-contributor");
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
appsId[2] = namehash("kredits-proposal");
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
appsId[3] = namehash("kredits-token");
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
//init contributor (app)
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.initialize(root, appsId);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
//create manage contributors role
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await acl.createPermission(
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
root,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
contributor.address,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.MANAGE_CONTRIBUTORS_ROLE(),
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
root,
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
{ from: root }
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
describe("Owner default permissions", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it('check owner is contributors manager', async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let manageContributorPermission = await acl.hasPermission(root, contributor.address, await contributor.MANAGE_CONTRIBUTORS_ROLE());
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(manageContributorPermission, true);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
describe("Add contributor", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let account = root;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let hashDigest = '0x0';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let hashFunction = 0;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let hashSize = 0;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it("should revert when add contributor from an address that does not have permission", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
return assertRevert(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.addContributor(account, hashDigest, hashFunction, hashSize, { from: member1});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'sender does not have permission';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it('add contributor', async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let contributorCount = await contributor.coreContributorsCount();
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.addContributor(account, hashDigest, hashFunction, hashSize);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(await contributor.addressExists(account), true);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let contributorCountAfter = await contributor.coreContributorsCount();
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(await contributorCountAfter.toNumber(), parseInt(contributorCount)+1);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it("should revert when add contributor with an address that already exist", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
return assertRevert(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.addContributor(account, hashDigest, hashFunction, hashSize, { from: member1});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'address already exist';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
describe("Update contributor", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let id;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let oldAccount;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let newAccount;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let hashDigest;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let hashFunction;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let hashSize;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
before(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
id = await contributor.coreContributorsCount();
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
oldAccount = root;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
newAccount = member1;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
hashDigest = '0x1000000000000000000000000000000000000000000000000000000000000000';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
hashFunction = 1;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
hashSize = 1;
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it('update contributor account', async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.updateContributorAccount(id.toNumber(), oldAccount, newAccount);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let contributorId = await contributor.getContributorIdByAddress(oldAccount);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
// eslint-disable-next-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(contributorId.toNumber(), 0);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it("should revert when update contributor account from address that does not have permission", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
return assertRevert(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.updateContributorAccount(id.toNumber(), oldAccount, newAccount, {from: member1});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'sender does not have permission';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it("should revert when update contributor account that does not exist", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
return assertRevert(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.updateContributorAccount(id.toNumber(), accounts[3], newAccount);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'contributor does not exist';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it("should revert when update contributor account with address(0)", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
return assertRevert(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.updateContributorAccount(id.toNumber(), oldAccount, ZERO_ADDR);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'contributor does not exist';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it('update contributor profile hash', async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.updateContributorProfileHash(id.toNumber(), hashDigest, hashFunction, hashSize);
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
let contributorProfile = await contributor.contributors(id.toNumber());
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(hashDigest, contributorProfile[1]); // eslint-disable-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(hashFunction, contributorProfile[2].toNumber()); // eslint-disable-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
assert.equal(hashSize, contributorProfile[3].toNumber()); // eslint-disable-line no-undef
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
it("should revert when update contributor profile hash from address that does not have permission", async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
return assertRevert(async () => {
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
await contributor.updateContributorProfileHash(id.toNumber(), hashDigest, hashFunction, hashSize, {from: member1});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
'sender does not have permission';
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
});
|
||||
|
we should be able to use the namehash from ethers: we should be able to use the namehash from ethers:
`const namehash = require('ethers').utils.namehash;`
as ethers.js is already a dependency we do not need to add another dependency
cool will change that cool will change that
for the ganache script, it is basically the same aragon one, but I changed to Because for the ganache script, it is basically the same aragon one, but I changed
```
run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
}
```
to
```
run_tests() {
echo "Running tests..."
npx aragon contracts test --network rpc "$@"
}
```
Because `npx truffle test --network rpc "$@"` didn't work for me for no reason...
|
||||
290
apps/proposal/package-lock.json
generated
@ -7,7 +7,7 @@
|
||||
"@aragon/cli": "^5.9.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aragon/test-helpers": "^1.1.0",
|
||||
"@aragon/test-helpers": "^2.0.0",
|
||||
"eth-gas-reporter": "^0.2.0",
|
||||
"ganache-cli": "^6.4.3",
|
||||
"solidity-coverage": "^0.5.11"
|
||||
@ -26,10 +26,7 @@
|
||||
"publish:minor": "aragon apm publish minor",
|
||||
"publish:major": "aragon apm publish major",
|
||||
"versions": "aragon apm versions",
|
||||
"test": "TRUFFLE_TEST=true PORT=7545 npm run ganache-cli:test",
|
||||
"test:gas": "GAS_REPORTER=true npm test",
|
||||
"coverage": "SOLIDITY_COVERAGE=true npm run ganache-cli:test",
|
||||
"ganache-cli:test": "./node_modules/@aragon/test-helpers/ganache-cli.sh"
|
||||
"test": "aragon contracts test"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
|
||||
290
apps/token/package-lock.json
generated
@ -7,7 +7,7 @@
|
||||
"@aragon/cli": "^5.9.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@aragon/test-helpers": "^1.1.0",
|
||||
"@aragon/test-helpers": "^2.0.0",
|
||||
"eth-gas-reporter": "^0.2.0",
|
||||
"ganache-cli": "^6.4.3",
|
||||
"solidity-coverage": "^0.5.11"
|
||||
@ -26,10 +26,7 @@
|
||||
"publish:minor": "aragon apm publish minor",
|
||||
"publish:major": "aragon apm publish major",
|
||||
"versions": "aragon apm versions",
|
||||
"test": "TRUFFLE_TEST=true PORT=7545 npm run ganache-cli:test",
|
||||
"test:gas": "GAS_REPORTER=true npm test",
|
||||
"coverage": "SOLIDITY_COVERAGE=true npm run ganache-cli:test",
|
||||
"ganache-cli:test": "./node_modules/@aragon/test-helpers/ganache-cli.sh"
|
||||
"test": "aragon contracts test"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
|
||||
@ -13,7 +13,7 @@ class Contributor {
|
||||
Object.keys(attrs).forEach(a => this[a] = attrs[a]);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Serialize object to JSON
|
||||
*
|
||||
* @method
|
||||
|
||||
642
package-lock.json
generated
@ -24,6 +24,7 @@
|
||||
"lint:contracts": "solhint \"contracts/**/*.sol\" \"apps/*/contracts/**/*.sol\"",
|
||||
"lint:contract-tests": "eslint apps/*/test",
|
||||
"lint:wrapper": "eslint lib/",
|
||||
"test": "npm run test:token && npm run test:contributor && npm run test:contribution && npm run test:proposal",
|
||||
"test:token": "cd apps/token && npm run test",
|
||||
"test:contributor": "cd apps/contributor && npm run test",
|
||||
"test:contribution": "cd apps/contribution && npm run test",
|
||||
|
||||
👍 very good!