hardhat-deployed
Version:
Hardhat plugin for saving deployed contract address.
19 lines (18 loc) • 675 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.blockchainExplorer = void 0;
const explorers = {
1: "https://etherscan.io/address/",
5: "https://goerli.etherscan.io/address/",
11155111: "https://sepolia.etherscan.io/address/",
56: "https://bscscan.com/address/",
137: "https://polygonscan.com/address/",
1284: "https://moonscan.io/address/",
10: "https://optimistic.etherscan.io/address/",
59144: "https://lineascan.build/address/",
42161: "https://arbiscan.io/address/",
};
function blockchainExplorer(chainId) {
return explorers[chainId] || "";
}
exports.blockchainExplorer = blockchainExplorer;