16 Commits

Author SHA1 Message Date
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
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
fba767cd40 Only create only registry addresses 2018-04-20 00:18:06 +02:00
d5e68e1639 Hello wrapper library 2018-04-18 18:51:27 +02:00
b3d19e556c Make the CLI a real reply
After calling the contract function a reply is started.
This allows to interact and inspect the result object or call more
functions on the contract.
2018-04-09 01:52:51 +02:00
19518435fa Allow Contributors management by core contirbutors
So far we only allowed calls to the Contributors contract from the
Operator. With the new registry concept we can call functions again
directly on the Contributors contract (without the need to call it through
the operator).
This changes the authentication for the contributor management functions
to allow either core contributors or the operator to call them.

In the future I envision a bit more flexible and configurable
authentication concept that can more easily evolve over time.
2018-04-08 12:55:39 +02:00
ebb26f78c2 code style 2018-04-07 19:41:39 +02:00
1488862b42 Add check if method is defined on the contract 2018-04-04 22:42:16 +02:00
d42b0fa2dd Add a general purpose contract CLI
This allows to call any method on any contract using the CLI.

for example:

  $ truffle exec scripts/cli.js Operator proposalsCount
2018-04-04 22:24:33 +02:00
7d52161014 Document helper scripts to interact with the contracts 2018-04-04 22:05:22 +02:00
fc4c964253 Add scripts/add-proposal script 2018-04-03 20:21:56 +02:00
d510bd4a03 Use new proposal ipfs storage 2018-04-02 18:14:07 +02:00
8301514c64 Add script to send funds from the main account
Helpful in development mode using ganache to fund another account

usage:

truffle exec scripts/send-funds.js <address> <amount in ether>
2018-04-02 16:53:25 +02:00
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
78b6b2e14f Add seeds script
Allows to seed the smart contract with development data specified in
config/seeds.js

Usage:

truffle exec scripts/seeds.js

or

npm run bootstrap which runs them all:
* truffle migrate --reset
* truffle exec scripts/seeds.js
* npm run build-json
2018-04-02 13:25:03 +02:00
5e1fc9c276 Add build-json script 2018-03-31 17:02:40 +02:00