Remove aragon from readme
This commit is contained in:
parent
cc6b6de827
commit
9d87636fb0
55
README.md
55
README.md
@ -2,14 +2,9 @@
|
|||||||
|
|
||||||
# Kredits Contracts
|
# Kredits Contracts
|
||||||
|
|
||||||
This repository contains the Solidity smart contracts organized as
|
This repository contains the Solidity smart contracts and the JavaScript API wrapper for [Kosmos
|
||||||
[Aragon](https://hack.aragon.org/) apps and JavaScript API wrapper for [Kosmos
|
|
||||||
Kredits](https://wiki.kosmos.org/Kredits).
|
Kredits](https://wiki.kosmos.org/Kredits).
|
||||||
|
|
||||||
It is based on [aragonOS](https://hack.aragon.org/docs/aragonos-intro.html) and
|
|
||||||
follows the aragonOS conventions. Aragon itself uses the [Truffle
|
|
||||||
framework](http://truffleframework.com/) for some things.
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
@ -20,44 +15,14 @@ All requirements are defined in `package.json`.
|
|||||||
|
|
||||||
$ npm install
|
$ npm install
|
||||||
|
|
||||||
Each of the aragon apps are separate packages:
|
|
||||||
|
|
||||||
$ cd apps/[app]
|
|
||||||
$ npm install
|
|
||||||
|
|
||||||
You can use `npm run install-all` to install all app dependencies at once.
|
|
||||||
|
|
||||||
#### Sytem dependencies
|
|
||||||
|
|
||||||
Aragon CLI and Truffle need to be installed on your sytem as well:
|
|
||||||
|
|
||||||
npm install -g @aragon/cli
|
|
||||||
npm install -g truffle
|
|
||||||
|
|
||||||
_Note: `@aragon/cli` currently fails to install on node.js 14. Please use
|
|
||||||
node.js 12 until the issue has been resolved upstream._
|
|
||||||
|
|
||||||
### Local development chain
|
### Local development chain
|
||||||
|
|
||||||
For local development it is recommended to use
|
We use [hardhat](https://hardhat.org/) as development environment for the
|
||||||
[ganache](http://truffleframework.com/ganache/) to run a local development
|
smart contracts.
|
||||||
chain. When using the ganache simulator, no full Ethereum node is required.
|
|
||||||
|
|
||||||
We use the default aragon-cli devchain command to configure and run a local
|
To run a local development chain run:
|
||||||
development ganache.
|
|
||||||
|
|
||||||
$ npm run devchain (or aragon devchain --port 7545)
|
$ npm run devchain # or: hardhat node --network hardhat
|
||||||
|
|
||||||
To clear/reset the chain use (e.g. if you run out of funds on your devchain)
|
|
||||||
|
|
||||||
$ npm run devchain --
|
|
||||||
|
|
||||||
We default to port 7545 for development to not get in conflict with the default
|
|
||||||
Ethereum RPC port.
|
|
||||||
|
|
||||||
You can also set certain ganache options to configure the devchain, for example
|
|
||||||
if you want to increase the block time to 10 seconds you can add
|
|
||||||
`--block-time=10`.
|
|
||||||
|
|
||||||
### Bootstrap
|
### Bootstrap
|
||||||
|
|
||||||
@ -71,7 +36,7 @@ if you want to increase the block time to 10 seconds you can add
|
|||||||
(compiled artifacts will be in `/artifacts`)
|
(compiled artifacts will be in `/artifacts`)
|
||||||
$ npm run build
|
$ npm run build
|
||||||
|
|
||||||
3. Deploy a new KreditsKit and create a new DAO with the latest app versions
|
3. Deploy new upgradable contract proxies
|
||||||
|
|
||||||
$ npm run deploy:dao
|
$ npm run deploy:dao
|
||||||
|
|
||||||
@ -85,6 +50,12 @@ if you want to increase the block time to 10 seconds you can add
|
|||||||
|
|
||||||
$ cat lib/addresses.json
|
$ cat lib/addresses.json
|
||||||
|
|
||||||
|
## Fund a local development account
|
||||||
|
|
||||||
|
If you need to fund development accounts with devchain coins:
|
||||||
|
|
||||||
|
$ npm run fund # or hardhat fund --network localhost
|
||||||
|
|
||||||
## Contract architecture
|
## Contract architecture
|
||||||
|
|
||||||
We use the [OpenZeppelin hardhat proxy](https://www.npmjs.com/package/@openzeppelin/hardhat-upgrades) for deploying and managing upgradeable contracts. (see `scripts/create-proxy.js`)
|
We use the [OpenZeppelin hardhat proxy](https://www.npmjs.com/package/@openzeppelin/hardhat-upgrades) for deploying and managing upgradeable contracts. (see `scripts/create-proxy.js`)
|
||||||
@ -104,7 +75,7 @@ Some scripts are also defined as npm script, see package.json.
|
|||||||
|
|
||||||
Call any function on any contract:
|
Call any function on any contract:
|
||||||
|
|
||||||
$ truffle exec scripts/cli.js
|
$ hardhat run scripts/cli.js
|
||||||
|
|
||||||
### repl.js
|
### repl.js
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user