@skip-go/widget 1.0.0 → 1.1.1

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Skip Go Widget
2
2
 
3
- The `@skip-go/widget` package is an npm package providing a React component for a full swap interface using the [Skip API](https://skip.money/).
3
+ The `@skip-go/widget` package is an npm package providing a React component for a full swap interface using the [Skip Go API](https://skip.build/).
4
4
 
5
5
  ## Installation
6
6
 
@@ -110,7 +110,7 @@ The `SwapWidgetProvider` component accepts the following prop:
110
110
  };
111
111
  ```
112
112
 
113
- - `apiURL` (Optional): Custom API URL to override Skip API endpoint. Defaults to Skip proxied endpoints. Please reach out to us first if you want to be whitelisted.
113
+ - `apiURL` (Optional): Custom API URL to override Skip Go API endpoint. Defaults to Skip proxied endpoints. Please reach out to us first if you want to be whitelisted.
114
114
 
115
115
  By following these steps, you can easily integrate the Skip Go Widget into your React application and customize it to meet your specific needs.
116
116
 
@@ -2,4 +2,4 @@ export declare const endpointOptions: {
2
2
  getRpcEndpointForChain: (chainID: string) => Promise<string>;
3
3
  getRestEndpointForChain: (chainID: string) => Promise<string>;
4
4
  };
5
- export declare const apiURL = "https://ibc.fun/api/widget/skip";
5
+ export declare const apiURL = "https://go.skip.build/api/widget/skip";
package/build/index.es.js CHANGED
@@ -1019,7 +1019,7 @@ function WalletModalWithContext() {
1019
1019
  return (jsx(DialogContent, { children: jsx(WalletModal, { chainType: chainType, wallets: wallets, onClose: () => setIsOpen(false), chainID: chainID }) }));
1020
1020
  }
1021
1021
 
1022
- const appUrl = 'https://ibc.fun';
1022
+ const appUrl = 'https://go.skip.build';
1023
1023
  const endpointOptions = {
1024
1024
  getRpcEndpointForChain: async (chainID) => {
1025
1025
  return `${appUrl}/api/rpc/${chainID}`;
@@ -2433,7 +2433,7 @@ function useSwapWidget() {
2433
2433
  params.set('amount_out', amountOut);
2434
2434
  }
2435
2435
  return {
2436
- link: `https://ibc.fun?${params}`,
2436
+ link: `https://go.skip.build?${params}`,
2437
2437
  };
2438
2438
  }, [srcChain, srcAsset, dstChain, dstAsset, amountIn, amountOut]);
2439
2439
  const defaultSourceChain = defaultRoute === null || defaultRoute === void 0 ? void 0 : defaultRoute.srcChainID;
@@ -4620,7 +4620,7 @@ function SvgComponent(props) {
4620
4620
  }
4621
4621
 
4622
4622
  const CraftedBySkip = () => {
4623
- return (jsxs("div", { className: "w-full flex flex-row justify-center items-center space-x-0", children: [jsx("p", { className: "text-sm", children: "Crafted by" }), jsx("a", { href: "https://skip.money", target: "_blank", children: jsx(SvgComponent, { width: 80, height: "100%" }) })] }));
4623
+ return (jsxs("div", { className: "w-full flex flex-row justify-center items-center space-x-0", children: [jsx("p", { className: "text-sm", children: "Crafted by" }), jsx("a", { href: "https://skip.build", target: "_blank", children: jsx(SvgComponent, { width: 80, height: "100%" }) })] }));
4624
4624
  };
4625
4625
 
4626
4626
  const PreviewRoute = ({ route, disclosure, isAmountError, }) => {
@@ -4882,7 +4882,7 @@ const PreviewRoute = ({ route, disclosure, isAmountError, }) => {
4882
4882
  isPending: submitMutation.isPending,
4883
4883
  }, setShowLedgerWarning: setShowLedgerWarning, setIsAddressDialogOpen: (v) => setIndexIsSetAddressDialogOpen(v), isSetAddressDialogOpen: indexSetAddressDialogOpen === index, isExpanded: isExpanded, setIsExpanded: setIsExpanded, isOpen: isOpen, chainAddresses: chainAddresses, setChainAddresses: setChainAddresses }, `${index}-${chainID}`))) }), jsxs("div", { className: "flex-1 space-y-4", children: [(statusData === null || statusData === void 0 ? void 0 : statusData.isSuccess) && submitMutation.isSuccess ? (jsxs("div", { className: "flex flex-row items-center space-x-2 font-semibold", children: [jsx(CheckCircleIcon, { className: "h-8 w-8 text-green-500" }), jsxs("p", { children: [route.doesSwap &&
4884
4884
  `Successfully swapped ${(_b = (_a = getAsset(route.sourceAssetDenom, route.sourceAssetChainID)) === null || _a === void 0 ? void 0 : _a.recommendedSymbol) !== null && _b !== void 0 ? _b : route.sourceAssetDenom} for ${(_d = (_c = getAsset(route.destAssetDenom, route.destAssetChainID)) === null || _c === void 0 ? void 0 : _c.recommendedSymbol) !== null && _d !== void 0 ? _d : route.destAssetDenom}`, !route.doesSwap &&
4885
- `Successfully transfered ${(_f = (_e = getAsset(route.sourceAssetDenom, route.sourceAssetChainID)) === null || _e === void 0 ? void 0 : _e.recommendedSymbol) !== null && _f !== void 0 ? _f : route.sourceAssetDenom} from ${(_g = chains === null || chains === void 0 ? void 0 : chains.find((c) => c.chainID === route.sourceAssetChainID)) === null || _g === void 0 ? void 0 : _g.prettyName} to ${(_h = chains === null || chains === void 0 ? void 0 : chains.find((c) => c.chainID === route.destAssetChainID)) === null || _h === void 0 ? void 0 : _h.prettyName}`] })] })) : route.txsRequired === broadcastedTxs.length ? (jsxs("div", { className: "flex w-full items-center justify-center space-x-2 text-sm font-medium", children: [jsx(CheckCircleIcon, { className: "h-8 w-8 text-green-500" }), jsx("p", { className: "text-sm font-semibold", children: "You can safely navigate away from this page while your transaction is pending" })] })) : null, estimatedFinalityTime !== '' && (jsxs(Root, { type: "info", children: [jsxs(Trigger, { children: ["EVM bridging finality time is ", estimatedFinalityTime] }), jsx(Content, { children: jsxs("p", { children: ["This swap contains at least one EVM chain, so it might take longer. Read more about", ' ', jsx("a", { href: HREF_COMMON_FINALITY_TIMES, className: "underline", target: "_blank", rel: "noopener noreferrer", children: "common finality times" }), "."] }) })] })), _showLedgerWarning.cctp && (jsx(Root, { type: "warning", initialOpen: true, children: jsx(Content, { children: jsxs("p", { children: [jsx("b", { children: "WARNING: " }), "ibc.fun does not support signing with Ledger when transferring over CCTP to the Ethereum ecosystem. We're actively working on fixing this with the Noble/Circle teams. We apologize for the inconvenience"] }) }) })), _showLedgerWarning.ethermint && (jsx(Root, { type: "warning", initialOpen: true, children: jsx(Content, { children: jsxs("p", { children: [jsx("b", { children: "WARNING: " }), "ibc.fun does not support signing with Ledger on Ethermint-like chains (e.g. Injective, Dymension, EVMOS, etc...). We're actively working on fixing this with the Ledger team. We apologize for the inconvenience."] }) }) })), isAmountError &&
4885
+ `Successfully transfered ${(_f = (_e = getAsset(route.sourceAssetDenom, route.sourceAssetChainID)) === null || _e === void 0 ? void 0 : _e.recommendedSymbol) !== null && _f !== void 0 ? _f : route.sourceAssetDenom} from ${(_g = chains === null || chains === void 0 ? void 0 : chains.find((c) => c.chainID === route.sourceAssetChainID)) === null || _g === void 0 ? void 0 : _g.prettyName} to ${(_h = chains === null || chains === void 0 ? void 0 : chains.find((c) => c.chainID === route.destAssetChainID)) === null || _h === void 0 ? void 0 : _h.prettyName}`] })] })) : route.txsRequired === broadcastedTxs.length ? (jsxs("div", { className: "flex w-full items-center justify-center space-x-2 text-sm font-medium", children: [jsx(CheckCircleIcon, { className: "h-8 w-8 text-green-500" }), jsx("p", { className: "text-sm font-semibold", children: "You can safely navigate away from this page while your transaction is pending" })] })) : null, estimatedFinalityTime !== '' && (jsxs(Root, { type: "info", children: [jsxs(Trigger, { children: ["EVM bridging finality time is ", estimatedFinalityTime] }), jsx(Content, { children: jsxs("p", { children: ["This swap contains at least one EVM chain, so it might take longer. Read more about", ' ', jsx("a", { href: HREF_COMMON_FINALITY_TIMES, className: "underline", target: "_blank", rel: "noopener noreferrer", children: "common finality times" }), "."] }) })] })), _showLedgerWarning.cctp && (jsx(Root, { type: "warning", initialOpen: true, children: jsx(Content, { children: jsxs("p", { children: [jsx("b", { children: "WARNING: " }), "go.skip.build does not support signing with Ledger when transferring over CCTP to the Ethereum ecosystem. We're actively working on fixing this with the Noble/Circle teams. We apologize for the inconvenience"] }) }) })), _showLedgerWarning.ethermint && (jsx(Root, { type: "warning", initialOpen: true, children: jsx(Content, { children: jsxs("p", { children: [jsx("b", { children: "WARNING: " }), "go.skip.build does not support signing with Ledger on Ethermint-like chains (e.g. Injective, Dymension, EVMOS, etc...). We're actively working on fixing this with the Ledger team. We apologize for the inconvenience."] }) }) })), isAmountError &&
4886
4886
  !submitMutation.isPending &&
4887
4887
  !submitMutation.isSuccess && (jsx("p", { className: "text-balance text-center text-sm font-medium text-red-500", children: typeof isAmountError === 'string'
4888
4888
  ? isAmountError
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/widget",
3
3
  "description": "Swap widget",
4
- "version": "1.0.0",
4
+ "version": "1.1.1",
5
5
  "repository": "https://github.com/skip-mev/widget",
6
6
  "type": "module",
7
7
  "exports": {
@@ -61,7 +61,7 @@
61
61
  "@radix-ui/react-scroll-area": "^1.0.5",
62
62
  "@radix-ui/react-switch": "^1.0.3",
63
63
  "@radix-ui/react-tooltip": "^1.0.7",
64
- "@skip-go/core": "0.2.0",
64
+ "@skip-go/core": "0.3.1",
65
65
  "@solana/spl-token": "^0.4.6",
66
66
  "@solana/wallet-adapter-react": "^0.15.35",
67
67
  "@solana/wallet-adapter-wallets": "^0.19.32",