Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@solidstate/contracts
Advanced tools
SolidState contract library. Part of the SolidState Solidity monorepo.
Note: An old version of this library has been audited by Hacken. More details are available in the report.
Install the package as a development dependency:
npm install --save-dev @solidstate/contracts
# or
yarn add --dev @solidstate/contracts
SolidState maintains "recommended" implementations of various EIP standards, which are suitable for most users. Internally, these implementations may be composed of several modules, which themselves may be composed of several "visibility layers". Visibility layers are subject to a consistent naming convention so that their purposes may be easily identified.
For example, the SolidStateERC20
contract contains ERC20Base
, ERC20Extended
and ERC20Metadata
modules. The ERC20Base
module is composed of the external functions specified by the IERC20
interface, ERC20BaseInternal
, and ERC20BaseStorage
.
An overview of the uses of each visibility layer is as follows:
layer | contents | description | example |
---|---|---|---|
external | external and public functions | set of functions that constitute a module's external interface; useful for most common situations | ERC20Base.sol |
internal | internal functions, events | set of internal functions that define a module's core logic; may be called by inheriting contracts | ERC20BaseInternal.sol |
storage | internal library functions, structs | library for accessing and modifying storage; useful when sharing access to storage between implementation contracts that will be deployed separately (such as in the "diamond" proxy architecture) | ERC20BaseStorage.sol |
FAQs
Solidity library for flexible smart contract development
We found that @solidstate/contracts 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.