Skip to content

Commit

Permalink
Fixed IndexedErgoBox API schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jellymlg committed Sep 19, 2023
1 parent a057767 commit 285892d
Showing 1 changed file with 36 additions and 54 deletions.
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

0 comments on commit 285892d

Please sign in to comment.