@super-protocol/sdk-js 0.7.1-beta.6 → 0.7.1-beta.7

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.
@@ -36,6 +36,7 @@ declare class BlockchainConnector {
36
36
  * @returns {Promise<number>} - Transactions count
37
37
  */
38
38
  static getTransactionCount(address: string, status?: string): Promise<number>;
39
+ static getAddressByKey(pk: string): string;
39
40
  /**
40
41
  * Fetch transactions for specific addresses starting with specific block until last block
41
42
  * @param addresses - array of addresses to fetch transactions (from these addresses and to these addresses)
@@ -59,6 +59,7 @@ var Superpro_1 = __importDefault(require("./staticModels/Superpro"));
59
59
  var SuperproToken_1 = __importDefault(require("./staticModels/SuperproToken"));
60
60
  var TxManager_1 = __importDefault(require("./utils/TxManager"));
61
61
  var app_json_1 = __importDefault(require("./contracts/app.json"));
62
+ var ethers_1 = require("ethers");
62
63
  var BlockchainConnector = /** @class */ (function () {
63
64
  function BlockchainConnector() {
64
65
  }
@@ -228,6 +229,9 @@ var BlockchainConnector = /** @class */ (function () {
228
229
  });
229
230
  });
230
231
  };
232
+ BlockchainConnector.getAddressByKey = function (pk) {
233
+ return new ethers_1.Wallet(pk).address;
234
+ };
231
235
  /**
232
236
  * Fetch transactions for specific addresses starting with specific block until last block
233
237
  * @param addresses - array of addresses to fetch transactions (from these addresses and to these addresses)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-protocol/sdk-js",
3
- "version": "0.7.1-beta.6",
3
+ "version": "0.7.1-beta.7",
4
4
  "main": "build/index.js",
5
5
  "license": "MIT",
6
6
  "files": [