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