MCPcopy Index your code
hub / github.com/dedust-io/sdk

github.com/dedust-io/sdk @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
109 symbols 165 edges 33 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DeDust logo

SDK for the most progressive DEX on TON blockchain.

npm License

Documentation

Features

  • Multi-hop trades (which allows to swap token A to D using intermediate steps, e.g. A -> B -> C)
  • Support both volatile pools and stable swaps (proposed by Curve.fi, e.g USDT / DAI)
  • The architecture is not only oriented towards security and extensibility, but also on user experience (UX)

License

DeDust SDK is Apache 2.0 licensed.

Copyright

Scaleton Labs LLC © 2023

Extension points exported contracts — how you extend this code

TradeData (Interface)
(no doc)
src/api/types/TradeData.ts
SwapStep (Interface)
(no doc)
src/contracts/dex/vault/Vault.ts
PoolData (Interface)
(no doc)
src/api/types/PoolData.ts
SwapParams (Interface)
(no doc)
src/contracts/dex/vault/Vault.ts
AssetMetadata (Interface)
(no doc)
src/api/types/AssetMetadata.ts
AssetBalance (Interface)
(no doc)
src/api/types/AssetBalance.ts

Core symbols most depended-on inside this repo

toSlice
called by 13
src/contracts/dex/common/Asset.ts
toString
called by 8
src/contracts/dex/common/Asset.ts
fromSlice
called by 6
src/contracts/dex/common/Asset.ts
createFromAddress
called by 4
src/contracts/dex/factory/Factory.ts
notSupported
called by 3
src/contracts/dex/common/AssetError.ts
getVaultAddress
called by 2
src/contracts/dex/factory/Factory.ts
native
called by 2
src/contracts/dex/common/Asset.ts
jetton
called by 2
src/contracts/dex/common/Asset.ts

Shape

Method 67
Class 21
Function 11
Interface 6
Enum 4

Languages

TypeScript100%

Modules by API surface

src/contracts/dex/pool/Pool.ts13 symbols
src/contracts/dex/liquidity-deposit/LiquidityDeposit.ts13 symbols
src/contracts/dex/factory/Factory.ts13 symbols
src/contracts/dex/common/Asset.ts10 symbols
src/contracts/jettons/JettonWallet.ts8 symbols
src/contracts/jettons/JettonRoot.ts7 symbols
src/contracts/dex/vault/VaultNative.ts7 symbols
src/contracts/dex/vault/VaultJetton.ts7 symbols
src/contracts/dex/vault/Vault.ts7 symbols
src/api/DeDustClient.ts6 symbols
src/contracts/dex/proofs.ts4 symbols
src/helpers/wrapTonConnect.ts3 symbols

For agents

$ claude mcp add sdk \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact