@dynamic-labs-wallet/node-svm 0.0.135 → 0.0.136

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
@@ -61,7 +61,7 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
61
61
  *
62
62
  * @param thresholdSignatureScheme The threshold signature scheme to use
63
63
  * @returns The account address, public key hex, raw public key, and client key shares
64
- */ async createWalletAccount({ thresholdSignatureScheme, password = undefined, onError, backUpToClientShareService = false }) {
64
+ */ async createWalletAccount({ thresholdSignatureScheme, password = undefined, onError }) {
65
65
  try {
66
66
  let ceremonyCeremonyCompleteResolver;
67
67
  const ceremonyCompletePromise = new Promise((resolve)=>{
@@ -102,8 +102,7 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
102
102
  await this.storeEncryptedBackupByWalletWithRetry({
103
103
  accountAddress,
104
104
  externalServerKeyShares,
105
- password,
106
- backUpToClientShareService
105
+ password
107
106
  });
108
107
  return {
109
108
  accountAddress,
@@ -259,7 +258,7 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
259
258
  * @param thresholdSignatureScheme The threshold signature scheme to use
260
259
  * @param password The password for encrypted backup shares
261
260
  * @returns The account address, raw public key, and client key shares
262
- */ async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password = undefined, onError, backUpToClientShareService = false }) {
261
+ */ async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password = undefined, onError }) {
263
262
  let ceremonyCeremonyCompleteResolver;
264
263
  const ceremonyCompletePromise = new Promise((resolve)=>{
265
264
  ceremonyCeremonyCompleteResolver = resolve;
@@ -296,8 +295,7 @@ class DynamicSvmWalletClient extends node.DynamicWalletClient {
296
295
  await this.storeEncryptedBackupByWalletWithRetry({
297
296
  accountAddress,
298
297
  externalServerKeyShares,
299
- password,
300
- backUpToClientShareService
298
+ password
301
299
  });
302
300
  return {
303
301
  accountAddress,
package/index.esm.js CHANGED
@@ -59,7 +59,7 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
59
59
  *
60
60
  * @param thresholdSignatureScheme The threshold signature scheme to use
61
61
  * @returns The account address, public key hex, raw public key, and client key shares
62
- */ async createWalletAccount({ thresholdSignatureScheme, password = undefined, onError, backUpToClientShareService = false }) {
62
+ */ async createWalletAccount({ thresholdSignatureScheme, password = undefined, onError }) {
63
63
  try {
64
64
  let ceremonyCeremonyCompleteResolver;
65
65
  const ceremonyCompletePromise = new Promise((resolve)=>{
@@ -100,8 +100,7 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
100
100
  await this.storeEncryptedBackupByWalletWithRetry({
101
101
  accountAddress,
102
102
  externalServerKeyShares,
103
- password,
104
- backUpToClientShareService
103
+ password
105
104
  });
106
105
  return {
107
106
  accountAddress,
@@ -257,7 +256,7 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
257
256
  * @param thresholdSignatureScheme The threshold signature scheme to use
258
257
  * @param password The password for encrypted backup shares
259
258
  * @returns The account address, raw public key, and client key shares
260
- */ async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password = undefined, onError, backUpToClientShareService = false }) {
259
+ */ async importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password = undefined, onError }) {
261
260
  let ceremonyCeremonyCompleteResolver;
262
261
  const ceremonyCompletePromise = new Promise((resolve)=>{
263
262
  ceremonyCeremonyCompleteResolver = resolve;
@@ -294,8 +293,7 @@ class DynamicSvmWalletClient extends DynamicWalletClient {
294
293
  await this.storeEncryptedBackupByWalletWithRetry({
295
294
  accountAddress,
296
295
  externalServerKeyShares,
297
- password,
298
- backUpToClientShareService
296
+ password
299
297
  });
300
298
  return {
301
299
  accountAddress,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node-svm",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
- "@dynamic-labs-wallet/node": "0.0.135",
6
+ "@dynamic-labs-wallet/node": "0.0.136",
7
7
  "@solana/web3.js": "^1.98.2"
8
8
  },
9
9
  "publishConfig": {
@@ -15,11 +15,10 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
15
15
  * @param thresholdSignatureScheme The threshold signature scheme to use
16
16
  * @returns The account address, public key hex, raw public key, and client key shares
17
17
  */
18
- createWalletAccount({ thresholdSignatureScheme, password, onError, backUpToClientShareService, }: {
18
+ createWalletAccount({ thresholdSignatureScheme, password, onError, }: {
19
19
  thresholdSignatureScheme: ThresholdSignatureScheme;
20
20
  password?: string;
21
21
  onError?: (error: Error) => void;
22
- backUpToClientShareService?: boolean;
23
22
  }): Promise<{
24
23
  accountAddress: string;
25
24
  rawPublicKey: Uint8Array | string;
@@ -39,13 +38,13 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
39
38
  message: string;
40
39
  accountAddress: string;
41
40
  password?: string;
42
- externalServerKeyShares?: ServerKeyShare[];
41
+ externalServerKeyShares: ServerKeyShare[];
43
42
  }): Promise<string>;
44
43
  signTransaction({ senderAddress, transaction, password, externalServerKeyShares, }: {
45
44
  senderAddress: string;
46
45
  transaction: VersionedTransaction | Transaction;
47
46
  password?: string;
48
- externalServerKeyShares?: ServerKeyShare[];
47
+ externalServerKeyShares: ServerKeyShare[];
49
48
  }): Promise<VersionedTransaction | Transaction>;
50
49
  /**
51
50
  * Exports the private key for a given account address
@@ -57,7 +56,7 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
57
56
  exportPrivateKey({ accountAddress, password, externalServerKeyShares, }: {
58
57
  accountAddress: string;
59
58
  password?: string;
60
- externalServerKeyShares?: ServerKeyShare[];
59
+ externalServerKeyShares: ServerKeyShare[];
61
60
  }): Promise<string>;
62
61
  /**
63
62
  * Exports the private key for a given account address
@@ -89,13 +88,12 @@ export declare class DynamicSvmWalletClient extends DynamicWalletClient {
89
88
  * @param password The password for encrypted backup shares
90
89
  * @returns The account address, raw public key, and client key shares
91
90
  */
92
- importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password, onError, backUpToClientShareService, }: {
91
+ importPrivateKey({ privateKey, chainName, thresholdSignatureScheme, password, onError, }: {
93
92
  privateKey: string;
94
93
  chainName: string;
95
94
  thresholdSignatureScheme: ThresholdSignatureScheme;
96
95
  password?: string;
97
96
  onError?: (error: Error) => void;
98
- backUpToClientShareService?: boolean;
99
97
  }): Promise<{
100
98
  accountAddress: string;
101
99
  rawPublicKey: Uint8Array | string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EAGzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,WAAW,EACX,oBAAoB,EAErB,MAAM,iBAAiB,CAAC;AAIzB,qBAAa,sBAAuB,SAAQ,mBAAmB;IAC7D,QAAQ,CAAC,SAAS,SAAS;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;gBAEZ,EACV,aAAa,EACb,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;IAQD;;;;;OAKG;IACG,mBAAmB,CAAC,EACxB,wBAAwB,EACxB,QAAoB,EACpB,OAAO,EACP,0BAAkC,GACnC,EAAE;QACD,wBAAwB,EAAE,wBAAwB,CAAC;QACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QACjC,0BAA0B,CAAC,EAAE,OAAO,CAAC;KACtC,GAAG,OAAO,CAAC;QACV,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,UAAU,GAAG,MAAM,CAAC;QAClC,uBAAuB,EAAE,cAAc,E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