@dynamic-labs/multi-wallet 0.17.26 → 0.17.28

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,19 @@
1
1
 
2
+ ### [0.17.28](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.27...v0.17.28) (2023-07-26)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **transaction:** add gas price to transaction on magic ([#2747](https://github.com/dynamic-labs/DynamicAuth/issues/2747)) ([62750be](https://github.com/dynamic-labs/DynamicAuth/commit/62750be5f4ea9f476ac286bb6770a5ce0cf276b7))
8
+
9
+ ### [0.17.27](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.26...v0.17.27) (2023-07-26)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * do not proceed to authSuccess if there are still missing fields ([#2726](https://github.com/dynamic-labs/DynamicAuth/issues/2726)) ([e5b8139](https://github.com/dynamic-labs/DynamicAuth/commit/e5b8139bedbcc82f6f42251c5877a97955d90564)), closes [#2740](https://github.com/dynamic-labs/DynamicAuth/issues/2740)
15
+ * WalletConnect bug on fresh session with high latency ([#2669](https://github.com/dynamic-labs/DynamicAuth/issues/2669)) ([0fcb9c9](https://github.com/dynamic-labs/DynamicAuth/commit/0fcb9c969d39dad856ae76b2bdd02368c6c8d64a))
16
+
2
17
  ### [0.17.26](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.25...v0.17.26) (2023-07-25)
3
18
 
4
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "0.17.26",
3
+ "version": "0.17.28",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -10,11 +10,11 @@
10
10
  "@dynamic-labs/sdk-api": "0.0.198",
11
11
  "ethers": "5.7.2",
12
12
  "tslib": "2.4.1",
13
- "@dynamic-labs/rpc-providers": "0.17.26",
14
- "@dynamic-labs/types": "0.17.26",
15
- "@dynamic-labs/utils": "0.17.26",
16
- "@dynamic-labs/wallet-book": "0.17.26",
17
- "@dynamic-labs/wallet-connector-core": "0.17.26"
13
+ "@dynamic-labs/rpc-providers": "0.17.28",
14
+ "@dynamic-labs/types": "0.17.28",
15
+ "@dynamic-labs/utils": "0.17.28",
16
+ "@dynamic-labs/wallet-book": "0.17.28",
17
+ "@dynamic-labs/wallet-connector-core": "0.17.28"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@walletconnect/types": "2.4.2"
@@ -9,9 +9,6 @@ var getApiProviders = require('./utils/getApiProviders.cjs');
9
9
 
10
10
  let wallets = [];
11
11
  const defaultWalletUiUtils = {
12
- disabledConfirmationOnce: () => {
13
- throw Error('disabledConfirmationOnce, not implemented');
14
- },
15
12
  sendTransaction: () => {
16
13
  throw Error('requestSendTransactionConfirmation not implemented');
17
14
  },
@@ -20,7 +17,7 @@ const defaultWalletUiUtils = {
20
17
  },
21
18
  };
22
19
  const getSupportedWallets = (args) => {
23
- const { appLogoUrl = '', appName = '', chainRpcProviders, flowNetwork, isWalletConnectV2Enabled = false, networkConfigurations = { cosmos: [], evm: [], solana: [], starknet: [] }, customerApiProviders = [], skipMemo = false, walletConnectProjectId = '', walletConnectorsProp, walletUiUtils = undefined, walletConnectV1Bridge, } = args;
20
+ const { appLogoUrl = '', appName = '', chainRpcProviders, flowNetwork, isWalletConnectV2Enabled = false, networkConfigurations = { cosmos: [], evm: [], solana: [], starknet: [] }, customerApiProviders = [], skipMemo = false, walletConnectProjectId = '', walletConnectorsProp, createWalletUiUtils = () => defaultWalletUiUtils, walletConnectV1Bridge, } = args;
24
21
  if (!skipMemo && wallets.length > 0) {
25
22
  return wallets;
26
23
  }
@@ -34,13 +31,13 @@ const getSupportedWallets = (args) => {
34
31
  appName,
35
32
  chainRpcProviders,
36
33
  cosmosNetworks: cosmosNetworkConfigs,
34
+ createWalletUiUtils: (connector) => createWalletUiUtils(connector),
37
35
  evmNetworks: evmNetworkConfigs,
38
36
  flowNetwork,
39
37
  isWalletConnectV2Enabled,
40
38
  projectId: walletConnectProjectId,
41
39
  solNetworks: solanaNetworkConfigs,
42
40
  walletConnectV1Bridge,
43
- walletUiUtils: walletUiUtils || defaultWalletUiUtils,
44
41
  };
45
42
  const allWallets = walletConnectorsProp
46
43
  .map((walletConnector) => walletConnector(opts))
@@ -5,9 +5,6 @@ import { getApiProviders } from './utils/getApiProviders.js';
5
5
 
6
6
  let wallets = [];
7
7
  const defaultWalletUiUtils = {
8
- disabledConfirmationOnce: () => {
9
- throw Error('disabledConfirmationOnce, not implemented');
10
- },
11
8
  sendTransaction: () => {
12
9
  throw Error('requestSendTransactionConfirmation not implemented');
13
10
  },
@@ -16,7 +13,7 @@ const defaultWalletUiUtils = {
16
13
  },
17
14
  };
18
15
  const getSupportedWallets = (args) => {
19
- const { appLogoUrl = '', appName = '', chainRpcProviders, flowNetwork, isWalletConnectV2Enabled = false, networkConfigurations = { cosmos: [], evm: [], solana: [], starknet: [] }, customerApiProviders = [], skipMemo = false, walletConnectProjectId = '', walletConnectorsProp, walletUiUtils = undefined, walletConnectV1Bridge, } = args;
16
+ const { appLogoUrl = '', appName = '', chainRpcProviders, flowNetwork, isWalletConnectV2Enabled = false, networkConfigurations = { cosmos: [], evm: [], solana: [], starknet: [] }, customerApiProviders = [], skipMemo = false, walletConnectProjectId = '', walletConnectorsProp, createWalletUiUtils = () => defaultWalletUiUtils, walletConnectV1Bridge, } = args;
20
17
  if (!skipMemo && wallets.length > 0) {
21
18
  return wallets;
22
19
  }
@@ -30,13 +27,13 @@ const getSupportedWallets = (args) => {
30
27
  appName,
31
28
  chainRpcProviders,
32
29
  cosmosNetworks: cosmosNetworkConfigs,
30
+ createWalletUiUtils: (connector) => createWalletUiUtils(connector),
33
31
  evmNetworks: evmNetworkConfigs,
34
32
  flowNetwork,
35
33
  isWalletConnectV2Enabled,
36
34
  projectId: walletConnectProjectId,
37
35
  solNetworks: solanaNetworkConfigs,
38
36
  walletConnectV1Bridge,
39
- walletUiUtils: walletUiUtils || defaultWalletUiUtils,
40
37
  };
41
38
  const allWallets = walletConnectorsProp
42
39
  .map((walletConnector) => walletConnector(opts))
package/src/types.d.ts CHANGED
@@ -14,7 +14,7 @@ export type GetSupportedWalletsOpts = {
14
14
  walletConnectV1Bridge?: string;
15
15
  walletConnectProjectId?: string;
16
16
  walletConnectorsProp: WalletConnectorsMethod[];
17
- walletUiUtils?: WalletUiUtils;
17
+ createWalletUiUtils?: (connector: WalletConnector) => WalletUiUtils;
18
18
  };
19
19
  export type GetSupportedWallets = (opts: GetSupportedWalletsOpts) => WalletConnector[];
20
20
  export type ChainInfo = {