forked from blockscout/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'blockscout:main' into main
- Loading branch information
Showing
247 changed files
with
3,191 additions
and
2,713 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## 🚀 New Features | ||
- Description of the new feature 1. | ||
- Description of the new feature 2. | ||
|
||
## 🐛 Bug Fixes | ||
- Description of the bug fix 1. | ||
- Description of the bug fix 2. | ||
|
||
## ⚡ Performance Improvements | ||
- Description of the performance improvement 1. | ||
- Description of the performance improvement 2. | ||
|
||
## 📦 Dependencies updates | ||
- Updated dependency: PackageName 1 to version x.x.x. | ||
- Updated dependency: PackageName 2 to version x.x.x. | ||
|
||
## ✨ Other Changes | ||
- Another minor change 1. | ||
- Another minor change 2. | ||
|
||
## 🚨 Changes in ENV variables | ||
- Added new environment variable: ENV_VARIABLE_NAME with value. | ||
- Updated existing environment variable: ENV_VARIABLE_NAME to new value. | ||
|
||
**Full list of the ENV variables**: [v1.2.3](https://github.com/blockscout/frontend/blob/v1.2.3/docs/ENVS.md) | ||
|
||
## 🦄 New Contributors | ||
- @contributor1 made their first contribution in https://github.com/blockscout/frontend/pull/1 | ||
- @contributor2 made their first contribution in https://github.com/blockscout/frontend/pull/2 | ||
|
||
--- | ||
|
||
**Full Changelog**: https://github.com/blockscout/frontend/compare/v1.2.2...v1.2.3 |
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export default function makePrettyLink(url: string | undefined): { url: string; domain: string } | undefined { | ||
try { | ||
const urlObj = new URL(url ?? ''); | ||
return { | ||
url: urlObj.href, | ||
domain: urlObj.hostname, | ||
}; | ||
} catch (error) {} | ||
} |
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,23 @@ | ||
import type { UseAccountReturnType } from 'wagmi'; | ||
import { useAccount } from 'wagmi'; | ||
|
||
import config from 'configs/app'; | ||
|
||
function useAccountFallback(): UseAccountReturnType { | ||
return { | ||
address: undefined, | ||
addresses: undefined, | ||
chain: undefined, | ||
chainId: undefined, | ||
connector: undefined, | ||
isConnected: false, | ||
isConnecting: false, | ||
isDisconnected: true, | ||
isReconnecting: false, | ||
status: 'disconnected', | ||
}; | ||
} | ||
|
||
const hook = config.features.blockchainInteraction.isEnabled ? useAccount : useAccountFallback; | ||
|
||
export default hook; |
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,11 @@ | ||
import type { AddressTabsCounters } from 'types/api/address'; | ||
|
||
export const base: AddressTabsCounters = { | ||
internal_txs_count: 13, | ||
logs_count: 51, | ||
token_balances_count: 3, | ||
token_transfers_count: 3, | ||
transactions_count: 51, | ||
validations_count: 42, | ||
withdrawals_count: 11, | ||
}; |
Oops, something went wrong.