@rsksmart/rsk-contract-verifier
v1.0.6
Published
Smart contract source code verifier
Downloads
17
Readme
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.