@dynamic-labs/wagmi-connector 0.14.11 → 0.14.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wagmi-connector",
3
- "version": "0.14.11",
3
+ "version": "0.14.13",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,11 +8,11 @@
8
8
  "directory": "packages/wagmi-connector"
9
9
  },
10
10
  "peerDependencies": {
11
- "@wagmi/core": "~0.7.9",
11
+ "@wagmi/core": "~0.8.10",
12
12
  "react": "^17.0.2 || ^18.0.0",
13
13
  "ethers": "^5.7.2",
14
- "wagmi": "^0.8.10",
15
- "@dynamic-labs/sdk-react": "0.14.11"
14
+ "wagmi": "~0.10.3",
15
+ "@dynamic-labs/sdk-react": "0.14.13"
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "module": "./index.js",
@@ -7,7 +7,8 @@ export declare class Connector extends BaseWagmiConnector<ethers.providers.Web3P
7
7
  id: string;
8
8
  name: string;
9
9
  ready: boolean;
10
- constructor({ handleLogOut, walletConnector, }: {
10
+ constructor({ chains, handleLogOut, walletConnector, }: {
11
+ chains: Chain[];
11
12
  handleLogOut: () => void;
12
13
  walletConnector: WalletConnector;
13
14
  });
@@ -1,4 +1,4 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare const DynamicWagmiConnector: ({ children }: {
2
+ export declare const DynamicWagmiConnector: ({ children, }: {
3
3
  children: ReactNode;
4
- }) => React.FunctionComponentElement<React.PropsWithChildren<import("wagmi").WagmiConfigProps<import("@wagmi/core/dist/index-58cffc47").P, import("@wagmi/core/dist/index-58cffc47").W>>>;
4
+ }) => React.FunctionComponentElement<React.PropsWithChildren<import("wagmi").WagmiConfigProps<import("@wagmi/core/dist/index-37d6352e").P, import("@wagmi/core/dist/index-37d6352e").W>>>;
@@ -0,0 +1,8 @@
1
+ import React, { ReactNode } from 'react';
2
+ type IsBrowserProps = {
3
+ children: ReactNode;
4
+ };
5
+ export declare const IsBrowser: ({ children }: IsBrowserProps) => React.FunctionComponentElement<{
6
+ children?: React.ReactNode;
7
+ }>;
8
+ export {};
@@ -1,6 +1,8 @@
1
- import React, { ReactNode } from 'react';
2
- export declare const SyncDynamicWagmi: ({ children }: {
3
- children: ReactNode;
4
- }) => React.FunctionComponentElement<{
5
- children?: React.ReactNode;
1
+ import React from 'react';
2
+ import { Connector } from './Connector';
3
+ export type SyncDynamicWagmiProps = React.PropsWithChildren<{
4
+ connector: Connector | undefined;
5
+ }>;
6
+ export declare const SyncDynamicWagmi: ({ children, connector, }: SyncDynamicWagmiProps) => React.FunctionComponentElement<{
7
+ children: React.ReactNode;
6
8
  }>;
@@ -0,0 +1,3 @@
1
+ import { Chain } from 'wagmi';
2
+ import { EvmNetwork } from '@dynamic-labs/sdk-react';
3
+ export declare const getWagmiChainsFromDynamicChains: (dynamicChains: EvmNetwork[]) => Chain[];
@@ -0,0 +1,4 @@
1
+ import { providers } from 'ethers';
2
+ import { Chain, ChainProviderFn } from 'wagmi';
3
+ import { EvmNetwork } from '@dynamic-labs/sdk-react';
4
+ export declare const getWagmiProvidersFromDynamicChains: (dynamicChains: EvmNetwork[]) => ChainProviderFn<providers.JsonRpcProvider, providers.WebSocketProvider, Chain>[];
@@ -0,0 +1,3 @@
1
+ import { Chain } from 'wagmi';
2
+ import { EvmNetwork } from '@dynamic-labs/sdk-react';
3
+ export declare const mapDynamicChainToWagmi: (dynamicChain: EvmNetwork) => Chain;