coreum-js 2.18.10 → 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,6 @@ class Client {
75
74
  */
76
75
  async addCustomSigner(offlineSigner) {
77
76
  try {
78
- console.log("addCustomSigner => ", offlineSigner);
79
77
  await this._createClient(offlineSigner, "addCustomSigner");
80
78
  }
81
79
  catch (e) {
@@ -347,7 +345,6 @@ class Client {
347
345
  const pubkeys = [];
348
346
  for (var i = 0; i < addresses.length; i++) {
349
347
  const account = await this._client.getAccount(addresses[i]);
350
- console.log(addresses[i] + " data => ", account);
351
348
  if (!account || !account.pubkey)
352
349
  throw {
353
350
  thrower: "createMultisigAccount",
@@ -398,7 +395,6 @@ class Client {
398
395
  }
399
396
  async _createClient(offlineSigner, type = "notAddCustomSigner") {
400
397
  try {
401
- console.log("type => ", type);
402
398
  if (!offlineSigner) {
403
399
  this._client = await stargate_1.StargateClient.create(this._tmClient);
404
400
  return;
@@ -406,14 +402,11 @@ class Client {
406
402
  const [{ address }] = await offlineSigner.getAccounts();
407
403
  this._address = address;
408
404
  const registry = Client.getRegistry();
409
- console.log("this.config.chain_rpc_endpoint => ", this.config);
410
- console.log("offlineSigner => ", offlineSigner);
411
405
  // signing client
412
406
  this._client = await cosmwasm_stargate_1.SigningCosmWasmClient.connectWithSigner(this.config.chain_rpc_endpoint, offlineSigner, {
413
407
  registry: registry,
414
408
  gasPrice: stargate_1.GasPrice.fromString(this.config.gas_price),
415
409
  });
416
- console.log("this._client => ", this._client);
417
410
  this._client.aminoTypes.register = {
418
411
  ...this._client.aminoTypes.register,
419
412
  ...coreum_1.coreumAminoConverters,
@@ -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,6 @@ export class Client {
79
78
  */
80
79
  async addCustomSigner(offlineSigner) {
81
80
  try {
82
- console.log("addCustomSigner => ", offlineSigner);
83
81
  await this._createClient(offlineSigner, "addCustomSigner");
84
82
  }
85
83
  catch (e) {
@@ -351,7 +349,6 @@ export class Client {
351
349
  const pubkeys = [];
352
350
  for (var i = 0; i < addresses.length; i++) {
353
351
  const account = await this._client.getAccount(addresses[i]);
354
- console.log(addresses[i] + " data => ", account);
355
352
  if (!account || !account.pubkey)
356
353
  throw {
357
354
  thrower: "createMultisigAccount",
@@ -402,7 +399,6 @@ export class Client {
402
399
  }
403
400
  async _createClient(offlineSigner, type = "notAddCustomSigner") {
404
401
  try {
405
- console.log("type => ", type);
406
402
  if (!offlineSigner) {
407
403
  this._client = await StargateClient.create(this._tmClient);
408
404
  return;
@@ -410,14 +406,11 @@ export class Client {
410
406
  const [{ address }] = await offlineSigner.getAccounts();
411
407
  this._address = address;
412
408
  const registry = Client.getRegistry();
413
- console.log("this.config.chain_rpc_endpoint => ", this.config);
414
- console.log("offlineSigner => ", offlineSigner);
415
409
  // signing client
416
410
  this._client = await SigningCosmWasmClient.connectWithSigner(this.config.chain_rpc_endpoint, offlineSigner, {
417
411
  registry: registry,
418
412
  gasPrice: GasPrice.fromString(this.config.gas_price),
419
413
  });
420
- console.log("this._client => ", this._client);
421
414
  this._client.aminoTypes.register = {
422
415
  ...this._client.aminoTypes.register,
423
416
  ...coreumAminoConverters,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.18.10",
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",