Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ex-kaufmann committed Jul 8, 2021
1 parent 06e3834 commit caff678
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Joys staking smart contract
# Joys staking contract

[![Testing](https://github.com/Joys-digital/staking-contract/actions/workflows/testing.yaml/badge.svg)](https://github.com/Joys-digital/staking-contract/actions/workflows/testing.yaml)
[![codecov](https://codecov.io/gh/Joys-digital/staking-contract/branch/master/graph/badge.svg?token=4B7AYDKXHS)](https://codecov.io/gh/Joys-digital/staking-contract)
Expand All @@ -14,39 +14,44 @@

### Deployed

< Coming soon >
- Joys Digital Testnet: ```0x6b371524c7168ed33A3F44f37117B307D78703c2```
- Joys Digital Mainnet: coming coon

Staking Dapp: https://staking.joys.digital/

### Documentation

< Coming soon >
<!-- [Generated html documentation](https://joys.gitlab.io/joys-research/joys-sc-loyalty/contracts/) -->
- [Generated html documentation](https://joys-digital.github.io/staking-contract/)

### Project structure:

```
contracts
├── Migrations.sol
├── interfaces
│ ├── IJoysStaking.sol
│ ├── IStakeholder.sol
│ ├── IStakingMechanics.sol
│ └── IVault.sol
├── main
│ ├── JoysStaking.sol
│ ├── Stakeholder.sol
│ ├── StakingMechanics.sol
│ └── Vault.sol
├── mocks
│ └── StakeholderMock.sol
└── utils
└── StakingOwnable.sol
```

- __interface/__ - Interfaces for compatibility with other smart contracts
- __interfaces/__ - Interfaces for compatibility with other smart contracts

- __main/__ - Core contracts of the system

- __utils/__ - Auxiliary contacts

### Architecture
### How it works

<!-- ![inheritance picture 1](./img/architecture.png) -->
< Coming soon >
![architecture picture](./img/architecture.png)

## Installation & Usage

Expand All @@ -63,12 +68,12 @@ npm run build

### Testing

run ganache-cli with port 8545
```
npm test
```

### Test coverage

```
npm run coverage
```
Expand All @@ -79,6 +84,13 @@ npm run coverage
npm run lint
```

### Deploy

edit network in ```truffle-config.js```
```
truffle migrate --f 2 --network <network name>
```

## License

MIT License
[MIT License](./LICENSE)
Empty file removed img/.keep
Empty file.
Binary file added img/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit caff678

Please sign in to comment.