Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed IndexedErgoBox API schema #2036

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 36 additions & 54 deletions src/main/resources/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,60 +243,42 @@ components:
description: Name of the token, if any

IndexedErgoBox:
type: object
description: Box indexed with extra information
required:
- box
- confirmationsNum
- address
- creationTransaction
- spendingTransaction
- spendingHeight
- inclusionHeight
- spent
- globalIndex
properties:
box:
$ref: '#/components/schemas/ErgoTransactionOutput'
confirmationsNum:
description: Number of confirmations, if the box is included into the blockchain
type: integer
format: int32
minimum: 0
example: 147
nullable: true
address:
$ref: '#/components/schemas/ErgoAddress'
creationTransaction:
description: Transaction which created the box
$ref: '#/components/schemas/ModifierId'
spendingTransaction:
description: Transaction which created the box
nullable: true
$ref: '#/components/schemas/ModifierId'
spendingHeight:
description: The height the box was spent at
type: integer
format: int32
minimum: 0
example: 147
nullable: true
inclusionHeight:
description: The height the transaction containing the box was included in a block at
type: integer
format: int32
minimum: 0
example: 147
spent:
description: A flag signalling whether the box was spent
type: boolean
example: false
globalIndex:
description: Global index of the output in the blockchain
type: integer
format: int64
minimum: 0
example: 83927
allOf:
- $ref: '#/components/schemas/ErgoTransactionOutput'
- type: object
description: Box indexed with extra information
required:
- address
- spentTransactionId
- spendingHeight
- inclusionHeight
- globalIndex
properties:
address:
$ref: '#/components/schemas/ErgoAddress'
spentTransactionId:
description: Transaction which spent the box
nullable: true
$ref: '#/components/schemas/ModifierId'
spendingHeight:
description: The height the box was spent at
type: integer
format: int32
minimum: 0
example: 147
nullable: true
inclusionHeight:
description: The height the transaction containing the box was included in a block at
type: integer
format: int32
minimum: 0
example: 147
globalIndex:
description: Global index of the output in the blockchain
type: integer
format: int64
minimum: 0
example: 83927

IndexedToken:
type: object
Expand Down
Loading