From 7556751437a82949a86ce0f7c28366e34ecc9bc3 Mon Sep 17 00:00:00 2001 From: imterryyy98 Date: Mon, 1 Apr 2024 17:05:09 +0700 Subject: [PATCH 1/2] Tomochain -> Viction --- README.md | 2 +- swagger.yaml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2be8c6c..bb617ff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# TOMOCHAIN JSON RPC API +# VICTION JSON RPC API JSON is a lightweight data-interchange format. It can represent numbers, strings, ordered sequences of values, and collections of name/value pairs. diff --git a/swagger.yaml b/swagger.yaml index 8b1d53d..8b8cdf1 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -1,14 +1,14 @@ swagger: '2.0' info: version: '1.0.0' - title: Tomochain JSON-RPC + title: Viction JSON-RPC description: >- - A collection holding all the Tomochain JSON-RPC API calls + A collection holding all the Viction JSON-RPC API calls - [Swagger Docs](https://tomochain.github.io/rpc-swagger/) + [Swagger Docs](https://viction.github.io/rpc-swagger/) contact: {} -host: rpc.tomochain.com +host: rpc.viction.com basePath: / schemes: - https @@ -132,9 +132,9 @@ paths: - `String` - The current network id. - - `"88"`: Tomochain Mainnet + - `"88"`: Viction Mainnet - - `"89"`: Tomochain Testnet + - `"89"`: Viction Testnet tags: - net From eb29a550e465ff52474f6b4b167657b68b0507ce Mon Sep 17 00:00:00 2001 From: imterryyy98 Date: Mon, 1 Apr 2024 17:11:54 +0700 Subject: [PATCH 2/2] remove tomox api --- swagger.yaml | 357 --------------------------------------------------- 1 file changed, 357 deletions(-) diff --git a/swagger.yaml b/swagger.yaml index 8b8cdf1..f8d238f 100644 --- a/swagger.yaml +++ b/swagger.yaml @@ -1666,361 +1666,6 @@ paths: description: 'Successful Operation' 500: description: 'Internal Server Error' - - /getAskTree: - post: - description: >- - - - Returns the ask tree (price, orders, amount) - - - **Parameters** - - - - `baseToken`, 32 Bytes - hash of a base token - - - `quoteToken`, 32 Bytes - hash of a quote token - - - **Example** - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - '0x0000000000000000000000000000000000000001' - ]` - - **Returns** - - - `Object` - A ask tree (price, orders, amount) - - - tags: - - tomox - operationId: getAskTree - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getAskTree' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getAsks: - post: - description: >- - - - Returns the asks (price, amount) - - - **Parameters** - - - - `baseToken`, 32 Bytes - hash of a base token - - - `quoteToken`, 32 Bytes - hash of a quote token - - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - '0x0000000000000000000000000000000000000001' - ]` - - **Returns** - - - `Object` - A asks (price, amount) - - - tags: - - tomox - operationId: getAsks - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getAsks' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getBestAsk: - post: - description: >- - - - Returns the best ask - - - **Parameters** - - - - `baseToken`, hash of a base token - - - `quoteToken`, hash of a quote token - - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - '0x0000000000000000000000000000000000000001' - ]` - - **Returns** - - - `Object` - the best ask (price, volume) - - - tags: - - tomox - operationId: getBestAsk - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getBestAsk' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getBidTree: - post: - description: >- - - - Returns the bid tree (price, orders, amount) - - - **Parameters** - - - - `baseToken`, hash of a base token - - - `quoteToken`, hash of a quote token - - - **Example** - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - '0x0000000000000000000000000000000000000001' - ]` - - **Returns** - - - `Object` - A bid tree (price, orders, amount) - - - tags: - - tomox - operationId: getBidTree - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getBidTree' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getBids: - post: - description: >- - - - Returns the bids (price, amount) - - - **Parameters** - - - - `baseToken`, hash of a base token - - - `quoteToken`, hash of a quote token - - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - '0x0000000000000000000000000000000000000001' - ]` - - **Returns** - - - `Object` - A bids (price, amount) - - - tags: - - tomox - operationId: getBids - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getBids' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getBestBid: - post: - description: >- - - - Returns the best ask - - - **Parameters** - - - - `baseToken`, hash of a base token - - - `quoteToken`, hash of a quote token - - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - '0x0000000000000000000000000000000000000001' - ]` - - **Returns** - - - `Object` - the best ask (price, volume) - - - tags: - - tomox - operationId: getBestBid - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getBestBid' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getBorrows: - post: - description: >- - - - Returns the borrows (interest, amount) - - - **Parameters** - - - - `lendingToken`, hash of a lending token - - - `term`, perior of the loan (seconds) - - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - 86400 - ]` - - **Returns** - - - `Object` - list borrows (interest, amount) - - tags: - - tomox - operationId: getBorrows - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getBorrows' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' - /getInvest: - post: - description: >- - - - Returns the invests (interest, amount) - - - **Parameters** - - - - `lendingToken`, hash of a lending token - - - `term`, perior of the loan (seconds) - - - `params: [ - '0xf992cf45394dAc5f50A26446de17803a79B940da', - 86400 - ]` - - **Returns** - - - `Object` - list invests (interest, amount) - - tags: - - tomox - operationId: getInvests - deprecated: false - produces: - - application/json - parameters: - - name: Body - in: body - required: true - schema: - $ref: '#/definitions/getInvests' - responses: - 200: - description: 'Successful Operation' - 500: - description: 'Internal Server Error' /getNetworkInformation: post: description: >- @@ -3254,7 +2899,5 @@ tags: description: API for network request - name: eth description: API for eth information -- name: tomox - description: API for tomox request - name: posv description: API for posv request