@dynamic-labs/multi-wallet 0.17.27 → 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 +7 -0
- package/package.json +6 -6
- package/src/multi-wallet.cjs +2 -5
- package/src/multi-wallet.js +2 -5
- package/src/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
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
|
+
|
|
2
9
|
### [0.17.27](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.26...v0.17.27) (2023-07-26)
|
|
3
10
|
|
|
4
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "0.17.
|
|
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.
|
|
14
|
-
"@dynamic-labs/types": "0.17.
|
|
15
|
-
"@dynamic-labs/utils": "0.17.
|
|
16
|
-
"@dynamic-labs/wallet-book": "0.17.
|
|
17
|
-
"@dynamic-labs/wallet-connector-core": "0.17.
|
|
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"
|
package/src/multi-wallet.cjs
CHANGED
|
@@ -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,
|
|
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))
|
package/src/multi-wallet.js
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
17
|
+
createWalletUiUtils?: (connector: WalletConnector) => WalletUiUtils;
|
|
18
18
|
};
|
|
19
19
|
export type GetSupportedWallets = (opts: GetSupportedWalletsOpts) => WalletConnector[];
|
|
20
20
|
export type ChainInfo = {
|