
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@zoralabs/chains
Advanced tools
Get chain information for forge/foundry when deploying
The chains cli is command line a utility for getting chain information for forge/foundry when deploying.
yarn global add @zoralabs/chains
# or
npm install -g @zoralabs/chains
(see configuration file below)
mkdir ~/.chains/
echo '{"alchemyApiKey": "API_KEY"}' >> ~/.chains/config.json
# alias to `forge zora --rpc` which returns `--rpc-url $RPC_URL`
chains zora --rpc
# gets just rpc url eg: (`https://rpc.optimism.io/`)
chains rpc optimism
# opens optimism block explorer in new browser window
chains explorer optimism
Loads private/custom configuration information from ~/.chains/
:
Configuration file format and naming:
$chain_name.json
-> {"rpcUrl": "https://alchemyapi.io/y/$alchemyApiKey", "etherscanApiKey": "ETHERSCAN_API_KEY"}
zora.json
-> {"rpcUrl": "https://rpc.zora.energy/"}
config.json
-> {"alchemyApiKey": ""}
(infura and tenderly coming soon)The chains npm package is an importable module that returns chain information for forge/foundry when deploying.
yarn add @zoralabs/chains
# or
npm install @zoralabs/chains
import { getChain } from "@zoralabs/chains";
// pass the snake case chain name to the chain getter:
const chain = await getChain("zora-sepolia");
console.log(chain);
// {
// id: 7777777,
// rpcUrl: 'https://rpc.zora.energy',
// blockExplorer: 'https://explorer.zora.energy',
// etherscanUrl: undefined,
// verifierUrl: 'https://explorer.zora.energy/api?'
// }
FAQs
Get chain information for forge/foundry when deploying
The npm package @zoralabs/chains receives a total of 258 weekly downloads. As such, @zoralabs/chains popularity was classified as not popular.
We found that @zoralabs/chains demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.