Skip to content

Commit

Permalink
refactor: refactor ft and nft names
Browse files Browse the repository at this point in the history
  • Loading branch information
asimm241 committed May 17, 2021
1 parent 7b0e9bd commit 74144ab
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/api/tokens/fungible-token.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion docs/api/tokens/non-fungible-token.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions docs/generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ export interface RosettaNetworkStatusResponse {
peers: RosettaPeers[];
}

export interface FTMetadataResponse {
export interface FungibleTokenMetadataResponse {
/**
* Identifies the asset to which this token represents
*/
Expand All @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion src/datastore/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ export interface DataStore extends DataStoreEventEmitter {
): Promise<FoundOrNot<AddressTokenOfferingLocked>>;
close(): Promise<void>;

getftMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>>;
getFtMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>>;
getNftMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/datastore/memory-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ export class MemoryDataStore
close() {
return Promise.resolve();
}
getftMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>> {
getFtMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>> {
throw new Error('Method not implemented.');
}
getNftMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>> {
Expand Down
2 changes: 1 addition & 1 deletion src/datastore/postgres-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4033,7 +4033,7 @@ export class PgDataStore
});
}

getftMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>> {
getFtMetadata(contractId: string): Promise<FoundOrNot<DbAssetMetadata>> {
/**
* extract nft information from db here..
*/
Expand Down

0 comments on commit 74144ab

Please sign in to comment.