@dynamic-labs/multi-wallet 1.1.0-alpha.12 → 1.1.0-alpha.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/CHANGELOG.md CHANGED
@@ -1,4 +1,22 @@
1
1
 
2
+ ## [1.1.0-alpha.13](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.12...v1.1.0-alpha.13) (2024-01-23)
3
+
4
+
5
+ ### Features
6
+
7
+ * add createWalletClientFromWallet helper function ([#4416](https://github.com/dynamic-labs/DynamicAuth/issues/4416)) ([b384898](https://github.com/dynamic-labs/DynamicAuth/commit/b384898061bb3f9b38b2ed670b6650cfc1d4b429))
8
+ * add hardware wallets to wallet book ([#4445](https://github.com/dynamic-labs/DynamicAuth/issues/4445)) ([66c0f5b](https://github.com/dynamic-labs/DynamicAuth/commit/66c0f5b29a6a700099bb95a6f7622f6178e0bccf))
9
+ * add support for Argent Web and Mobile ([#4328](https://github.com/dynamic-labs/DynamicAuth/issues/4328)) ([bce20b8](https://github.com/dynamic-labs/DynamicAuth/commit/bce20b8f35a8630f2621f53a541a1acb06a38fc0))
10
+ * enable ledger for glow, solflare and backpack ([#4392](https://github.com/dynamic-labs/DynamicAuth/issues/4392)) ([fa7b992](https://github.com/dynamic-labs/DynamicAuth/commit/fa7b992f87ebc43560f87b43ac56f2cd9909b306))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * breaking changes script ([#4440](https://github.com/dynamic-labs/DynamicAuth/issues/4440)) ([446173d](https://github.com/dynamic-labs/DynamicAuth/commit/446173d074d652d81856c6412e304b46b1565320))
16
+ * broken help icon in create passkey view ([#4428](https://github.com/dynamic-labs/DynamicAuth/issues/4428)) ([e0ffc02](https://github.com/dynamic-labs/DynamicAuth/commit/e0ffc02ffea34b7ac3198ff6e1baf7f9907acddd))
17
+ * infinite loop when connecting with trust wallet ([#4448](https://github.com/dynamic-labs/DynamicAuth/issues/4448)) ([4e20edf](https://github.com/dynamic-labs/DynamicAuth/commit/4e20edf9abaabf20e5e9f9167b44d7f691e844f1))
18
+ * render wagmi elements based on react version ([#4453](https://github.com/dynamic-labs/DynamicAuth/issues/4453)) ([43c624c](https://github.com/dynamic-labs/DynamicAuth/commit/43c624ca996b0c51de1454910f19fdf908149938))
19
+
2
20
  ## [1.1.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.11...v1.1.0-alpha.12) (2024-01-18)
3
21
 
4
22
 
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@dynamic-labs/multi-wallet",
3
- "version": "1.1.0-alpha.12",
3
+ "version": "1.1.0-alpha.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
7
7
  "directory": "packages/multi-wallet"
8
8
  },
9
9
  "dependencies": {
10
- "@dynamic-labs/sdk-api": "0.0.349",
10
+ "@dynamic-labs/sdk-api": "0.0.352",
11
11
  "tslib": "2.4.1",
12
- "@dynamic-labs/rpc-providers": "1.1.0-alpha.12",
13
- "@dynamic-labs/types": "1.1.0-alpha.12",
14
- "@dynamic-labs/utils": "1.1.0-alpha.12",
15
- "@dynamic-labs/wallet-book": "1.1.0-alpha.12",
16
- "@dynamic-labs/wallet-connector-core": "1.1.0-alpha.12"
12
+ "@dynamic-labs/rpc-providers": "1.1.0-alpha.13",
13
+ "@dynamic-labs/types": "1.1.0-alpha.13",
14
+ "@dynamic-labs/utils": "1.1.0-alpha.13",
15
+ "@dynamic-labs/wallet-book": "1.1.0-alpha.13",
16
+ "@dynamic-labs/wallet-connector-core": "1.1.0-alpha.13"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@walletconnect/types": "2.10.6"
@@ -38,6 +38,6 @@
38
38
  "./package.json": "./package.json"
39
39
  },
40
40
  "peerDependencies": {
41
- "viem": "^1.19.13"
41
+ "viem": "^1.19.13 || ^2.2.0"
42
42
  }
43
43
  }
@@ -8,8 +8,13 @@ var walletConnectorCore = require('@dynamic-labs/wallet-connector-core');
8
8
  const generateMessageToSign = ({ blockchain, domain, chainId, nonce, uri, publicKey, issuedAt = new Date().toISOString(), statement, requestId, resources, }) => {
9
9
  var _a, _b;
10
10
  if (blockchain === 'STARK') {
11
+ /**
12
+ * Starknet requires the strings to be 31 chars long
13
+ * Nonce - we need to keep full size for nonce verification on the backend (the backend shortens it to 31 chars)
14
+ * Domain - we need to shorten the domain to 31 chars
15
+ */
11
16
  return JSON.stringify({
12
- domain: domain || 'dynamic.xyz',
17
+ domain: domain.substring(0, 31),
13
18
  nonce,
14
19
  });
15
20
  }
@@ -4,8 +4,13 @@ import { getChainInfo, logger } from '@dynamic-labs/wallet-connector-core';
4
4
  const generateMessageToSign = ({ blockchain, domain, chainId, nonce, uri, publicKey, issuedAt = new Date().toISOString(), statement, requestId, resources, }) => {
5
5
  var _a, _b;
6
6
  if (blockchain === 'STARK') {
7
+ /**
8
+ * Starknet requires the strings to be 31 chars long
9
+ * Nonce - we need to keep full size for nonce verification on the backend (the backend shortens it to 31 chars)
10
+ * Domain - we need to shorten the domain to 31 chars
11
+ */
7
12
  return JSON.stringify({
8
- domain: domain || 'dynamic.xyz',
13
+ domain: domain.substring(0, 31),
9
14
  nonce,
10
15
  });
11
16
  }