aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-27 04:23:01 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-27 04:24:34 +0800
commit3ca4b7e7a76b4a9397fa00962571a472ca30eda1 (patch)
treee8a6123674e1b73bf44bce2e8264b91728d5d475 /packages/sra
parent95c627f581ec8d724a0c737cbbf5b53b96765f6e (diff)
downloaddexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.tar
dexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.tar.gz
dexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.tar.bz2
dexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.tar.lz
dexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.tar.xz
dexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.tar.zst
dexon-sol-tools-3ca4b7e7a76b4a9397fa00962571a472ca30eda1.zip
Initial commit
Diffstat (limited to 'packages/sra')
-rw-r--r--packages/sra/.npmignore8
-rw-r--r--packages/sra/CHANGELOG.json186
-rw-r--r--packages/sra/README.md59
-rw-r--r--packages/sra/package.json49
-rw-r--r--packages/sra/src/index.ts0
-rw-r--r--packages/sra/test/sample_test.ts3
-rw-r--r--packages/sra/tsconfig.json7
-rw-r--r--packages/sra/tslint.json3
8 files changed, 315 insertions, 0 deletions
diff --git a/packages/sra/.npmignore b/packages/sra/.npmignore
new file mode 100644
index 000000000..5333847e7
--- /dev/null
+++ b/packages/sra/.npmignore
@@ -0,0 +1,8 @@
+.*
+yarn-error.log
+/src/
+/scripts/
+/schemas/
+test/
+tsconfig.json
+/lib/src/monorepo_scripts/
diff --git a/packages/sra/CHANGELOG.json b/packages/sra/CHANGELOG.json
new file mode 100644
index 000000000..31da6a7f7
--- /dev/null
+++ b/packages/sra/CHANGELOG.json
@@ -0,0 +1,186 @@
+[
+ {
+ "version": "1.0.1-rc.3",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ],
+ "timestamp": 1532619515
+ },
+ {
+ "version": "1.0.1-rc.2",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ],
+ "timestamp": 1532614997
+ },
+ {
+ "version": "1.0.1-rc.1",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ],
+ "timestamp": 1532605697
+ },
+ {
+ "timestamp": 1532357734,
+ "version": "1.0.0",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1532043000,
+ "version": "1.0.0-rc.1",
+ "changes": [
+ {
+ "note": "Update schemas for V2 or 0x Protocol",
+ "pr": 615
+ },
+ {
+ "note": "Added CallData schema",
+ "pr": 821
+ },
+ {
+ "note": "Update CallData schema id to CallData",
+ "pr": 894
+ }
+ ]
+ },
+ {
+ "timestamp": 1531919263,
+ "version": "0.8.3",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1531149657,
+ "version": "0.8.2",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1529397769,
+ "version": "0.8.1",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "version": "0.8.0",
+ "changes": [
+ {
+ "note":
+ "Update Order & SignedOrder schemas, remove ECSignature schema and add Hex schema as part of V2 upgrades",
+ "pr": 615
+ }
+ ],
+ "timestamp": 1527008794
+ },
+ {
+ "timestamp": 1527008794,
+ "version": "0.7.24",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1525477860,
+ "version": "0.7.23",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1525428773,
+ "version": "0.7.22",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1524044013,
+ "version": "0.7.21",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1523462196,
+ "version": "0.7.20",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1522673609,
+ "version": "0.7.19",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "timestamp": 1522658513,
+ "version": "0.7.18",
+ "changes": [
+ {
+ "note": "Dependencies updated"
+ }
+ ]
+ },
+ {
+ "version": "0.7.13",
+ "changes": [
+ {
+ "note": " Fix publishing issue where .npmignore was not properly excluding undesired content",
+ "pr": 389
+ }
+ ],
+ "timestamp": 1518102000
+ },
+ {
+ "version": "0.7.0",
+ "changes": [
+ {
+ "note": "Rename `subscriptionOptsSchema` to `blockRangeSchema`",
+ "pr": 272
+ }
+ ],
+ "timestamp": 1513695600
+ },
+ {
+ "version": "0.6.7",
+ "changes": [
+ {
+ "note": "Re-publish JSON-schema previously published under NPM package 0x-json-schemas"
+ }
+ ],
+ "timestamp": 1510585200
+ }
+]
diff --git a/packages/sra/README.md b/packages/sra/README.md
new file mode 100644
index 000000000..461c93b44
--- /dev/null
+++ b/packages/sra/README.md
@@ -0,0 +1,59 @@
+## @0xproject/sra
+
+Contains the Standard Relayer API swagger spec and publishes the client libs.
+
+## Installation
+
+_pending_
+
+## Contributing
+
+We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.
+
+Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.
+
+### Install dependencies
+
+If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
+
+```bash
+yarn config set workspaces-experimental true
+```
+
+Then install dependencies
+
+```bash
+yarn install
+```
+
+### Build
+
+To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
+
+```bash
+PKG=@0xproject/sra yarn build
+```
+
+Or continuously rebuild on change:
+
+```bash
+PKG=@0xproject/sra yarn watch
+```
+
+### Clean
+
+```bash
+yarn clean
+```
+
+### Lint
+
+```bash
+yarn lint
+```
+
+### Run Tests
+
+```bash
+yarn test
+```
diff --git a/packages/sra/package.json b/packages/sra/package.json
new file mode 100644
index 000000000..f7f5becf9
--- /dev/null
+++ b/packages/sra/package.json
@@ -0,0 +1,49 @@
+{
+ "name": "@0xproject/sra",
+ "version": "0.0.1",
+ "engines": {
+ "node": ">=6.12"
+ },
+ "description": "Standard Relayer API Swagger Spec",
+ "main": "lib/src/index.js",
+ "types": "lib/src/index.d.ts",
+ "scripts": {
+ "lint": "tslint --project .",
+ "test": "yarn run_mocha",
+ "rebuild_and_test": "run-s clean build test",
+ "test:coverage": "nyc npm run test --all && yarn coverage:report:lcov",
+ "coverage:report:lcov": "nyc report --reporter=text-lcov > coverage/lcov.info",
+ "test:circleci": "yarn test:coverage",
+ "run_mocha":
+ "mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit",
+ "clean": "shx rm -rf lib test_temp scripts",
+ "build": "tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/0xProject/0x-monorepo.git"
+ },
+ "author": "Francesco Agosti",
+ "license": "Apache-2.0",
+ "bugs": {
+ "url": "https://github.com/0xProject/0x-monorepo/issues"
+ },
+ "homepage": "https://github.com/0xProject/0x-monorepo/packages/sra/README.md",
+ "dependencies": {},
+ "devDependencies": {
+ "@0xproject/tslint-config": "^1.0.4",
+ "@types/mocha": "^2.2.42",
+ "chai": "^4.0.1",
+ "copyfiles": "^1.2.0",
+ "dirty-chai": "^2.0.1",
+ "make-promises-safe": "^1.1.0",
+ "mocha": "^4.0.1",
+ "nyc": "^11.0.1",
+ "shx": "^0.2.2",
+ "tslint": "5.11.0",
+ "typescript": "2.7.1"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
+}
diff --git a/packages/sra/src/index.ts b/packages/sra/src/index.ts
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/packages/sra/src/index.ts
diff --git a/packages/sra/test/sample_test.ts b/packages/sra/test/sample_test.ts
new file mode 100644
index 000000000..e7edd6719
--- /dev/null
+++ b/packages/sra/test/sample_test.ts
@@ -0,0 +1,3 @@
+describe('test', () => {
+ it('should pass', () => undefined);
+});
diff --git a/packages/sra/tsconfig.json b/packages/sra/tsconfig.json
new file mode 100644
index 000000000..e35816553
--- /dev/null
+++ b/packages/sra/tsconfig.json
@@ -0,0 +1,7 @@
+{
+ "extends": "../../tsconfig",
+ "compilerOptions": {
+ "outDir": "lib"
+ },
+ "include": ["./src/**/*", "./test/**/*"]
+}
diff --git a/packages/sra/tslint.json b/packages/sra/tslint.json
new file mode 100644
index 000000000..ffaefe83a
--- /dev/null
+++ b/packages/sra/tslint.json
@@ -0,0 +1,3 @@
+{
+ "extends": ["@0xproject/tslint-config"]
+}