UNPKG

@broxus/locklift-verifier

Version:

Locklift plugin for integration with Everscan contract verification service

60 lines (48 loc) 2.45 kB
# Locklift Verification plugin <p align="center"> <a href="https://github.com/venom-blockchain/developer-program"> <img src="https://raw.githubusercontent.com/venom-blockchain/developer-program/main/vf-dev-program.png" alt="Logo" width="366.8" height="146.4"> </a> </p> <p align="center"> <p align="center"> <a href="/LICENSE"> <img alt="GitHub" src="https://img.shields.io/badge/license-Apache--2.0-orange" /> </a> <a href="https://www.npmjs.com/package/locklift-verifier"> <img alt="npm" src="https://img.shields.io/npm/v/locklift-verifier"> </a> </p> </p> ## Install Inside the locklift project ```shell npm i locklift-verifier ``` Inside the locklift.config.ts ```typescript import "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 }, /////////////////// } ``` ## Usage ```shell npx locklift verify ``` Flag `--anon-sources` can be used for avoiding source uploading, but ABI will be uploaded anyway. Example output ```text ✅ Verified contracts: ╭────────────────────────────────┬──────────────────────────────────────────────────────────────────╮ │ Contract path ┆ Code hash │ ╞════════════════════════════════╪══════════════════════════════════════════════════════════════════╡ │ /app/contracts/src/Sample.tsol ┆ a47ca4e6f055804482d01eeb65bc4a4d6aff83fd3cb703da3ff3569480b3c6e1 │ ╰────────────────────────────────┴──────────────────────────────────────────────────────────────────╯ ```