coreum-js 2.18.9 → 2.18.10

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.
@@ -75,7 +75,8 @@ class Client {
75
75
  */
76
76
  async addCustomSigner(offlineSigner) {
77
77
  try {
78
- await this._createClient(offlineSigner);
78
+ console.log("addCustomSigner => ", offlineSigner);
79
+ await this._createClient(offlineSigner, "addCustomSigner");
79
80
  }
80
81
  catch (e) {
81
82
  throw {
@@ -395,8 +396,9 @@ class Client {
395
396
  this._wsClient = new tendermint_rpc_1.WebsocketClient(wsEndpoint);
396
397
  this.subscribeToEvent("tm.event='NewBlock'");
397
398
  }
398
- async _createClient(offlineSigner) {
399
+ async _createClient(offlineSigner, type = "notAddCustomSigner") {
399
400
  try {
401
+ console.log("type => ", type);
400
402
  if (!offlineSigner) {
401
403
  this._client = await stargate_1.StargateClient.create(this._tmClient);
402
404
  return;
@@ -404,11 +406,14 @@ class Client {
404
406
  const [{ address }] = await offlineSigner.getAccounts();
405
407
  this._address = address;
406
408
  const registry = Client.getRegistry();
409
+ console.log("this.config.chain_rpc_endpoint => ", this.config);
410
+ console.log("offlineSigner => ", offlineSigner);
407
411
  // signing client
408
412
  this._client = await cosmwasm_stargate_1.SigningCosmWasmClient.connectWithSigner(this.config.chain_rpc_endpoint, offlineSigner, {
409
413
  registry: registry,
410
414
  gasPrice: stargate_1.GasPrice.fromString(this.config.gas_price),
411
415
  });
416
+ console.log("this._client => ", this._client);
412
417
  this._client.aminoTypes.register = {
413
418
  ...this._client.aminoTypes.register,
414
419
  ...coreum_1.coreumAminoConverters,
@@ -79,7 +79,8 @@ export class Client {
79
79
  */
80
80
  async addCustomSigner(offlineSigner) {
81
81
  try {
82
- await this._createClient(offlineSigner);
82
+ console.log("addCustomSigner => ", offlineSigner);
83
+ await this._createClient(offlineSigner, "addCustomSigner");
83
84
  }
84
85
  catch (e) {
85
86
  throw {
@@ -399,8 +400,9 @@ export class Client {
399
400
  this._wsClient = new WebsocketClient(wsEndpoint);
400
401
  this.subscribeToEvent("tm.event='NewBlock'");
401
402
  }
402
- async _createClient(offlineSigner) {
403
+ async _createClient(offlineSigner, type = "notAddCustomSigner") {
403
404
  try {
405
+ console.log("type => ", type);
404
406
  if (!offlineSigner) {
405
407
  this._client = await StargateClient.create(this._tmClient);
406
408
  return;
@@ -408,11 +410,14 @@ export class Client {
408
410
  const [{ address }] = await offlineSigner.getAccounts();
409
411
  this._address = address;
410
412
  const registry = Client.getRegistry();
413
+ console.log("this.config.chain_rpc_endpoint => ", this.config);
414
+ console.log("offlineSigner => ", offlineSigner);
411
415
  // signing client
412
416
  this._client = await SigningCosmWasmClient.connectWithSigner(this.config.chain_rpc_endpoint, offlineSigner, {
413
417
  registry: registry,
414
418
  gasPrice: GasPrice.fromString(this.config.gas_price),
415
419
  });
420
+ console.log("this._client => ", this._client);
416
421
  this._client.aminoTypes.register = {
417
422
  ...this._client.aminoTypes.register,
418
423
  ...coreumAminoConverters,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.18.9",
3
+ "version": "2.18.10",
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",