mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
fix: remove all user-visible Blockscout references
- Issue URL → github.com/luxfi/explore - API docs links → docs.lux.network - Contract verification → local route instead of vera.blockscout.com - Discord link → discord.gg/luxnetwork - JSON-LD script ID → lux-explorer-product-schema - RPC API description → Lux Network branding - Rollbar instance → .lux.network domain support
This commit is contained in:
@@ -10,7 +10,7 @@ const instance = (() => {
|
||||
return envValue;
|
||||
}
|
||||
|
||||
return app.host?.replace('.blockscout.com', '').replace('.k8s-dev', '').replaceAll('-', '_');
|
||||
return app.host?.replace('.lux.network', '').replace('.blockscout.com', '').replace('.k8s-dev', '').replaceAll('-', '_');
|
||||
})();
|
||||
const environment = getEnvValue('NEXT_PUBLIC_APP_ENV') || 'production';
|
||||
const codeVersion = getEnvValue('NEXT_PUBLIC_GIT_TAG') || getEnvValue('NEXT_PUBLIC_GIT_COMMIT_SHA');
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function useIssueUrl(backendVersion: string | undefined) {
|
||||
'frontend-version': [ config.UI.footer.frontendVersion, config.UI.footer.frontendCommit ].filter(Boolean).join('+'),
|
||||
'additional-information': `**User Agent:** ${ window.navigator.userAgent }`,
|
||||
});
|
||||
return `https://github.com/blockscout/blockscout/issues/new/?${ searchParams.toString() }`;
|
||||
return `https://github.com/luxfi/explore/issues/new/?${ searchParams.toString() }`;
|
||||
// we need to update link whenever page url changes
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [ backendVersion, isLoading, router.asPath ]);
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { Route } from 'nextjs-routes';
|
||||
|
||||
import generate from './generate';
|
||||
|
||||
const JSON_LD_SCRIPT_ID = 'blockscout-product-schema';
|
||||
const JSON_LD_SCRIPT_ID = 'lux-explorer-product-schema';
|
||||
|
||||
export default function update<Pathname extends Route['pathname']>(route: RouteParams<Pathname>, apiData: ApiData<Pathname>) {
|
||||
const { title, description, jsonLd } = generate(route, apiData);
|
||||
|
||||
@@ -21,7 +21,7 @@ const ContractDetailsVerificationButton = ({ isLoading, addressHash, ...rest }:
|
||||
if (multichainContext) {
|
||||
const searchParams = new URLSearchParams();
|
||||
searchParams.set('contracts', `${ multichainContext.chain.id }:${ addressHash }`);
|
||||
return `https://vera.blockscout.com?${ searchParams.toString() }`;
|
||||
return route({ pathname: '/address/[hash]/contract-verification', query: { hash: addressHash } });
|
||||
}
|
||||
return route({ pathname: '/address/[hash]/contract-verification', query: { hash: addressHash } });
|
||||
})();
|
||||
|
||||
@@ -67,7 +67,7 @@ const ConflictingImplementationsModal = ({ data, children }: Props) => {
|
||||
<DialogActionTrigger asChild>
|
||||
<Button>Got it, thanks</Button>
|
||||
</DialogActionTrigger>
|
||||
<Link external noIcon href="https://discord.com/invite/blockscout">
|
||||
<Link external noIcon href="https://discord.gg/luxnetwork">
|
||||
Contact us
|
||||
</Link>
|
||||
</HStack>
|
||||
|
||||
@@ -26,7 +26,7 @@ const ContractDetailsAlertVerificationStatus = ({ data, isLoading, addressData }
|
||||
<>
|
||||
<span>This contract has been { data.is_partially_verified ? 'partially ' : '' }verified using </span>
|
||||
<Link
|
||||
href="https://docs.blockscout.com/devs/verification/ethereum-bytecode-database-microservice"
|
||||
href="https://docs.lux.network/verification/bytecode-database"
|
||||
external
|
||||
>
|
||||
Bytecode Database
|
||||
|
||||
@@ -11,7 +11,7 @@ const EthRpcApi = () => {
|
||||
the Lux Explorer ETH RPC API supports 3 methods in the exact format specified for Ethereum nodes,
|
||||
ee the Ethereum JSON-RPC Specification for more details.
|
||||
</Text>
|
||||
<Link href="https://docs.blockscout.com/devs/apis/rpc/eth-rpc" external mt={ 6 }>View examples</Link>
|
||||
<Link href="https://docs.lux.network/api/eth-rpc" external mt={ 6 }>View examples</Link>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -7,10 +7,10 @@ const RpcApi = () => {
|
||||
return (
|
||||
<Box>
|
||||
<Text>
|
||||
This API is provided for developers transitioning applications from Etherscan to BlockScout and applications requiring general API and data support.
|
||||
This API is provided for developers building applications on Lux Network requiring general API and data support.
|
||||
It supports GET and POST requests.
|
||||
</Text>
|
||||
<Link href="https://docs.blockscout.com/devs/apis/rpc" external mt={ 6 }>View modules</Link>
|
||||
<Link href="https://docs.lux.network/api/rpc" external mt={ 6 }>View modules</Link>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user