Inside the locklift project
npm i @broxus/locklift-verifier
Inside the locklift.config.ts
import "@broxus/locklift-verifier";
const config: LockliftConfig = {
verifier: {
verifierVersion: "latest", // contract verifier binary, see https://github.com/broxus/everscan-verify/releases
apiKey: "APIKEY",
secretKey: "SECRET",
// license: "AGPL-3.0-or-later", <- this is default value and can be overrided
},
///////////////////
}
npx locklift verify
Flag --anon-sources
can be used for avoiding source uploading, but ABI will be uploaded anyway.
Example output
✅ Verified contracts:
╭────────────────────────────────┬──────────────────────────────────────────────────────────────────╮
│ Contract path ┆ Code hash │
╞════════════════════════════════╪══════════════════════════════════════════════════════════════════╡
│ /app/contracts/src/Sample.tsol ┆ a47ca4e6f055804482d01eeb65bc4a4d6aff83fd3cb703da3ff3569480b3c6e1 │
╰────────────────────────────────┴──────────────────────────────────────────────────────────────────╯