bumi
1488862b42
Add check if method is defined on the contract
2018-04-04 22:42:16 +02:00
bumi
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
bumi
7d52161014
Document helper scripts to interact with the contracts
2018-04-04 22:05:22 +02:00
bumi
bdd99d58cf
Merge pull request #9 from 67P/developer-networkid
...
Unify network id for development
2018-04-04 12:11:03 +00: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
13ce6b1a94
Add note about invalid nonce with metamask to readme
2018-04-03 20:22:52 +02:00
bumi
fc4c964253
Add scripts/add-proposal script
2018-04-03 20:21:56 +02:00
fsmanuel
7403eb3b80
Merge pull request #8 from 67P/refactor/proposal-ipfs-hash
...
Refactor/proposal ipfs hash
2018-04-02 21:02:04 +02:00
bumi
d510bd4a03
Use new proposal ipfs storage
2018-04-02 18:14:07 +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
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
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
bumi
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
bumi
8f8582be69
Merge pull request #7 from 67P/json-abis
...
Add build-json script
2018-03-31 15:08:33 +00:00
fsmanuel
5e1fc9c276
Add build-json script
2018-03-31 17:02:40 +02:00
bumi
85ae154860
Import/Migrate existing kredits contracts
...
This brings in the current state of the kredits contracts incl. the
Contributors, Operator and Token contract.
2018-03-31 16:18:17 +02:00
bumi
f0caa1208d
Add truffle and ganache-cli as dev dependency
2018-03-15 09:01:26 +01:00
bumi
f0211ff4c1
Add proper Token contract
2018-03-15 08:55:17 +01:00
bumi
68fb8b2bee
update readme
2018-03-14 23:26:30 +01:00
bumi
ae0ae82fcb
Log an event for implementation changes
2018-03-14 21:05:35 +01:00
bumi
6cbfc88159
Refactor to support multiple contracts in the registry
...
This allows to manage different contracts (Token, Collaborator, etc.)
with one registry.
The registry serves as main source for all contracts and versions.
Versions are independently deployed and added to the registry. From
there the proxy contract's implementation can be upgraded to the new
version.
Currently no access control is implemented.
2018-03-14 19:12:03 +01:00
bumi
4051093f72
Add requirements
2018-03-12 20:13:38 +01:00
bumi
e69bd2a976
Example process for upgrading a contract
2018-03-12 19:49:57 +01:00
bumi
50ed9a6a79
Fix readme formatting
2018-03-12 19:20:09 +01:00
bumi
9deb7c2c7f
more basic readme
2018-03-12 17:47:31 +01:00
bumi
9efe30afda
Upgradable experiments
2018-03-11 23:12:29 +01:00