Commit Graph

130 Commits

Author SHA1 Message Date
haythem d206d55b7d Merge branch 'master' into tests/contracts-contributor 2019-07-10 10:18:23 +01:00
haythem 6a4a9c78a8 fix contributor serializer indentation 2019-07-09 01:03:28 +01:00
bumi 2316e8f15a Remove IPFS pinner
The pinner now lives in its own npm package
2019-07-02 19:09:26 +02:00
bumi 61fe9add1b Add support to use IPFS gateway to read ipfs data
This makes caching of IPFS documents easier. Browsers should cache those
by default
2019-07-01 15:53:18 +02:00
basti 16141ed482 Merge pull request #136 from 67P/feature/ipfs-pinner
Add IPFS pinning script
2019-07-01 13:06:45 +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 6d6c6056f0 Refactor IPFS pinner 2019-06-12 01:08:07 +02: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
basti 17bc4e7d8f Merge pull request #121 from 67P/refactor/amounts_vs_counts
Improve totalKreditsEarned
2019-06-09 13:57:44 +02:00
bumi 00905eb269 Update ABIs 2019-06-08 17:53:26 +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 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
bumi 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
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
bumi 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
basti 07a5ca847d Merge pull request #125 from 67P/bugfix/pagination
Fix page number calculation for zero records
2019-05-07 17:12:16 +02: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
basti e7e8744ad2 Update lib/contracts/proposal.js
Co-Authored-By: bumi <hello@michaelbumann.com>
2019-05-01 18:06:55 +00:00
basti d2198dca61 Update lib/contracts/contribution.js
Co-Authored-By: bumi <hello@michaelbumann.com>
2019-05-01 18:06:43 +00:00
fsmanuel 1199b053fe Add missing returns for the deprecated methods 2019-04-24 21:55:10 +02:00
fsmanuel f06b21dfee Deprecate old add* methods 2019-04-24 21:49:27 +02:00
fsmanuel 6f2097ed46 Fix regex 2019-04-24 19:39:30 +02:00
fsmanuel 94d342ce63 Replace console.log by deprecate function 2019-04-24 19:31:26 +02:00
fsmanuel f984dec95a Style fixes 2019-04-24 19:31:04 +02:00
fsmanuel 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
bumi 58db57ee45 Merge branch 'master' into feature/kredits-formatter 2019-04-24 13:10:48 +00:00
basti 09b78e1e8f Add Gitea site/username to contributor serializer 2019-04-23 20:28:56 +01:00
bumi 48c8f6b9b3 Merge branch 'master' into feature/kredits-formatter 2019-04-23 12:56:55 +00:00
basti d82ffba75e Update ABI 2019-04-23 13:52:37 +01:00
basti bdb2cee0c4 Merge pull request #110 from 67P/feature/contribution-balances
Add contract calls for total contribution balances
2019-04-23 13:47:50 +01: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 375d8f3275 Cleanup 2019-04-19 13:34:39 +02:00
bumi 7967dc26f2 Update ABIs 2019-04-19 13:20:25 +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
bumi 4771c0c8a0 Merge branch 'master' into feature/pagination 2019-04-17 13:52:53 +00:00
fsmanuel 6f97c905d6 Add count property and DRY 2019-04-13 13:05:47 +02:00
basti 1b5f7ff95d Merge pull request #93 from 67P/deployments/weltempfaenger-release
Production release to rinkeby
2019-04-13 11:07:58 +01:00
fsmanuel 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
fsmanuel 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