Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddentao committed Feb 3, 2020
1 parent 035cdeb commit 9c4d0ce
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[Nayms](https://nayms.io) Smart contracts.

## Usage
## General usage

Install the package:

Expand Down Expand Up @@ -61,6 +61,29 @@ yarn deploy:local
# The addresses at which the contract are deployed will be output in the terminal.
```

## Package contents

The package exposes the following properties:

* `contracts` - the key contracts (see below)
* `rawContracts` - ABIs of all Solidity contracts in the repo
* `addresses` - on-chain addresses of contracts in `contracts`
* `events` - ABIs for events to listen for
* `extractEventsFromAbis()` - given an array of contract ABIs, this will extract the event ABIs within.

The key contracts are:

* `ACL (IACL.sol)` - Interface for our access control system. We have a single global ACL for our platform.
* `EntityDeployer (IEntityDeployer.sol)` - Interface for the entity deployer. We have a single global deployer for our platform.
* `Entity (IEntityImpl.sol)` - Interface for interacting with entities.
* `ERC20 (IERC20.sol)` - Interface for interacting with ERC-20 contracts.
* `ERC777 (IERC777.sol)` - Interface for interacting with ERC-777 contracts.
* `EtherToken (IEtherToken.sol)` - Interface for interacting with wrapped ETH token contract. We have a single global instance for our platform.
* `Market (IMarket.sol)` - Interface for interacting with [our MakerOTC matching market](https://github.com/nayms/maker-otc). We have a single global instance for our platform.
* `Policy (IPolicyImpl.sol)` - Interface for interacting with policies.
* `Proxy (Proxy.sol)` - Interface for interacting with all upgradeable contracts (policies, entities, etc).
* `Settings (ISettingsImpl.sol)` - Interface for global settings. We have a single global settings instance for our platform.

## Development

**Note: Requires Node 12+**
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const coreContracts = [
{ name: 'Policy', actual: 'IPolicyImpl' },
{ name: 'EntityDeployer', actual: 'IEntityDeployer' },
{ name: 'Entity', actual: 'IEntityImpl' },
{ name: 'MatchingMarket', actual: 'IMarket' },
{ name: 'Market', actual: 'IMarket' },
{ name: 'EtherToken', actual: 'IEtherToken' },
{ name: 'Proxy', actual: 'Proxy' },
{ name: 'ERC20', actual: 'IERC20' },
Expand Down

0 comments on commit 9c4d0ce

Please sign in to comment.