Commit Graph

129 Commits

Author SHA1 Message Date
fsmanuel 1dbf3b5742 Cosmetic cleanups 2019-04-12 20:16:24 +02:00
basti 952b5153fd Validate proposed contributions 2019-04-11 13:46:42 +02:00
basti d953141f52 Refactor contribution serializer and validation 2019-04-11 13:05:40 +02:00
basti 130e2a7797 Validate contribution docs against schema
Currently requires an open PR branch for the schemas, which is adding
date and time for contributions.

refs #30
2019-04-10 18:37:02 +02:00
bumi 27e5190e29 Production release to rinkeby
Deployed all apps and created a new Kredits DAO
2019-04-10 18:28:24 +02:00
bumi f717968402 Better function naming to update contributor profiles 2019-04-06 15:42:16 +02:00
bumi 14d7fbd75e Rename ipfsHash to hashDigest in Contributor
naming should be consistent with the other contracts and digest is more
correct.
2019-04-06 15:24:44 +02:00
basti 7eb1fedb42 Merge pull request #76 from 67P/features/dynamic-core-flag
Dynamic function to test for core contributor flag
2019-04-06 15:19:01 +02:00
bumi a0e4f5410d Set veto period to 1 week
This makes a contribution claimable after roughly 7 days
2019-04-05 20:30:02 +02:00
bumi 766463b57b Dynamic function to test for core contributor flag
This removes the isCore flag and allows us to dynamically calculate the
core flag for contributors.

For now this is just us (the first 6 contirbutors)

Also we do not need the default contributor anymore because the deploy
user has the role to manage contributors and can create the first real
contributors.
2019-04-05 18:55:21 +02:00
bumi d58e2d560a deploy to rinkeby 2019-04-05 00:38:51 +02:00
basti 896db5e047 Update abi 2019-04-04 23:16:23 +02:00
basti a049f2eedb Adjust proposals for format changes 2019-04-04 23:11:43 +02:00
basti 181e6f3c23 Fix/refactor contribution wrapper 2019-04-04 22:56:06 +02:00
basti 19556349f6 Fix syntax error 2019-04-04 22:30:27 +02:00
fsmanuel a1a1c5ef9f Get contributor by ID
Co-Authored-By: skddc <sebastian@kip.pe>
2019-04-04 22:29:37 +02:00
basti e4c3d9a468 Update abi 2019-04-04 16:28:34 +02:00
basti 5b49f82544 Adjust wrapper and scripts for contract changes 2019-04-04 16:24:37 +02:00
basti f1e2c65b9e Use smaller numbers where appropriate 2019-04-04 15:28:18 +02:00
basti 20acfc70e3 Use ID instead of address for contribution owner 2019-04-04 14:43:38 +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
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
bumi 9984ca66ba Use namehash from ethers.utils
no need for the additional dependency
2019-04-03 10:24:11 +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
basti 9512ba4334 Update contract addresses 2019-04-01 11:19:30 +02:00
basti c2f763bec7 Add missing variable assignment 2019-04-01 11:16:55 +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 38079d07db remove debug console 2019-03-29 12:07:52 +01:00
bumi a45be0021e Fix old registry reference 2019-03-29 12:06:43 +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 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 b201642485 remove obsolete comment 2019-03-27 16:56:52 +01:00
bumi 7e68dbf8c2 rinkeby deployment 2019-03-27 00:39:00 +01:00
bumi f5973756c8 Dynamically set AppIds
AppIds are used to lookup the actual contract addresses of each app.
Because of different registry names (open.aragonpm.eth vs. aragonpm.eth)
we have to use different ids in the local dev chain and in the
testnet/mainnet. To allow this we need to set the appids dynamically.

There is an open aragon issue to solve this and also allow to use
open.aragonpm.eth in the devchain by default.
https://github.com/aragon/aragen/issues/10
2019-03-27 00:21:06 +01:00
bumi 3584a73c08 Set kredits-<name>.open.aragonpm.eth as appid hashes 2019-03-26 00:34:46 +01:00
bumi 3c2cdf4376 Deployment hacking while trying to deploy on rinkeby
This currently breaks the local usage because of the different appIds:
<name>.open.aragonpm.eth vs. <name>.aragonpm.eth (local)
2019-03-26 00:18:59 +01:00
bumi e1fea4ed97 refactor DAO deployment 2019-03-24 22:11:24 +01:00
bumi 116f69cb12 cleanup 2019-03-24 00:20:48 +01:00
bumi 6c569239de refactor contrats with aragonos 2019-03-23 19:15:23 +01:00
bumi dae44cac70 Continue Contribution contract and JS wrapper 2018-09-29 19:46:37 +02:00
bumi 7216522d83 Update Operator ABI 2018-06-15 09:42:29 +02:00
bumi 956f858620 Rename healthcheck to preflight 2018-06-07 16:39:07 +02:00
fsmanuel da2f951bdb Merge pull request #42 from 67P/feature/filter-contributors-by-account
Add filter and find by account function to contributors
2018-04-26 14:27:26 +00:00
bumi 017073018f Use more readable Array.every method instead of reduce 2018-04-26 15:35:32 +02:00
bumi fe1fa2e881 Allow filter and find for contributors by account data 2018-04-26 14:51:18 +02:00