Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #149 from uport-project/release/1.0.0
Browse files Browse the repository at this point in the history
Release 1.0.0 🎉
  • Loading branch information
Joel Torstensson authored Oct 24, 2018
2 parents 0ab2532 + d30f3e4 commit 8be3b04
Show file tree
Hide file tree
Showing 33 changed files with 12,058 additions and 220,991 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{

"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-object-rest-spread"
]
}
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
working_directory: ~/3box-js
docker:
- image: circleci/node:10
- image: circleci/node:9
steps:
- checkout

Expand All @@ -22,6 +22,10 @@ jobs:
name: test
command: npm test && codecov

- run:
name: lint
command: npm run lint

- run:
name: code-coverage
command: bash <(curl -s https://codecov.io/bash)
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules/
lib/
dist/
coverage/
tmp/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
tmp/
example/
145 changes: 0 additions & 145 deletions API-SPECIFICATION.md

This file was deleted.

41 changes: 0 additions & 41 deletions DATA-SCHEMA.md

This file was deleted.

55 changes: 55 additions & 0 deletions KEY-CONVENTIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Key Conventions

The `key` parameter is used to get, set, and remove values in both the profile and the private store. It has to be a unique string. In order to facilitate collaboration and avoid any collisions between dapps we have created some simple rules.

## Dapp specific entries
Dapps can avoid collisions in their entries by using the following format:
```
<dapp-name>.<key-name>
```

An example for this would be,
```
ujo.description
```

## Common entries
There are lots of cases where it can be valuable for dapps to use the same entries/data, e.g. name and image in the profile, and email in the private store. Below are tables containing well known keys. Feel free to add more by making a PR :)

### Public Data

| Key | Description |
| -- | -- |
| name | a name chosen by the user |
| image | an ipfs hash of a profile image |
| attestari.skills | array of skills (object) listed on attestari.me |
| attestari.attestations | object containing all the attestations received by skill via attestari.me |

### Private Data

| Key | Description |
| -- | -- |
| email | the user's email address |
| consensys.employment | a claim the user works at ConsenSys |
| attestari.pendingAttestations | list of attestations waiting to be attested by other people via attestari.me |
| ipfsUploader.files | up to date array of ipfs file hashes uploaded by the user |
| ipfsUploader.files[ipfsHash].name | user given name of a file uploaded to ipfs |
| ipfsUploader.files[ipfsHash].date | unix timestamp of file uploaded to ipfs |

### Example entry data
Here are examples of the data that are stored in the above keys.
#### Public

##### name
A `String` e.g. `oed`

##### image
An array with data:
```json
[{"@type":"ImageObject","contentUrl":{"/":"QmNoyzwnzA6sGM2BGFZ1C6dVbGnjWy8QXWgQgQABRApkJk"}}]
```

#### Private

##### email
A `String` e.g. `oed@gmail.com`
Loading

0 comments on commit 8be3b04

Please sign in to comment.