@dynamic-labs-wallet/node 0.0.0-beta.314 → 0.0.0-beta.315
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/index.cjs.js +4 -5
- package/index.esm.js +4 -5
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -1374,12 +1374,11 @@ const delegatedSignMessage = async (client, { walletId, walletApiKey, keyShare,
|
|
|
1374
1374
|
throw new Error('Delegated key share is required to sign a message');
|
|
1375
1375
|
}
|
|
1376
1376
|
const wallet = await getWallet(client, {
|
|
1377
|
-
walletId
|
|
1378
|
-
chainName
|
|
1377
|
+
walletId
|
|
1379
1378
|
});
|
|
1380
1379
|
// Perform the dynamic server sign
|
|
1381
1380
|
const data = await dynamicDelegatedSign(client, {
|
|
1382
|
-
walletId
|
|
1381
|
+
walletId,
|
|
1383
1382
|
walletApiKey,
|
|
1384
1383
|
message,
|
|
1385
1384
|
isFormatted,
|
|
@@ -1399,7 +1398,7 @@ const delegatedSignMessage = async (client, { walletId, walletApiKey, keyShare,
|
|
|
1399
1398
|
return signature;
|
|
1400
1399
|
};
|
|
1401
1400
|
// Helper function to get wallet (to be implemented in wallet module)
|
|
1402
|
-
const getWallet = async (client, { walletId
|
|
1401
|
+
const getWallet = async (client, { walletId })=>{
|
|
1403
1402
|
const wallets = client.wallets;
|
|
1404
1403
|
// Check if wallet is already cached
|
|
1405
1404
|
if (wallets[walletId]) {
|
|
@@ -1411,7 +1410,7 @@ const getWallet = async (client, { walletId, chainName })=>{
|
|
|
1411
1410
|
walletId
|
|
1412
1411
|
});
|
|
1413
1412
|
const waasWallet = {
|
|
1414
|
-
walletId
|
|
1413
|
+
walletId,
|
|
1415
1414
|
chainName: wallet.chainName,
|
|
1416
1415
|
accountAddress: wallet.accountAddress,
|
|
1417
1416
|
externalServerKeyShares: [],
|
package/index.esm.js
CHANGED
|
@@ -1373,12 +1373,11 @@ const delegatedSignMessage = async (client, { walletId, walletApiKey, keyShare,
|
|
|
1373
1373
|
throw new Error('Delegated key share is required to sign a message');
|
|
1374
1374
|
}
|
|
1375
1375
|
const wallet = await getWallet(client, {
|
|
1376
|
-
walletId
|
|
1377
|
-
chainName
|
|
1376
|
+
walletId
|
|
1378
1377
|
});
|
|
1379
1378
|
// Perform the dynamic server sign
|
|
1380
1379
|
const data = await dynamicDelegatedSign(client, {
|
|
1381
|
-
walletId
|
|
1380
|
+
walletId,
|
|
1382
1381
|
walletApiKey,
|
|
1383
1382
|
message,
|
|
1384
1383
|
isFormatted,
|
|
@@ -1398,7 +1397,7 @@ const delegatedSignMessage = async (client, { walletId, walletApiKey, keyShare,
|
|
|
1398
1397
|
return signature;
|
|
1399
1398
|
};
|
|
1400
1399
|
// Helper function to get wallet (to be implemented in wallet module)
|
|
1401
|
-
const getWallet = async (client, { walletId
|
|
1400
|
+
const getWallet = async (client, { walletId })=>{
|
|
1402
1401
|
const wallets = client.wallets;
|
|
1403
1402
|
// Check if wallet is already cached
|
|
1404
1403
|
if (wallets[walletId]) {
|
|
@@ -1410,7 +1409,7 @@ const getWallet = async (client, { walletId, chainName })=>{
|
|
|
1410
1409
|
walletId
|
|
1411
1410
|
});
|
|
1412
1411
|
const waasWallet = {
|
|
1413
|
-
walletId
|
|
1412
|
+
walletId,
|
|
1414
1413
|
chainName: wallet.chainName,
|
|
1415
1414
|
accountAddress: wallet.accountAddress,
|
|
1416
1415
|
externalServerKeyShares: [],
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/node",
|
|
3
|
-
"version": "0.0.0-beta.
|
|
3
|
+
"version": "0.0.0-beta.315",
|
|
4
4
|
"license": "Licensed under the Dynamic Labs, Inc. Terms Of Service (https://www.dynamic.xyz/terms-conditions)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/core": "0.0.0-beta.
|
|
7
|
+
"@dynamic-labs-wallet/core": "0.0.0-beta.315",
|
|
8
8
|
"@dynamic-labs/logger": "^4.25.3",
|
|
9
9
|
"@dynamic-labs/sdk-api-core": "^0.0.764",
|
|
10
10
|
"uuid": "11.1.0",
|