Contract page: verification state from env CONTRACT_VERIFIED (sourcify,polygonscan), shown per verifier; contract.js?v=3. unit 62/62, smoke 156/156

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 08:02:59 -06:00
parent 20e980a3c4
commit 1112a8c589
4 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -83,7 +83,8 @@ let cCache = null;
async function contract() {
if (cCache && Date.now() - cCache.at < 300000) return cCache.v;
const v = { address: C.contractAddress || null, chainId: C.chainId, explorer: C.explorer, split: C.split, position: { usd: C.position.usd },
verified: { sourcify: false, polygonscan: 'pending', sourcifyUrl: C.contractAddress ? 'https://repo.sourcify.dev/' + C.chainId + '/' + C.contractAddress : null },
verified: { sourcify: /sourcify/i.test(process.env.CONTRACT_VERIFIED || ''), polygonscan: /polygonscan/i.test(process.env.CONTRACT_VERIFIED || '') ? 'done' : 'pending', // CONTRACT_VERIFIED=sourcify,polygonscan once each match is confirmed
sourcifyUrl: C.contractAddress ? 'https://repo.sourcify.dev/' + C.chainId + '/' + C.contractAddress : null },
ownerNote: "Marty's Tangem hardware wallet", prizeWallet: C.prizeWallet || null, live: false };
if (shop && shop.watching()) {
const { Interface } = require('ethers');