@gnolang/tm2-js-client
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -1,2 +0,2 @@ | ||
import { Provider } from '../provider'; | ||
import { Provider, TransactionEndpoint } from '../provider'; | ||
import { Signer } from './signer'; | ||
@@ -88,4 +88,6 @@ import { LedgerConnector } from '@cosmjs/ledger-amino'; | ||
* @param {Tx} tx the signed transaction | ||
* @param {TransactionEndpoint} endpoint the transaction broadcast type (sync / commit). | ||
* Defaults to broadcast_sync | ||
*/ | ||
sendTransaction: (tx: Tx) => Promise<string>; | ||
sendTransaction: (tx: Tx, endpoint?: TransactionEndpoint.BROADCAST_TX_SYNC | TransactionEndpoint.BROADCAST_TX_COMMIT) => Promise<string>; | ||
/** | ||
@@ -92,0 +94,0 @@ * Returns the associated signer |
@@ -251,4 +251,6 @@ "use strict"; | ||
* @param {Tx} tx the signed transaction | ||
* @param {TransactionEndpoint} endpoint the transaction broadcast type (sync / commit). | ||
* Defaults to broadcast_sync | ||
*/ | ||
this.sendTransaction = function (tx) { return __awaiter(_this, void 0, void 0, function () { | ||
this.sendTransaction = function (tx, endpoint) { return __awaiter(_this, void 0, void 0, function () { | ||
var encodedTx; | ||
@@ -261,3 +263,3 @@ return __generator(this, function (_b) { | ||
// Send the encoded transaction | ||
return [2 /*return*/, this.provider.sendTransaction(encodedTx)]; | ||
return [2 /*return*/, this.provider.sendTransaction(encodedTx, endpoint)]; | ||
}); | ||
@@ -264,0 +266,0 @@ }); }; |
{ | ||
"name": "@gnolang/tm2-js-client", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Tendermint2 JS / TS Client", | ||
@@ -5,0 +5,0 @@ "main": "./bin/index.js", |
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
267964
5674