Commit 8be693b4 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #2572 from blockscout/release/v1-37-6

Release v1.37.6
parents 67a0d0e9 efa17a92
...@@ -632,7 +632,7 @@ export const RESOURCES = { ...@@ -632,7 +632,7 @@ export const RESOURCES = {
filterFields: [], filterFields: [],
}, },
address_xstar_score: { address_xstar_score: {
path: '/api/v2/proxy/xname/addresses/:hash', path: '/api/v2/proxy/3rdparty/xname/addresses/:hash',
pathParams: [ 'hash' as const ], pathParams: [ 'hash' as const ],
}, },
...@@ -649,7 +649,7 @@ export const RESOURCES = { ...@@ -649,7 +649,7 @@ export const RESOURCES = {
pathParams: [ 'hash' as const, 'method' as const ], pathParams: [ 'hash' as const, 'method' as const ],
}, },
contract_solidity_scan_report: { contract_solidity_scan_report: {
path: '/api/v2/smart-contracts/:hash/solidityscan-report', path: '/api/v2/proxy/3dparty/solidityscan/smart-contracts/:hash/report',
pathParams: [ 'hash' as const ], pathParams: [ 'hash' as const ],
}, },
contract_security_audits: { contract_security_audits: {
...@@ -1087,16 +1087,16 @@ export const RESOURCES = { ...@@ -1087,16 +1087,16 @@ export const RESOURCES = {
// NOVES-FI // NOVES-FI
noves_transaction: { noves_transaction: {
path: '/api/v2/proxy/noves-fi/transactions/:hash', path: '/api/v2/proxy/3rdparty/noves-fi/transactions/:hash',
pathParams: [ 'hash' as const ], pathParams: [ 'hash' as const ],
}, },
noves_address_history: { noves_address_history: {
path: '/api/v2/proxy/noves-fi/addresses/:address/transactions', path: '/api/v2/proxy/3rdparty/noves-fi/addresses/:address/transactions',
pathParams: [ 'address' as const ], pathParams: [ 'address' as const ],
filterFields: [], filterFields: [],
}, },
noves_describe_txs: { noves_describe_txs: {
path: '/api/v2/proxy/noves-fi/transaction-descriptions', path: '/api/v2/proxy/3rdparty/noves-fi/transaction-descriptions',
}, },
// USER OPS // USER OPS
......
...@@ -20,10 +20,26 @@ export default function useQueryClientConfig() { ...@@ -20,10 +20,26 @@ export default function useQueryClientConfig() {
queries: { queries: {
refetchOnWindowFocus: false, refetchOnWindowFocus: false,
retry, retry,
throwOnError: (error) => { throwOnError: (error, query) => {
const status = getErrorObjStatusCode(error); const status = getErrorObjStatusCode(error);
// don't catch error for "Too many requests" response
return status === 429; // we don't catch error only for "Too many requests" response
if (status !== 429) {
return false;
}
const EXTERNAL_API_RESOURCES = [
'safe_transaction_api',
'contract_solidity_scan_report',
'address_xstar_score',
'noves_transaction',
'noves_address_history',
'noves_describe_txs',
'gas_hawk_saving_potential',
];
const isExternalApiResource = EXTERNAL_API_RESOURCES.some((resource) => query.queryKey[0] === resource);
return !isExternalApiResource;
}, },
}, },
}, },
......
...@@ -175,7 +175,7 @@ const AuthModal = ({ initialScreen, onClose, mixpanelConfig, closeOnError }: Pro ...@@ -175,7 +175,7 @@ const AuthModal = ({ initialScreen, onClose, mixpanelConfig, closeOnError }: Pro
} }
return ( return (
<Modal isOpen onClose={ onModalClose } size={{ base: 'full', lg: 'sm' }}> <Modal isOpen onClose={ onModalClose } size={{ base: 'full', lg: 'sm' }} trapFocus={ false } blockScrollOnMount={ false }>
<ModalOverlay/> <ModalOverlay/>
<ModalContent p={ 6 } maxW={{ lg: '400px' }}> <ModalContent p={ 6 } maxW={{ lg: '400px' }}>
<ModalHeader fontWeight="500" textStyle="h3" mb={ 2 } display="flex" alignItems="center" columnGap={ 2 }> <ModalHeader fontWeight="500" textStyle="h3" mb={ 2 } display="flex" alignItems="center" columnGap={ 2 }>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment