@gnolang/tm2-js-client
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -68,3 +68,3 @@ "use strict"; | ||
'', | ||
'0', | ||
'0', // Height; not supported > 0 for now | ||
false, | ||
@@ -155,3 +155,3 @@ ]), | ||
'', | ||
'0', | ||
'0', // Height; not supported > 0 for now | ||
false, | ||
@@ -176,3 +176,3 @@ ]), | ||
'', | ||
'0', | ||
'0', // Height; not supported > 0 for now | ||
false, | ||
@@ -179,0 +179,0 @@ ]), |
@@ -132,3 +132,3 @@ "use strict"; | ||
test.each([ | ||
[validResult, validResult.hash, '', ''], | ||
[validResult, validResult.hash, '', ''], // no error | ||
[invalidResult, invalidResult.hash, messages_1.UnauthorizedErrorMessage, mockLog], // error out | ||
@@ -285,4 +285,4 @@ ])('case %#', function (response, expectedHash, expectedErr, expectedLog) { return __awaiter(void 0, void 0, void 0, function () { | ||
test.each([ | ||
['"5gnot,100atom"', 100], | ||
['"5universe"', 0], | ||
['"5gnot,100atom"', 100], // balance found | ||
['"5universe"', 0], // balance not found | ||
['""', 0], // account doesn't exist | ||
@@ -330,3 +330,3 @@ ])('case %#', function (existing, expected) { return __awaiter(void 0, void 0, void 0, function () { | ||
parseInt(validAccount.BaseAccount.sequence, 10), | ||
], | ||
], // account exists | ||
['null', 0], // account doesn't exist | ||
@@ -374,3 +374,3 @@ ])('case %#', function (response, expected) { return __awaiter(void 0, void 0, void 0, function () { | ||
parseInt(validAccount.BaseAccount.account_number, 10), | ||
], | ||
], // account exists | ||
['null', 0], // account doesn't exist | ||
@@ -377,0 +377,0 @@ ])('case %#', function (response, expected) { return __awaiter(void 0, void 0, void 0, function () { |
@@ -157,3 +157,3 @@ "use strict"; | ||
'', | ||
'0', | ||
'0', // Height; not supported > 0 for now | ||
false, | ||
@@ -245,3 +245,3 @@ ]))]; | ||
'', | ||
'0', | ||
'0', // Height; not supported > 0 for now | ||
false, | ||
@@ -265,3 +265,3 @@ ]))]; | ||
'', | ||
'0', | ||
'0', // Height; not supported > 0 for now | ||
false, | ||
@@ -268,0 +268,0 @@ ]))]; |
@@ -228,3 +228,3 @@ "use strict"; | ||
parseInt(validAccount.BaseAccount.sequence, 10), | ||
], | ||
], // account exists | ||
['null', 0], // account doesn't exist | ||
@@ -265,3 +265,3 @@ ])('case %#', function (response, expected) { return __awaiter(void 0, void 0, void 0, function () { | ||
parseInt(validAccount.BaseAccount.account_number, 10), | ||
], | ||
], // account exists | ||
['null', 0], // account doesn't exist | ||
@@ -299,4 +299,4 @@ ])('case %#', function (response, expected) { return __awaiter(void 0, void 0, void 0, function () { | ||
test.each([ | ||
['"5gnot,100atom"', 100], | ||
['"5universe"', 0], | ||
['"5gnot,100atom"', 100], // balance found | ||
['"5universe"', 0], // balance not found | ||
['""', 0], // account doesn't exist | ||
@@ -363,3 +363,3 @@ ])('case %#', function (existing, expected) { return __awaiter(void 0, void 0, void 0, function () { | ||
test.each([ | ||
[validResult, validResult.hash, '', ''], | ||
[validResult, validResult.hash, '', ''], // no error | ||
[invalidResult, invalidResult.hash, messages_1.UnauthorizedErrorMessage, mockLog], // error out | ||
@@ -366,0 +366,0 @@ ])('case %#', function (response, expectedHash, expectedErr, expectedLog) { return __awaiter(void 0, void 0, void 0, function () { |
@@ -63,4 +63,4 @@ "use strict"; | ||
function KeySigner(privateKey, publicKey, addressPrefix) { | ||
if (addressPrefix === void 0) { addressPrefix = utility_1.defaultAddressPrefix; } | ||
var _this = this; | ||
if (addressPrefix === void 0) { addressPrefix = utility_1.defaultAddressPrefix; } | ||
this.getAddress = function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -67,0 +67,0 @@ return __generator(this, function (_a) { |
@@ -54,4 +54,4 @@ "use strict"; | ||
function LedgerSigner(connector, accountIndex, addressPrefix) { | ||
if (addressPrefix === void 0) { addressPrefix = utility_1.defaultAddressPrefix; } | ||
var _this = this; | ||
if (addressPrefix === void 0) { addressPrefix = utility_1.defaultAddressPrefix; } | ||
this.getAddress = function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -58,0 +58,0 @@ var compressedPubKey; |
@@ -223,3 +223,3 @@ "use strict"; | ||
}, | ||
msgs: decodeTxMessages(tx.messages), | ||
msgs: decodeTxMessages(tx.messages), // unrolled message objects | ||
memo: tx.memo, | ||
@@ -226,0 +226,0 @@ time: defaultSigTimestamp, |
{ | ||
"name": "@gnolang/tm2-js-client", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Tendermint2 JS / TS Client", | ||
@@ -41,3 +41,3 @@ "main": "./bin/index.js", | ||
"jest-websocket-mock": "^2.4.0", | ||
"prettier": "^3.0.0", | ||
"prettier": "^3.1.0", | ||
"ts-jest": "^29.1.0", | ||
@@ -48,5 +48,5 @@ "ts-proto": "^1.147.2", | ||
"dependencies": { | ||
"@cosmjs/amino": "^0.31.0", | ||
"@cosmjs/crypto": "^0.31.0", | ||
"@cosmjs/ledger-amino": "^0.31.0", | ||
"@cosmjs/amino": "^0.32.0", | ||
"@cosmjs/crypto": "^0.32.0", | ||
"@cosmjs/ledger-amino": "^0.32.0", | ||
"@types/uuid": "^9.0.4", | ||
@@ -53,0 +53,0 @@ "axios": "^1.4.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
270150
+ Added@cosmjs/amino@0.32.4(transitive)
+ Added@cosmjs/crypto@0.32.4(transitive)
+ Added@cosmjs/encoding@0.32.4(transitive)
+ Added@cosmjs/ledger-amino@0.32.4(transitive)
+ Added@cosmjs/math@0.32.4(transitive)
+ Added@cosmjs/utils@0.32.4(transitive)
- Removed@cosmjs/amino@0.31.3(transitive)
- Removed@cosmjs/crypto@0.31.3(transitive)
- Removed@cosmjs/encoding@0.31.3(transitive)
- Removed@cosmjs/ledger-amino@0.31.3(transitive)
- Removed@cosmjs/math@0.31.3(transitive)
- Removed@cosmjs/utils@0.31.3(transitive)
Updated@cosmjs/amino@^0.32.0
Updated@cosmjs/crypto@^0.32.0
Updated@cosmjs/ledger-amino@^0.32.0