-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix blogchain types and data return (#135)
* 🐛 fix blogchain types and data return * add *
- Loading branch information
1 parent
bafca17
commit a0ab984
Showing
8 changed files
with
59 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,68 @@ | ||
|
||
export interface USER_POSTS { | ||
metadata_id: string; | ||
media: string; | ||
title: string; | ||
description: string; | ||
minted_timestamp: string; | ||
}; | ||
} | ||
|
||
export interface USER_POST_DATA { | ||
mb_views_nft_tokens: USER_POSTS[] | never[] | ||
data: { mb_views_nft_tokens: USER_POSTS[] | never[] }; | ||
} | ||
|
||
export interface BLOG_POST_UNIQUE extends USER_POSTS { | ||
nft_contract_id: string; | ||
minter: string; | ||
nft_contract_id: string; | ||
minter: string; | ||
} | ||
|
||
export interface BLOG_POST_DATA { | ||
post: BLOG_POST_UNIQUE | undefined | ||
post: BLOG_POST_UNIQUE | undefined; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface QUERY_RESPONSE<T> { | ||
mb_views_nft_tokens: T[] | never[] | ||
data: { mb_views_nft_tokens: T[] | never[] }; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface QUERY_RESPONSE_METADATA<T> { | ||
mb_views_nft_metadata: T[] | never[] | ||
data: { mb_views_nft_metadata: T[] | never[] }; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface HOOK_RESPONSE<T> { | ||
posts: T[] | never[] | ||
posts: T[] | never[]; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface BLOG_POSTS { | ||
posts: USER_POSTS[] | ||
isLoading: boolean | ||
posts: USER_POSTS[]; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface BLOG_POST { | ||
post: USER_POSTS[] | never[] | ||
isLoading: boolean | ||
data: { | ||
post: USER_POSTS[] | never[]; | ||
}; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface CONTRACTS { | ||
nft_contract_id: string; nft_contract_owner_id: string | ||
nft_contract_id: string; | ||
nft_contract_owner_id: string; | ||
} | ||
export interface LATEST_BLOGS { | ||
contracts:CONTRACTS[] | ||
contracts: CONTRACTS[]; | ||
isLoading: boolean; | ||
} | ||
|
||
export interface BLOGS { | ||
nft_contracts: { id: string }[] | never[] | ||
data: { | ||
nft_contracts: { id: string }[] | never[]; | ||
}; | ||
} | ||
|
||
export interface BLOGS_RESPONSE { | ||
blogs: { id: string }[] | ||
blogs: { id: string }[]; | ||
isLoading: boolean; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters