Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
a16z-contracts
Advanced tools
Readme
A repository for contracts written by a16z.
The purpose of this repository is to provide an on-chain representation of the CantBeEvil license.
The CantBeEvil license is made available as a contract that can be inherited by any other contract.
There are six variants of the CantBeEvil license:
TODO: update these to 6
Creator Retention (“CR”) – Full non-exclusive commercial rights granted, with no hate speech revocation.
Creator Retention with Hate Speech Revocation (“CR-HS”) – Full non-exclusive commercial rights granted, with hate speech revocation.
Exclusive Rights with No Creator Retention (“ER”) – Full exclusive commercial rights granted, with no hate speech revocation.
The license versions are represented on-chain as an enum.
enum LicenseVersion {
CB_CC0,
CB_ECR,
CB_NECR,
CB_NECR_HS,
CB_PR,
CB_PR_HS
}
Pass the desired version into the CantBeEvil
constructor, as shown:
import {LicenseVersion, CantBeEvil} from "@a16z/licenses/CantBeEvil.sol";
contract MyContract is CantBeEvil(LicenseVersion.CC0) {
...
}
You can now call MyContract.getLicenseURI()
, which will return an Arweave gateway link to the license text file.
MyContract.getLicenseURI() // => "https://arweave.net/d2k7..."
This contract is meant to be inherited by NFT contracts and any contract that wishes to expose the getLicenseURI
method.
An example NFT contract that inherits CantBeEvil
.
FAQs
a16z Smart Contract library for Solidity
We found that a16z-contracts demonstrated a not healthy version release cadence and project activity because the last version was released 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.