@gnolang/tm2-js-client 1.2.3 → 1.2.5
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/bin/wallet/wallet.d.ts +6 -0
- package/bin/wallet/wallet.js +13 -0
- package/package.json +26 -26
package/bin/wallet/wallet.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export declare class Wallet {
|
|
|
20
20
|
* @param {AccountWalletOption} options the account options
|
|
21
21
|
*/
|
|
22
22
|
static createRandom: (options?: AccountWalletOption) => Promise<Wallet>;
|
|
23
|
+
/**
|
|
24
|
+
* Generates a custom signer-based wallet
|
|
25
|
+
* @param {Signer} signer the custom signer implementing the Signer interface
|
|
26
|
+
* @param {CreateWalletOptions} options the wallet generation options
|
|
27
|
+
*/
|
|
28
|
+
static fromSigner: (signer: Signer) => Promise<Wallet>;
|
|
23
29
|
/**
|
|
24
30
|
* Generates a bip39 mnemonic-based wallet
|
|
25
31
|
* @param {string} mnemonic the bip39 mnemonic
|
package/bin/wallet/wallet.js
CHANGED
|
@@ -289,6 +289,19 @@ var Wallet = /** @class */ (function () {
|
|
|
289
289
|
}
|
|
290
290
|
});
|
|
291
291
|
}); };
|
|
292
|
+
/**
|
|
293
|
+
* Generates a custom signer-based wallet
|
|
294
|
+
* @param {Signer} signer the custom signer implementing the Signer interface
|
|
295
|
+
* @param {CreateWalletOptions} options the wallet generation options
|
|
296
|
+
*/
|
|
297
|
+
Wallet.fromSigner = function (signer) { return __awaiter(void 0, void 0, void 0, function () {
|
|
298
|
+
var wallet;
|
|
299
|
+
return __generator(_a, function (_b) {
|
|
300
|
+
wallet = new _a();
|
|
301
|
+
wallet.signer = signer;
|
|
302
|
+
return [2 /*return*/, wallet];
|
|
303
|
+
});
|
|
304
|
+
}); };
|
|
292
305
|
/**
|
|
293
306
|
* Generates a bip39 mnemonic-based wallet
|
|
294
307
|
* @param {string} mnemonic the bip39 mnemonic
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnolang/tm2-js-client",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Tendermint2 JS / TS Client",
|
|
5
5
|
"main": "./bin/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,42 +20,41 @@
|
|
|
20
20
|
"files": [
|
|
21
21
|
"bin/**/*"
|
|
22
22
|
],
|
|
23
|
-
"private": false,
|
|
24
23
|
"publishConfig": {
|
|
25
24
|
"access": "public",
|
|
26
25
|
"registry": "https://registry.npmjs.org/"
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
|
-
"@eslint/js": "^9.
|
|
30
|
-
"@types/jest": "^
|
|
28
|
+
"@eslint/js": "^9.31.0",
|
|
29
|
+
"@types/jest": "^30.0.0",
|
|
31
30
|
"@types/long": "^5.0.0",
|
|
32
|
-
"@types/node": "^
|
|
31
|
+
"@types/node": "^24.0.14",
|
|
33
32
|
"@types/ws": "^8.5.11",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
35
|
-
"@typescript-eslint/parser": "^8.
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
34
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
36
35
|
"@typescript-eslint/typescript-estree": "^8.6.0",
|
|
37
|
-
"eslint": "^9.
|
|
38
|
-
"eslint-config-prettier": "^
|
|
39
|
-
"eslint-plugin-prettier": "5.
|
|
40
|
-
"globals": "^
|
|
41
|
-
"jest": "^
|
|
42
|
-
"jest-mock-extended": "^
|
|
36
|
+
"eslint": "^9.31.0",
|
|
37
|
+
"eslint-config-prettier": "^10.1.5",
|
|
38
|
+
"eslint-plugin-prettier": "5.5.1",
|
|
39
|
+
"globals": "^16.3.0",
|
|
40
|
+
"jest": "^30.0.4",
|
|
41
|
+
"jest-mock-extended": "^4.0.0",
|
|
43
42
|
"jest-websocket-mock": "^2.4.0",
|
|
44
|
-
"prettier": "^3.
|
|
45
|
-
"ts-jest": "^29.
|
|
46
|
-
"ts-proto": "^2.
|
|
47
|
-
"typescript": "^5.
|
|
48
|
-
"typescript-eslint": "^8.
|
|
43
|
+
"prettier": "^3.6.2",
|
|
44
|
+
"ts-jest": "^29.4.0",
|
|
45
|
+
"ts-proto": "^2.7.5",
|
|
46
|
+
"typescript": "^5.8.3",
|
|
47
|
+
"typescript-eslint": "^8.37.0"
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"@cosmjs/amino": "^0.
|
|
52
|
-
"@cosmjs/crypto": "^0.
|
|
53
|
-
"@cosmjs/ledger-amino": "^0.
|
|
50
|
+
"@cosmjs/amino": "^0.34.0",
|
|
51
|
+
"@cosmjs/crypto": "^0.34.0",
|
|
52
|
+
"@cosmjs/ledger-amino": "^0.34.0",
|
|
54
53
|
"@types/uuid": "^10.0.0",
|
|
55
|
-
"axios": "^1.
|
|
56
|
-
"long": "^5.2
|
|
57
|
-
"protobufjs": "^7.
|
|
58
|
-
"uuid": "^
|
|
54
|
+
"axios": "^1.10.0",
|
|
55
|
+
"long": "^5.3.2",
|
|
56
|
+
"protobufjs": "^7.5.3",
|
|
57
|
+
"uuid": "^11.1.0",
|
|
59
58
|
"ws": "^8.18.0"
|
|
60
59
|
},
|
|
61
60
|
"scripts": {
|
|
@@ -66,5 +65,6 @@
|
|
|
66
65
|
"test": "jest",
|
|
67
66
|
"prepare": "yarn build",
|
|
68
67
|
"prepublishOnly": "yarn lint && yarn prettier"
|
|
69
|
-
}
|
|
68
|
+
},
|
|
69
|
+
"packageManager": "yarn@4.9.2"
|
|
70
70
|
}
|