
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@unlock-protocol/contracts
Advanced tools
// get latest version
import { Unlock } from '@unlock-protocol/contracts'
import { PublicLock } from '@unlock-protocol/contracts'
// a previous version
import UnlockV12 from '@unlock-protocol/contracts/UnlockV12'
import { UnlockV12 } from '@unlock-protocol/contracts'
// all contracts
import { contracts } from '@unlock-protocol/contracts'
// the number of latest versions available
import {
PUBLICLOCK_LATEST_VERSION,
UNLOCK_LATEST_VERSION,
} from '@unlock-protocol/contracts'
NB: all the contracts have been flattened and exist mostly for archiving.
import '@unlock-protocol/contracts/Unlock/UnlockV0.sol';
You can add a contract from the smart-contracts folder (which is used for development/testing) with the following command:
yarn hardhat release --contract contracts/<contract>.sol
After adding a contract, you need to append the file to the index by running:
yarn build:index
Make sure all the contracts are building correctly by running
yarn test
Output documentation for Unlock and PublicLock in the /docs folder
yarn docs
FAQs
Unknown package
The npm package @unlock-protocol/contracts receives a total of 121 weekly downloads. As such, @unlock-protocol/contracts popularity was classified as not popular.
We found that @unlock-protocol/contracts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.

Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.

Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.