ens-contracts
openzeppelin-contracts
ens-contracts | openzeppelin-contracts | |
---|---|---|
7 | 234 | |
531 | 24,174 | |
3.4% | 1.1% | |
8.4 | 9.5 | |
5 days ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | 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.
ens-contracts
- Implement offchain DNS Registrar support #203
-
ENS DAO Newsletter - The long-awaited NameWrapper is live!
More details can be found in the pull request.
- A beginner's guide to ENS Name Wrapper and It's Functionality
-
Daily General Discussion - March 6, 2023
M3mber: I think this is a way to mint an NFT that represents a membership in something with an expiry date (pitched as a way for DAOs to bring in recurring money like a subscription rather than just the one-off token sale). They use ENS domains, with NameWrapper to accomplish this; is it only because ENS domains already have expiry built in so they don't have to code it from scratch?
-
How to find length of string in Solidity, from the smart contract of ens
// SPDX-License-Identifier: MIT // Source: // https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/StringUtils.sol pragma solidity >=0.8.4; library StringUtils { /** * @dev Returns the length of a given string * * @param s The string to measure the length of * @return The length of the input string */ function strlen(string memory s) internal pure returns (uint256) { uint256 len; uint256 i = 0; uint256 bytelength = bytes(s).length; for (len = 0; i < bytelength; len++) { bytes1 b = bytes(s)[i]; if (b < 0x80) { i += 1; } else if (b < 0xE0) { i += 2; } else if (b < 0xF0) { i += 3; } else if (b < 0xF8) { i += 4; } else if (b < 0xFC) { i += 5; } else { i += 6; } } return len; } }
-
string length function explaination
I came across this helper function to find a string length present at https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/StringUtils.sol And I couldn't understand what this piece of code is doing uint bytelength = bytes(s).length; for(len = 0; i < bytelength; len++) { bytes1 b = bytes(s)[i]; if(b < 0x80) { i += 1; } else if (b < 0xE0) { i += 2; } else if (b < 0xF0) { i += 3; } else if (b < 0xF8) { i += 4; } else if (b < 0xFC) { i += 5; } else { i += 6; } } return len; Any help is appreciated. Thank you
- ERC1155 "Name Wrapper" is the .eth, and integrated extensions, new unified protocols
openzeppelin-contracts
-
Mode - Comprehensive Starter Guide
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.20; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/token/ERC20/ERC20.sol"; interface Sfs { function register(address _recipient) external returns (uint256 tokenId); } contract ModeToken is ERC20 { address feeReceiver = msg.sender; constructor() ERC20("ModeTokenSFSTest", "SFST2") { //Example amount to mint our ERC20 _mint(msg.sender, 1000 10 * 18); // This is the SFS contract address on testnet Sfs sfsContract = Sfs(0xBBd707815a7F7eb6897C7686274AFabd7B579Ff6); //Registers this contract and assigns the NFT //to the deployer of this contract sfsContract.register(msg.sender); } }
-
Blockchain transactions decoding: making wallet activity understandable
Lets look the events of Open Zeppelin’s ERC20 token contract:
- Construir e implementar un VAULT (bóveda) ERC20 en Shardeum
-
Are ERC-777 Unsafe?
ERC-777 is difficult to implement properly, due to its susceptibility to different forms of attack(opens in a new tab). It is recommended to use ERC-20 instead. This page remains as a historical archive.
- OpenZeppelin is trying to avoid paying a bounty for a vulnerability that caused $1,1B worth of assets freeze
- Security improvements of the ERC20 token standard
- Ethereums most used token standard ERC20 requires security enhancements
- The most used Ethereums token standard (ERC20) requires a security patch.
What are some alternatives?
EIPs - The Ethereum Improvement Proposal repository
solmate - Modern, opinionated, and gas optimized building blocks for smart contract development.
contracts-v2 - 🐇 Hop Protocol v2 smart contracts
hardhat - Hardhat is a development environment to compile, deploy, test, and debug your Ethereum software.
ERC721A - https://ERC721A.org
Safemoon.sol - safemoon contract
solidity - Solidity, the Smart Contract Programming Language
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.
poap-contracts - The Proof of Attendance Protocol Ethereum contracts
matic-gas-prices - Displays current gas prices on the Polygon (MATIC) network.
openzeppelin-solidity - OpenZeppelin Contracts is a library for secure smart contract development. [Moved to: https://github.com/OpenZeppelin/openzeppelin-contracts]
metamask-extension - :globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites