@strkfarm/sdk 1.0.14 → 1.0.15

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/dist/index.d.ts CHANGED
@@ -315,7 +315,7 @@ declare class Store {
315
315
  private encryptor;
316
316
  constructor(config: IConfig, storeConfig: StoreConfig);
317
317
  static logPassword(password: string): void;
318
- getAccount(accountKey: string, txVersion?: "0x2"): Account;
318
+ getAccount(accountKey: string, txVersion?: "0x2" | "0x3"): Account;
319
319
  addAccount(accountKey: string, address: string, pk: string): void;
320
320
  private getAccountFilePath;
321
321
  private getAllAccounts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
5
5
  "typings": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -96,7 +96,7 @@ export class Store {
96
96
  logger.warn(`⚠️=========================================⚠️`);
97
97
  }
98
98
 
99
- getAccount(accountKey: string, txVersion = constants.TRANSACTION_VERSION.V2) {
99
+ getAccount(accountKey: string, txVersion: "0x2" | "0x3" = constants.TRANSACTION_VERSION.V2) {
100
100
  const accounts = this.loadAccounts();
101
101
  logger.verbose(`nAccounts loaded for network: ${Object.keys(accounts).length}`);
102
102
  const data = accounts[accountKey];