@matchain/matchid-sdk-react 0.1.24 → 0.1.26

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/dist/index.mjs CHANGED
@@ -2051,7 +2051,7 @@ function SOLIcon({
2051
2051
  y2: "32.8098",
2052
2052
  gradientUnits: "userSpaceOnUse",
2053
2053
  children: [
2054
- /* @__PURE__ */ jsx36("stop", { "stop-color": "#00FFA3" }),
2054
+ /* @__PURE__ */ jsx36("stop", { stopColor: "#00FFA3" }),
2055
2055
  /* @__PURE__ */ jsx36("stop", { offset: "1", stopColor: "#DC1FFF" })
2056
2056
  ]
2057
2057
  }
@@ -2067,7 +2067,7 @@ function SOLIcon({
2067
2067
  gradientUnits: "userSpaceOnUse",
2068
2068
  children: [
2069
2069
  /* @__PURE__ */ jsx36("stop", { stopColor: "#00FFA3" }),
2070
- /* @__PURE__ */ jsx36("stop", { offset: "1", "stop-color": "#DC1FFF" })
2070
+ /* @__PURE__ */ jsx36("stop", { offset: "1", stopColor: "#DC1FFF" })
2071
2071
  ]
2072
2072
  }
2073
2073
  ),
@@ -3225,9 +3225,36 @@ function useInit({
3225
3225
 
3226
3226
  // src/MatchContext.tsx
3227
3227
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
3228
+ import { WagmiProvider as WagmiProvider2 } from "wagmi";
3229
+ import { getDefaultConfig as getDefaultConfig2 } from "@rainbow-me/rainbowkit";
3230
+ import {
3231
+ bitgetWallet as bitgetWallet2,
3232
+ injectedWallet as injectedWallet2,
3233
+ metaMaskWallet as metaMaskWallet2,
3234
+ okxWallet as okxWallet2,
3235
+ walletConnectWallet as walletConnectWallet2
3236
+ } from "@rainbow-me/rainbowkit/wallets";
3237
+ import { arbitrum, base, bsc as bsc2, mainnet, optimism, polygon } from "wagmi/chains";
3228
3238
  import { jsx as jsx49 } from "react/jsx-runtime";
3229
3239
  var queryClient = new QueryClient();
3230
3240
  var MatchContext = createContext(void 0);
3241
+ var wagmiConfig2 = getDefaultConfig2({
3242
+ appName: "Match Mid",
3243
+ projectId: "9ac6ea7e07860f04616fb311b447dee9",
3244
+ wallets: [
3245
+ {
3246
+ groupName: "Recommended",
3247
+ wallets: [
3248
+ metaMaskWallet2,
3249
+ walletConnectWallet2,
3250
+ okxWallet2,
3251
+ bitgetWallet2,
3252
+ injectedWallet2
3253
+ ]
3254
+ }
3255
+ ],
3256
+ chains: [mainnet, polygon, optimism, arbitrum, base, bsc2]
3257
+ });
3231
3258
  var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) => {
3232
3259
  const { loadOverview, login, endpoints: realEndPoints } = useInit({
3233
3260
  theme,
@@ -3238,7 +3265,7 @@ var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) =>
3238
3265
  useWalletInit({
3239
3266
  refreshOverview: loadOverview
3240
3267
  });
3241
- return /* @__PURE__ */ jsx49(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx49(
3268
+ return /* @__PURE__ */ jsx49(WagmiProvider2, { config: wagmiConfig2, children: /* @__PURE__ */ jsx49(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx49(
3242
3269
  MatchContext.Provider,
3243
3270
  {
3244
3271
  value: {
@@ -3250,7 +3277,7 @@ var MatchProvider = ({ children, appid, events, theme = "light", endpoints }) =>
3250
3277
  },
3251
3278
  children: /* @__PURE__ */ jsx49(context_default, { children })
3252
3279
  }
3253
- ) });
3280
+ ) }) });
3254
3281
  };
3255
3282
  var useMatch = () => {
3256
3283
  const context = useContext(MatchContext);