@dynamic-labs-wallet/evm 0.0.120 → 0.0.122
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 +3 -2
- package/index.esm.js +3 -2
- package/package.json +2 -2
- package/src/client/client.d.ts +7 -7
- package/src/client/client.d.ts.map +1 -1
package/index.cjs.js
CHANGED
|
@@ -352,14 +352,15 @@ class DynamicEvmWalletClient extends browser.DynamicWalletClient {
|
|
|
352
352
|
const evmWallets = wallets.filter((wallet)=>wallet.chainName === 'eip155');
|
|
353
353
|
return evmWallets;
|
|
354
354
|
}
|
|
355
|
-
constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug }){
|
|
355
|
+
constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags }){
|
|
356
356
|
super({
|
|
357
357
|
environmentId,
|
|
358
358
|
authToken,
|
|
359
359
|
baseApiUrl,
|
|
360
360
|
baseMPCRelayApiUrl,
|
|
361
361
|
storageKey,
|
|
362
|
-
debug
|
|
362
|
+
debug,
|
|
363
|
+
featureFlags
|
|
363
364
|
}), this.chainName = 'EVM';
|
|
364
365
|
}
|
|
365
366
|
}
|
package/index.esm.js
CHANGED
|
@@ -350,14 +350,15 @@ class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
350
350
|
const evmWallets = wallets.filter((wallet)=>wallet.chainName === 'eip155');
|
|
351
351
|
return evmWallets;
|
|
352
352
|
}
|
|
353
|
-
constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug }){
|
|
353
|
+
constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags }){
|
|
354
354
|
super({
|
|
355
355
|
environmentId,
|
|
356
356
|
authToken,
|
|
357
357
|
baseApiUrl,
|
|
358
358
|
baseMPCRelayApiUrl,
|
|
359
359
|
storageKey,
|
|
360
|
-
debug
|
|
360
|
+
debug,
|
|
361
|
+
featureFlags
|
|
361
362
|
}), this.chainName = 'EVM';
|
|
362
363
|
}
|
|
363
364
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs-wallet/evm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.122",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dynamic-labs-wallet/browser": "0.0.
|
|
7
|
+
"@dynamic-labs-wallet/browser": "0.0.122"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"viem": "^2.22.1"
|
package/src/client/client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DynamicWalletClient, DynamicWalletClientProps, EcdsaKeygenResult, Ecdsa
|
|
|
2
2
|
import { type Chain, type PublicClient, type SignableMessage, type TransactionSerializable, type TypedData } from 'viem';
|
|
3
3
|
export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
4
4
|
readonly chainName = "EVM";
|
|
5
|
-
constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, }: DynamicWalletClientProps);
|
|
5
|
+
constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags, }: DynamicWalletClientProps);
|
|
6
6
|
createViemPublicClient({ chain, rpcUrl, }: {
|
|
7
7
|
chain: Chain;
|
|
8
8
|
rpcUrl?: string;
|
|
@@ -11,7 +11,7 @@ export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
11
11
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
12
12
|
password?: string;
|
|
13
13
|
onError?: (error: Error) => void;
|
|
14
|
-
signedSessionId
|
|
14
|
+
signedSessionId: string;
|
|
15
15
|
}): Promise<{
|
|
16
16
|
accountAddress: string;
|
|
17
17
|
publicKeyHex: string;
|
|
@@ -21,7 +21,7 @@ export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
21
21
|
message: string;
|
|
22
22
|
accountAddress: string;
|
|
23
23
|
password?: string;
|
|
24
|
-
signedSessionId
|
|
24
|
+
signedSessionId: string;
|
|
25
25
|
}): Promise<`0x${string}`>;
|
|
26
26
|
verifyMessageSignature({ accountAddress, message, signature, }: {
|
|
27
27
|
accountAddress: string;
|
|
@@ -32,13 +32,13 @@ export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
32
32
|
senderAddress: string;
|
|
33
33
|
transaction: TransactionSerializable;
|
|
34
34
|
password?: string;
|
|
35
|
-
signedSessionId
|
|
35
|
+
signedSessionId: string;
|
|
36
36
|
}): Promise<string>;
|
|
37
37
|
signTypedData({ accountAddress, typedData, password, signedSessionId, }: {
|
|
38
38
|
accountAddress: string;
|
|
39
39
|
typedData: TypedData;
|
|
40
40
|
password?: string;
|
|
41
|
-
signedSessionId
|
|
41
|
+
signedSessionId: string;
|
|
42
42
|
}): Promise<`0x${string}`>;
|
|
43
43
|
deriveAccountAddress({ rawPublicKey }: {
|
|
44
44
|
rawPublicKey: EcdsaPublicKey;
|
|
@@ -49,7 +49,7 @@ export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
49
49
|
exportPrivateKey({ accountAddress, password, signedSessionId, }: {
|
|
50
50
|
accountAddress: string;
|
|
51
51
|
password?: string;
|
|
52
|
-
signedSessionId
|
|
52
|
+
signedSessionId: string;
|
|
53
53
|
}): Promise<string | undefined>;
|
|
54
54
|
offlineExportPrivateKey({ keyShares, derivationPath, }: {
|
|
55
55
|
keyShares: (EcdsaKeygenResult | Ed25519KeygenResult)[];
|
|
@@ -63,7 +63,7 @@ export declare class DynamicEvmWalletClient extends DynamicWalletClient {
|
|
|
63
63
|
thresholdSignatureScheme: ThresholdSignatureScheme;
|
|
64
64
|
password?: string;
|
|
65
65
|
onError?: (error: Error) => void;
|
|
66
|
-
signedSessionId
|
|
66
|
+
signedSessionId: string;
|
|
67
67
|
}): Promise<{
|
|
68
68
|
accountAddress: string;
|
|
69
69
|
publicKeyHex: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EAEd,mBAAmB,EAUnB,wBAAwB,EAEzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,KAAK,EAIV,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AASd,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,QAAQ,CAAC,SAAS,SAAS;gBAEf,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,KAAK,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,cAAc,EAEd,mBAAmB,EAUnB,wBAAwB,EAEzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,KAAK,EAIV,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AASd,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,QAAQ,CAAC,SAAS,SAAS;gBAEf,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,KAAK,EACL,YAAY,GACb,EAAE,wBAAwB;IAY3B,sBAAsB,CAAC,EACrB,KAAK,EACL,MAAM,GACP,EAAE;QACD,KAAK,EAAE,KAAK,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,YAAY;IAOV,mBAAmB,CAAC,EACxB,wBAAwB,EACx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