
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@dezswap/sdk
Advanced tools
TypeScript SDK for interacting with Dezswap AMM protocol on XPLA Chain
TypeScript SDK for type-safe interaction with Dezswap on XPLA Chain.
git clone --recurse-submodules https://github.com/dezswap/sdk.git
cd sdk
yarn
The --recurse-submodules
flag is required to clone the dezswap-contracts
submodule containing contract schemas.
First-time setup requires initializing Husky for Git hooks:
yarn prepare
This sets up pre-commit hooks for linting and formatting.
The SDK uses @cosmwasm/ts-codegen
to generate TypeScript clients from CosmWasm contract schemas.
Use the programmatic codegen
script to generate all contract clients:
yarn codegen
This runs src/codegen.ts
which handles ES module compatibility and generates all four contract clients (DezswapFactory
, DezswapPair
, DezswapRouter
, DezswapToken
) to src/generated/
.
Generate clients for specific contracts:
# Generate DezswapFactory client
yarn g:factory
# Generate DezswapPair client
yarn g:pair
# Generate DezswapRouter client
yarn g:router
# Generate DezswapToken client
yarn g:token
yarn build
This will:
dist
directorycodegen
to generate contract clientsBefore running tests, you need to download the required contract artifacts:
# Download pre-built contracts from GitHub releases
bash download-contracts.sh
This script downloads the necessary WASM contract files to the artifacts/
directory based on the configuration in contracts.config.json
.
The SDK uses Starship for integration testing with a local XPLA blockchain:
# Run all integration tests
yarn test
# Run tests with coverage report
yarn test:coverage
# Run tests in debug mode (verbose output)
yarn test:debug
# Run specific test files
yarn test --testPathPattern="token"
# Run specific test cases
yarn test --testNamePattern="deploy"
Tests run against a local XPLA blockchain instance managed by Starship:
# Start Starship environment (manual control)
yarn starship
# Stop Starship environment
yarn starship:clean
Note: The test runner automatically manages the Starship environment, so manual start/stop is usually not needed.
# Lint and format
yarn lint
yarn format
# Type checking
yarn typecheck
FAQs
TypeScript SDK for interacting with Dezswap AMM protocol on XPLA Chain
The npm package @dezswap/sdk receives a total of 0 weekly downloads. As such, @dezswap/sdk popularity was classified as not popular.
We found that @dezswap/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.