@xswap-link/sdk
Version:
JavaScript SDK for XSwap platform
539 lines (286 loc) • 8.41 kB
Markdown
@xswap-link/xswap-sdk
# 0.11.0
## Minor Changes
- d5d406c: Added solana bridge support
# 0.10.15
## Patch Changes
- cc4cc11: Make buffer polyfill synchronous
# 0.10.14
## Patch Changes
- 77a5ec5: Remove condition for Buffer polyfill
# 0.10.13
## Patch Changes
- 5db5901: Added optional `Buffer` polyfill for browser-only environments. Enable with `window.XSwapSDKConfig = { enableBufferPolyfill: true }` before loading the SDK.
# 0.10.12
## Patch Changes
- 485c2c6: remove raceCondition from getBalances
# 0.10.11
## Patch Changes
- ef84b33: fixed solana nativeFee display, and tokenLogo after errorOccured
# 0.10.10
## Patch Changes
- f75cb4c: solana rpc from quicknode
# 0.10.9
## Patch Changes
- ee13668: added chainlink scripts for svm evm bridge
# 0.10.8
## Patch Changes
- e9ce829: fixed solana history display
# 0.10.7
## Patch Changes
- 17d0f13: Add icon to selected dst tokens
- be2a4cf: solana improvements
# 0.10.6
## Patch Changes
- b335c59: Add icon to selected dst tokens
# 0.10.5
## Patch Changes
- c9a64e8: Remove types used internally
# 0.10.4
## Patch Changes
- e2158c2: Remove unused endpoints
# 0.10.3
## Patch Changes
- 2d479dd: refactor token address normalization and simplify props interface
# 0.10.2
## Patch Changes
- 8b4ebd3: Normalized source and destination token addresses to lowercase
- 72c9a6d: Show my tokens on destination chain
- 1c74826: Fix importing custom tokens
- aaed8ae: Add font customization option
- 1ece684: Fix check for initial dst token lookup
# 0.10.1
## Patch Changes
- 7d05886: Show my tokens on destination chain
# 0.10.0
## Minor Changes
- fa2b84c: feat: add integrator fee
# 0.9.10
## Patch Changes
- a054e7d: "fix: route loading"
# 0.9.9
## Patch Changes
- ddf8f7c: "fix: selecting token on bridge after changing a chain"
# 0.9.8
## Patch Changes
- 3075e40: "fix: token validation after chain change"
# 0.9.7
## Patch Changes
- fa12ba5: "fix: adjust the swap provider logic"
# 0.9.6
## Patch Changes
- b19be3f: fixed settings padding
# 0.9.5
## Patch Changes
- 4b59def: fix: add small ui fixes
# 0.9.4
## Patch Changes
- 0df8c33: fix: handle undefined fee token"
# 0.9.3
## Patch Changes
- 6529933: fix: change condition for srcToken in bridge validation
# 0.9.2
## Patch Changes
- b098740: feat: add onWalletConnect callback"
# 0.9.1
## Patch Changes
- 615902c: Feat: add token values in token picker
# 0.9.0
## Minor Changes
- ce3372c: Release: update token and chain handeling"
# 0.8.7
## Patch Changes
- c3b4ce3: Change initial chain and token values according to new specs
# 0.8.6
## Patch Changes
- 6128c75: fixed widget width on mobile
# 0.8.5
## Patch Changes
- e920a72: improved TokenLogo component
# 0.8.4
## Patch Changes
- ae73f76: added support for new chains
# 0.8.3
## Patch Changes
- cd13677: Fix bridge chain filtering and other minor bugs
# 0.8.2
## Patch Changes
- ed988a9: Fix changing width
# 0.8.1
## Patch Changes
- a7461fe: Add options to getDefaultSwapTokenForChain
# 0.8.0
## Minor Changes
- 1644b5e: Add bridge, reorder, callbacks after change and other improvements
## Patch Changes
- 4c5ee0f: Add source and target chain and token validation
# 0.7.0
## Minor Changes
- cddadc4: change modal rendering
# 0.6.10
## Patch Changes
- f38be29: make passing styles and customCalls as objects
# 0.6.9
## Patch Changes
- ee8fe46: lock destination token and chain when provided
# 0.6.8
## Patch Changes
- c741be1: fix: font size and typo
# 0.6.7
## Patch Changes
- 4462cb6: feat: remove source maps
# 0.6.6
## Patch Changes
- 9c11731: fix: remove react install from the CI
- 8c881e7: Add support for infinite approvals
# 0.6.5
## Patch Changes
- 7e1fc3c: Add support for infinite approvals
- f713ef7: Prevent errors in non-browser environments
# 0.6.4
## Patch Changes
- 2fae94b: Prevent errors in non-browser environments
# 0.6.3
## Patch Changes
- 582bcdd: Replace react-timer-hook with custom hook
# 0.6.2
## Patch Changes
- 4e3283a: feat: add token id
# 0.6.1
## Patch Changes
- 16c82b5: Map addresses to lowercase when comparing
# 0.6.0
## Minor Changes
- ef546dd: feat: imrove styles and remove transactions as the return value"
# 0.5.0
## Minor Changes
- 3d1a4e5: Add TxWidget
- c9e4a8a: feat: remove transaction status form exports
# 0.4.1
## Patch Changes
- 6656911: Fix CDN build
# 0.4.0
## Minor Changes
- ce4fdc2: feat: update modal ui
## Patch Changes
- 2d57189: introduce new swap view
# 0.3.5
## Patch Changes
- 671b0d3: restore tailwind base
# 0.3.4
## Patch Changes
- fded070: remove allowance check and create confirmation view component
- 2e90f45: remove base tailwind import
- b602388: add NODE_ENV production env. variable to CDN build to fix the integration
# 0.3.3
## Patch Changes
- 1b75d71: add CDN support
# 0.3.2
## Patch Changes
- 2cf5a96: export styles and turn showQrModal off in wagmiConfig
# 0.3.1
## Patch Changes
- 41c1148: add exports to package.json so it's possible to integrate within both, CJS and ESM projects.
# 0.3.0
## Minor Changes
- 5748302: feat: new tx execution system
# 0.2.6
## Patch Changes
- 70ce5e7: add tailwind 'xpay-' prefix
# 0.2.5
## Patch Changes
- 88f6ea9: Add integrator id to route payload
- 564895e: Set percision of max button to token decimals
- 81cf582: feat: unknown tokens and small ui improvements
# 0.2.4
## Patch Changes
- c07f86d: add custom TransactionRequest type
- 108928b: express delivery limit validation
- 909851c: add initialization indicator
- 9ecf3bc: fix mobile version styling
# 0.2.3
## Patch Changes
- 867df58: fix api/sdk/css request params
# 0.2.2
## Patch Changes
- e04c4c6: document initialization
# 0.2.1
## Patch Changes
- 0f722ce: tx monitoring integration update
# 0.2.0
## Minor Changes
- 3fe79fb: publish index.css while releasing new version and append css element automatically so an integrator doesn't have to
# 0.1.4
## Patch Changes
- 1c0c46a: fix button display styling and logic
# 0.1.3
## Patch Changes
- f0ac6a8: make sure srcToken has decimals provided
- 0cb3862: disable "switch chain" button while disconnected
- a8ad8df: add destination token USD value
- 4260f16: apply styling for mobile
- e01a44b: add swap tx data validation
- 3ff62e4: add displaying transaction history
# 0.1.2
## Patch Changes
- e7dae6e: remove local storage usage from history
- 9a72993: define fallback source chain
- 8cf2f51: fix: show empty history with message instead of circular progress
- bef4486: fix custom width in tailwind config and form component
# 0.1.1
## Patch Changes
- f2f2fa7: refactor: move settings to separate tab
- 6c34220: add error display field
- 1f9c975: refactor: split form into smaller components
- bc37d57: add express delivery indicator
- 03de728: request chain change on tx form submit
- af15c81: refactor: apply changes from figma design
- f9b5d80: add powered by xswap and ccip badge
- 4ecbb88: fix small balance display
- 6742608: fix: close chain list on click outside
- a06be7d: fix token amount clearing on token change and add Max balance button
# 0.1.0
## Minor Changes
- 59c70ca: introducing Swap & Stake modal function component
## Patch Changes
- a32a4d8: let disconnected users to use modal
- d93e3aa: let integrators to provide description
# 0.0.13
## Patch Changes
- cb5f79b: add swap & stake integration
# 0.0.12
## Patch Changes
- 1c756ea: make Route fees mandatory
# 0.0.11
## Patch Changes
- e0d0400: update (simplify) Route model
# 0.0.10
## Patch Changes
- 0d5f673: add RouteType
# 0.0.9
## Patch Changes
- e5fd5e1: add Prices model
# 0.0.8
## Patch Changes
- aeb504d: add supported bridge tokens
# 0.0.7
## Patch Changes
- cabadbe: update Chain model
# 0.0.6
## Patch Changes
- f8a43e2: add optional Route.message property
# 0.0.5
## Patch Changes
- c53d372: merge @xswap-link/common lib
# 0.0.4
## Patch Changes
- bdce569: replace @xswap-link/xswap-common with @xswap-link/common
# 0.0.3
## Patch Changes
- ee64995: change lib name from @xswap-link/xswap-sdk to @xswap-link/sdk
# 0.0.2
## Patch Changes
- ca41676: fix wrong urlPath params
# 0.0.1
## Patch Changes
- fed9022: init