Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@zerodevapp/hardhat
Advanced tools
A Hardhat plugin that runs a ZeroDev mock server.
Sometimes you want to test you Dapps locally. To do that, ZeroDev provides a mock server to mimick a live paymaster on your local machine. This plugin automatically starts the mock server whenever you run npx hardhat node
or hh node
without the need for additional setup.
npm install @zerodevapp/hardhat "@nomiclabs/hardhat-ethers@^2.0.0" "ethers@^5.0.0"
Import the plugin in your hardhat.config.js
:
require("@zerodevapp/hardhat");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "@zerodevapp/hardhat";
This plugin overrides the node
task:
$ npx hardhat node
Verifier paymaster deployed at 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512
ZeroDev mock server listening at http://127.0.0.1:3000
Started HTTP and WebSocket JSON-RPC server at http://127.0.0.1:8545/
...
This plugin exports a new environment variable under hre.zeroMockUrl
which indicates the URL for the mock server. It's usually something like http://127.0.0.1:3030
.
Configure your ZeroDev SDK to use the mock server:
import * as zd from "zerodev-sdk";
await zd.getSigner({
localMode: true,
rpcUrl: "http://127.0.0.1:8545/", // address of hardhat JSON-RPC server
backendUrl: "http://127.0.0.1:3000", // address of ZeroDev mock server
// the following values can be of any value, see note below
projectId: "0db3bd22-d8ee-427a-8a00-4017f80d5ddd",
identity: "google",
token: "any-token-here",
});
Note: It's currently not possible to configure rate limites or other project dashboard features. The mock server will simply sign everything it receives.
FAQs
Hardhat plugin for ZeroDev
The npm package @zerodevapp/hardhat receives a total of 4 weekly downloads. As such, @zerodevapp/hardhat popularity was classified as not popular.
We found that @zerodevapp/hardhat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.