@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/index.cjs +1892 -25
- package/index.js +1894 -27
- package/package.json +4 -4
- package/src/lib/Connector.d.ts +2 -1
- package/src/lib/DynamicWagmiConnector.d.ts +2 -2
- package/src/lib/IsBrowser.d.ts +8 -0
- package/src/lib/SyncDynamicWagmi.d.ts +7 -5
- package/src/lib/getWagmiChainsFromDynamicChains.d.ts +3 -0
- package/src/lib/getWagmiProvidersFromDynamicChains.d.ts +4 -0
- package/src/lib/mappers/chain.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wagmi-connector",
|
|
3
|
-
"version": "0.14.
|
|
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.
|
|
11
|
+
"@wagmi/core": "~0.8.10",
|
|
12
12
|
"react": "^17.0.2 || ^18.0.0",
|
|
13
13
|
"ethers": "^5.7.2",
|
|
14
|
-
"wagmi": "
|
|
15
|
-
"@dynamic-labs/sdk-react": "0.14.
|
|
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",
|
package/src/lib/Connector.d.ts
CHANGED
|
@@ -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-
|
|
4
|
+
}) => React.FunctionComponentElement<React.PropsWithChildren<import("wagmi").WagmiConfigProps<import("@wagmi/core/dist/index-37d6352e").P, import("@wagmi/core/dist/index-37d6352e").W>>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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,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>[];
|