@dynamic-labs/wagmi-connector 0.17.0-RC.13 → 0.17.0-RC.15
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
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [0.17.0-RC.15](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.14...v0.17.0-RC.15) (2023-05-15)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* pass network to link request ([#2114](https://github.com/dynamic-labs/DynamicAuth/issues/2114)) ([0f7d20d](https://github.com/dynamic-labs/DynamicAuth/commit/0f7d20d948b737b98d4a8db8aaa7648033e25922))
|
|
8
|
+
|
|
9
|
+
## [0.17.0-RC.14](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.13...v0.17.0-RC.14) (2023-05-12)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* add local flowNetwork prop to toggle between mainnet and testnet ([#2094](https://github.com/dynamic-labs/DynamicAuth/issues/2094)) ([43c3f20](https://github.com/dynamic-labs/DynamicAuth/commit/43c3f20abf2d6c83e88e48f885749b978cec078a))
|
|
15
|
+
* deprecate multiWallet sdk setting and fetch it from projectSettings ([#2079](https://github.com/dynamic-labs/DynamicAuth/issues/2079)) ([8b7f11d](https://github.com/dynamic-labs/DynamicAuth/commit/8b7f11d9eb71a17056be05cc8006d15dc149e3ff))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **balance:** correctly compare AVAX address when fetching balance ([#2064](https://github.com/dynamic-labs/DynamicAuth/issues/2064)) ([c5942d1](https://github.com/dynamic-labs/DynamicAuth/commit/c5942d112804f3a935bca396221fb33a3c7cc42a))
|
|
21
|
+
* **DYN-2231:** restore User Profile display when social is the only enabled flag in information capture ([#2070](https://github.com/dynamic-labs/DynamicAuth/issues/2070)) ([6790bc7](https://github.com/dynamic-labs/DynamicAuth/commit/6790bc7e54afb1807be9996dc47129932441bbae))
|
|
22
|
+
|
|
2
23
|
## [0.17.0-RC.13](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.0-RC.12...v0.17.0-RC.13) (2023-05-10)
|
|
3
24
|
|
|
4
25
|
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/wagmi-connector",
|
|
3
|
-
"version": "0.17.0-RC.
|
|
3
|
+
"version": "0.17.0-RC.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
7
7
|
"directory": "packages/wagmi-connector"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@wagmi/core": "~0.
|
|
10
|
+
"@wagmi/core": "~0.10.11",
|
|
11
11
|
"react": "^17.0.2 || ^18.0.0",
|
|
12
12
|
"ethers": "^5.7.2",
|
|
13
|
-
"wagmi": "~0.
|
|
14
|
-
"@dynamic-labs/sdk-react-core": "0.17.0-RC.
|
|
15
|
-
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.
|
|
13
|
+
"wagmi": "~0.12.13",
|
|
14
|
+
"@dynamic-labs/sdk-react-core": "0.17.0-RC.15",
|
|
15
|
+
"@dynamic-labs/wallet-connector-core": "0.17.0-RC.15"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"main": "./src/index.cjs",
|
package/src/lib/Connector.js
CHANGED
|
@@ -114,7 +114,7 @@ class Connector extends Connector$1 {
|
|
|
114
114
|
name: `Chain ${id}`,
|
|
115
115
|
nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' },
|
|
116
116
|
network: `${id}`,
|
|
117
|
-
rpcUrls: { default: { http: [''] } },
|
|
117
|
+
rpcUrls: { default: { http: [''] }, public: { http: [''] } },
|
|
118
118
|
});
|
|
119
119
|
});
|
|
120
120
|
}
|
|
@@ -4,5 +4,5 @@ type DynamicWagmiConnectorProps = {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
evmNetworks?: EvmNetwork[];
|
|
6
6
|
};
|
|
7
|
-
export declare const DynamicWagmiConnector: ({ evmNetworks: customerSuppliedEvmNetworks, children, }: DynamicWagmiConnectorProps) => React.FunctionComponentElement<React.PropsWithChildren<import("wagmi").WagmiConfigProps<import("@wagmi/core/dist/index-
|
|
7
|
+
export declare const DynamicWagmiConnector: ({ evmNetworks: customerSuppliedEvmNetworks, children, }: DynamicWagmiConnectorProps) => React.FunctionComponentElement<React.PropsWithChildren<import("wagmi").WagmiConfigProps<import("@wagmi/core/dist/index-35b6525c").P, import("@wagmi/core/dist/index-35b6525c").W>>>;
|
|
8
8
|
export {};
|
|
@@ -36,7 +36,7 @@ const DynamicWagmiConnector = ({ evmNetworks: customerSuppliedEvmNetworks, child
|
|
|
36
36
|
else if (connector && !walletConnector) {
|
|
37
37
|
connector = undefined;
|
|
38
38
|
}
|
|
39
|
-
client.config = Object.assign(Object.assign({}, client.config), { autoConnect: true, connectors: connector ? [connector] : [], provider });
|
|
39
|
+
client.config = Object.assign(Object.assign({}, client.config), { autoConnect: true, connectors: connector ? [connector] : [], provider: provider });
|
|
40
40
|
// use React.createElement to prevent bunding react/jsx-runtime,
|
|
41
41
|
// which is not compatible when bundling apps using React 17
|
|
42
42
|
return React.createElement(WagmiConfig, { client: client }, React.createElement(SyncDynamicWagmi, { connector }, children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { providers } from 'ethers';
|
|
2
2
|
import { Chain, ChainProviderFn } from 'wagmi';
|
|
3
3
|
import { EvmNetwork } from '@dynamic-labs/sdk-react-core';
|
|
4
|
-
export declare const getWagmiProvidersFromDynamicChains: (dynamicChains: EvmNetwork[]) => ChainProviderFn<providers.JsonRpcProvider, providers.WebSocketProvider
|
|
4
|
+
export declare const getWagmiProvidersFromDynamicChains: (dynamicChains: EvmNetwork[]) => ChainProviderFn<Chain, providers.JsonRpcProvider, providers.WebSocketProvider>[];
|
package/src/lib/mappers/chain.js
CHANGED
|
@@ -20,6 +20,9 @@ const mapDynamicChainToWagmi = (dynamicChain) => {
|
|
|
20
20
|
default: {
|
|
21
21
|
http: dynamicChain.rpcUrls,
|
|
22
22
|
},
|
|
23
|
+
public: {
|
|
24
|
+
http: dynamicChain.rpcUrls,
|
|
25
|
+
},
|
|
23
26
|
};
|
|
24
27
|
const alchemyUrl = (_a = dynamicChain.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a.find((url) => url.includes('alchemy'));
|
|
25
28
|
if (alchemyUrl) {
|