postchain-client 1.6.0 → 1.7.0
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/built/cjs/index.js +10 -13
- package/built/cjs/index.js.map +1 -1
- package/built/esm/index.js +10 -13
- package/built/esm/index.js.map +1 -1
- package/built/src/ICCF/utils.js +10 -13
- package/built/src/ICCF/utils.js.map +1 -1
- package/built/src/blockchainClient/interface.d.ts +4 -5
- package/built/src/blockchainClient/types.d.ts +3 -5
- package/built/umd/index.js +10 -13
- package/built/umd/index.js.map +1 -1
- package/changelog.md +7 -1
- package/package.json +1 -1
package/built/cjs/index.js
CHANGED
|
@@ -3421,11 +3421,10 @@ var __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _argu
|
|
|
3421
3421
|
function getClusterOfBlockchain(client, blockchainRid) {
|
|
3422
3422
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
3423
3423
|
try {
|
|
3424
|
-
const
|
|
3424
|
+
const clusterName = yield client.query({
|
|
3425
3425
|
name: "cm_get_blockchain_cluster",
|
|
3426
3426
|
args: { brid: blockchainRid },
|
|
3427
|
-
};
|
|
3428
|
-
const clusterName = yield client.query(queryObject);
|
|
3427
|
+
});
|
|
3429
3428
|
return clusterName;
|
|
3430
3429
|
}
|
|
3431
3430
|
catch (error) {
|
|
@@ -3435,12 +3434,11 @@ function getClusterOfBlockchain(client, blockchainRid) {
|
|
|
3435
3434
|
}
|
|
3436
3435
|
function getClusterInfo(client, name) {
|
|
3437
3436
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
3438
|
-
const queryObject = {
|
|
3439
|
-
name: "cm_get_cluster_info",
|
|
3440
|
-
args: { name },
|
|
3441
|
-
};
|
|
3442
3437
|
try {
|
|
3443
|
-
const clusterInfo = yield client.query(
|
|
3438
|
+
const clusterInfo = yield client.query({
|
|
3439
|
+
name: "cm_get_cluster_info",
|
|
3440
|
+
args: { name },
|
|
3441
|
+
});
|
|
3444
3442
|
return clusterInfo;
|
|
3445
3443
|
}
|
|
3446
3444
|
catch (error) {
|
|
@@ -3450,12 +3448,11 @@ function getClusterInfo(client, name) {
|
|
|
3450
3448
|
}
|
|
3451
3449
|
function getAnchoringTransactionForBlockRid(client, blockchainRid, blockRid) {
|
|
3452
3450
|
return __awaiter$1(this, void 0, void 0, function* () {
|
|
3453
|
-
const queryObject = {
|
|
3454
|
-
name: "get_anchoring_transaction_for_block_rid",
|
|
3455
|
-
args: { blockchain_rid: blockchainRid, block_rid: blockRid },
|
|
3456
|
-
};
|
|
3457
3451
|
try {
|
|
3458
|
-
const anchoringTxForBlockRid = yield client.query(
|
|
3452
|
+
const anchoringTxForBlockRid = yield client.query({
|
|
3453
|
+
name: "get_anchoring_transaction_for_block_rid",
|
|
3454
|
+
args: { blockchain_rid: blockchainRid, block_rid: blockRid },
|
|
3455
|
+
});
|
|
3459
3456
|
return anchoringTxForBlockRid;
|
|
3460
3457
|
}
|
|
3461
3458
|
catch (error) {
|