67 Commits

Author SHA1 Message Date
623cf6d6da Fix deprecation warninsg 2021-09-25 15:55:11 +02:00
c83a560e3b merge master 2020-12-01 10:39:01 +01:00
eadca6904a Rename contributor to recipient
And remove addedBy entry.
2020-12-01 10:33:09 +01:00
15b47dbc42
Improve Reimbursement.add validation 2020-10-01 12:15:48 +02:00
23d3dd3a80 Adjust API for new ethers v5 API
see issue for details: https://github.com/ethers-io/ethers.js/issues/920#issuecomment-650836642
2020-06-29 17:23:08 +02:00
bc38dcb136 Copy contract data into new object to avoid object is not extensible error
It seems the new ethers.js version returns contract data as a non-
extensible object. We have to clone it before adding the IPFS data.
2020-06-27 20:39:23 +02:00
2c567fa71a Use contributorId instead or address for reimbursements 2020-06-12 00:29:59 +02:00
9b4a95f375 use const for not reassigned variable 2020-05-30 14:02:50 +02:00
7fdeb78617 Support multiple expenses in one reimburesement 2020-05-29 18:47:49 +02:00
1f248812a7 Reimbursement.getReimbursement vs. Reimbursement.get 2020-05-29 15:12:57 +02:00
a0b0183beb Add Reimbursement app 2020-05-29 10:46:55 +02:00
2316e8f15a Remove IPFS pinner
The pinner now lives in its own npm package
2019-07-02 19:09:26 +02:00
16141ed482
Merge pull request #136 from 67P/feature/ipfs-pinner
Add IPFS pinning script
2019-07-01 13:06:45 +02:00
32a123a825 Default to open.aragonpm.eth
it is now also available on the devchain
2019-06-19 00:52:47 +02:00
6d6c6056f0 Refactor IPFS pinner 2019-06-12 01:08:07 +02:00
ffff09ab23 Add contract address accessor 2019-05-17 15:56:24 +02:00
572848c04a Fix util import 2019-05-04 01:09:22 +02:00
e7e8744ad2
Update lib/contracts/proposal.js
Co-Authored-By: bumi <hello@michaelbumann.com>
2019-05-01 18:06:55 +00:00
d2198dca61
Update lib/contracts/contribution.js
Co-Authored-By: bumi <hello@michaelbumann.com>
2019-05-01 18:06:43 +00:00
1199b053fe Add missing returns for the deprecated methods 2019-04-24 21:55:10 +02:00
f06b21dfee Deprecate old add* methods 2019-04-24 21:49:27 +02:00
f984dec95a Style fixes 2019-04-24 19:31:04 +02:00
145b3ea766 Merge branch 'master' into chore/linter
# Conflicts:
#	lib/contracts/contribution.js
#	lib/contracts/contributor.js
#	lib/contracts/proposal.js
#	lib/kredits.js
#	lib/serializers/contributor.js
#	yarn.lock
2019-04-24 19:12:18 +02:00
48c8f6b9b3
Merge branch 'master' into feature/kredits-formatter 2019-04-23 12:56:55 +00:00
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
e591742e40 Add Contributor validation against JSON schema
based on the Contribution validation.
2019-04-20 01:10:46 +02:00
791190f5e7 Cleanup promise call 2019-04-20 00:30:20 +02:00
375d8f3275 Cleanup 2019-04-19 13:34:39 +02:00
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
6f97c905d6 Add count property and DRY 2019-04-13 13:05:47 +02:00
a9093c1c40 Fix linter errors
# Conflicts:
#	lib/contracts/contribution.js
#	lib/contracts/contributor.js
#	lib/contracts/proposal.js
#	lib/kredits.js
#	lib/utils/pagination.js
2019-04-13 00:08:12 +02:00
f6189bf910 Add pagination for .all methods
I removed rsvp as a dependency as we only use Promise.all
2019-04-12 21:21:19 +02:00
b6c06c289c
Merge pull request #95 from 67P/cosmetics
Cosmetic cleanups
2019-04-12 18:55:59 +00:00
1dbf3b5742 Cosmetic cleanups 2019-04-12 20:16:24 +02:00
952b5153fd
Validate proposed contributions 2019-04-11 13:46:42 +02:00
d953141f52
Refactor contribution serializer and validation 2019-04-11 13:05:40 +02:00
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
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
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
a049f2eedb
Adjust proposals for format changes 2019-04-04 23:11:43 +02:00
181e6f3c23
Fix/refactor contribution wrapper 2019-04-04 22:56:06 +02:00
19556349f6
Fix syntax error 2019-04-04 22:30:27 +02:00
a1a1c5ef9f
Get contributor by ID
Co-Authored-By: skddc <sebastian@kip.pe>
2019-04-04 22:29:37 +02:00
5b49f82544
Adjust wrapper and scripts for contract changes 2019-04-04 16:24:37 +02:00
20acfc70e3
Use ID instead of address for contribution owner 2019-04-04 14:43:38 +02:00
9984ca66ba Use namehash from ethers.utils
no need for the additional dependency
2019-04-03 10:24:11 +02:00
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
c2f763bec7
Add missing variable assignment 2019-04-01 11:16:55 +02:00
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
38079d07db remove debug console 2019-03-29 12:07:52 +01:00