
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@consensys/on-ramp-sdk
Advanced tools
import {OnRampSdk} from '@codefi/on-ramp-sdk'
To facilitate back-end interaction, a SDK can be used.
You can use it like this:
const sdk: IOnRampSdk = await OnRampSdk.getSDK(
Environment.Staging,
Context.Mobile,
{
verbose: true,
maxInstanceCount: 1,
},
)
To connect a local instance of the SDK to a local MetaMask Portfolio client, follow these steps:
tsconfig.json
file in the SDK project.module
and moduleResolution
properties as follows:
{
"compilerOptions": {
"module": "esnext",
"moduleResolution": "node"
// other configurations
}
}
In the SDK project directory, run the following command to create a symbolic link:
yarn link
In the Portfolio project directory, link the SDK by running:
yarn link @consensys/on-ramp-sdk
Remove the cache to ensure the changes take effect:
rm -rf node_modules/.cache
yarn install
vite.config.js
file in the Portfolio project.export default {
// other configurations
optimizeDeps: {
exclude: ['@consensys/on-ramp-sdk'],
},
}
Whenever you make changes to the SDK, remember to rebuild the project to reflect those changes in the Portfolio client:
yarn build
FAQs
## Getting started
The npm package @consensys/on-ramp-sdk receives a total of 41,404 weekly downloads. As such, @consensys/on-ramp-sdk popularity was classified as popular.
We found that @consensys/on-ramp-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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 uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.