Commit Graph

16 Commits

Author SHA1 Message Date
bumi 92f3963c5a Remove not needed static contractNames function 2018-04-20 13:01:44 +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
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 a16cd862f6 Better ipfs handling and default configs 2018-04-19 00:40:33 +02:00
bumi 424a2c4d02 Fix token modle.exports 2018-04-19 00:28:03 +02:00
bumi 8b0df655e8 Remove debug logs
The classes from the library should be less noisy
2018-04-19 00:23:28 +02:00
bumi d5e68e1639 Hello wrapper library 2018-04-18 18:51:27 +02:00
bumi baa26a85bb Add getContributorById
Similiar to directly accessing the contributors mapping this method also
returns the balance of the contributor.
2018-04-07 20:10:55 +02:00
fsmanuel 13799c805e Unify addresses 2018-04-04 12:54:24 +02:00
bumi 4d2ba2a4bf Store contract names in registry as bytes32 hashes
This allows use to call the methods with a string but still store the
name as bytes32.
I also had some issues when calling the methods from ethers.js and a
string parameter so this is easier and safer.
2018-04-03 20:23:36 +02:00
bumi f55e95c7ae Split IPFS hash for proposals to use bytes32
Uses the same method as in Contrbutors to store proposal hashes
2018-04-02 18:09:12 +02:00
bumi d9ece98ffa Add script to add new contirbutors
Usage:

truffle exec scripts/add-contributor.js <ethereum address> <ipfs hash>
2018-04-02 14:44:46 +02:00
fsmanuel 5e1fc9c276 Add build-json script 2018-03-31 17:02:40 +02:00