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 = {
filterFields: [],
},
address_xstar_score: {
path: '/api/v2/proxy/xname/addresses/:hash',
path: '/api/v2/proxy/3rdparty/xname/addresses/:hash',
pathParams: [ 'hash' as const ],
},
......@@ -649,7 +649,7 @@ export const RESOURCES = {
pathParams: [ 'hash' as const, 'method' as const ],
},
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 ],
},
contract_security_audits: {
......@@ -1087,16 +1087,16 @@ export const RESOURCES = {
// NOVES-FI
noves_transaction: {
path: '/api/v2/proxy/noves-fi/transactions/:hash',
path: '/api/v2/proxy/3rdparty/noves-fi/transactions/:hash',
pathParams: [ 'hash' as const ],
},
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 ],
filterFields: [],
},
noves_describe_txs: {
path: '/api/v2/proxy/noves-fi/transaction-descriptions',
path: '/api/v2/proxy/3rdparty/noves-fi/transaction-descriptions',
},
// USER OPS
......
......@@ -20,10 +20,26 @@ export default function useQueryClientConfig() {
queries: {
refetchOnWindowFocus: false,
retry,
throwOnError: (error) => {
throwOnError: (error, query) => {
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
}
return (
<Modal isOpen onClose={ onModalClose } size={{ base: 'full', lg: 'sm' }}>
<Modal isOpen onClose={ onModalClose } size={{ base: 'full', lg: 'sm' }} trapFocus={ false } blockScrollOnMount={ false }>
<ModalOverlay/>
<ModalContent p={ 6 } maxW={{ lg: '400px' }}>
<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