-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1320 from blockscout/nft-address
Nft address
- Loading branch information
Showing
50 changed files
with
755 additions
and
504 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import type { TokenType } from 'types/api/token'; | ||
import type { NFTTokenType, TokenType } from 'types/api/token'; | ||
|
||
export const TOKEN_TYPES: Array<{ title: string; id: TokenType }> = [ | ||
{ title: 'ERC-20', id: 'ERC-20' }, | ||
export const NFT_TOKEN_TYPES: Array<{ title: string; id: NFTTokenType }> = [ | ||
{ title: 'ERC-721', id: 'ERC-721' }, | ||
{ title: 'ERC-1155', id: 'ERC-1155' }, | ||
]; | ||
|
||
export const TOKEN_TYPES: Array<{ title: string; id: TokenType }> = [ | ||
{ title: 'ERC-20', id: 'ERC-20' }, | ||
...NFT_TOKEN_TYPES, | ||
]; | ||
|
||
export const NFT_TOKEN_TYPE_IDS = NFT_TOKEN_TYPES.map(i => i.id); | ||
export const TOKEN_TYPE_IDS = TOKEN_TYPES.map(i => i.id); |
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
Oops, something went wrong.