From 74144ab4a4672dc41131e1987e59ef399957a320 Mon Sep 17 00:00:00 2001 From: Asim Mehmood Date: Mon, 17 May 2021 13:11:04 +0500 Subject: [PATCH] refactor: refactor ft and nft names --- docs/api/tokens/fungible-token.schema.json | 2 +- docs/api/tokens/non-fungible-token.schema.json | 2 +- docs/generated.d.ts | 4 ++-- src/datastore/common.ts | 2 +- src/datastore/memory-store.ts | 2 +- src/datastore/postgres-store.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/api/tokens/fungible-token.schema.json b/docs/api/tokens/fungible-token.schema.json index ce8a5270bc..805c72e03a 100644 --- a/docs/api/tokens/fungible-token.schema.json +++ b/docs/api/tokens/fungible-token.schema.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "fungible-token-metadata", - "title": "FTMetadataResponse", + "title": "FungibleTokenMetadataResponse", "type": "object", "required": ["name","description", "image_uri", "image_canonical_uri" ], "properties": { diff --git a/docs/api/tokens/non-fungible-token.schema.json b/docs/api/tokens/non-fungible-token.schema.json index da48cb88c2..1e1cf8d6e8 100644 --- a/docs/api/tokens/non-fungible-token.schema.json +++ b/docs/api/tokens/non-fungible-token.schema.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema", "$id": "non-fungible-token-metadata", - "title": "NFTMetadataResponse", + "title": "NonFungibleTokenMetadataResponse", "type": "object", "required": ["name","description", "image_uri", "image_canonical_uri" ], "properties": { diff --git a/docs/generated.d.ts b/docs/generated.d.ts index adbf943b1d..49d8741555 100644 --- a/docs/generated.d.ts +++ b/docs/generated.d.ts @@ -1021,7 +1021,7 @@ export interface RosettaNetworkStatusResponse { peers: RosettaPeers[]; } -export interface FTMetadataResponse { +export interface FungibleTokenMetadataResponse { /** * Identifies the asset to which this token represents */ @@ -1040,7 +1040,7 @@ export interface FTMetadataResponse { image_canonical_uri: string; } -export interface NFTMetadataResponse { +export interface NonFungibleTokenMetadataResponse { /** * Identifies the asset to which this token represents */ diff --git a/src/datastore/common.ts b/src/datastore/common.ts index 9214310c1e..88a6e18097 100644 --- a/src/datastore/common.ts +++ b/src/datastore/common.ts @@ -618,7 +618,7 @@ export interface DataStore extends DataStoreEventEmitter { ): Promise>; close(): Promise; - getftMetadata(contractId: string): Promise>; + getFtMetadata(contractId: string): Promise>; getNftMetadata(contractId: string): Promise>; } diff --git a/src/datastore/memory-store.ts b/src/datastore/memory-store.ts index c4116ca94a..489ef91b0d 100644 --- a/src/datastore/memory-store.ts +++ b/src/datastore/memory-store.ts @@ -611,7 +611,7 @@ export class MemoryDataStore close() { return Promise.resolve(); } - getftMetadata(contractId: string): Promise> { + getFtMetadata(contractId: string): Promise> { throw new Error('Method not implemented.'); } getNftMetadata(contractId: string): Promise> { diff --git a/src/datastore/postgres-store.ts b/src/datastore/postgres-store.ts index e34360a7d2..3a40c71623 100644 --- a/src/datastore/postgres-store.ts +++ b/src/datastore/postgres-store.ts @@ -4033,7 +4033,7 @@ export class PgDataStore }); } - getftMetadata(contractId: string): Promise> { + getFtMetadata(contractId: string): Promise> { /** * extract nft information from db here.. */