@openocean.finance/widget 1.0.45 → 1.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/esm/components/Card/InputCard.d.ts +1 -1
  2. package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +1 -1
  3. package/dist/esm/components/TokenList/VirtualizedTokenList.js +1 -0
  4. package/dist/esm/components/TokenList/VirtualizedTokenList.js.map +1 -1
  5. package/dist/esm/config/version.d.ts +1 -1
  6. package/dist/esm/config/version.js +1 -1
  7. package/dist/esm/cross/adapters/LifiAdapter.d.ts +3 -0
  8. package/dist/esm/cross/adapters/LifiAdapter.js +270 -44
  9. package/dist/esm/cross/adapters/LifiAdapter.js.map +1 -1
  10. package/dist/esm/cross/adapters/index.d.ts +1 -0
  11. package/dist/esm/cross/adapters/index.js +1 -1
  12. package/dist/esm/cross/adapters/index.js.map +1 -1
  13. package/dist/esm/cross/crossChainQuote.js +10 -4
  14. package/dist/esm/cross/crossChainQuote.js.map +1 -1
  15. package/dist/esm/cross/factory.d.ts +3 -1
  16. package/dist/esm/cross/factory.js +10 -14
  17. package/dist/esm/cross/factory.js.map +1 -1
  18. package/dist/esm/i18n/en.json +3 -1
  19. package/dist/esm/i18n/ja.json +3 -1
  20. package/dist/esm/i18n/zh.json +3 -1
  21. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +1 -1
  22. package/dist/esm/services/ExecuteRoute.js +1 -0
  23. package/dist/esm/services/ExecuteRoute.js.map +1 -1
  24. package/package.json +2 -2
  25. package/src/components/TokenList/VirtualizedTokenList.tsx +15 -15
  26. package/src/config/version.ts +1 -1
  27. package/src/cross/adapters/LifiAdapter.ts +303 -51
  28. package/src/cross/adapters/index.ts +1 -1
  29. package/src/cross/crossChainQuote.ts +10 -4
  30. package/src/cross/factory.ts +12 -11
  31. package/src/i18n/en.json +3 -1
  32. package/src/i18n/ja.json +3 -1
  33. package/src/i18n/zh.json +3 -1
  34. package/src/services/ExecuteRoute.ts +1 -0
@@ -1 +1 @@
1
- export declare const InputCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "square" | "classes" | "variant" | "elevation" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("./Card.js").CardProps, "color" | "content" | "translate" | "children" | "ref" | "sx" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "square" | "type" | "classes" | "variant" | "elevation" | "component" | "theme" | "as" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
1
+ export declare const InputCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "square" | "classes" | "variant" | "elevation" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("./Card.js").CardProps, "color" | "content" | "translate" | "children" | "ref" | "sx" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "square" | "type" | "classes" | "variant" | "elevation" | "component" | "theme" | "as" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -3,7 +3,7 @@ export declare const SkeletonWalletMenuButtonContainer: import("@emotion/styled"
3
3
  export declare const SkeletonCardRow: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
4
  export declare const SkeletonAmountContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const SkeletonCard: import("@emotion/styled").StyledComponent<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "square" | "classes" | "variant" | "elevation" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const SkeletonInputCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "square" | "classes" | "variant" | "elevation" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../Card/Card.js").CardProps, "color" | "content" | "translate" | "children" | "ref" | "sx" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "square" | "type" | "classes" | "variant" | "elevation" | "component" | "theme" | "as" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
+ export declare const SkeletonInputCard: import("@emotion/styled").StyledComponent<Pick<import("@mui/material").CardOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "children" | "sx" | "style" | "className" | "square" | "classes" | "variant" | "elevation" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & import("../Card/Card.js").CardProps, "color" | "content" | "translate" | "children" | "ref" | "sx" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "square" | "type" | "classes" | "variant" | "elevation" | "component" | "theme" | "as" | "raised" | "selectionColor" | "indented"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
7
  export declare const SkeletonReviewButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const SkeletonReviewButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "size" | "disabled" | "classes" | "variant" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
9
  export declare const SkeletonSendToWalletButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "children" | "sx" | "style" | "className" | "tabIndex" | "size" | "disabled" | "classes" | "variant" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "loading" | "loadingIndicator" | "loadingPosition" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -45,6 +45,7 @@ export const VirtualizedTokenList = ({ account, tokens, scrollElementRef, chainI
45
45
  if (isLoading) {
46
46
  return (_jsx(List, { disablePadding: true, children: Array.from({ length: 3 }).map((_, index) => (_jsx(TokenListItemSkeleton, {}, index))) }));
47
47
  }
48
+ console.log(getVirtualItems().length);
48
49
  return (_jsx(List, { style: { height: getTotalSize() }, disablePadding: true, children: getVirtualItems().map((item) => {
49
50
  const currentToken = tokens[item.index];
50
51
  const previousToken = tokens[item.index - 1];
@@ -1 +1 @@
1
- {"version":3,"file":"VirtualizedTokenList.js","sourceRoot":"","sources":["../../../../src/components/TokenList/VirtualizedTokenList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAGzE,MAAM,CAAC,MAAM,oBAAoB,GAAkC,CAAC,EAClE,OAAO,EACP,MAAM,EACN,gBAAgB,EAChB,OAAO,EACP,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,OAAO,GACR,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,CAAA;IAE9B,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,cAAc,CAAC;QACtE,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,EAAE;QACd,gBAAgB,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,OAAO;QAChD,YAAY,EAAE,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EAAE,CAAC;wBAC3B,OAAO,CAAC,CAAC,eAAe,CAAC,CAAA;oBAC3B,CAAC;oBACD,IAAI,2BAA2B,EAAE,CAAC;wBAChC,OAAO,CAAC,CAAC,oBAAoB,CAAC,CAAA;oBAChC,CAAC;oBACD,IAAI,2BAA2B,EAAE,CAAC;wBAChC,OAAO,CAAC,CAAC,gBAAgB,CAAC,CAAA;oBAC5B,CAAC;oBACD,OAAO,IAAI,CAAA;gBACb,CAAC,CAAC,EAAE;gBACN,CAAC,CAAC,IAAI,CAAA;YAER,OAAO,CACL,KAAC,aAAa,IAEZ,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,gBAAgB,EAClC,cAAc,EAAE,OAAO,CAAC,OAAO,EAC/B,cAAc,EACZ,mBAAmB,CAAC,CAAC,CAAC,CACpB,KAAC,UAAU,IACT,EAAE,EAAE;wBACF,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,UAAU,EAAE,MAAM;wBAClB,EAAE,EAAE,GAAG;wBACP,EAAE,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAChC,EAAE,EAAE,CAAC;qBACN,YAEA,mBAAmB,GACT,CACd,CAAC,CAAC,CAAC,IAAI,IAtBL,IAAI,CAAC,GAAG,CAwBb,CACH,CAAA;QACH,CAAC,CAAC,GACG,CACR,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"VirtualizedTokenList.js","sourceRoot":"","sources":["../../../../src/components/TokenList/VirtualizedTokenList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAExD,OAAO,EAAE,SAAS,E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AC/B,cAAc,EACZ,mBAAmB,CAAC,CAAC,CAAC,CACpB,KAAC,UAAU,IACT,EAAE,EAAE;wBACF,QAAQ,EAAE,EAAE;wBACZ,UAAU,EAAE,GAAG;wBACf,UAAU,EAAE,MAAM;wBAClB,EAAE,EAAE,GAAG;wBACP,EAAE,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAChC,EAAE,EAAE,CAAC;qBACN,YAEA,mBAAmB,GACT,CACd,CAAC,CAAC,CAAC,IAAI,IAtBL,IAAI,CAAC,GAAG,CAwBb,CACH,CAAA;QACH,CAAC,CAAC,GACG,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +1,2 @@
1
1
  export declare const name = "@openocean.finance/widget";
2
- export declare const version = "1.0.45";
2
+ export declare const version = "1.0.46";
@@ -1,3 +1,3 @@
1
1
  export const name = '@openocean.finance/widget';
2
- export const version = '1.0.45';
2
+ export const version = '1.0.46';
3
3
  //# sourceMappingURL=version.js.map
@@ -16,4 +16,7 @@ export declare class LifiAdapter extends BaseSwapAdapter {
16
16
  amount: string | number;
17
17
  }) => Promise<string>, sendTransaction?: WalletAdapterProps['sendTransaction'], connection?: Connection): Promise<NormalizedTxResponse>;
18
18
  getTransactionStatus(p: NormalizedTxResponse): Promise<SwapStatus>;
19
+ private createPsbtOptions;
20
+ private convertHexToBase64;
21
+ private extractSignedPsbt;
19
22
  }
@@ -1,13 +1,14 @@
1
1
  import { createConfig, getQuote, getStatus } from '@lifi/sdk';
2
2
  import { Transaction, VersionedTransaction } from '@solana/web3.js';
3
3
  import { formatUnits } from 'viem';
4
+ import * as bitcoin from 'bitcoinjs-lib';
4
5
  import { CROSS_CHAIN_FEE_RECEIVER, ZERO_ADDRESS, MAINNET_NETWORKS } from '../constants/index.js';
5
6
  import { BaseSwapAdapter, NOT_SUPPORTED_CHAINS_PRICE_SERVICE, NonEvmChain, } from './BaseSwapAdapter.js';
6
7
  export class LifiAdapter extends BaseSwapAdapter {
7
8
  constructor() {
8
9
  super();
9
10
  createConfig({
10
- integrator: 'kyberswap',
11
+ integrator: 'openocean',
11
12
  });
12
13
  }
13
14
  getName() {
@@ -17,29 +18,49 @@ export class LifiAdapter extends BaseSwapAdapter {
17
18
  return 'https://storage.googleapis.com/ks-setting-1d682dca/aed3a971-48be-4c3c-9597-5ab78073fbf11745552578218.png';
18
19
  }
19
20
  getSupportedChains() {
20
- return [NonEvmChain.Solana, ...MAINNET_NETWORKS];
21
+ return [NonEvmChain.Solana, NonEvmChain.Bitcoin, ...MAINNET_NETWORKS];
21
22
  }
22
23
  getSupportedTokens(_sourceChain, _destChain) {
23
24
  return [];
24
25
  }
25
26
  async getQuote(params) {
26
- const r = await getQuote({
27
- fromChain: params.fromChain === 1151111081099710 ? 'SOL' : +params.fromChain, // Arbitrum
28
- fromToken: params.fromChain === 1151111081099710
29
- ? params.fromToken.id
30
- : params.fromToken.isNative
31
- ? ZERO_ADDRESS
32
- : params.fromToken.wrapped.address,
27
+ let fromToken = params.fromToken.isNative
28
+ ? ZERO_ADDRESS
29
+ : params.fromToken.address;
30
+ if (params.fromChain === 20000000000001 || params.fromChain === 1151111081099710) {
31
+ fromToken = params.fromToken.address;
32
+ }
33
+ let fromChain = params.fromChain === 1151111081099710 ? 'SOL' : +params.fromChain;
34
+ if (params.fromChain === 20000000000001) {
35
+ fromChain = 'BTC';
36
+ }
37
+ let toToken = params.toToken.isNative
38
+ ? ZERO_ADDRESS
39
+ : params.toToken.address;
40
+ if (params.toChain === 20000000000001 || params.toChain === 1151111081099710) {
41
+ toToken = params.toToken.address;
42
+ }
43
+ let toChain = params.toChain === 1151111081099710 ? 'SOL' : +params.toChain;
44
+ if (params.toChain === 20000000000001) {
45
+ toChain = 'BTC';
46
+ }
47
+ let quoteParams = {
48
+ fromChain, // Arbitrum
49
+ fromToken,
33
50
  fromAmount: params.amount,
34
51
  fromAddress: params.sender === ZERO_ADDRESS ? CROSS_CHAIN_FEE_RECEIVER : params.sender,
35
- toChain: params.toChain === 1151111081099710 ? 'SOL' : +params.toChain,
36
- toToken: params.toChain === 1151111081099710
37
- ? params.toToken.id
38
- : params.toToken.isNative
39
- ? ZERO_ADDRESS
40
- : params.toToken.wrapped.address,
52
+ toChain,
53
+ toToken,
41
54
  toAddress: params.recipient,
42
55
  fee: params.feeBps / 10000,
56
+ };
57
+ const r = await getQuote(quoteParams).catch(error => {
58
+ if (error && error.cause && error.cause.responseBody && error.cause.responseBody.message) {
59
+ throw new Error(error.cause.responseBody.message);
60
+ }
61
+ else {
62
+ throw error;
63
+ }
43
64
  });
44
65
  //const inputUsd = Number(r.estimate.fromAmountUSD || '0')
45
66
  //const outputUsd = Number(r.estimate.toAmountUSD || '0')
@@ -51,6 +72,8 @@ export class LifiAdapter extends BaseSwapAdapter {
51
72
  const outputUsd = NOT_SUPPORTED_CHAINS_PRICE_SERVICE.includes(params.toChain)
52
73
  ? Number(r.estimate.toAmountUSD)
53
74
  : params.tokenOutUsd * +formattedOutputAmount;
75
+ const protocolFee = r.estimate.feeCosts?.reduce((acc, curr) => acc + Number(curr.amountUSD), 0) || 0;
76
+ const gasFeeUsd = r.estimate.gasCosts.reduce((acc, curr) => acc + Number(curr.amountUSD), 0);
54
77
  return {
55
78
  quoteParams: params,
56
79
  outputAmount: BigInt(r.estimate.toAmount),
@@ -59,17 +82,175 @@ export class LifiAdapter extends BaseSwapAdapter {
59
82
  outputUsd,
60
83
  priceImpact: !inputUsd || !outputUsd ? NaN : ((inputUsd - outputUsd) * 100) / inputUsd,
61
84
  rate: +formattedOutputAmount / +formattedInputAmount,
62
- gasFeeUsd: 0,
85
+ gasFeeUsd,
63
86
  timeEstimate: r.estimate.executionDuration,
64
87
  contractAddress: r.transactionRequest?.to || r.estimate.approvalAddress,
65
88
  rawQuote: r,
66
- protocolFee: 0,
89
+ protocolFee,
67
90
  platformFeePercent: (params.feeBps * 100) / 10000,
68
91
  };
69
92
  }
70
93
  async executeSwap({ quote }, walletClient, _nearWalletClient, _sendBtcFn, sendTransaction, connection) {
94
+ if (quote.quoteParams.fromChain === NonEvmChain.Bitcoin) {
95
+ // Get user address
96
+ const account = walletClient.account?.address || quote.quoteParams.sender;
97
+ if (!account)
98
+ throw new Error('WalletClient account is not defined');
99
+ const transactionRequest = quote.rawQuote.transactionRequest;
100
+ if (!transactionRequest.data) {
101
+ throw new Error('TransactionRequest data is missing');
102
+ }
103
+ // Parse PSBT (may be base64 or hex)
104
+ let psbt;
105
+ try {
106
+ // Try to parse as base64
107
+ psbt = bitcoin.Psbt.fromBase64(transactionRequest.data, { network: bitcoin.networks.bitcoin });
108
+ }
109
+ catch {
110
+ try {
111
+ // Try to parse as hex
112
+ psbt = bitcoin.Psbt.fromHex(transactionRequest.data, { network: bitcoin.networks.bitcoin });
113
+ }
114
+ catch (error) {
115
+ throw new Error(`Failed to parse PSBT: ${error}`);
116
+ }
117
+ }
118
+ // Detect wallet type
119
+ const anyWindow = typeof window !== 'undefined' ? window : undefined;
120
+ let connectorName;
121
+ if (anyWindow?.okxwallet?.bitcoin)
122
+ connectorName = 'OKX Wallet';
123
+ else if (anyWindow?.unisat)
124
+ connectorName = 'Unisat';
125
+ else if (anyWindow?.BitcoinProvider)
126
+ connectorName = 'Xverse';
127
+ else if (anyWindow?.phantom?.bitcoin)
128
+ connectorName = 'Phantom';
129
+ else
130
+ throw new Error('No Bitcoin wallet found');
131
+ // Extract inputs to sign from PSBT
132
+ const inputsToSign = [];
133
+ for (let index = 0; index < psbt.data.inputs.length; index++) {
134
+ const input = psbt.data.inputs[index];
135
+ let inputAddress;
136
+ if (input.witnessUtxo) {
137
+ // Extract address from witnessUtxo
138
+ inputAddress = bitcoin.address.fromOutputScript(input.witnessUtxo.script, bitcoin.networks.bitcoin);
139
+ }
140
+ else if (input.nonWitnessUtxo) {
141
+ // Extract address from nonWitnessUtxo (needs output index, simplified here)
142
+ // Usually needs to be extracted from transaction, using account address as default here
143
+ inputAddress = account.toString();
144
+ }
145
+ else {
146
+ inputAddress = account.toString();
147
+ }
148
+ // Only add inputs that belong to the current account
149
+ if (inputAddress === account.toString()) {
150
+ inputsToSign.push({
151
+ index,
152
+ address: inputAddress,
153
+ });
154
+ }
155
+ }
156
+ if (inputsToSign.length === 0) {
157
+ throw new Error('No inputs found to sign');
158
+ }
159
+ const psbtBase64 = psbt.toBase64();
160
+ const psbtHex = psbt.toHex();
161
+ let signedPsbtBase64;
162
+ // Sign PSBT using wallet
163
+ switch (connectorName) {
164
+ case 'OKX Wallet': {
165
+ const signOptions = {
166
+ autoFinalized: false,
167
+ toSignInputs: inputsToSign.map((item) => ({
168
+ index: item.index,
169
+ address: item.address,
170
+ sighashTypes: [1], // SIGHASH_ALL
171
+ })),
172
+ };
173
+ const response = await anyWindow.okxwallet.bitcoin.signPsbt(psbtHex, signOptions);
174
+ signedPsbtBase64 = this.convertHexToBase64(this.extractSignedPsbt(response) || '');
175
+ break;
176
+ }
177
+ case 'Unisat': {
178
+ const signOptions = {
179
+ autoFinalized: false,
180
+ toSignInputs: inputsToSign.map((item) => ({
181
+ index: item.index,
182
+ address: item.address,
183
+ sighashTypes: [1],
184
+ })),
185
+ };
186
+ const response = await anyWindow.unisat.signPsbt(psbtHex, signOptions);
187
+ signedPsbtBase64 = this.convertHexToBase64(this.extractSignedPsbt(response) || '');
188
+ break;
189
+ }
190
+ case 'Xverse': {
191
+ const response = await anyWindow.BitcoinProvider.request('signPsbt', {
192
+ psbt: psbtHex,
193
+ finalize: false,
194
+ toSignInputs: inputsToSign.map((item) => ({
195
+ index: item.index,
196
+ address: item.address,
197
+ })),
198
+ });
199
+ signedPsbtBase64 = this.extractSignedPsbt(response) || '';
200
+ break;
201
+ }
202
+ case 'Phantom': {
203
+ const phantom = anyWindow.phantom.bitcoin;
204
+ if (!phantom?.signPSBT)
205
+ throw new Error('Phantom wallet does not support signPSBT');
206
+ const response = await phantom.signPSBT(psbtBase64, {
207
+ autoFinalize: false,
208
+ inputsToSign: inputsToSign.map((item) => ({
209
+ index: item.index,
210
+ address: item.address,
211
+ sighashTypes: [1],
212
+ })),
213
+ });
214
+ signedPsbtBase64 = this.extractSignedPsbt(response) || '';
215
+ break;
216
+ }
217
+ default:
218
+ throw new Error(`Unsupported wallet: ${connectorName}`);
219
+ }
220
+ if (!signedPsbtBase64) {
221
+ throw new Error('Failed to sign PSBT');
222
+ }
223
+ // Finalize PSBT and extract transaction
224
+ const signedPsbt = bitcoin.Psbt.fromBase64(signedPsbtBase64, { network: bitcoin.networks.bitcoin });
225
+ signedPsbt.finalizeAllInputs();
226
+ const rawTx = signedPsbt.extractTransaction().toHex();
227
+ // Broadcast transaction to mempool.space
228
+ const txHash = await fetch('https://mempool.space/api/tx', {
229
+ method: 'POST',
230
+ headers: {
231
+ 'Content-Type': 'text/plain',
232
+ },
233
+ body: rawTx,
234
+ }).then((r) => r.text());
235
+ if (!txHash || txHash.startsWith('<')) {
236
+ throw new Error(`Failed to broadcast transaction: ${txHash}`);
237
+ }
238
+ return {
239
+ sender: quote.quoteParams.sender,
240
+ id: txHash,
241
+ sourceTxHash: txHash,
242
+ adapter: this.getName(),
243
+ sourceChain: quote.quoteParams.fromChain,
244
+ targetChain: quote.quoteParams.toChain,
245
+ inputAmount: quote.quoteParams.amount,
246
+ outputAmount: quote.outputAmount.toString(),
247
+ sourceToken: quote.quoteParams.fromToken,
248
+ targetToken: quote.quoteParams.toToken,
249
+ timestamp: new Date().getTime(),
250
+ };
251
+ }
71
252
  if (quote.quoteParams.fromChain === NonEvmChain.Solana) {
72
- if (!connection || !sendTransaction)
253
+ if (!walletClient.sendTransaction)
73
254
  throw new Error('Connection is not defined for Solana swap');
74
255
  const txBuffer = Buffer.from(quote.rawQuote.transactionRequest.data, 'base64');
75
256
  // Try to deserialize as VersionedTransaction first
@@ -90,32 +271,35 @@ export class LifiAdapter extends BaseSwapAdapter {
90
271
  }
91
272
  console.log('Transaction parsed successfully:', transaction);
92
273
  // Send through wallet adapter
93
- const signature = await sendTransaction(transaction, connection);
94
- try {
95
- const latestBlockhash = await connection.getLatestBlockhash();
96
- // Wait for confirmation with timeout
97
- const confirmation = await Promise.race([
98
- connection.confirmTransaction({
99
- signature,
100
- blockhash: latestBlockhash.blockhash,
101
- lastValidBlockHeight: latestBlockhash.lastValidBlockHeight,
102
- }, 'confirmed'),
103
- new Promise((_, reject) => setTimeout(() => reject(new Error('Transaction confirmation timeout')), 60000)),
104
- ]);
105
- const confirmationResult = confirmation;
106
- if (confirmationResult.value.err) {
107
- throw new Error(`Transaction failed: ${JSON.stringify(confirmationResult.value.err)}`);
108
- }
109
- console.log('Transaction confirmed successfully!');
110
- }
111
- catch (confirmError) {
112
- console.error('Transaction confirmation failed:', confirmError);
113
- // Check if transaction actually succeeded despite timeout
114
- const txStatus = await connection.getSignatureStatus(signature);
115
- if (txStatus?.value?.confirmationStatus !== 'confirmed') {
116
- throw new Error(`Transaction was not confirmed: ${confirmError.message}`);
117
- }
118
- }
274
+ const tx = await walletClient.sendTransaction(transaction);
275
+ const signature = tx.signature;
276
+ // try {
277
+ // const latestBlockhash = await connection.getLatestBlockhash()
278
+ // // Wait for confirmation with timeout
279
+ // const confirmation = await Promise.race([
280
+ // connection.confirmTransaction(
281
+ // {
282
+ // signature,
283
+ // blockhash: latestBlockhash.blockhash,
284
+ // lastValidBlockHeight: latestBlockhash.lastValidBlockHeight,
285
+ // },
286
+ // 'confirmed',
287
+ // ),
288
+ // new Promise((_, reject) => setTimeout(() => reject(new Error('Transaction confirmation timeout')), 60000)),
289
+ // ])
290
+ // const confirmationResult = confirmation as { value: { err: any } }
291
+ // if (confirmationResult.value.err) {
292
+ // throw new Error(`Transaction failed: ${JSON.stringify(confirmationResult.value.err)}`)
293
+ // }
294
+ // console.log('Transaction confirmed successfully!')
295
+ // } catch (confirmError) {
296
+ // console.error('Transaction confirmation failed:', confirmError)
297
+ // // Check if transaction actually succeeded despite timeout
298
+ // const txStatus = await connection.getSignatureStatus(signature)
299
+ // if (txStatus?.value?.confirmationStatus !== 'confirmed') {
300
+ // throw new Error(`Transaction was not confirmed: ${confirmError.message}`)
301
+ // }
302
+ // }
119
303
  return {
120
304
  sender: quote.quoteParams.sender,
121
305
  id: signature,
@@ -166,5 +350,47 @@ export class LifiAdapter extends BaseSwapAdapter {
166
350
  status: res.status === 'DONE' ? 'Success' : res.status === 'FAILED' ? 'Failed' : 'Processing',
167
351
  };
168
352
  }
353
+ // Helper function: Create PSBT signature options
354
+ createPsbtOptions(psbt, request) {
355
+ const psbtSignOptions = {
356
+ autoFinalized: false,
357
+ };
358
+ if (request.signature) {
359
+ const toSignInputs = [];
360
+ for (const signature of request.signature) {
361
+ if (signature.signingIndexes?.length) {
362
+ for (const index of signature.signingIndexes) {
363
+ toSignInputs.push({
364
+ address: signature.address,
365
+ disableAddressValidation: signature.disableAddressValidation,
366
+ index,
367
+ sighashTypes: request.allowedSighash,
368
+ });
369
+ }
370
+ }
371
+ }
372
+ psbtSignOptions.toSignInputs = toSignInputs;
373
+ }
374
+ return psbtSignOptions;
375
+ }
376
+ // Helper function: Convert hex to base64
377
+ convertHexToBase64(hexString) {
378
+ try {
379
+ const buffer = Buffer.from(hexString, 'hex');
380
+ return buffer.toString('base64');
381
+ }
382
+ catch (error) {
383
+ // If conversion fails, it may already be base64
384
+ return hexString;
385
+ }
386
+ }
387
+ // Helper function: Extract signed PSBT from wallet response
388
+ extractSignedPsbt(response) {
389
+ if (!response)
390
+ return null;
391
+ if (typeof response === 'string')
392
+ return response;
393
+ return response.signedPsbtHex || response.signedPsbtBase64 || response.signedPsbt || null;
394
+ }
169
395
  }
170
396
  //# sourceMappingURL=LifiAdapter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LifiAdapter.js","sourceRoot":"","sources":["../../../../src/cross/adapters/LifiAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE7D,OAAO,EAAc,WAAW,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAC/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wapAdapter.js';
2
2
  export * from './RelayAdapter.js';
3
3
  export * from './MayanAdapter.js';
4
+ export * from './LifiAdapter.js';
4
5
  export * from './NearIntentsAdapter.js';
@@ -5,7 +5,7 @@ export * from './RelayAdapter.js';
5
5
  export * from './MayanAdapter.js';
6
6
  // export * from './SymbiosisAdapter.js'
7
7
  // export * from './DebridgeAdapter.js'
8
- // export * from './LifiAdapter.js'
8
+ export * from './LifiAdapter.js';
9
9
  // export * from './KyberSwapAdapter.js'
10
10
  export * from './NearIntentsAdapter.js';
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cross/adapters/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,qCAAqC;AACrC,cAAc,mBAAmB,CAAA;AACjC,wCAAwC;AACxC,cAAc,mBAAmB,CAAA;AACjC,wCAAwC;AACxC,uCAAuC;AACvC,mCAAmC;AACnC,wCAAwC;AACxC,cAAc,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/cross/adapters/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,qCAAqC;AACrC,cAAc,mBAAmB,CAAA;AACjC,wCAAwC;AACxC,cAAc,mBAAmB,CAAA;AACjC,wCAAwC;AACxC,uCAAuC;AACvC,cAAc,kBAAkB,CAAA;AAChC,wCAAwC;AACxC,cAAc,yBAAyB,CAAA"}