@pioneer-platform/cosmos-network 8.1.25 → 8.1.27

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.
Files changed (2) hide show
  1. package/lib/index.js +14 -14
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -291,7 +291,7 @@ var get_balance = function (address) {
291
291
  return [4 /*yield*/, axios({ method: 'GET', url: URL_GAIAD + '/bank/balances/' + address })];
292
292
  case 2:
293
293
  accountInfo = _a.sent();
294
- log.info(tag, "accountInfo: ", accountInfo.data);
294
+ log.debug(tag, "accountInfo: ", accountInfo.data);
295
295
  if (accountInfo && accountInfo.data && accountInfo.data.result) {
296
296
  for (i = 0; i < accountInfo.data.result.length; i++) {
297
297
  entry = accountInfo.data.result[i];
@@ -352,7 +352,7 @@ var get_balances = function (address) {
352
352
  return [4 /*yield*/, axios({ method: 'GET', url: URL_GAIAD + '/bank/balances/' + address })];
353
353
  case 3:
354
354
  accountInfo = _b.sent();
355
- log.info(tag, "accountInfo: ", accountInfo.data);
355
+ log.debug(tag, "accountInfo: ", accountInfo.data);
356
356
  if (!((_a = accountInfo.data) === null || _a === void 0 ? void 0 : _a.result)) return [3 /*break*/, 7];
357
357
  i = 0;
358
358
  _b.label = 4;
@@ -743,8 +743,8 @@ var get_txs_by_height = function (height) {
743
743
  return [4 /*yield*/, axios({ method: 'GET', url: URL_GAIAD + '/cosmos/tx/v1beta1/txs?events=tx.height=' + height })];
744
744
  case 3:
745
745
  txInfo = _a.sent();
746
- log.info(tag, "txInfo: ", txInfo);
747
- log.info(tag, "txInfo: ", txInfo.data);
746
+ log.debug(tag, "txInfo: ", txInfo);
747
+ log.debug(tag, "txInfo: ", txInfo.data);
748
748
  return [2 /*return*/, txInfo.data.tx_responses];
749
749
  case 4:
750
750
  e_18 = _a.sent();
@@ -878,7 +878,7 @@ var encode_transaction = function (tx) {
878
878
  "mode": "BROADCAST_MODE_SYNC"
879
879
  };
880
880
  urlRemote = URL_GAIAD + '/txs/encode';
881
- log.info(tag, "urlRemote: ", urlRemote);
881
+ log.debug(tag, "urlRemote: ", urlRemote);
882
882
  return [4 /*yield*/, axios({
883
883
  url: urlRemote,
884
884
  headers: {
@@ -890,7 +890,7 @@ var encode_transaction = function (tx) {
890
890
  })];
891
891
  case 3:
892
892
  result2 = _a.sent();
893
- log.info(tag, '** Broadcast ** REMOTE: result: ', result2.data);
893
+ log.debug(tag, '** Broadcast ** REMOTE: result: ', result2.data);
894
894
  return [3 /*break*/, 5];
895
895
  case 4:
896
896
  e_22 = _a.sent();
@@ -1007,7 +1007,7 @@ var broadcast_transaction = function (tx) {
1007
1007
  };
1008
1008
  urlRemote = URL_GAIAD + '/cosmos/tx/v1beta1/txs';
1009
1009
  // let urlRemote = URL_GAIAD+ '/txs'
1010
- log.info(tag, "urlRemote: ", urlRemote);
1010
+ log.debug(tag, "urlRemote: ", urlRemote);
1011
1011
  return [4 /*yield*/, axios({
1012
1012
  url: urlRemote,
1013
1013
  headers: {
@@ -1019,13 +1019,13 @@ var broadcast_transaction = function (tx) {
1019
1019
  })];
1020
1020
  case 3:
1021
1021
  result2 = _a.sent();
1022
- log.info(tag, '** Broadcast ** REMOTE: result: ', result2.data);
1023
- log.info(tag, '** Broadcast ** REMOTE: result: ', JSON.stringify(result2.data));
1022
+ log.debug(tag, '** Broadcast ** REMOTE: result: ', result2.data);
1023
+ log.debug(tag, '** Broadcast ** REMOTE: result: ', JSON.stringify(result2.data));
1024
1024
  if (result2.data.txhash)
1025
1025
  output.txid = result2.data.txhash;
1026
1026
  //push to seed
1027
1027
  // let urlRemote = URL_GAIAD+ '/broadcast_tx_sync?tx='+tx
1028
- // log.info(tag,"urlRemote: ",urlRemote)
1028
+ // log.debug(tag,"urlRemote: ",urlRemote)
1029
1029
  // let result2 = await axios({
1030
1030
  // url: urlRemote,
1031
1031
  // headers: {
@@ -1034,10 +1034,10 @@ var broadcast_transaction = function (tx) {
1034
1034
  // },
1035
1035
  // method: 'GET'
1036
1036
  // })
1037
- // log.info(tag,'** Broadcast ** REMOTE: result: ', result2.data)
1037
+ // log.debug(tag,'** Broadcast ** REMOTE: result: ', result2.data)
1038
1038
  // if(result2.data.txhash) output.txid = result2.data.txhash
1039
1039
  // let urlRemote = URL_GAIAD+ '/broadcast_tx_sync'
1040
- // log.info(tag,"urlRemote: ",urlRemote)
1040
+ // log.debug(tag,"urlRemote: ",urlRemote)
1041
1041
  // let result2 = await axios({
1042
1042
  // url: urlRemote,
1043
1043
  // headers: {
@@ -1047,7 +1047,7 @@ var broadcast_transaction = function (tx) {
1047
1047
  // method: 'POST',
1048
1048
  // data: tx,
1049
1049
  // })
1050
- // log.info(tag,'** Broadcast ** REMOTE: result: ', result2.data)
1050
+ // log.debug(tag,'** Broadcast ** REMOTE: result: ', result2.data)
1051
1051
  // if(result2.data.txhash) output.txid = result2.data.txhash
1052
1052
  //verify success
1053
1053
  if (result2.data.raw_log) {
@@ -1200,7 +1200,7 @@ var get_node_info_verbose = function () {
1200
1200
  })];
1201
1201
  case 2:
1202
1202
  nodeInfo = _a.sent();
1203
- log.info(tag, "nodeInfo: ", nodeInfo.data);
1203
+ log.debug(tag, "nodeInfo: ", nodeInfo.data);
1204
1204
  // output = nodeInfo.data
1205
1205
  //
1206
1206
  // let lastBlockRemote = await axios({method:'GET',url: URL_GAIAD+'/blocks/latest'})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/cosmos-network",
3
- "version": "8.1.25",
3
+ "version": "8.1.27",
4
4
  "scripts": {
5
5
  "create": "npm run build && npm run test",
6
6
  "build": "tsc -p .",
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@pioneer-platform/cosmos-tx-encoder": "^0.0.9",
13
13
  "@pioneer-platform/loggerdog": "^8.1.31",
14
- "@pioneer-platform/nodes": "^8.1.31",
14
+ "@pioneer-platform/nodes": "^8.1.35",
15
15
  "axios": "^1.3.4",
16
16
  "dotenv": "^8.2.0",
17
17
  "https": "^1.0.0",
@@ -30,5 +30,5 @@
30
30
  },
31
31
  "author": "Bithighlander <pioneer@gmail.com>",
32
32
  "license": "ISC",
33
- "gitHead": "e1212fa842d8371740282be3f0cce4d32aff3201"
33
+ "gitHead": "ad33a5fc83136a234a7320f9a7b77869a305e6a4"
34
34
  }