847f5a251c
Allow funding accounts with the seeds script
2018-04-23 13:43:35 +02:00
62a5cefd1a
Update readme to reflect helper script changes
2018-04-23 13:20:57 +02:00
6378df7075
cleanup
2018-04-23 12:11:26 +02:00
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
85032353ca
Use kredits library in add-proposal script
2018-04-23 12:06:04 +02:00
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
471c705e64
Replaces the ipfsHash buffer with a B58 string
2018-04-21 20:59:59 +02:00
92c566c13c
Fix build-json to merge addresses
2018-04-21 20:01:46 +02:00
ee886e6cd0
Merge pull request #38 from 67P/healthcheck
...
Extract healthcheck into its own class
2018-04-21 15:11:01 +00:00
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
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
772071c699
Merge branch 'master' into fallback-provider
...
# Conflicts:
# lib/kredits.js
2018-04-21 11:18:56 +02:00
6ca23de343
Lock ethers.js at 3.0.15
2018-04-21 10:44:09 +02:00
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
6f02a4d4b2
Merge pull request #35 from 67P/refactor/kredits-init
...
Refactor kredits address initialization
2018-04-21 08:32:57 +00:00
92f3963c5a
Remove not needed static contractNames function
2018-04-20 13:01:44 +02:00
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
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
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
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
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
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
fbd15953ab
Rename contributorAttr address -> account
2018-04-20 00:16:14 +02:00
b6bc5af7bf
Serialize details in contributions
2018-04-19 15:39:00 +02:00
7f56e1163a
Add accounts to contributor serialization
2018-04-19 15:23:15 +02:00
3ad9835f79
Add kovan deployment
2018-04-19 15:02:40 +02:00
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
555cf1e12c
Merge pull request #28 from 67P/library
...
Hello wrapper library
2018-04-18 22:42:25 +00:00
a16cd862f6
Better ipfs handling and default configs
2018-04-19 00:40:33 +02:00
424a2c4d02
Fix token modle.exports
2018-04-19 00:28:03 +02:00
8b0df655e8
Remove debug logs
...
The classes from the library should be less noisy
2018-04-19 00:23:28 +02:00
d5e68e1639
Hello wrapper library
2018-04-18 18:51:27 +02:00
38a25caaa4
Merge branch 'presist-ganache-db'
2018-04-17 13:24:43 +02:00
f2fc9fd161
Add empty Ganache DB directory
2018-04-17 13:13:52 +02:00
64ce554c49
readme
2018-04-16 11:01:43 +02:00
4b1cbbd0f7
Persist ganache DB and use fixed Mnemonic
...
This persists the state of the ganache db and uses a fixed mnemonic
code to create accounts.
It now acts more like a local presistent database and no need to
send funds to the accounts after restart.
2018-04-15 21:03:12 +02:00
e0407cb31a
Merge pull request #24 from 67P/refactor/naming-conventions
...
More consistent contract parameter naming
2018-04-15 18:24:11 +00:00
9e57567cd3
rename recipent to contributor in token contract
2018-04-15 20:21:49 +02:00
d7c8ee46bd
Rename recipientId to contributorId in Operator
2018-04-15 19:58:28 +02:00
00a7a4e511
Merge branch 'master' into refactor/naming-conventions
...
* master:
Adjust seeds to new proposal storage
2018-04-15 19:39:30 +02:00
4fd35a86c8
update seeds
2018-04-15 19:35:30 +02:00
5235370960
Adjust seeds to new proposal storage
2018-04-15 15:37:11 +02:00
3a0350d581
Fix
2018-04-10 18:16:19 +02:00
b85117835d
update contributor account vs. address
2018-04-10 18:02:00 +02:00
e116e7ebf3
Use new naming convention to call address things accounts
...
So here we use creatorAccount - similar to proposalId.
Like this we will always have an *Account or *Id as identifier.
2018-04-10 17:49:16 +02:00
147904e237
maybe more consitent
2018-04-10 16:40:11 +02:00
7f30006703
More consistent contract parameter naming
2018-04-10 16:25:17 +02:00
e9c6f1e4a7
Merge pull request #23 from 67P/refactor/contributor-naming-convention
...
Rename Contributors function parameter to be more consistent
2018-04-10 14:08:26 +02:00
71da31c1fd
Merge pull request #22 from 67P/features/add-voterids-to-proposals
...
Add voterIds to proposals
2018-04-10 14:01:24 +02:00