@synthra-swap/sdk
v0.1.6
Published
Unified Synthra TypeScript SDK for core primitives, V3 pools, and universal-router calldata
Readme
@synthra-swap/sdk
Unified Synthra SDK package.
Entry points
@synthra-swap/sdk/corefor core primitives such asToken,CurrencyAmount,Percent,TradeType, and chain ids.@synthra-swap/sdk/v3for V3 pools, routes, positions, quoter, and swap calldata.@synthra-swap/sdk/universal-routerfor Universal Router calldata.@synthra-swap/sdk/chainsfor chain and deployment configuration exports.
The root entry point exports the three modules as namespaces: Core, V3, and UniversalRouter.
Ethers v5 consumer security
The SDK uses modular ethers v5 packages and does not install @ethersproject/providers or ws. Applications that
independently depend on the full ethers v5 package should verify their own dependency tree. If it resolves
@ethersproject/[email protected] to [email protected], npm consumers can force the patched [email protected] from the application's
root package.json:
{
"overrides": {
"@ethersproject/providers": {
"ws": "8.21.0"
}
}
}Run npm install, then verify with npm ls ws and npm audit. npm only applies overrides declared by the root
project; overrides declared by an installed library are ignored.
