-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test * Linting * Upgraded typescript version * Updated tslint * Upgraded husky * Upgraded node version * v0.20.0 * Upgraded lerna * Small change to trigger release * v0.21.0 * Upgraded jest
- Loading branch information
Showing
157 changed files
with
9,145 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,4 +66,10 @@ dist/ | |
# data | ||
data/ | ||
archivist-db/ | ||
db.json | ||
db.json | ||
diviner-db/ | ||
ipfs/ | ||
|
||
# Scratch files | ||
scratch.ts | ||
scratch.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10.13.0 | ||
10.15.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "0.19.1" | ||
"version": "0.21.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[logo]: https://www.xy.company/img/home/logo_xy.png | ||
|
||
![logo] | ||
|
||
# Diviner Graphql API | ||
|
||
Implements the the Diviner graphql API | ||
|
||
## Install | ||
|
||
Using yarn | ||
|
||
```sh | ||
yarn add @xyo-network/diviner-graphql-api | ||
``` | ||
|
||
Using npm | ||
|
||
```sh | ||
npm install @xyo-network/diviner-graphql-api --save | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "@xyo-network/about-diviner", | ||
"version": "0.21.0", | ||
"description": "The about description for a diviner", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"author": "Ryan Pillsbury", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@xyo-network/scsc": "^0.21.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^23.3.1", | ||
"@types/node": "^10.7.1", | ||
"jest": "^23.6.0", | ||
"ts-jest": "^23.10.5", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* @Author: XY | The Findables Company <ryanxyo> | ||
* @Date: Wednesday, 19th December 2018 1:17:53 pm | ||
* @Email: developer@xyfindables.com | ||
* @Filename: index.ts | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 28th January 2019 4:12:14 pm | ||
* @License: All Rights Reserved | ||
* @Copyright: Copyright XY | The Findables Company | ||
*/ | ||
|
||
import { IXyoSCSCDescription } from '@xyo-network/scsc' | ||
|
||
export interface IXyoAboutDiviner { | ||
name: string | ||
version: string, | ||
url: string, | ||
address: string, | ||
seeds: string[], | ||
scsc: IXyoSCSCDescription | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* @Author: XY | The Findables Company <ryanxyo> | ||
* @Date: Wednesday, 19th December 2018 12:56:51 pm | ||
* @Email: developer@xyfindables.com | ||
* @Filename: index.ts | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 28th January 2019 4:12:20 pm | ||
* @License: All Rights Reserved | ||
* @Copyright: Copyright XY | The Findables Company | ||
*/ | ||
|
||
export { IXyoAboutDiviner } from './@types' | ||
export { XyoAboutDiviner } from './xyo-about-diviner' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* @Author: XY | The Findables Company <ryanxyo> | ||
* @Date: Wednesday, 19th December 2018 1:11:13 pm | ||
* @Email: developer@xyfindables.com | ||
* @Filename: xyo-about-diviner.ts | ||
* @Last modified by: ryanxyo | ||
* @Last modified time: Monday, 28th January 2019 4:12:27 pm | ||
* @License: All Rights Reserved | ||
* @Copyright: Copyright XY | The Findables Company | ||
*/ | ||
|
||
import { IXyoAboutDiviner } from './@types' | ||
import { IXyoSCSCDescription } from '@xyo-network/scsc' | ||
|
||
export class XyoAboutDiviner implements IXyoAboutDiviner { | ||
|
||
public readonly name = 'Diviner' | ||
|
||
constructor( | ||
public readonly version: string, | ||
public readonly url: string, | ||
public readonly address: string, | ||
public readonly seeds: string[], | ||
public readonly scsc: IXyoSCSCDescription | ||
) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"lib": ["esnext"], | ||
"declaration": true, | ||
"declarationMap": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"composite": true, | ||
"esModuleInterop": true, | ||
"noImplicitAny": true, | ||
"moduleResolution": "node", | ||
"outDir": "dist", | ||
"rootDir": "src" | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"src/**/test/*", | ||
"src/**/spec", | ||
"src/**/*.spec.ts" | ||
], | ||
"include": ["src/**/*"], | ||
"references": [ | ||
{"path": "../scsc"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[logo]: https://www.xy.company/img/home/logo_xy.png | ||
|
||
![logo] | ||
|
||
# API Archivist GraphQL | ||
|
||
This package provides a graphql service that implements the archivist API. This API is largely used by diviners to query the archivist's underlying data-set. Additionally, it can be used by other nodes in the XYO network for discovery in the peer to peer network. | ||
|
||
## Getting started | ||
|
||
### Clone repository | ||
|
||
```sh | ||
git clone https://github.com/XYOracleNetwork/api-archivist-graphql.git | ||
``` | ||
|
||
### Install dependencies | ||
|
||
After cloning the repository, change directory to the folder that houses the repository. | ||
|
||
```sh | ||
cd api-archivist-graphql | ||
``` | ||
|
||
Once you've switched to the repository directory, install the dependencies. We prefer `yarn` but `npm` works just as well. | ||
|
||
```sh | ||
yarn install | ||
``` | ||
|
||
## Using API Archivist GraphQL as a dependency | ||
|
||
```sh | ||
npm install @xyo-network/api-archivist-graphql | ||
``` | ||
|
||
or with yarn | ||
|
||
```sh | ||
yarn add @xyo-network/api-archivist-graphql | ||
``` | ||
|
||
## Developer Guide | ||
|
||
Developers should conform to git flow workflow. Additionally, we should try to make sure | ||
every commit builds. Commit messages should be meaningful serve as a meta history for the | ||
repository. Please squash meaningless commits before submitting a pull-request. | ||
|
||
There is git hook on commits to validate the project builds. If you'd like to commit your changes | ||
while developing locally and want to skip this step you can use the `--no-verify` commit option. | ||
|
||
i.e. | ||
|
||
```sh | ||
git commit --no-verify -m "COMMIT MSG" | ||
``` | ||
|
||
## License | ||
|
||
Only for internal XY Company use at this time | ||
|
||
## Credits | ||
|
||
Made with ❤️ | ||
by [XYO](https://xyo.network) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
globals: { | ||
"ts-jest": { | ||
tsConfig: "tsconfig.json" | ||
} | ||
}, | ||
moduleFileExtensions: ["ts", "js"], | ||
transform: { | ||
"^.+\\.(ts|tsx)$": "ts-jest" | ||
}, | ||
testMatch: ["**/spec/**/*.spec.(ts)"], | ||
testEnvironment: "node" | ||
}; |
Oops, something went wrong.