Skip to content

Commit

Permalink
Merge pull request #268 from blockfrost/chore/decimals-source
Browse files Browse the repository at this point in the history
chore(docs): document source of 'decimals' in addresses/addr/extended
  • Loading branch information
vladimirvolek authored Jan 2, 2023
2 parents 1592278 + e71841f commit 9054db3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Unreleased changes are in the `master` branch.

- `validateCIP68Metadata` util function returns the validated metadata with proper TS type

## Changed

- document data source of `decimals` field in `/addresses/{address}/extended`

## [0.1.51] - 2022-12-29

## Added
Expand Down
5 changes: 4 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7169,7 +7169,10 @@ components:
decimals:
type: integer
nullable: true
description: Number of decimal places of the asset unit
description: >-
Number of decimal places of the asset unit. Primary data
source is CIP68 reference NFT with a fallback to off-chain
metadata.
has_nft_onchain_metadata:
type: boolean
description: >-
Expand Down
2 changes: 1 addition & 1 deletion src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4674,7 +4674,7 @@ export interface components {
unit: string;
/** @description The quantity of the unit */
quantity: string;
/** @description Number of decimal places of the asset unit */
/** @description Number of decimal places of the asset unit. Primary data source is CIP68 reference NFT with a fallback to off-chain metadata. */
decimals: number | null;
/** @description True if the latest minting transaction includes metadata (best-effort) */
has_nft_onchain_metadata: boolean;
Expand Down
10 changes: 5 additions & 5 deletions src/schemas/addresses/address_content_extended.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ properties:
decimals:
type: integer
nullable: true
description: Number of decimal places of the asset unit
description: Number of decimal places of the asset unit. Primary data source is CIP68 reference NFT with a fallback to off-chain metadata.
has_nft_onchain_metadata:
type: boolean
description: True if the latest minting transaction includes metadata (best-effort)
Expand All @@ -30,12 +30,12 @@ properties:
- decimals
- has_nft_onchain_metadata
example:
- unit: 'lovelace'
quantity: '42000000'
- unit: "lovelace"
quantity: "42000000"
decimals: 6
has_nft_onchain_metadata: false
- unit: 'b0d07d45fe9514f80213f4020e5a61241458be626841cde717cb38a76e7574636f696e'
quantity: '12'
- unit: "b0d07d45fe9514f80213f4020e5a61241458be626841cde717cb38a76e7574636f696e"
quantity: "12"
decimals: null
has_nft_onchain_metadata: true
stake_address:
Expand Down

0 comments on commit 9054db3

Please sign in to comment.