@dynamic-labs-wallet/evm 1.1.19 → 1.1.21
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 +70 -3
- package/index.esm.js +71 -5
- package/package.json +3 -3
- package/src/client/client.d.ts +9 -0
- package/src/client/client.d.ts.map +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.d.ts.map +1 -1
- package/src/signingIntent.d.ts +7 -0
- package/src/signingIntent.d.ts.map +1 -0
package/index.cjs
CHANGED
|
@@ -191,7 +191,9 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
191
191
|
throw new Error(browser.ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
192
192
|
}
|
|
193
193
|
// Format the message for EVM signing
|
|
194
|
-
const formattedMessage =
|
|
194
|
+
const formattedMessage = this.prepareSignMessage({
|
|
195
|
+
message
|
|
196
|
+
});
|
|
195
197
|
const resolvedContext = context != null ? context : {
|
|
196
198
|
evmMessage: message
|
|
197
199
|
};
|
|
@@ -219,6 +221,9 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
219
221
|
});
|
|
220
222
|
}
|
|
221
223
|
}
|
|
224
|
+
prepareSignMessage({ message }) {
|
|
225
|
+
return formatEVMMessage(message, this.logger);
|
|
226
|
+
}
|
|
222
227
|
async verifyMessageSignature({ accountAddress, message, signature }) {
|
|
223
228
|
try {
|
|
224
229
|
// Verify the signature using the public client
|
|
@@ -236,13 +241,21 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
236
241
|
throw new Error(browser.ERROR_VERIFY_MESSAGE_SIGNATURE);
|
|
237
242
|
}
|
|
238
243
|
}
|
|
244
|
+
prepareSignTransaction({ transaction }) {
|
|
245
|
+
return viem.serializeTransaction(transaction);
|
|
246
|
+
}
|
|
247
|
+
prepareSignTypedData({ typedData }) {
|
|
248
|
+
return formatTypedData(typedData);
|
|
249
|
+
}
|
|
239
250
|
async signTransaction({ senderAddress, transaction, password = undefined, signedSessionId, mfaToken, elevatedAccessToken, context, approvalQuorum, onError, traceContext }) {
|
|
240
251
|
await this.verifyPassword({
|
|
241
252
|
accountAddress: senderAddress,
|
|
242
253
|
password,
|
|
243
254
|
signedSessionId
|
|
244
255
|
});
|
|
245
|
-
const serializedTx =
|
|
256
|
+
const serializedTx = this.prepareSignTransaction({
|
|
257
|
+
transaction
|
|
258
|
+
});
|
|
246
259
|
const serializedTxBytes = Uint8Array.from(Buffer.from(serializedTx.slice(2), 'hex'));
|
|
247
260
|
if (!(serializedTxBytes instanceof Uint8Array)) {
|
|
248
261
|
throw new Error('Invalid serializedTxBytes');
|
|
@@ -291,7 +304,9 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
291
304
|
if (!accountAddress) {
|
|
292
305
|
throw new Error(browser.ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
293
306
|
}
|
|
294
|
-
const formattedTypedData =
|
|
307
|
+
const formattedTypedData = this.prepareSignTypedData({
|
|
308
|
+
typedData
|
|
309
|
+
});
|
|
295
310
|
const signatureEcdsa = await this.sign({
|
|
296
311
|
message: formattedTypedData,
|
|
297
312
|
accountAddress: accountAddress,
|
|
@@ -431,4 +446,56 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
431
446
|
}
|
|
432
447
|
}
|
|
433
448
|
|
|
449
|
+
const decimal = (value)=>BigInt(value).toString(10);
|
|
450
|
+
const parseLimit = (value, name)=>{
|
|
451
|
+
if (!/^(0|[1-9]\d*)$/.test(value)) throw new Error(`Invalid ${name} signing limit`);
|
|
452
|
+
return BigInt(value);
|
|
453
|
+
};
|
|
454
|
+
const parseLimits = (limits)=>({
|
|
455
|
+
maxGas: parseLimit(limits.maxGas, 'maxGas'),
|
|
456
|
+
maxFeePerGas: parseLimit(limits.maxFeePerGas, 'maxFeePerGas'),
|
|
457
|
+
maxPriorityFeePerGas: parseLimit(limits.maxPriorityFeePerGas, 'maxPriorityFeePerGas'),
|
|
458
|
+
maxTotalFee: parseLimit(limits.maxTotalFee, 'maxTotalFee')
|
|
459
|
+
});
|
|
460
|
+
const prepareEvmTransactionSigningOperation = ({ transaction, accountAddress, refreshLimits })=>{
|
|
461
|
+
var _parsed_accessList;
|
|
462
|
+
const parsed = viem.parseTransaction(transaction);
|
|
463
|
+
var _parsed_accessList_length;
|
|
464
|
+
if (parsed.type !== 'eip1559' || ((_parsed_accessList_length = (_parsed_accessList = parsed.accessList) == null ? void 0 : _parsed_accessList.length) != null ? _parsed_accessList_length : 0) !== 0) {
|
|
465
|
+
throw new Error('Signing intent supports only EIP-1559 transactions with an empty access list');
|
|
466
|
+
}
|
|
467
|
+
const { chainId, nonce, gas, maxFeePerGas, maxPriorityFeePerGas } = parsed;
|
|
468
|
+
if (nonce === undefined || gas === undefined || maxFeePerGas === undefined || maxPriorityFeePerGas === undefined || parsed.yParity !== undefined || parsed.r !== undefined || parsed.s !== undefined) {
|
|
469
|
+
throw new Error('Signing intent requires a complete unsigned EIP-1559 transaction');
|
|
470
|
+
}
|
|
471
|
+
if (gas === 0n || maxFeePerGas === 0n) {
|
|
472
|
+
throw new Error('Transaction gas and maximum fee must be positive');
|
|
473
|
+
}
|
|
474
|
+
const limits = refreshLimits != null ? refreshLimits : {
|
|
475
|
+
maxGas: decimal(gas),
|
|
476
|
+
maxFeePerGas: decimal(maxFeePerGas),
|
|
477
|
+
maxPriorityFeePerGas: decimal(maxPriorityFeePerGas),
|
|
478
|
+
maxTotalFee: decimal(gas * maxFeePerGas)
|
|
479
|
+
};
|
|
480
|
+
const parsedLimits = parseLimits(limits);
|
|
481
|
+
if (parsedLimits.maxGas < gas || parsedLimits.maxFeePerGas < maxFeePerGas || parsedLimits.maxPriorityFeePerGas < maxPriorityFeePerGas || parsedLimits.maxPriorityFeePerGas > parsedLimits.maxFeePerGas || parsedLimits.maxGas * parsedLimits.maxFeePerGas > parsedLimits.maxTotalFee) {
|
|
482
|
+
throw new Error('Transaction exceeds signing intent limits');
|
|
483
|
+
}
|
|
484
|
+
var _parsed_value, _parsed_data;
|
|
485
|
+
return {
|
|
486
|
+
operation: {
|
|
487
|
+
kind: 'transaction',
|
|
488
|
+
chainName: 'EVM',
|
|
489
|
+
chainId: decimal(chainId),
|
|
490
|
+
from: viem.getAddress(accountAddress).toLowerCase(),
|
|
491
|
+
to: parsed.to ? viem.getAddress(parsed.to).toLowerCase() : null,
|
|
492
|
+
value: decimal((_parsed_value = parsed.value) != null ? _parsed_value : 0n),
|
|
493
|
+
data: ((_parsed_data = parsed.data) != null ? _parsed_data : '0x').toLowerCase(),
|
|
494
|
+
nonce: decimal(nonce)
|
|
495
|
+
},
|
|
496
|
+
limits
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
|
|
434
500
|
exports.DynamicEvmWalletClient = DynamicEvmWalletClient;
|
|
501
|
+
exports.prepareEvmTransactionSigningOperation = prepareEvmTransactionSigningOperation;
|
package/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EcdsaPublicKey, DynamicWalletClient, getMPCChainConfig, ERROR_CREATE_WALLET_ACCOUNT, ERROR_KEYGEN_FAILED, ERROR_PASSWORD_MISMATCH, ERROR_MULTIPLE_WALLETS_PER_CHAIN, ERROR_ACCOUNT_ADDRESS_REQUIRED, ERROR_SIGN_MESSAGE, ERROR_VERIFY_MESSAGE_SIGNATURE, ERROR_SIGN_TYPED_DATA, MessageHash, ERROR_IMPORT_PRIVATE_KEY } from '@dynamic-labs-wallet/browser';
|
|
2
|
-
import { stringToHex, bytesToHex, size, concat,
|
|
2
|
+
import { serializeSignature, stringToHex, bytesToHex, size, concat, hashTypedData, validateTypedData, createPublicClient, http, getAddress, serializeTransaction, parseTransaction } from 'viem';
|
|
3
3
|
import { privateKeyToAccount } from 'viem/accounts';
|
|
4
4
|
import { mainnet } from 'viem/chains';
|
|
5
5
|
|
|
@@ -189,7 +189,9 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
189
189
|
throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
190
190
|
}
|
|
191
191
|
// Format the message for EVM signing
|
|
192
|
-
const formattedMessage =
|
|
192
|
+
const formattedMessage = this.prepareSignMessage({
|
|
193
|
+
message
|
|
194
|
+
});
|
|
193
195
|
const resolvedContext = context != null ? context : {
|
|
194
196
|
evmMessage: message
|
|
195
197
|
};
|
|
@@ -217,6 +219,9 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
217
219
|
});
|
|
218
220
|
}
|
|
219
221
|
}
|
|
222
|
+
prepareSignMessage({ message }) {
|
|
223
|
+
return formatEVMMessage(message, this.logger);
|
|
224
|
+
}
|
|
220
225
|
async verifyMessageSignature({ accountAddress, message, signature }) {
|
|
221
226
|
try {
|
|
222
227
|
// Verify the signature using the public client
|
|
@@ -234,13 +239,21 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
234
239
|
throw new Error(ERROR_VERIFY_MESSAGE_SIGNATURE);
|
|
235
240
|
}
|
|
236
241
|
}
|
|
242
|
+
prepareSignTransaction({ transaction }) {
|
|
243
|
+
return serializeTransaction(transaction);
|
|
244
|
+
}
|
|
245
|
+
prepareSignTypedData({ typedData }) {
|
|
246
|
+
return formatTypedData(typedData);
|
|
247
|
+
}
|
|
237
248
|
async signTransaction({ senderAddress, transaction, password = undefined, signedSessionId, mfaToken, elevatedAccessToken, context, approvalQuorum, onError, traceContext }) {
|
|
238
249
|
await this.verifyPassword({
|
|
239
250
|
accountAddress: senderAddress,
|
|
240
251
|
password,
|
|
241
252
|
signedSessionId
|
|
242
253
|
});
|
|
243
|
-
const serializedTx =
|
|
254
|
+
const serializedTx = this.prepareSignTransaction({
|
|
255
|
+
transaction
|
|
256
|
+
});
|
|
244
257
|
const serializedTxBytes = Uint8Array.from(Buffer.from(serializedTx.slice(2), 'hex'));
|
|
245
258
|
if (!(serializedTxBytes instanceof Uint8Array)) {
|
|
246
259
|
throw new Error('Invalid serializedTxBytes');
|
|
@@ -289,7 +302,9 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
289
302
|
if (!accountAddress) {
|
|
290
303
|
throw new Error(ERROR_ACCOUNT_ADDRESS_REQUIRED);
|
|
291
304
|
}
|
|
292
|
-
const formattedTypedData =
|
|
305
|
+
const formattedTypedData = this.prepareSignTypedData({
|
|
306
|
+
typedData
|
|
307
|
+
});
|
|
293
308
|
const signatureEcdsa = await this.sign({
|
|
294
309
|
message: formattedTypedData,
|
|
295
310
|
accountAddress: accountAddress,
|
|
@@ -429,4 +444,55 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
429
444
|
}
|
|
430
445
|
}
|
|
431
446
|
|
|
432
|
-
|
|
447
|
+
const decimal = (value)=>BigInt(value).toString(10);
|
|
448
|
+
const parseLimit = (value, name)=>{
|
|
449
|
+
if (!/^(0|[1-9]\d*)$/.test(value)) throw new Error(`Invalid ${name} signing limit`);
|
|
450
|
+
return BigInt(value);
|
|
451
|
+
};
|
|
452
|
+
const parseLimits = (limits)=>({
|
|
453
|
+
maxGas: parseLimit(limits.maxGas, 'maxGas'),
|
|
454
|
+
maxFeePerGas: parseLimit(limits.maxFeePerGas, 'maxFeePerGas'),
|
|
455
|
+
maxPriorityFeePerGas: parseLimit(limits.maxPriorityFeePerGas, 'maxPriorityFeePerGas'),
|
|
456
|
+
maxTotalFee: parseLimit(limits.maxTotalFee, 'maxTotalFee')
|
|
457
|
+
});
|
|
458
|
+
const prepareEvmTransactionSigningOperation = ({ transaction, accountAddress, refreshLimits })=>{
|
|
459
|
+
var _parsed_accessList;
|
|
460
|
+
const parsed = parseTransaction(transaction);
|
|
461
|
+
var _parsed_accessList_length;
|
|
462
|
+
if (parsed.type !== 'eip1559' || ((_parsed_accessList_length = (_parsed_accessList = parsed.accessList) == null ? void 0 : _parsed_accessList.length) != null ? _parsed_accessList_length : 0) !== 0) {
|
|
463
|
+
throw new Error('Signing intent supports only EIP-1559 transactions with an empty access list');
|
|
464
|
+
}
|
|
465
|
+
const { chainId, nonce, gas, maxFeePerGas, maxPriorityFeePerGas } = parsed;
|
|
466
|
+
if (nonce === undefined || gas === undefined || maxFeePerGas === undefined || maxPriorityFeePerGas === undefined || parsed.yParity !== undefined || parsed.r !== undefined || parsed.s !== undefined) {
|
|
467
|
+
throw new Error('Signing intent requires a complete unsigned EIP-1559 transaction');
|
|
468
|
+
}
|
|
469
|
+
if (gas === 0n || maxFeePerGas === 0n) {
|
|
470
|
+
throw new Error('Transaction gas and maximum fee must be positive');
|
|
471
|
+
}
|
|
472
|
+
const limits = refreshLimits != null ? refreshLimits : {
|
|
473
|
+
maxGas: decimal(gas),
|
|
474
|
+
maxFeePerGas: decimal(maxFeePerGas),
|
|
475
|
+
maxPriorityFeePerGas: decimal(maxPriorityFeePerGas),
|
|
476
|
+
maxTotalFee: decimal(gas * maxFeePerGas)
|
|
477
|
+
};
|
|
478
|
+
const parsedLimits = parseLimits(limits);
|
|
479
|
+
if (parsedLimits.maxGas < gas || parsedLimits.maxFeePerGas < maxFeePerGas || parsedLimits.maxPriorityFeePerGas < maxPriorityFeePerGas || parsedLimits.maxPriorityFeePerGas > parsedLimits.maxFeePerGas || parsedLimits.maxGas * parsedLimits.maxFeePerGas > parsedLimits.maxTotalFee) {
|
|
480
|
+
throw new Error('Transaction exceeds signing intent limits');
|
|
481
|
+
}
|
|
482
|
+
var _parsed_value, _parsed_data;
|
|
483
|
+
return {
|
|
484
|
+
operation: {
|
|
485
|
+
kind: 'transaction',
|
|
486
|
+
chainName: 'EVM',
|
|
487
|
+
chainId: decimal(chainId),
|
|
488
|
+
from: getAddress(accountAddress).toLowerCase(),
|
|
489
|
+
to: parsed.to ? getAddress(parsed.to).toLowerCase() : null,
|
|
490
|
+
value: decimal((_parsed_value = parsed.value) != null ? _parsed_value : 0n),
|
|
491
|
+
data: ((_parsed_data = parsed.data) != null ? _parsed_data : '0x').toLowerCase(),
|
|
492
|
+
nonce: decimal(nonce)
|
|
493
|
+
},
|
|
494
|
+
limits
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
export { DynamicEvmWalletClient, prepareEvmTransactionSigningOperation };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/evm",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/browser": "1.1.
|
|
8
|
-
"@dynamic-labs-wallet/core": "1.1.
|
|
7
|
+
"@dynamic-labs-wallet/browser": "1.1.21",
|
|
8
|
+
"@dynamic-labs-wallet/core": "1.1.21",
|
|
9
9
|
"@dynamic-labs/sdk-api-core": "0.50.0"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
package/src/client/client.d.ts
CHANGED
|
@@ -27,11 +27,20 @@ export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
27
27
|
message: string;
|
|
28
28
|
accountAddress: string;
|
|
29
29
|
} & BaseSignParams): Promise<`0x${string}`>;
|
|
30
|
+
prepareSignMessage({ message }: {
|
|
31
|
+
message: string;
|
|
32
|
+
}): string;
|
|
30
33
|
verifyMessageSignature({ accountAddress, message, signature, }: {
|
|
31
34
|
accountAddress: string;
|
|
32
35
|
message: SignableMessage;
|
|
33
36
|
signature: any;
|
|
34
37
|
}): Promise<boolean>;
|
|
38
|
+
prepareSignTransaction({ transaction }: {
|
|
39
|
+
transaction: TransactionSerializable;
|
|
40
|
+
}): string;
|
|
41
|
+
prepareSignTypedData({ typedData }: {
|
|
42
|
+
typedData: TypedData;
|
|
43
|
+
}): string;
|
|
35
44
|
signTransaction({ senderAddress, transaction, password, signedSessionId, mfaToken, elevatedAccessToken, context, approvalQuorum, onError, traceContext, }: {
|
|
36
45
|
senderAddress: string;
|
|
37
46
|
transaction: TransactionSerializable;
|
|
@@ -1 +1 @@
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@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../packages/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,qCAAqC,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EvmSigningIntentLimits, PreparedTransactionSigningIntent } from '@dynamic-labs-wallet/core';
|
|
2
|
+
export declare const prepareEvmTransactionSigningOperation: ({ transaction, accountAddress, refreshLimits, }: {
|
|
3
|
+
transaction: string;
|
|
4
|
+
accountAddress: string;
|
|
5
|
+
refreshLimits?: EvmSigningIntentLimits;
|
|
6
|
+
}) => PreparedTransactionSigningIntent;
|
|
7
|
+
//# sourceMappingURL=signingIntent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signingIntent.d.ts","sourceRoot":"","sources":["../../packages/src/signingIntent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAiB1G,eAAO,MAAM,qCAAqC,oDAI/C;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,sBAAsB,CAAC;CACxC,KAAG,gCAmDH,CAAC"}
|