Commit Graph

193 Commits

Author SHA1 Message Date
basti 20acfc70e3 Use ID instead of address for contribution owner 2019-04-04 14:43:38 +02:00
bumi 732dfe7b29 Merge pull request #71 from 67P/chore/update_seeds
Update seeds
2019-04-04 11:32:58 +00:00
bumi 3ce8f41d32 Merge pull request #72 from 67P/chore/whitespace
Remove unnecessary space chars
2019-04-04 11:17:35 +00:00
basti e0ff29d1c9 Remove unnecessary space chars 2019-04-04 11:38:18 +02:00
basti 0ce62839e9 Update seeds
Use more realistic data, add more contributions
2019-04-04 11:32:46 +02:00
basti cc2c9a7368 Merge pull request #70 from 67P/feature/claim-contribution-in-seeds
Update seeds
2019-04-03 21:50:43 +02:00
basti 1abfc5a265 Merge pull request #69 from 67P/fix/add-contributor-permissions
Fix permissions to manage contributors
2019-04-03 21:50:19 +02:00
bumi 6b9466c348 Update seeds
Claim contribution which issues Kredits to the contributor
2019-04-03 21:40:37 +02:00
bumi 9fffdbfb58 Fix permissions to manage contributors
Uses the contributor oracle to decide if somebody has the
MANAGE_CONTRIBUTOR_ROLE
2019-04-03 21:22:53 +02:00
basti 350dadec4d Merge pull request #68 from 67P/update-ipfs-package
Update ipfs package
2019-04-03 21:16:22 +02:00
bumi 70b9edbcac Update ipfs package 2019-04-03 21:01:51 +02:00
basti 92da07dca2 Merge pull request #67 from 67P/feature/contributor-balance-1
Add balance when loading contributor
2019-04-03 20:22:50 +02:00
bumi 6fed81c0ed Merge pull request #66 from 67P/chore/seeds
Allow seed tx to fail
2019-04-03 17:03:22 +00:00
bumi 74e61e1393 Show balance in list-contributors helper script 2019-04-03 14:05:16 +02:00
bumi 6351db3057 Add balance when loading contributor
This is a regression introduced by the latest contract updates.
Now we return the balance again when loading contributor data.
2019-04-03 13:56:52 +02:00
basti ed3e5dd4c4 Allow seed tx to fail
This allows for running seeds multiple times, e.g. after adding new
ones.
2019-04-03 11:41:55 +02:00
basti bd39d0f126 Use new address for raucao seed 2019-04-03 11:41:45 +02:00
basti 4c8ee69664 Merge pull request #65 from 67P/fix/ethersjs-namehash
Use namehash from ethers.utils
2019-04-03 11:39:35 +02:00
basti eae8967322 Merge pull request #63 from 67P/fix/contriutor-permissions
Fix contributor oracle permission auth
2019-04-03 11:37:10 +02:00
bumi 9984ca66ba Use namehash from ethers.utils
no need for the additional dependency
2019-04-03 10:24:11 +02:00
bumi 1b09a30646 Fix contributor oracle permission auth
It seems that the entity is either defined by the permission or if we
want to use the oracle the permission must be defined for any_entity.
In that case the oracle does not get the msg.sender as who/entity thus
we will use tx.origin in that case.
2019-04-03 10:06:00 +02:00
basti f40cc1d8ff Merge pull request #62 from 67P/aragonos
Build on aragonOS
2019-04-02 21:36:36 +02:00
bumi 91135dbc82 Fix deploy-kit helper script
We no longer need the app ids as json. Those are dynamically calculated
now
2019-04-02 18:06:33 +02:00
basti adb7122a28 Add helper script for updating local address file
Can be run after starting the devchain, so that all local truffle
scripts work with the new network ID.
2019-04-02 17:35:28 +02:00
bumi ce446e530d Set Kreits apm from arapp.json file in helper scripts
different networks might require different apm domains. We set those in
the arapp.json file which we can reuise to init the kredits instance in
the helper scripts.
2019-04-02 09:58:44 +02:00
bumi fedb10c5da Dynamically get app ids from the namehash
This dynamically hashes the app id which makes it easier to manually set
contract addresses. This is useful in development environments with no
default network ids.
The used apm (which is part of the app id hash) is configurable.

usage:

new Kredits(provider, signer, { addresses: { Kernel: '0x...' }, apm: 'aragonpm.eth' })
2019-04-01 22:41:00 +02:00
basti a24f80d44f Change addresses 2019-04-01 14:04:11 +02:00
bumi 61fa26da7a Add more information output to the send funds helper 2019-04-01 11:53:50 +02:00
basti 9512ba4334 Update contract addresses 2019-04-01 11:19:30 +02:00
basti 65c129eafd Update package locks 2019-04-01 11:17:26 +02:00
basti c2f763bec7 Add missing variable assignment 2019-04-01 11:16:55 +02:00
basti c93a81808a Update package lock 2019-04-01 10:34:48 +02:00
bumi 51e5da414f Update ethers.js to latest version v4
The main change is how ethers loads the networkId which is now async.
Thus the init process had to change a bit
2019-03-29 18:13:51 +01:00
bumi 3662f1ae24 Add Operator getter for backwards compatibility 2019-03-29 15:03:37 +01:00
bumi c568263fea update eth-provider to support different providers
Ideally eth-provider checks which connection is available and uses the
available one.
frame => local node => infura

But it seems there is still a bug and it raises an error if frame is not
available.
But at least we can use frame now for testnet/mainnet deployments
2019-03-29 12:08:07 +01:00
bumi 38079d07db remove debug console 2019-03-29 12:07:52 +01:00
bumi 0cc67c2fad Support getting the network version from different web3
version/providers
2019-03-29 12:07:09 +01:00
bumi a45be0021e Fix old registry reference 2019-03-29 12:06:43 +01:00
bumi 4bd1aed197 Refactor kredits init in helper scripts
This now also supports readonly providers like infura
2019-03-29 12:05:51 +01:00
bumi 94832d4d07 Add ACL contract wrapper
this mainly allows us to check if an account has a certain role and thus
if the account can call specific contract functions.

At some point we might want to extend that to support the check if an
account can call the function. For that we would need to have a mapping
between function names and roles, which we have not right now.
2019-03-28 12:39:04 +01:00
bumi 4f5ae01c5a Add helper funtion to list contract entries 2019-03-28 11:16:20 +01:00
bumi d6f99f57b7 Auto resolve promises in repl 2019-03-28 11:12:32 +01:00
bumi 901566d1ff Update network specific addresses and app ids 2019-03-28 11:11:49 +01:00
bumi 5d4be8f176 Update ABIs used by wrapper 2019-03-28 11:09:49 +01:00
bumi f9ab8b225a Fix proposal wrapper to support the latest contracts 2019-03-28 11:08:34 +01:00
bumi dfa55516ec Add contribution veto function
Allows anybody with the VETO_CONTRIBUTION_ROLE to veto a contribution
and thus prevent that the contribution can be claimed.
So far like the ADD_CONTRIBUTION_ROLE any contributor is allowed to
veto.
2019-03-28 11:06:19 +01:00
bumi b6f34ac9a5 Pretty print JSON for contract addresses
This makes it easier to read the file and a git diff is more useful
2019-03-27 21:58:19 +01:00
bumi 258c6729b6 Cleanup scripts and use helper to get the networkid 2019-03-27 17:06:52 +01:00
bumi b201642485 remove obsolete comment 2019-03-27 16:56:52 +01:00
bumi 0686c79998 Print dao address and kreditskit address 2019-03-27 16:56:24 +01:00