diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-09-26 19:19:01 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-09-26 19:19:01 +0800 |
commit | 4ed932380455d63227f61a2a757aacb494faf656 (patch) | |
tree | 0d2f0da6707ccc457d46ab564203a567f31c0996 | |
parent | d77c6e13b0a6791fd2b5a5b134f61c3610beff5d (diff) | |
download | dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.tar dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.tar.gz dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.tar.bz2 dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.tar.lz dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.tar.xz dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.tar.zst dexon-sol-tools-4ed932380455d63227f61a2a757aacb494faf656.zip |
Fix development flow
-rw-r--r-- | packages/sra-spec/package.json | 4 | ||||
-rw-r--r-- | packages/sra-spec/src/api.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/sra-spec/package.json b/packages/sra-spec/package.json index 0c5131848..9f96a04fe 100644 --- a/packages/sra-spec/package.json +++ b/packages/sra-spec/package.json @@ -9,7 +9,7 @@ "types": "lib/src/index.d.ts", "scripts": { "serve": "redoc-cli serve lib/api.json --watch", - "watch_without_deps": "run-p build-json:watch serve", + "watch_without_deps": "run-p build:watch serve", "lint": "tslint --project .", "test": "swagger-cli validate lib/api.json", "rebuild_and_test": "run-s clean build test", @@ -19,7 +19,7 @@ "clean": "shx rm -rf lib", "build": "tsc -b && yarn copy_md_files && yarn build-json", "build-json": "node ./lib/build_scripts/buildJson", - "build-json:watch": "chokidar 'src/**/*' -c 'yarn build-json' ", + "build:watch": "chokidar 'src/**/*' -c 'yarn build' ", "copy_md_files": "copyfiles -u 2 './src/md/**/*.md' ./lib/src/md", "deploy-site": "discharge deploy" }, diff --git a/packages/sra-spec/src/api.ts b/packages/sra-spec/src/api.ts index f80d343d8..7cecb0369 100644 --- a/packages/sra-spec/src/api.ts +++ b/packages/sra-spec/src/api.ts @@ -249,7 +249,7 @@ export const api: OpenApiSpec = { }, }, '/v2/order_config': { - get: { + post: { description: `Relayers have full discretion over the orders that they are willing to host on their orderbooks (e.g what fees they charge, etc...). In order for traders to discover their requirements programmatically, they can send an incomplete order to this endpoint and receive the missing fields, specifc to that order. This gives relayers a large amount of flexibility to tailor fees to unique traders, trading pairs and volume amounts. Submit a partial order and receive information required to complete the order: \`senderAddress\`, \`feeRecipientAddress\`, \`makerFee\`, \`takerFee\`. `, operationId: 'getOrderConfig', parameters: generateParameters([], false), |