Commit Graph
100 Commits
Author SHA1 Message Date
bumiandGitHub a05e2c75f3 Merge pull request #142 from 67P/chore/update-dependencies-2
Chore/update aragon-cli dependencies
2019-06-19 08:39:06 +00:00
bumi 124287b977 Updated latest package-json 2019-06-19 01:00:53 +02:00
bumi 1702c22084 Make sure fix lockfile uses the correct file path 2019-06-19 00:52:47 +02:00
bumi 32a123a825 Default to open.aragonpm.eth
it is now also available on the devchain
2019-06-19 00:52:47 +02:00
bumi ac83573438 I don't know why this is needed but it fixes an npm issue
if install fails node scripts/fix-package-lock.js might help
2019-06-19 00:52:47 +02:00
bumi 77c6c11800 Remove npm cache and use LTS node on travis 2019-06-19 00:52:05 +02:00
bumi 86bbe49c0b Fix seeds script to support new web3 version 2019-06-13 18:39:25 +02:00
bumi d5322530c3 Update aragon CLI to latest version 2019-06-13 18:37:33 +02:00
bumiandGitHub 011d85447f Merge pull request #138 from 67P/dev/seeds
Various small seed/script improvements
2019-06-13 16:36:38 +00:00
bumiandGitHub 231d6e2477 Merge pull request #135 from 67P/feature/expose-available-networks
Expose available network IDs
2019-06-12 07:57:31 +00:00
bumi 107654ecca Expose available network IDs
This exposes the network IDs on which kredits is deployed. Helpful to
check if the used network is supported.
2019-06-11 15:45:14 +02:00
bumi 06a4e2173a Try npm instead of yarn on travis
There is some strange error with yarn: https://travis-ci.org/67P/kredits-contracts/builds/543186831
2019-06-10 12:59:02 +02:00
bumi 84b4461ba6 Update dependencies 2019-06-08 19:05:35 +02:00
bumi c4f8e9278e Use consitently uint32 for amounts 2019-06-08 17:56:50 +02:00
bumi 00905eb269 Update ABIs 2019-06-08 17:53:26 +02:00
bumi 6a64842415 Only count not-vetoed contributions for total balances 2019-06-08 17:49:24 +02:00
bumi 055d8bc0ef Print total unconfirmed and confirmed contribution kredits 2019-06-08 17:42:20 +02:00
bumiandGitHub 91779ccd03 Merge pull request #131 from 67P/feature/claim-contribution-script
Add script to claim contributions for one contributor
2019-05-21 11:29:56 +00:00
bumi 516b8b31ac Add script to claim contributions for one contributor 2019-05-20 13:48:15 +02:00
bumi ccd52f6ee5 Cleanup 2019-05-17 18:24:55 +02:00
bumi ffff09ab23 Add contract address accessor 2019-05-17 15:56:24 +02:00
bumi 3df0831d9b Cleanup whitespace 2019-05-17 15:56:02 +02:00
bumi 27a746261c Add JS wrapper for kredits kit
This makes it easier to deploy new DAOs and the deploy script is less
dependent on truffle
2019-05-17 15:54:52 +02:00
bumiandGitHub 345b6bde82 Merge pull request #127 from 67P/feature/allow-setting-contributor-accounts
Allow setting any contributor accounts
2019-05-17 08:42:43 +00:00
bumiandGitHub a86ea08bdf Merge pull request #128 from 67P/feature/simple-init
Add helper to initialize a new instance with provider
2019-05-17 07:37:10 +00:00
bumi e20bda73fb Remove not needed network check
We default to localhost anyway
2019-05-17 09:17:10 +02:00
bumi 4c64aa7c2a linting 2019-05-14 12:03:29 +02:00
bumi cf43bf9487 Linting 2019-05-14 11:32:42 +02:00
bumi 1a227ba67c Linting 2019-05-14 11:31:33 +02:00
bumi df7536589d Add helper to initialize a new instance with provider
So far we always had to initialze a provider and signer and pass those
to the kredits constructor.
This helper makes it easier to initialize a default ethers provider and
a default signer.
2019-05-14 11:25:21 +02:00
f0fe62f6d7 Apply suggestions from code review
Co-Authored-By: Sebastian Kippe <sebastian@kip.pe>
2019-05-14 09:18:23 +00:00
bumi 66fc992291 Allow setting any contributor accounts
This allows to pass in an account object when creating or updating a
contribtor.
2019-05-14 11:06:49 +02:00
bumiandGitHub 37ce2fddde Merge pull request #124 from 67P/bugfix/fix-me-1
Fix util import
2019-05-04 08:40:58 +00:00
bumi 3a43284557 Fix page number calculation for zero records
So far it returned 0 because of those in range checks which both
applied because numberOfPages is 0 if we have no record.
2019-05-04 01:34:05 +02:00
bumi 572848c04a Fix util import 2019-05-04 01:09:22 +02:00
bumiandGitHub b6ce9dcfc8 Merge pull request #118 from 67P/deprecate/old-add-methods
Deprecate old add* methods
2019-05-01 18:12:18 +00:00
bumiandGitHub f9f2ef234e Merge pull request #122 from 67P/feature/veto_script
Add script for vetoing via console
2019-05-01 18:05:37 +00:00
bumi ad74d30aa7 Contributor canPerform fix deployment 2019-04-25 22:25:38 +02:00
bumi c69ebd0a62 Fix canPerform method
Even if the variable is not used and the linter might complain we have
to have that parameter in the signature. otherwise the method is not
found and can not be called.
2019-04-25 22:06:40 +02:00
bumi b04d572b9a Fix apps lookup
We use the directories in ./apps to load available app names.
For this we need to make sure that we only use directories.
2019-04-25 16:45:39 +02:00
bumiandGitHub d643e5842c Merge pull request #97 from 67P/chore/linter
Add linter and travis.yml
2019-04-24 18:28:32 +00:00
bumi a87d5326bf Oh my package-lock 2019-04-24 20:17:03 +02:00
bumi 4649de24c8 Deploy notes for latest contributor and contribution deployment 2019-04-24 17:32:58 +02:00
bumiandGitHub 58db57ee45 Merge branch 'master' into feature/kredits-formatter 2019-04-24 13:10:48 +00:00
bumiandGitHub b64a7ca299 Merge pull request #113 from 67P/feature/gitea_site
Add Gitea site/username to serializer and seeds
2019-04-24 12:58:44 +00:00
bumiandGitHub 6f09ca8d13 Merge pull request #114 from 67P/chore/scripts
Improve/fix scripts
2019-04-24 12:57:43 +00:00
bumi 6f53c8097e Wrap anything that could break in the try/catch block 2019-04-24 14:55:35 +02:00
bumiandGitHub 48c8f6b9b3 Merge branch 'master' into feature/kredits-formatter 2019-04-23 12:56:55 +00:00
bumiandGitHub cd45ce260f Merge pull request #112 from 67P/feature/update-contributor-profile
Update contributor profile
2019-04-20 09:22:31 +00:00
bumi 9714926e11 Add function to update contributor profile to wrapper
The function updates the contributor profile,
adds the new profile to IPFS and does the contract call to update
the profile hash
2019-04-20 02:17:38 +02:00
bumi 59614201b5 Ups... 2019-04-20 02:15:53 +02:00
bumi e591742e40 Add Contributor validation against JSON schema
based on the Contribution validation.
2019-04-20 01:10:46 +02:00
bumi 791190f5e7 Cleanup promise call 2019-04-20 00:30:20 +02:00
bumi 24b66daf2a Update ABI 2019-04-19 14:16:40 +02:00
bumi ad034d7712 Naming is hard 2019-04-19 14:15:30 +02:00
bumi 375d8f3275 Cleanup 2019-04-19 13:34:39 +02:00
bumiandGitHub 80dc787971 Merge pull request #109 from 67P/dev/list_contributors_error_handling
Handle errors in contributor list script
2019-04-19 11:22:38 +00:00
bumi 7967dc26f2 Update ABIs 2019-04-19 13:20:25 +02:00
bumi c248725cc1 Add balances to getContributorById call 2019-04-19 13:19:55 +02:00
bumi 59135bf312 Add contract calls for total contribution balances
Those methods return the total kredits amounts of contribtions.
2019-04-19 13:06:36 +02:00
bumi 3cb94fb660 Add kredits-formatter and additionally format balance
This adds a `balanceInt` value to the contributor data that has the
token balance formatted as full Kredits. (similar to Ether)
2019-04-19 11:57:35 +02:00
bumiandGitHub 5820d71b2c Merge pull request #96 from 67P/feature/pagination
Add pagination for .all methods
2019-04-17 13:53:17 +00:00
bumiandGitHub 4771c0c8a0 Merge branch 'master' into feature/pagination 2019-04-17 13:52:53 +00:00
bumiandGitHub 8abc7ba77f Merge pull request #104 from 67P/chore/update-kosmos-schema
Update kosmos-schema dependency
2019-04-16 11:19:03 +00:00
bumi f696721918 Readme: add note about locally running out of funds 2019-04-16 13:17:54 +02:00
bumi 00b58dec66 Update kosmos-schema dependency 2019-04-16 13:16:05 +02:00
bumiandGitHub 560315cbca Merge pull request #102 from 67P/chore/add-yarn-support
Add yarn lock files
2019-04-15 15:54:38 +00:00
bumi b13bf6e8b0 Readme: add note about locally running out of funds 2019-04-15 15:59:54 +02:00
bumiandGitHub 8dcad88372 Merge pull request #99 from 67P/update-seeds
Update seeds
2019-04-15 10:39:10 +00:00
bumiandGitHub b6c06c289c Merge pull request #95 from 67P/cosmetics
Cosmetic cleanups
2019-04-12 18:55:59 +00:00
bumiandGitHub f405e39c04 Merge pull request #94 from 67P/bugfix/schema_changes
Refactor contribution serializer and validation
2019-04-12 18:54:56 +00: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 4d2e0ea84b Update Token symbol 2019-04-10 15:50:33 +02:00
bumi 26d12ba239 Store kredits tokens as wei with 18 decimals
This stores the tokens with 18 decimals as most other tokens and as
assumed by a potential future token standard EIP 777.
2019-04-10 13:59:00 +02:00
bumi f21c4cf9de Fix confirmed contribution check
If the blocknumber is higher or equal the contribution.confirmedAt block
number then the contribution is confirmed and can be claimed.
2019-04-09 22:30:17 +02:00
bumiandGitHub 9ca0580db6 Merge pull request #85 from 67P/dev/fix_seeds
Fix contributor ID in seeds
2019-04-09 07:33:42 +00:00
bumi 65d9cf2a06 Fix bootstrap
This runs npm install for every app through a postinstall hook.
2019-04-08 18:10:13 +02:00
bumiandGitHub b35dc2049b Merge pull request #82 from 67P/dev/list_contributions
Improve list-contributions script
2019-04-06 19:40:24 +00:00
bumiandGitHub cc24c27444 Merge pull request #80 from 67P/chore/rename-ipfshash-1
Rename ipfsHash to hashDigest in Contributor
2019-04-06 13:55:19 +00: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
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 6510dca4b1 Fix provider fallbacks for non dev networks
This now checks if frame or a local node is running and else uses infura
to connect to the ethereum network.
Now you can use all the helpers for the testnets/mainnet without running
anything (in readonly mode)
2019-04-05 13:51:23 +02:00
bumi 551edcfa72 Fix init kredits for readonly providers
The apm option was not passed on to kredits
2019-04-05 01:05:16 +02:00
bumi d58e2d560a deploy to rinkeby 2019-04-05 00:38:51 +02:00
bumiandGitHub 99394e7f14 Merge pull request #73 from 67P/feature/contribution_owner
Convert contribution owner to ID, use smaller number formats
2019-04-04 21:40:16 +00:00
bumi 8ceab08bfc ups 2019-04-04 23:23:02 +02:00
bumi afbd114a36 Add app upgrade helper script
This script deploys a new app version, upgrades the given DAO to the
latest version of that app and builds the ABI files for the wrapper.

usage:

    scripts/upgrade.sh <app name> <dao address>

e.g.

    scripts/upgrade.sh token 0xfoobar

The DAO address can also be set as environment variable
$KREDITS_DAO_ADDRESS
2019-04-04 19:51:38 +02:00
bumi db312dafbf Add some helpers to reset a fresh DAO 2019-04-04 19:27:57 +02:00
bumiandGitHub 732dfe7b29 Merge pull request #71 from 67P/chore/update_seeds
Update seeds
2019-04-04 11:32:58 +00:00
bumiandGitHub 3ce8f41d32 Merge pull request #72 from 67P/chore/whitespace
Remove unnecessary space chars
2019-04-04 11:17:35 +00: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
bumi 70b9edbcac Update ipfs package 2019-04-03 21:01:51 +02:00
bumiandGitHub 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
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