@skip-go/widget 2.2.3 → 2.2.5-alpha.0

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.
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { SkipRouterOptions } from '@skip-go/core';
3
3
  import { DefaultRouteConfig } from '../hooks/use-swap-widget';
4
4
  import { RouteConfig } from '../hooks/use-route';
5
+ import { MinimalWallet } from '../hooks/use-make-wallets';
5
6
  interface WalletProviderProps {
6
7
  children: React.ReactNode;
7
8
  }
@@ -16,6 +17,7 @@ export interface SkipAPIProviderProps {
16
17
  children: React.ReactNode;
17
18
  endpointOptions?: SkipRouterOptions['endpointOptions'];
18
19
  apiURL?: string;
20
+ makeDestinationWallets?: (chainID: string) => MinimalWallet[];
19
21
  }
20
22
  export declare const WalletProvider: React.FC<WalletProviderProps>;
21
23
  export declare const SkipAPIProvider: React.FC<SkipAPIProviderProps>;
@@ -1,12 +1,15 @@
1
1
  import { SkipRouter, SkipRouterOptions } from '@skip-go/core';
2
2
  import { ReactNode } from 'react';
3
+ import { MinimalWallet } from '../hooks/use-make-wallets';
3
4
  export declare const SkipContext: import("react").Context<{
4
5
  skipClient: SkipRouter;
5
6
  apiURL?: string | undefined;
6
7
  endpointOptions?: SkipRouterOptions['endpointOptions'];
8
+ makeDestinationWallets?: ((chainID: string) => MinimalWallet[]) | undefined;
7
9
  } | undefined>;
8
- export declare function SkipProvider({ children, apiURL, endpointOptions, }: {
10
+ export declare function SkipProvider({ children, apiURL, endpointOptions, makeDestinationWallets, }: {
9
11
  children: ReactNode;
10
12
  apiURL?: string;
11
13
  endpointOptions?: SkipRouterOptions['endpointOptions'];
14
+ makeDestinationWallets?: (chainID: string) => MinimalWallet[];
12
15
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { FeeAsset } from '@skip-go/core';
2
+ /**
3
+ * - deprio denoms start with 'ibc/' and 'factory/'
4
+ * - prio denoms start with 'u' or 'uu'
5
+ */
6
+ export declare function sortFeeAssets(a: FeeAsset, b: FeeAsset): 1 | -1 | 0;
@@ -0,0 +1,5 @@
1
+ export interface ChainExplorerResponse {
2
+ evm: boolean;
3
+ explorer: string;
4
+ }
5
+ export declare function getExplorerUrl(chainId: string): ((txHash: string) => string) | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/widget",
3
3
  "description": "Swap widget",
4
- "version": "2.2.3",
4
+ "version": "2.2.5-alpha.0",
5
5
  "repository": "https://github.com/skip-mev/widget",
6
6
  "type": "module",
7
7
  "exports": {