Commit Graph

114 Commits

Author SHA1 Message Date
basti db2e12c750 3.0.1 v3.0.1 2018-05-03 13:20:06 +02:00
basti 7dc75a19b5 Clean your room, kiddo. 2018-05-03 12:40:24 +02:00
basti 926913da50 Update description 2018-05-03 12:40:16 +02:00
basti a045702937 Use normal Markdown extension
Hardly anyone uses `.mdown`, so let's use what everyone knows and looks
for.
2018-05-03 12:32:36 +02:00
basti b13b93122e 3.0.0 v3.0.0 2018-05-03 12:04:10 +02:00
basti c23e7f2df8 Start with old npm package version 2018-05-03 12:03:19 +02:00
fsmanuel 7260544838 Merge pull request #41 from 67P/feature/improve-scripts
Improve helper scripts
2018-04-29 09:43:22 +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
bumi c367c9cf6b Merge pull request #44 from 67P/add-contributors-alias
Add Contributors alias for Contributor
2018-04-26 11:52:23 +00:00
bumi 52643da096 typo 2018-04-26 13:52:09 +02:00
fsmanuel ad5fe3ae77 Add Contributors alias for Contributor
Because the contract is named `Contributors` we alias to `Contributor` which will become the new contract name if we manage to change it.
2018-04-26 12:41:51 +02:00
fsmanuel 418785059c Merge pull request #40 from 67P/feature/constructor-options
Constructor configuration options
2018-04-26 10:32:12 +00:00
bumi 3895553e88 Use destructuring for options
This makes it more readable what options are used
2018-04-26 10:23:27 +02:00
bumi 89261d039a Fix contributor id lookup for proposal creation script 2018-04-26 02:42:31 +02:00
fsmanuel 6949a5940a Merge pull request #26 from 67P/features/batch-voting
Add batch voting for proposals
2018-04-24 12:40:15 +00:00
bumi ce5f5fb8d2 Merge branch 'master' into features/batch-voting 2018-04-24 12:39:16 +00:00
bumi 2e8d00bc2c Add a filter by account function to contributors
This allows to filter contributors by the account entries.
For example:

```js

Contributor.filterByAccount({site: 'github.com'}); // returns all
contributors with github account
Contributor.filterByAccount({site: 'github.com', username: 'bumi'});
// returns bumi

```
2018-04-23 16:29:44 +02:00
bumi b1345b53f3 Add repl.js helper script
This is similar to the cli.js helper but only provides an initialized
`kredits` instance.
The cli.js is for executing contract functions
2018-04-23 16:24:40 +02:00
bumi 847f5a251c Allow funding accounts with the seeds script 2018-04-23 13:43:35 +02:00
bumi 62a5cefd1a Update readme to reflect helper script changes 2018-04-23 13:20:57 +02:00
bumi 6378df7075 cleanup 2018-04-23 12:11:26 +02:00
bumi bd2af6ed72 Smarter cli script
It now allows you to list available functions and allows to call
functions on the wrapper or on the contract directly.
2018-04-23 12:10:20 +02:00
bumi 85032353ca Use kredits library in add-proposal script 2018-04-23 12:06:04 +02:00
bumi 78b47753b3 Constructor confugration options
This changes the function signature of the constructor but allows us to
pass any options.
Mainly this is now used for the ipfs configs.
2018-04-23 11:01:08 +02:00
basti 1779d66ee6 Merge pull request #39 from 67P/fix/ipfs-hash
Replaces the ipfsHash buffer with a B58 string
2018-04-21 21:04:56 +02:00
fsmanuel 471c705e64 Replaces the ipfsHash buffer with a B58 string 2018-04-21 20:59:59 +02:00
fsmanuel 92c566c13c Fix build-json to merge addresses 2018-04-21 20:01:46 +02:00
fsmanuel ee886e6cd0 Merge pull request #38 from 67P/healthcheck
Extract healthcheck into its own class
2018-04-21 15:11:01 +00:00
bumi 7ba32bb0ed Extract healthcheck into its own class
This moves the whole checks if everything is running into its own class
and is no longer inside the different functions.
Makes the functions smaller and the healthcheck can be used from the
client only if wanted/needed.
2018-04-21 16:45:04 +02:00
fsmanuel 3e4d270bcb Merge pull request #29 from 67P/fallback-provider
Fallback to provider if no contract signer is given
2018-04-21 09:19:43 +00:00
fsmanuel 772071c699 Merge branch 'master' into fallback-provider
# Conflicts:
#	lib/kredits.js
2018-04-21 11:18:56 +02:00
fsmanuel 6ca23de343 Lock ethers.js at 3.0.15 2018-04-21 10:44:09 +02:00
fsmanuel a71c2d0793 Merge pull request #36 from 67P/refactor/use-kredits-in-scripts
Refactor helper scripts to use kredits module
2018-04-21 08:39:38 +00:00
fsmanuel 6f02a4d4b2 Merge pull request #35 from 67P/refactor/kredits-init
Refactor kredits address initialization
2018-04-21 08:32:57 +00:00
bumi 92f3963c5a Remove not needed static contractNames function 2018-04-20 13:01:44 +02:00
bumi aedf2cc7bd Merge pull request #34 from 67P/feature/support-contract-call-options
Add support for contract tx call options
2018-04-20 10:59:07 +00:00
bumi 2503ac7c73 Refactor helper scripts to use kredits module
This reuses the kredits library functions in the helper scripts and
seeds. We no longer need to add IPFS hashes manually but simply can
provider contributor/proposal data.
2018-04-20 12:56:09 +02:00
bumi 3da3e22214 Refactor kredits address initialization
This moves the Kredits initialization to the instance which allows us to
be more flexible with handling contract addresses.

Example:

var k = new Kredits(provider, signer, {Registry: '0xabc'});
k.init().then((kredits) { ...});

var k = new Kredits(provider, signer, {Contributors: '0xabc'})
k.Contributor.add(...);
2018-04-20 03:08:18 +02:00
bumi 6738abd0b3 Add support for contract tx call options
This allows to provide options like gas price/limit settings for the
state changing contract calls.
These options are simply passed to the ethers contract instance.

We need to provide the gas limit when using the jsonrpc provider.
(ganache failed with revert if not enought gas was provider)
2018-04-20 02:09:30 +02:00
fsmanuel d4ca8d7c25 Merge pull request #33 from 67P/feature/use-prompt
Use prompt instead of argv arguments in scripts
2018-04-19 22:26:29 +00:00
bumi 9669f0137b Use prompt instead of argv arguments in scripts
This makes it easier to handle truffle arguments which we for example
need to specify the network.
So we ask the user for input instead on using the argv array which might
change.
2018-04-20 00:22:09 +02:00
fsmanuel fba767cd40 Only create only registry addresses 2018-04-20 00:18:06 +02:00
fsmanuel fbd15953ab Rename contributorAttr address -> account 2018-04-20 00:16:14 +02:00
basti b6bc5af7bf Serialize details in contributions 2018-04-19 15:39:00 +02:00
basti 7f56e1163a Add accounts to contributor serialization 2018-04-19 15:23:15 +02:00
bumi 3ad9835f79 Add kovan deployment 2018-04-19 15:02:40 +02:00
bumi 42bfb3d24e Fallback to provider if no contract signer is given
No signing functions will be available then.
2018-04-19 01:30:27 +02:00
fsmanuel 555cf1e12c Merge pull request #28 from 67P/library
Hello wrapper library
2018-04-18 22:42:25 +00:00