@dynamic-labs/wagmi-connector 0.15.2 → 0.15.4
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/CHANGELOG.md +9 -0
- package/index.cjs +2 -1
- package/index.js +2 -1
- package/package.json +3 -3
- package/src/lib/DynamicWagmiConnector.d.ts +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.15.4](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.3...v0.15.4) (2023-03-15)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add optional evmNetworks prop to dynamic wagmi connector ([3859d43](https://github.com/dynamic-labs/DynamicAuth/commit/3859d43cee1ac4dd051957de023d691e22f85e66))
|
|
8
|
+
|
|
9
|
+
### [0.15.3](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.2...v0.15.3) (2023-03-08)
|
|
10
|
+
|
|
2
11
|
### [0.15.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.15.1...v0.15.2) (2023-03-08)
|
|
3
12
|
|
|
4
13
|
|
package/index.cjs
CHANGED
|
@@ -2086,6 +2086,7 @@ const client = wagmi.createClient({
|
|
|
2086
2086
|
*/
|
|
2087
2087
|
let connector = undefined;
|
|
2088
2088
|
const DynamicWagmiConnector = ({
|
|
2089
|
+
evmNetworks: customerSuppliedEvmNetworks,
|
|
2089
2090
|
children
|
|
2090
2091
|
}) => {
|
|
2091
2092
|
var _a;
|
|
@@ -2094,7 +2095,7 @@ const DynamicWagmiConnector = ({
|
|
|
2094
2095
|
walletConnector,
|
|
2095
2096
|
handleLogOut
|
|
2096
2097
|
} = sdkReact.useDynamicContext();
|
|
2097
|
-
const evmNetworks = (_a = networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) !== null && _a !== void 0 ? _a : [];
|
|
2098
|
+
const evmNetworks = (_a = customerSuppliedEvmNetworks !== null && customerSuppliedEvmNetworks !== void 0 ? customerSuppliedEvmNetworks : networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) !== null && _a !== void 0 ? _a : [];
|
|
2098
2099
|
const mappedChains = getWagmiChainsFromDynamicChains(evmNetworks);
|
|
2099
2100
|
const mappedProviders = getWagmiProvidersFromDynamicChains(evmNetworks);
|
|
2100
2101
|
const {
|
package/index.js
CHANGED
|
@@ -2059,6 +2059,7 @@ const client = createClient({
|
|
|
2059
2059
|
*/
|
|
2060
2060
|
let connector = undefined;
|
|
2061
2061
|
const DynamicWagmiConnector = ({
|
|
2062
|
+
evmNetworks: customerSuppliedEvmNetworks,
|
|
2062
2063
|
children
|
|
2063
2064
|
}) => {
|
|
2064
2065
|
var _a;
|
|
@@ -2067,7 +2068,7 @@ const DynamicWagmiConnector = ({
|
|
|
2067
2068
|
walletConnector,
|
|
2068
2069
|
handleLogOut
|
|
2069
2070
|
} = useDynamicContext();
|
|
2070
|
-
const evmNetworks = (_a = networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) !== null && _a !== void 0 ? _a : [];
|
|
2071
|
+
const evmNetworks = (_a = customerSuppliedEvmNetworks !== null && customerSuppliedEvmNetworks !== void 0 ? customerSuppliedEvmNetworks : networkConfigurations === null || networkConfigurations === void 0 ? void 0 : networkConfigurations.evm) !== null && _a !== void 0 ? _a : [];
|
|
2071
2072
|
const mappedChains = getWagmiChainsFromDynamicChains(evmNetworks);
|
|
2072
2073
|
const mappedProviders = getWagmiProvidersFromDynamicChains(evmNetworks);
|
|
2073
2074
|
const {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wagmi-connector",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"react": "^17.0.2 || ^18.0.0",
|
|
13
13
|
"ethers": "^5.7.2",
|
|
14
14
|
"wagmi": "~0.10.3",
|
|
15
|
-
"@dynamic-labs/multi-wallet": "0.15.
|
|
16
|
-
"@dynamic-labs/sdk-react": "0.15.
|
|
15
|
+
"@dynamic-labs/multi-wallet": "0.15.4",
|
|
16
|
+
"@dynamic-labs/sdk-react": "0.15.4"
|
|
17
17
|
},
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"module": "./index.js",
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { EvmNetwork } from '@dynamic-labs/sdk-react';
|
|
3
|
+
type DynamicWagmiConnectorProps = {
|
|
3
4
|
children: ReactNode;
|
|
4
|
-
|
|
5
|
+
evmNetworks?: EvmNetwork[];
|
|
6
|
+
};
|
|
7
|
+
export declare const DynamicWagmiConnector: ({ evmNetworks: customerSuppliedEvmNetworks, children, }: DynamicWagmiConnectorProps) => React.FunctionComponentElement<React.PropsWithChildren<import("wagmi").WagmiConfigProps<import("@wagmi/core/dist/index-37d6352e").P, import("@wagmi/core/dist/index-37d6352e").W>>>;
|
|
8
|
+
export {};
|