Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@apeswap.finance/contracts
Advanced tools
A collection of smart contract tools and interfaces used by ApeSwap.
A collection of smart contract tools and interfaces used by ApeSwap..
Factories: Turn a contract into a factory using the contract address as an implementation with Clones
or TransparentUpgradeableProxy
Sweeper: Sweep any ERC-20 or NFT locked in a contract with this utility.
Create a GitHub personal access token
Create a .npmrc
file at the root of this repo or at your $HOME dir and add the following lines, replacing <NPM_TOKEN>
with yours
//npm.pkg.github.com/:_authToken=<NPM_TOKEN>
@apeswapfinance:registry=https://npm.pkg.github.com
yarn add @apeswapfinance/contracts
Once installed, you can use the contracts in the library by importing them:
pragma solidity ^0.8.0;
import "@apeswapfinance/contracts/utils/Sweeper";
contract MyContract is Sweeper {
constructor(address[] lockedTokens) Sweeper(lockedTokens) {
}
}
If you're new to smart contract development, head to Developing Smart Contracts to learn about creating a new project and compiling your contracts.
To keep your system secure, you should always use the installed code as-is, and neither copy-paste it from online sources, nor modify it yourself. The library is designed so that only the contracts and functions you use are deployed, so you don't need to worry about it needlessly increasing gas costs.
ApeSwap Contracts exists thanks to its contributors. There are many ways you can participate and help build high quality software. Check out the contribution guide!
ApeSwap Contracts is released under the MIT License.
FAQs
A collection of smart contract tools and interfaces used by ApeSwap.
The npm package @apeswap.finance/contracts receives a total of 0 weekly downloads. As such, @apeswap.finance/contracts popularity was classified as not popular.
We found that @apeswap.finance/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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.