@skip-go/widget 1.2.1-alpha.1 → 1.2.1-alpha.2
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/build/index.es.js +16 -13
- package/build/index.es.js.map +1 -1
- package/build/lib/cosmos-kit.d.ts +1 -1
- package/build/lib/solana-adapter.d.ts +1 -2
- package/package.json +2 -1
package/build/index.es.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
+
import { Buffer } from 'buffer';
|
|
1
2
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
3
|
import { ChainProvider, useManager, useWalletClient, useWallet as useWallet$1 } from '@cosmos-kit/react';
|
|
3
|
-
import { wallets as wallets$2 } from '@cosmos-kit/cosmostation-extension';
|
|
4
|
-
import { wallets as wallets$1 } from '@cosmos-kit/keplr-extension';
|
|
5
|
-
import { wallets as wallets$3 } from '@cosmos-kit/leap-extension';
|
|
6
|
-
import { wallets as wallets$4 } from '@cosmos-kit/okxwallet';
|
|
7
|
-
import { wallets as wallets$5 } from '@cosmos-kit/station';
|
|
8
|
-
import { wallets as wallets$6 } from '@cosmos-kit/vectis';
|
|
9
4
|
import { createConfig, WagmiProvider, useAccount as useAccount$1, useDisconnect, useConnect, useSwitchChain } from 'wagmi';
|
|
10
5
|
import { defineChain, http, createPublicClient, erc20Abi, formatUnits, isAddress } from 'viem';
|
|
11
6
|
import { arbitrum, avalanche, base, bsc, celo, fantom, filecoin, kava, linea, mainnet, manta, moonbeam, optimism, polygon, polygonMumbai, sepolia, avalancheFuji, baseSepolia, optimismSepolia, arbitrumSepolia, blast, blastSepolia, opBNB } from 'wagmi/chains';
|
|
12
7
|
import { QueryClient, QueryClientProvider, useQuery, useMutation } from '@tanstack/react-query';
|
|
13
8
|
import { WalletProvider as WalletProvider$1, useWallet } from '@solana/wallet-adapter-react';
|
|
14
|
-
import { PhantomWalletAdapter, SolflareWalletAdapter, CoinbaseWalletAdapter, TrustWalletAdapter, LedgerWalletAdapter } from '@solana/wallet-adapter-wallets';
|
|
15
9
|
import { SkipRouter } from '@skip-go/core';
|
|
16
10
|
import { getWalletClient } from '@wagmi/core';
|
|
17
11
|
import { createContext, useContext, useMemo, useCallback, useRef, useState, useEffect, forwardRef, Fragment as Fragment$1 } from 'react';
|
|
@@ -69,13 +63,19 @@ function getAssetLists() {
|
|
|
69
63
|
}));
|
|
70
64
|
}
|
|
71
65
|
|
|
66
|
+
const { wallets: keplr } = await import('@cosmos-kit/keplr-extension');
|
|
67
|
+
const { wallets: leap } = await import('@cosmos-kit/leap-extension');
|
|
68
|
+
const { wallets: cosmostation } = await import('@cosmos-kit/cosmostation-extension');
|
|
69
|
+
const { wallets: okxwallet } = await import('@cosmos-kit/okxwallet');
|
|
70
|
+
const { wallets: station } = await import('@cosmos-kit/station');
|
|
71
|
+
const { wallets: vectis } = await import('@cosmos-kit/vectis');
|
|
72
72
|
const wallets = [
|
|
73
|
-
...
|
|
74
|
-
...
|
|
75
|
-
...
|
|
76
|
-
...
|
|
77
|
-
...
|
|
78
|
-
...
|
|
73
|
+
...keplr,
|
|
74
|
+
...cosmostation,
|
|
75
|
+
...leap,
|
|
76
|
+
...okxwallet,
|
|
77
|
+
...station,
|
|
78
|
+
...vectis,
|
|
79
79
|
];
|
|
80
80
|
|
|
81
81
|
const CosmosProvider = ({ children }) => {
|
|
@@ -198,6 +198,7 @@ const EVMProvider = ({ children }) => {
|
|
|
198
198
|
return (jsx(WagmiProvider, { config: config, reconnectOnMount: true, children: jsx(QueryClientProvider, { client: queryClient, children: children }, 'skip-widget') }, 'skip-widget-wagmi-provider'));
|
|
199
199
|
};
|
|
200
200
|
|
|
201
|
+
const { CoinbaseWalletAdapter, LedgerWalletAdapter, PhantomWalletAdapter, SolflareWalletAdapter, TrustWalletAdapter, } = await import('@solana/wallet-adapter-wallets');
|
|
201
202
|
const solanaWallets = [
|
|
202
203
|
new PhantomWalletAdapter(),
|
|
203
204
|
new SolflareWalletAdapter(),
|
|
@@ -5197,5 +5198,7 @@ const initializeSwapWidget = () => {
|
|
|
5197
5198
|
}
|
|
5198
5199
|
};
|
|
5199
5200
|
|
|
5201
|
+
globalThis.Buffer = Buffer;
|
|
5202
|
+
|
|
5200
5203
|
export { SwapWidget, SwapWidgetProvider, initializeSwapWidget, useAssets, useChainByID, useChains };
|
|
5201
5204
|
//# sourceMappingURL=index.es.js.map
|