
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
web3studio-helpers
Advanced tools
This project contains common code used to bootstrap tests and common scripts.
Create a truffle-config.js
, and a global test setup file.
// truffle-config.js
module.exports = require('web3studio-helpers/truffle-config')(__dirname, {
// defaults
mainnetGasPrice: '0',
solcVersion: '0.5.4',
ignoreFilesGlobs: ['**/node_modules/**', '**/Migrations.sol']
});
// test/global.js
require('web3studio-helpers/truffleTestGlobals');
For coverage requirements, drop a .istanbul.yml
file in the root of the package:
# .istanbul.yml
check:
global:
statements: 100
lines: 100
branches: 100
functions: 100
You'll need to set some environment variables to use the config on a testnet or mainnet. You can do so either via your shell or with a .env
file
# .env
INFURA_API_KEY="<YOUR_INFURA_KEY>"
SEED_PHRASE="<YOUR_WALLET_SEED_PHRASE>"
FAQs
Common code shared across w3s truffle projects
We found that web3studio-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.