@skip-go/widget 2.3.6 → 2.3.8

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.
@@ -1,4 +1,4 @@
1
- import { Asset } from '@skip-go/core';
1
+ import { Asset } from '@skip-go/client';
2
2
  import { ReactNode } from 'react';
3
3
  interface AssetsContext {
4
4
  assets: Record<string, Asset[]>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { SkipRouterOptions } from '@skip-go/core';
2
+ import { SkipRouterOptions } from '@skip-go/client';
3
3
  import { DefaultRouteConfig } from '../hooks/use-swap-widget';
4
4
  import { RouteConfig } from '../hooks/use-route';
5
5
  import { MinimalWallet } from '../hooks/use-make-wallets';
@@ -1,4 +1,4 @@
1
- import { SkipRouter, SkipRouterOptions } from '@skip-go/core';
1
+ import { SkipRouter, SkipRouterOptions } from '@skip-go/client';
2
2
  import { ReactNode } from 'react';
3
3
  import { MinimalWallet } from '../hooks/use-make-wallets';
4
4
  export declare const SkipContext: import("react").Context<{
@@ -1,4 +1,4 @@
1
- import { RouteResponse } from '@skip-go/core';
1
+ import { RouteResponse } from '@skip-go/client';
2
2
  export interface TxStatus {
3
3
  chainId: string;
4
4
  txHash: string;
@@ -1,4 +1,4 @@
1
- import { Asset } from '@skip-go/core';
1
+ import { Asset } from '@skip-go/client';
2
2
  import { MouseEventHandler } from 'react';
3
3
  import { Chain } from '../hooks/use-chains';
4
4
  interface Props {
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as ScrollArea from '@radix-ui/react-scroll-area';
3
- import { Asset } from '@skip-go/core';
3
+ import { Asset } from '@skip-go/client';
4
4
  interface Props {
5
5
  assets?: Asset[];
6
6
  balances: Record<string, string>;
@@ -1,4 +1,4 @@
1
- import { Asset } from '@skip-go/core';
1
+ import { Asset } from '@skip-go/client';
2
2
  interface Props {
3
3
  asset?: Asset;
4
4
  assets?: Asset[];
@@ -1,4 +1,4 @@
1
- import { Asset } from '@skip-go/core';
1
+ import { Asset } from '@skip-go/client';
2
2
  import { ReactNode } from 'react';
3
3
  export interface Props {
4
4
  srcAsset: Asset;
@@ -1,4 +1,4 @@
1
- import { RouteResponse } from '@skip-go/core';
1
+ import { RouteResponse } from '@skip-go/client';
2
2
  import { Dispatch, SetStateAction } from 'react';
3
3
  import { SwapAction, TransferAction } from './make-actions';
4
4
  import { ChainIDWithAction } from './make-chain-ids-with-actions';
@@ -1,4 +1,4 @@
1
- import { Chain } from '@skip-go/core';
1
+ import { Chain } from '@skip-go/client';
2
2
  import { ChainAddresses, SetChainAddressesParam } from './types';
3
3
  export declare const SetAddressDialog: ({ open, onOpen, chain, index, signRequired, isDestination, chainAddresses, setChainAddresses, }: {
4
4
  open: boolean;
@@ -1,4 +1,4 @@
1
- import { RouteResponse } from '@skip-go/core';
1
+ import { RouteResponse } from '@skip-go/client';
2
2
  import { useDisclosureKey } from '../../store/disclosures';
3
3
  export interface Wallet {
4
4
  walletName: string;
@@ -1,4 +1,4 @@
1
- import { BridgeType, RouteResponse } from '@skip-go/core';
1
+ import { BridgeType, RouteResponse } from '@skip-go/client';
2
2
  export interface TransferAction {
3
3
  type: 'TRANSFER';
4
4
  denomIn: string;
@@ -1,4 +1,4 @@
1
- import { RouteResponse } from '@skip-go/core';
1
+ import { RouteResponse } from '@skip-go/client';
2
2
  import { Action, SwapAction, TransferAction } from './make-actions';
3
3
  export interface ChainIDWithAction {
4
4
  chainID: string;
@@ -8,7 +8,7 @@ export declare const makeStepState: (props: Props) => {
8
8
  isSuccess: boolean;
9
9
  isLoading: boolean;
10
10
  isError: boolean;
11
- state: import("@skip-go/core/dist/types").TransferState | undefined;
11
+ state: import("@skip-go/client/dist/types").TransferState | undefined;
12
12
  explorerLink: {
13
13
  link: string;
14
14
  shorthand: string;
@@ -1,4 +1,4 @@
1
- import { BridgeType, RouteResponse } from '@skip-go/core';
1
+ import { BridgeType, RouteResponse } from '@skip-go/client';
2
2
  import { SwapWidgetStore } from '../hooks/use-swap-widget';
3
3
  type Props = SwapWidgetStore & {
4
4
  amountOut: string;
@@ -1,4 +1,4 @@
1
- import { RouteResponse } from '@skip-go/core';
1
+ import { RouteResponse } from '@skip-go/client';
2
2
  export type ActionType = 'NONE' | 'TRANSFER' | 'SWAP';
3
3
  interface Props {
4
4
  isLoading?: boolean;
@@ -1,3 +1,3 @@
1
- import { RouteResponse } from '@skip-go/core';
1
+ import { RouteResponse } from '@skip-go/client';
2
2
  export declare const isCCTPLedgerBrokenInOperation: (route: RouteResponse) => boolean;
3
3
  export declare const isEthermintLedgerInOperation: (route: RouteResponse) => boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/widget",
3
3
  "description": "Swap widget",
4
- "version": "2.3.6",
4
+ "version": "2.3.8",
5
5
  "repository": "https://github.com/skip-mev/widget",
6
6
  "type": "module",
7
7
  "exports": {
@@ -62,7 +62,7 @@
62
62
  "@radix-ui/react-scroll-area": "^1.0.5",
63
63
  "@radix-ui/react-switch": "^1.0.3",
64
64
  "@radix-ui/react-tooltip": "^1.0.7",
65
- "@skip-go/core": "0.4.4",
65
+ "@skip-go/client": "0.5.1",
66
66
  "@solana/spl-token": "^0.4.6",
67
67
  "@solana/wallet-adapter-react": "^0.15.35",
68
68
  "@solana/wallet-adapter-wallets": "^0.19.32",