Nobody Pays (for) Magazines
    Have ideas to improve npm?Join in the discussion! »

    @rsksmart/rsk-contract-verifier

    1.0.6 • Public • Published

    Rsk contract verifier

    Smart contract source code verifier.

    Requisites

    • node >= 10.16.0

    Install

    • Install dependecies
        npm install

    Configuration file

    (optional)

        cp config-example.json config.json

    Server start

      node dist/contract-verifier-api.js

    Cache solc compilers

    To improve the speed of verification process you can download all the compiler versions before run the server:

      npm run cache-solc

    Configuration

    config.json See defaults on: lib/defaultConfig (config.json overrides this values)

    Use:

    node dist/tools/showConfig.js

    to check current configuration

    Configurarion Example:

    {
      address: '127.0.0.1', // binding address
      port: 3008, // binding port
      solcCache: '/tmp', // solc compiler versions cache
      log: {
        level: 'debug', // log level
        file: '/var/log/rsk-contract-verifier/contract-verifier.log' // (optional) log file
      },
      timeout: 10000 // verification timeout
    }

    CLI tools

    • rsk-cv-create-payload: creates JSON payload for verifier.

    • rsk-cv-verify: verifies a contract payload.

    Keywords

    Install

    npm i @rsksmart/rsk-contract-verifier

    DownloadsWeekly Downloads

    7

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    4.54 MB

    Total Files

    130

    Last publish

    Collaborators

    • avatar