hardhat
openzeppelin-contracts
Our great sponsors
hardhat | openzeppelin-contracts | |
---|---|---|
125 | 233 | |
6,665 | 23,900 | |
2.4% | 1.3% | |
9.9 | 9.5 | |
7 days ago | about 16 hours ago | |
TypeScript | JavaScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hardhat
-
Build an AI-powered NFT generator with TS, GPT, Polygon and CASE (Part 1/2)
That's it for the first part ! Then we will use Hardhat to deploy our Solidity Contract on the Polygon testnet, and then overload our mintNFT() function with the actual minting. If you want to see the Part 2 quickly, give us some love and we will execute ! ❤️❤️❤️
-
Hardhat Smartcontract Lottery (Raffle) Using TypeScript and latest versions of everything
I have two skipped tests because at the time of writing this article events firing doesn't work properly in the latest version. Link to the github issue
-
SKALE Ecosystem Update. Explore the Thriving Ecosystem that is Driving Innovation on SKALE
Hardhat
-
Learn To Become a Web3 Developer by Exploring the Web3 Stack
Other options include Remix (an IDE), ChainIDE, Anchor (for Solana), Hardhat, and lots of others. Web3 dev environments have come a long way in a short time, and there’s probably something out there for whatever you need.
-
The 4 Best dApp Frameworks for First-Time Ethereum Developers
Hardhat allows developers to build, test, and deploy smart contracts and dApps using a variety of tools and libraries. With over 114K users on GitHub and an active Discord community, Hardhat is a hugely popular framework for dApp developers. Much of its popularity can be attributed to its rich list of features, flexibility and the Hardhat Ethereum Virtual Machine for testing and debugging smart contracts.
-
Advancing dApp development with Hardhat Indexing: A Game-Changer for Ethereum Devs
The hardhat-ethers plugin adds the ethers.js library to the Hardhat node, making it possible to use its functionalities. It's possible to use it to deploy the contract, but since our goal is to create transactions, we can also add some code to do that as well.
-
Where are some of the best places to learn about Smart Contracts?
Also learning how to use one of these development environments instead of Remix is necessary: 1. Hardhat: https://hardhat.org 2. Foundry: https://github.com/foundry-rs/foundry
-
The power of zero-knowledge proofs - exploring the new ConsenSys zkEVM
Easy for devs — The zkEVM supports most popular tools out of the box. You can build, test, debug, and deploy your smart contracts with Hardhat, Infura, Truffle, etc. All the tools you use now, you can keep using. And there is already a bridge to move tokens onto and off the network.
-
The Ultimate Guide to Debugging Smart Contracts: Tips and Tools for Web3 Developers
Hardhat is an open-source development environment for Ethereum. It includes tools for developing, testing, and deploying smart contracts. Hardhat also has a built-in debugger that allows developers to step through the code and inspect variable values.
-
Build Your First Subnet
After you feel comfortable with this deployment flow, try deploying smart contracts on your chain with Remix, Hardhat, or Foundry. You can also experiment with customizing your Subnet by addingprecompiles or adjusting the airdrop.
openzeppelin-contracts
-
Blockchain transactions decoding: making wallet activity understandable
Lets look the events of Open Zeppelin’s ERC20 token contract:
-
I get an "ambiguous primary types or unused types" error when trying to mint an NFT requiring 2 signatures via EIP712
I modified my code to use EIP712 to require an authorized wallet to also sign in order for an NFT to be minted. I based this off of this: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/7e814a3074baa921db584c180ff6e300cdec8735/contracts/token/ERC20/extensions/ERC20Permit.sol. This is an example of someone calling a smart contract containing this ERC20Permit.sol code https://github.com/Uniswap/v3-periphery/blob/main/test/shared/permit.ts. This particular ERC20Permit.sol code is designed to allow an account to approve ERC20 spend limits without spending gas fees but the same underlying mechanisms could be applied to my use case.
-
Solidity digest / mar 2023
v4.8.2 of OpenZeppelin contracts and contracts-upgradeable bug fix for ERC721Consecutive that could cause a balance overflow when _mintConsecutive was used for batches of size 1 breaking changes to ERC721: the internal function _beforeTokenTransfer will no longer update balances when batchSize is greater than 1
-
The 4 Best dApp Frameworks for First-Time Ethereum Developers
Widely used open source framework with an active GitHub community and documentation
-
What is the current best practice for badges / soulbound / nontransferrable tokens?
In the next step of my journey, I went to Github to see what other people were building. I didn't fine much. My heros [OpenZeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/interfaces) don't seem to have any examples in their repository. Github's search yielded no results. Some Google searches finally did land me on two repositories. One is [an implementation of ERC-5114](https://github.com/TeamSHARKZ/soulbound) - horray!. The other one one of those traditional [awesome lists](https://github.com/attestate/awesome-soulbound-tokens). Great resource and introduced me to a standard I previously missed, [ERC-4973](https://eips.ethereum.org/EIPS/eip-4973). Of course, having completely missed a token reinforced how easy it is to miss something obvious along the way and encourages me to reach out and ask the community for more information.
-
Fork mainnet using hardhat to test and build on DeFi protocols and more
Now create a folder named IERC20.sol inside your contracts folder and paste the following code into it. This is the ERC20 interface we will need to interact with the USDC contract. You can also find this code here
-
Generating Decentralized identifier using ERC725 and ERC735
You're trying to import a markdown (text) file that describes the ERC721 spec, not an actual ERC721 compliant smart contract. I believe what you're trying to import is https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol
-
Question about implementing a UUPS proxy
Look at TransparentUpgradeableProxy.sol, but the actual delegation happens in one of the contracts it inherits: Proxy.sol.
-
A look into formal verification of smart contracts using Certora
Let's grab some examples from OpenZeppelin's TimelockController spec. In a Timelock, operations can have different states. We can write a rule that checks, for instance, that calling execute is the only way for moving an operation from ready to done state.
-
Create & deploy an ERC-20 token in 15 minutes (Truffle, OpenZeppelin, Goerli)
The import line is importing the contents of this file which is available within our node_modules from installing OpenZeppelin earlier.
What are some alternatives?
truffle - :warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
foundry - Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
ganache - :warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
solmate - Modern, opinionated, and gas optimized building blocks for smart contract development.
remix-ide - Documentation for Remix IDE
ethers.js - Complete Ethereum library and wallet implementation in JavaScript.
complete-guide-to-full-stack-solana-development - Code examples for the blog post titled The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom
scaffold-eth - 🏗 forkable Ethereum dev stack focused on fast product iterations
useDApp - Framework for rapid Dapp development. Simple. Robust. Extendable. Testable
ERC721A - https://ERC721A.org
brownie - A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.
graph-node - Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL