@dynamic-labs/multi-wallet 0.19.2 → 0.19.3
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 +13 -0
- package/package.json +6 -6
- package/src/utils/message.cjs +4 -1
- package/src/utils/message.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.19.3](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.2...v0.19.3) (2023-11-22)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* multiple starknet improvements [Support for default/custom RPC Providers + Dynamic Domains in signature] ([#3938](https://github.com/dynamic-labs/DynamicAuth/issues/3938)) ([d299622](https://github.com/dynamic-labs/DynamicAuth/commit/d299622197cb28483c6c6d6d051c917d6cbbe5df)), closes [#3881](https://github.com/dynamic-labs/DynamicAuth/issues/3881) [#3927](https://github.com/dynamic-labs/DynamicAuth/issues/3927)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* allow user's metadata field to be updated in updateUser hook ([#3930](https://github.com/dynamic-labs/DynamicAuth/issues/3930)) ([7d00014](https://github.com/dynamic-labs/DynamicAuth/commit/7d000140f87453bd158798b973917fa8309c8e5e))
|
|
13
|
+
* better handling of wallet disconnect state edge case ([#3940](https://github.com/dynamic-labs/DynamicAuth/issues/3940)) ([#3942](https://github.com/dynamic-labs/DynamicAuth/issues/3942)) ([e9f944c](https://github.com/dynamic-labs/DynamicAuth/commit/e9f944c2c68de446e83c1dbd62aaaedd07443326))
|
|
14
|
+
|
|
2
15
|
### [0.19.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.19.1...v0.19.2) (2023-11-17)
|
|
3
16
|
|
|
4
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/multi-wallet",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@dynamic-labs/sdk-api": "0.0.307",
|
|
11
11
|
"tslib": "2.4.1",
|
|
12
|
-
"@dynamic-labs/rpc-providers": "0.19.
|
|
13
|
-
"@dynamic-labs/types": "0.19.
|
|
14
|
-
"@dynamic-labs/utils": "0.19.
|
|
15
|
-
"@dynamic-labs/wallet-book": "0.19.
|
|
16
|
-
"@dynamic-labs/wallet-connector-core": "0.19.
|
|
12
|
+
"@dynamic-labs/rpc-providers": "0.19.3",
|
|
13
|
+
"@dynamic-labs/types": "0.19.3",
|
|
14
|
+
"@dynamic-labs/utils": "0.19.3",
|
|
15
|
+
"@dynamic-labs/wallet-book": "0.19.3",
|
|
16
|
+
"@dynamic-labs/wallet-connector-core": "0.19.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@walletconnect/types": "2.4.2"
|
package/src/utils/message.cjs
CHANGED
|
@@ -8,7 +8,10 @@ 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
|
-
return
|
|
11
|
+
return JSON.stringify({
|
|
12
|
+
domain: domain || 'dynamic.xyz',
|
|
13
|
+
nonce,
|
|
14
|
+
});
|
|
12
15
|
}
|
|
13
16
|
const blockchainName = (_b = (_a = walletConnectorCore.getChainInfo(blockchain)) === null || _a === void 0 ? void 0 : _a.blockchainName) !== null && _b !== void 0 ? _b : 'Ethereum';
|
|
14
17
|
// This format follows the sign-in with ethereum (SIWE) standard,
|
package/src/utils/message.js
CHANGED
|
@@ -4,7 +4,10 @@ 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
|
-
return
|
|
7
|
+
return JSON.stringify({
|
|
8
|
+
domain: domain || 'dynamic.xyz',
|
|
9
|
+
nonce,
|
|
10
|
+
});
|
|
8
11
|
}
|
|
9
12
|
const blockchainName = (_b = (_a = getChainInfo(blockchain)) === null || _a === void 0 ? void 0 : _a.blockchainName) !== null && _b !== void 0 ? _b : 'Ethereum';
|
|
10
13
|
// This format follows the sign-in with ethereum (SIWE) standard,
|