-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 64b466b688985243163c9fc8781730efc4bcc83c)
- Loading branch information
1 parent
dbff191
commit ee9c70c
Showing
76 changed files
with
156 additions
and
257 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
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
Binary file modified
BIN
-55 Bytes
(100%)
...eenshots__/ContractCode.pw.tsx_dark-color-mode_full-view-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-103 KB
...e.pw.tsx_dark-color-mode_verified-with-changed-byte-code-mobile-dark-mode-1.png
Binary file not shown.
Binary file modified
BIN
-53 Bytes
(100%)
...ct/__screenshots__/ContractCode.pw.tsx_default_full-view-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+49 Bytes
(100%)
ui/address/contract/__screenshots__/ContractCode.pw.tsx_default_non-verified-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+41 Bytes
(100%)
...ress/contract/__screenshots__/ContractCode.pw.tsx_default_self-destructed-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19 Bytes
(100%)
.../__screenshots__/ContractCode.pw.tsx_default_verified-via-eth-bytecode-db-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17 Bytes
(100%)
...ontract/__screenshots__/ContractCode.pw.tsx_default_verified-via-sourcify-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-65 Bytes
(100%)
...hots__/ContractCode.pw.tsx_default_verified-with-changed-byte-code-socket-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+45 Bytes
(100%)
...screenshots__/ContractCode.pw.tsx_default_with-proxy-address-alert-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+29 Bytes
(100%)
..._screenshots__/ContractCode.pw.tsx_default_with-twin-address-alert-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-30 Bytes
(100%)
...act/__screenshots__/ContractCode.pw.tsx_mobile_full-view-mobile-dark-mode-1.png
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
Binary file modified
BIN
+1.21 KB
(100%)
...hots__/BlockDetails.pw.tsx_dark-color-mode_regular-block-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+904 Bytes
(100%)
ui/block/__screenshots__/BlockDetails.pw.tsx_default_genesis-block-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.18 KB
(100%)
..._screenshots__/BlockDetails.pw.tsx_default_regular-block-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-384 Bytes
(100%)
...__screenshots__/BlockDetails.pw.tsx_mobile_regular-block-mobile-dark-mode-1.png
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
Binary file modified
BIN
-207 KB
(17%)
...ts__/SearchResults.pw.tsx_dark-color-mode_search-by-name-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-223 KB
(9.4%)
..._screenshots__/SearchResults.pw.tsx_default_search-by-address-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-220 KB
(11%)
.../__screenshots__/SearchResults.pw.tsx_default_search-by-block-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-220 KB
(9.5%)
..._screenshots__/SearchResults.pw.tsx_default_search-by-block-number-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-204 KB
(17%)
...creenshots__/SearchResults.pw.tsx_default_search-by-name-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-221 KB
(11%)
...ges/__screenshots__/SearchResults.pw.tsx_default_search-by-tx-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-168 KB
(14%)
...__screenshots__/SearchResults.pw.tsx_mobile_search-by-address-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-164 KB
(17%)
...s/__screenshots__/SearchResults.pw.tsx_mobile_search-by-block-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-164 KB
(13%)
...__screenshots__/SearchResults.pw.tsx_mobile_search-by-block-number-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-150 KB
(21%)
...screenshots__/SearchResults.pw.tsx_mobile_search-by-name-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-167 KB
(15%)
...ages/__screenshots__/SearchResults.pw.tsx_mobile_search-by-tx-hash-mobile-1.png
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import type { SearchResultItem } from 'types/api/search'; | ||
|
||
export type Category = 'token' | 'nft' | 'address' | 'app' | 'public_tag' | 'transaction' | 'block'; | ||
|
||
export const searchCategories: Array<{id: Category; title: string }> = [ | ||
{ id: 'token', title: 'Tokens (ERC-20)' }, | ||
{ id: 'nft', title: 'NFTs (ERC-721 & 1155)' }, | ||
{ id: 'address', title: 'Addresses' }, | ||
{ id: 'app', title: 'Apps' }, | ||
{ id: 'public_tag', title: 'Public tags' }, | ||
{ id: 'transaction', title: 'Transactions' }, | ||
{ id: 'block', title: 'Blocks' }, | ||
]; | ||
|
||
export const searchItemTitles: Record<Category, { itemTitle: string; itemTitleShort: string }> = { | ||
token: { itemTitle: 'Token', itemTitleShort: 'Token' }, | ||
nft: { itemTitle: 'NFT', itemTitleShort: 'NFT' }, | ||
address: { itemTitle: 'Address', itemTitleShort: 'Address' }, | ||
app: { itemTitle: 'App', itemTitleShort: 'App' }, | ||
public_tag: { itemTitle: 'Public tag', itemTitleShort: 'Tag' }, | ||
transaction: { itemTitle: 'Transaction', itemTitleShort: 'Txn' }, | ||
block: { itemTitle: 'Block', itemTitleShort: 'Block' }, | ||
}; | ||
|
||
export function getItemCategory(item: SearchResultItem): Category | undefined { | ||
switch (item.type) { | ||
case 'address': | ||
case 'contract': { | ||
return 'address'; | ||
} | ||
case 'token': { | ||
if (item.token_type === 'ERC-20') { | ||
return 'token'; | ||
} | ||
return 'nft'; | ||
} | ||
case 'block': { | ||
return 'block'; | ||
} | ||
case 'label': { | ||
return 'public_tag'; | ||
} | ||
case 'transaction': { | ||
return 'transaction'; | ||
} | ||
} | ||
} |
Oops, something went wrong.