Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
hardhat-celo
Advanced tools
Hardhat plugin for Celo Developers.
Note 🚨 This package is no longer needed check here
CeloScan Contract Verification
Before the installation steps you need to have your hardhat project initialized using the command
npx hardhat init
Make sure to have dependencies installed!
Use the following command to install
npm i hardhat-celo --save-dev
Import the plugin in your hardhat.config.js
:
require("hardhat-celo");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "hardhat-celo";
Remove / Comment the import for @nomicfoundation/hardhat-toolbox
Add the following configuration to the config
object in hardhat.config.js
.
networks: {
alfajores: {
// can be replaced with the RPC url of your choice.
url: "https://alfajores-forno.celo-testnet.org",
accounts: [
"<YOUR_PRIVATE_KEY>"
],
},
celo: {
url: "https://forno.celo.org",
accounts: [
"<YOUR_PRIVATE_KEY>"
],
}
},
etherscan: {
apiKey: {
alfajores: "<CELOSCAN_API_KEY>",
celo: "<CELOSCAN_API_KEY>"
},
},
Verify your contracts using the following command (Make sure your contracts are compiled before verification)
Alfajores Testnet
npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network alfajores
Celo Mainnet
npx hardhat verify <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS> --network celo
FAQs
Hardhat plugin for Celo
The npm package hardhat-celo receives a total of 2 weekly downloads. As such, hardhat-celo popularity was classified as not popular.
We found that hardhat-celo demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.