v1 to v2
Migration guide from SDK v1 to v2 - upgrade to vault-based architecture and new features
Overview
Breaking Changes
Router and Pool Method Calls
import { DEX } from '@ston-fi/sdk';
const router = new DEX.v1.Router(address);
const swapParams = await router.getSwapJettonToJettonTxParams({
// parameters
});New Contract Types
New Features
Utility Functions
Factory Functions
Migration Steps
Code Examples
Swap Migration
Pool Operations Migration
Working with Different Pool Types
Backwards Compatibility
Common Issues
TypeScript Errors
Runtime Errors
Need Help?
Last updated