@dynamic-labs-wallet/svm 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 CHANGED
@@ -281,12 +281,15 @@ class DynamicSvmWalletClient extends browser.DynamicWalletClient {
281
281
  const svmWallets = wallets.filter((wallet)=>wallet.chainName === 'solana');
282
282
  return svmWallets;
283
283
  }
284
- constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl }){
284
+ constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags }){
285
285
  super({
286
286
  environmentId,
287
287
  authToken,
288
288
  baseApiUrl,
289
- baseMPCRelayApiUrl
289
+ baseMPCRelayApiUrl,
290
+ storageKey,
291
+ debug,
292
+ featureFlags
290
293
  }), this.chainName = 'SVM';
291
294
  }
292
295
  }
package/index.esm.js CHANGED
@@ -279,12 +279,15 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
279
279
  const svmWallets = wallets.filter((wallet)=>wallet.chainName === 'solana');
280
280
  return svmWallets;
281
281
  }
282
- constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl }){
282
+ constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags }){
283
283
  super({
284
284
  environmentId,
285
285
  authToken,
286
286
  baseApiUrl,
287
- baseMPCRelayApiUrl
287
+ baseMPCRelayApiUrl,
288
+ storageKey,
289
+ debug,
290
+ featureFlags
288
291
  }), this.chainName = 'SVM';
289
292
  }
290
293
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/svm",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "license": "MIT",
5
5
  "type": "commonjs",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/browser": "0.0.120",
7
+ "@dynamic-labs-wallet/browser": "0.0.122",
8
8
  "@solana/web3.js": "^1.98.2",
9
9
  "bs58": "^6.0.0"
10
10
  },
@@ -1,13 +1,8 @@
1
- import { DynamicWalletClient, Ed25519KeygenResult, ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser';
1
+ import { DynamicWalletClient, DynamicWalletClientProps, Ed25519KeygenResult, ThresholdSignatureScheme } from '@dynamic-labs-wallet/browser';
2
2
  export declare class DynamicSvmWalletClient extends DynamicWalletClient {
3
3
  readonly chainName = "SVM";
4
4
  accountAddress?: string;
5
- constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, }: {
6
- environmentId: string;
7
- authToken: string;
8
- baseApiUrl?: string;
9
- baseMPCRelayApiUrl?: string;
10
- });
5
+ constructor({ environmentId, authToken, baseApiUrl, baseMPCRelayApiUrl, storageKey, debug, featureFlags, }: DynamicWalletClientProps);
11
6
  /**
12
7
  * Creates a wallet account on the Solana chain
13
8
  *
@@ -17,7 +12,7 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
17
12
  createWalletAccount({ thresholdSignatureScheme, password, signedSessionId, }: {
18
13
  thresholdSignatureScheme: ThresholdSignatureScheme;
19
14
  password?: string;
20
- signedSessionId?: string;
15
+ signedSessionId: string;
21
16
  }): Promise<{
22
17
  accountAddress: string;
23
18
  rawPublicKey: Uint8Array | string;
@@ -36,13 +31,13 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
36
31
  message: string;
37
32
  accountAddress: string;
38
33
  password?: string;
39
- signedSessionId?: string;
34
+ signedSessionId: string;
40
35
  }): Promise<string>;
41
36
  signTransaction({ senderAddress, transaction, password, signedSessionId, }: {
42
37
  senderAddress: string;
43
38
  transaction: string;
44
39
  password?: string;
45
- signedSessionId?: string;
40
+ signedSessionId: string;
46
41
  }): Promise<string>;
47
42
  /**
48
43
  * Exports the private key for a given account address
@@ -54,7 +49,7 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
54
49
  exportPrivateKey({ accountAddress, password, signedSessionId, }: {
55
50
  accountAddress: string;
56
51
  password?: string;
57
- signedSessionId?: string;
52
+ signedSessionId: string;
58
53
  }): Promise<string>;
59
54
  /**
60
55
  * Exports the private key for a given account address
@@ -92,7 +87,7 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
92
87
  thresholdSignatureScheme: ThresholdSignatureScheme;
93
88
  password?: string;
94
89
  onError?: (error: Error) => void;
95
- signedSessionId?: string;
90
+ signedSessionId: string;
96
91
  }): Promise<{
97
92
  accountAddress: string;
98
93
  rawPublicKey: Uint8Array | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/svm/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EAQzB,MAAM,8BAA8B,CAAC;AAItC,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,QAAQ,CAAC,SAAS,SAAS;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;gBAEZ,EACV,aAAa,EACb,SAAS,EACT,UAAU,EACV,kBAAkB,GACnB,EAAE;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B;IASD;;;;;OAKG;IACG,mBAAmB,CAAC,EACxB,wBAAwB,EACxB,QAAoB,EACpB,eAAe,GAChB,EAAE;QACD,wBAAwB,EAAE,wBAAwB,CAAC;QACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,GAAG,OAAO,CAAC;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC;KACnC,CAAC;IA2EI,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU;;;IAY5D;;;;;;OAMG;IACG,WAAW,CAAC,EAChB,OAAO,EACP,cAAc,EACd,QAAoB,EACpB,eAAe,GAChB,EAAE;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