Feature Contract Verification plugin

pull/5573/head^2
Manuel Wedler 4 weeks ago committed by Aniket
parent ffe8dbee6b
commit 14d75c714a
  1. 1
      apps/remix-ide/src/app/tabs/locales/en/home.json
  2. BIN
      apps/remix-ide/src/assets/img/contractVerification.webp
  3. 15
      libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx

@ -26,6 +26,7 @@
"home.solhintPluginDesc": "Solhint is an open source project for linting Solidity code.",
"home.sourcifyPluginDesc": "Solidity contract and metadata verification service.",
"home.unitTestPluginDesc": "Write and run unit tests for your contracts in Solidity.",
"home.contractVerificationDesc": "Verify contract code on Sourcify, Etherscan, Blockscout and Routescan at the same time.",
"home.dgitPluginDesc": "Add source control to your projects.",
"home.oneClickDappDesc": "Quickly generate smart contract interfaces",
"home.getStarted": "Get Started",

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -82,6 +82,11 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) {
plugin.verticalIcons.select('solidityUnitTesting')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'solidityUnitTesting'])
}
const startContractVerification = async () => {
await plugin.appManager.activatePlugin(['contract-verification'])
plugin.verticalIcons.select('contract-verification')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'contract-verification'])
}
return (
<div className="pl-2 w-100 align-items-end remixui_featuredplugins_container" id="hTFeaturedPlugins">
@ -115,6 +120,16 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) {
deviceType={'desktop'}
itemClass="w-100"
>
<PluginButton
imgPath="assets/img/contractVerification.webp"
envID="contractVerificationLogo"
envText="Contract Verification"
description={intl.formatMessage({
id: 'home.contractVerificationDesc',
})}
maintainedBy="Remix"
callback={() => startContractVerification()}
/>
<PluginButton
imgPath="assets/img/staticAnalysis.webp"
envID="staticAnalysisLogo"

Loading…
Cancel
Save