mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
swagger: fix bad indents and a key duplication error (#657)
This commit is contained in:
parent
e2f515ba9e
commit
b1493d307c
@ -579,7 +579,7 @@
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
x-example: kava1ffv7nhd3z6sych2qpqkk03ec6hzkmufy0r2s4c
|
x-example: kava1ffv7nhd3z6sych2qpqkk03ec6hzkmufy0r2s4c
|
||||||
- in: path
|
- in: path
|
||||||
name: collateral_type
|
name: collateral_type
|
||||||
description: Collateral type
|
description: Collateral type
|
||||||
required: true
|
required: true
|
||||||
@ -684,9 +684,6 @@
|
|||||||
debt_auction_threshold:
|
debt_auction_threshold:
|
||||||
type: string
|
type: string
|
||||||
example: '1000000000'
|
example: '1000000000'
|
||||||
surplus_auction_lot:
|
|
||||||
type: string
|
|
||||||
example: '10000000'
|
|
||||||
savings_distribution_frequency:
|
savings_distribution_frequency:
|
||||||
type: string
|
type: string
|
||||||
example: '60000000'
|
example: '60000000'
|
||||||
@ -833,14 +830,14 @@
|
|||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The distributed savings rate
|
description: The distributed savings rate
|
||||||
properties:
|
properties:
|
||||||
height:
|
height:
|
||||||
|
type: string
|
||||||
|
example: "100"
|
||||||
|
result:
|
||||||
|
savings_rate_distributed:
|
||||||
type: string
|
type: string
|
||||||
example: "100"
|
example: "5000000000000"
|
||||||
result:
|
|
||||||
savings_rate_distributed:
|
|
||||||
type: string
|
|
||||||
example: "5000000000000"
|
|
||||||
500:
|
500:
|
||||||
description: Server internal error
|
description: Server internal error
|
||||||
/cdp/cdps:
|
/cdp/cdps:
|
||||||
@ -851,45 +848,45 @@
|
|||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
parameters:
|
parameters:
|
||||||
- in: query
|
- in: query
|
||||||
name: owner
|
name: owner
|
||||||
description: Owner address in bech32 format
|
description: Owner address in bech32 format
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
x-example: kava1ffv7nhd3z6sych2qpqkk03ec6hzkmufy0r2s4c
|
x-example: kava1ffv7nhd3z6sych2qpqkk03ec6hzkmufy0r2s4c
|
||||||
- in: query
|
- in: query
|
||||||
name: collateral-type
|
name: collateral-type
|
||||||
description: Collateral type
|
description: Collateral type
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
x-example: xrp-a
|
x-example: xrp-a
|
||||||
- in: query
|
- in: query
|
||||||
name: id
|
name: id
|
||||||
description: CDP ID
|
description: CDP ID
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
x-example: "4"
|
x-example: "4"
|
||||||
- in: query
|
- in: query
|
||||||
name: ratio
|
name: ratio
|
||||||
description: Collateralization ratio
|
description: Collateralization ratio
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
x-example: "2.75"
|
x-example: "2.75"
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: Query cdps
|
description: Query cdps
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
height:
|
height:
|
||||||
type: string
|
type: string
|
||||||
example: "100"
|
example: "100"
|
||||||
result:
|
result:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/definitions/CdpResponse'
|
$ref: '#/definitions/CdpResponse'
|
||||||
500:
|
500:
|
||||||
description: Internal Server Error
|
description: Internal Server Error
|
||||||
/bep3/swap/create:
|
/bep3/swap/create:
|
||||||
post:
|
post:
|
||||||
summary: Generate a create atomic swap transaction
|
summary: Generate a create atomic swap transaction
|
||||||
|
Loading…
Reference in New Issue
Block a user