7 Commits

Author SHA1 Message Date
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
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
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
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