coreum-js 2.18.9 → 2.18.11

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.
@@ -33,7 +33,6 @@ class Client {
33
33
  }
34
34
  constructor(props) {
35
35
  this._eventSequence = 0;
36
- console.log("Coreum JS => Test");
37
36
  this.config = props?.network
38
37
  ? coreum_2.COREUM_CONFIG[props.network]
39
38
  : coreum_2.COREUM_CONFIG.mainnet;
@@ -75,7 +74,7 @@ class Client {
75
74
  */
76
75
  async addCustomSigner(offlineSigner) {
77
76
  try {
78
- await this._createClient(offlineSigner);
77
+ await this._createClient(offlineSigner, "addCustomSigner");
79
78
  }
80
79
  catch (e) {
81
80
  throw {
@@ -346,7 +345,6 @@ class Client {
346
345
  const pubkeys = [];
347
346
  for (var i = 0; i < addresses.length; i++) {
348
347
  const account = await this._client.getAccount(addresses[i]);
349
- console.log(addresses[i] + " data => ", account);
350
348
  if (!account || !account.pubkey)
351
349
  throw {
352
350
  thrower: "createMultisigAccount",
@@ -395,7 +393,7 @@ class Client {
395
393
  this._wsClient = new tendermint_rpc_1.WebsocketClient(wsEndpoint);
396
394
  this.subscribeToEvent("tm.event='NewBlock'");
397
395
  }
398
- async _createClient(offlineSigner) {
396
+ async _createClient(offlineSigner, type = "notAddCustomSigner") {
399
397
  try {
400
398
  if (!offlineSigner) {
401
399
  this._client = await stargate_1.StargateClient.create(this._tmClient);
@@ -37,7 +37,6 @@ export class Client {
37
37
  return this._queryClient;
38
38
  }
39
39
  constructor(props) {
40
- console.log("Coreum JS => Test");
41
40
  this.config = props?.network
42
41
  ? COREUM_CONFIG[props.network]
43
42
  : COREUM_CONFIG.mainnet;
@@ -79,7 +78,7 @@ export class Client {
79
78
  */
80
79
  async addCustomSigner(offlineSigner) {
81
80
  try {
82
- await this._createClient(offlineSigner);
81
+ await this._createClient(offlineSigner, "addCustomSigner");
83
82
  }
84
83
  catch (e) {
85
84
  throw {
@@ -350,7 +349,6 @@ export class Client {
350
349
  const pubkeys = [];
351
350
  for (var i = 0; i < addresses.length; i++) {
352
351
  const account = await this._client.getAccount(addresses[i]);
353
- console.log(addresses[i] + " data => ", account);
354
352
  if (!account || !account.pubkey)
355
353
  throw {
356
354
  thrower: "createMultisigAccount",
@@ -399,7 +397,7 @@ export class Client {
399
397
  this._wsClient = new WebsocketClient(wsEndpoint);
400
398
  this.subscribeToEvent("tm.event='NewBlock'");
401
399
  }
402
- async _createClient(offlineSigner) {
400
+ async _createClient(offlineSigner, type = "notAddCustomSigner") {
403
401
  try {
404
402
  if (!offlineSigner) {
405
403
  this._client = await StargateClient.create(this._tmClient);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.18.9",
3
+ "version": "2.18.11",
4
4
  "description": "JS/TS Library to to easily make use of the Coreum Blockchain",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",