Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .solcover.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
const accounts = require(`./test-wallets.js`).accounts;
// Import predefined wallet accounts (private keys/addresses) to load into the local EVM.
const accounts = require('./test-wallets.js').accounts;

/**
* Configuration for the smart contract testing environment (e.g., Hardhat or Truffle).
*/
module.exports = {
// Exclude external, audited libraries (like OpenZeppelin contracts)
// from code coverage reports to focus only on proprietary code.
skipFiles: ["open-zeppelin/"],

// Mocha Test Runner Configuration
mocha: {
// Disable test execution timeouts. This is common for long-running deployment
// and complex integration tests to prevent premature failures.
enableTimeouts: false,
},

// Configuration options for the local Ethereum client (Ganache/Hardhat Network).
providerOptions: {
// List of accounts (private keys) to initialize and fund in the local chain.
accounts,

// Explicitly set the chain ID for the local network (1337 is the standard development ID).
_chainId: 1337,

// Explicitly set the chain ID reported via RPC responses (often redundant but ensures compatibility).
_chainIdRpc: 1337,

// Set the legacy network ID (often required by older Truffle or Ganache versions).
network_id: 1337,
},
};