
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@gnosis.pm/safe-ethers-lib
Advanced tools
Ethers.js wrapper that contains some utilities and the Safe contracts types (generated with typechain ethers-v5). It is used to initialize the Safe Core SDK.
Install the package with yarn or npm:
yarn install
npm install
Build the package with yarn or npm:
yarn build
npm build
If the app integrating the SDK is using Ethers v5, create an instance of the EthersAdapter, where signer is the Ethereum account we are connecting and the one who will sign the transactions.
import { ethers } from 'ethers'
import EthersAdapter from '@gnosis.pm/safe-ethers-lib'
const web3Provider = // ...
const provider = new ethers.providers.Web3Provider(web3Provider)
const safeOwner = provider.getSigner(0)
const ethAdapter = new EthersAdapter({
ethers,
signer: safeOwner
})
In case the ethAdapter instance is only used to execute read-only methods the signerAddress property can be omitted.
const readOnlyEthAdapter = new EthersAdapter({ ethers })
This library is released under MIT.
FAQs
Ethers library adapter to be used by Safe Core SDK
The npm package @gnosis.pm/safe-ethers-lib receives a total of 838 weekly downloads. As such, @gnosis.pm/safe-ethers-lib popularity was classified as not popular.
We found that @gnosis.pm/safe-ethers-lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 18 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.