emblem-vault-sdk 1.9.13 → 1.9.14

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/dist/bundle.js CHANGED
@@ -709476,7 +709476,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
709476
709476
  const bignumber_1 = require("@ethersproject/bignumber");
709477
709477
  const utils_1 = require("./utils");
709478
709478
  const derive_1 = require("./derive");
709479
- const SDK_VERSION = '1.9.13';
709479
+ const SDK_VERSION = '1.9.14';
709480
709480
  class EmblemVaultSDK {
709481
709481
  constructor(apiKey, baseUrl) {
709482
709482
  this.apiKey = apiKey;
@@ -709869,6 +709869,17 @@ class EmblemVaultSDK {
709869
709869
  value: Number(quote),
709870
709870
  gasPrice: gasPrice, // Use the current gas price
709871
709871
  gas: gasLimit // Use the estimated gas limit
709872
+ }).on('transactionHash', (hash) => {
709873
+ if (callback)
709874
+ callback(`Transaction submitted. Hash`, hash);
709875
+ })
709876
+ .on('confirmation', (confirmationNumber, receipt) => {
709877
+ if (callback)
709878
+ callback(`Mint Complete. Confirmation Number`, confirmationNumber);
709879
+ })
709880
+ .on('error', (error) => {
709881
+ if (callback)
709882
+ callback(`Transaction Error`, error.message);
709872
709883
  });
709873
709884
  if (callback) {
709874
709885
  callback('Mint Complete');
@@ -709896,6 +709907,17 @@ class EmblemVaultSDK {
709896
709907
  from: accounts[0],
709897
709908
  gasPrice: gasPrice,
709898
709909
  gas: estimatedGas
709910
+ }).on('transactionHash', (hash) => {
709911
+ if (callback)
709912
+ callback(`Transaction submitted. Hash`, hash);
709913
+ })
709914
+ .on('confirmation', (confirmationNumber, receipt) => {
709915
+ if (callback)
709916
+ callback(`Burn Complete. Confirmation Number`, confirmationNumber);
709917
+ })
709918
+ .on('error', (error) => {
709919
+ if (callback)
709920
+ callback(`Transaction Error`, error.message);
709899
709921
  });
709900
709922
  if (callback) {
709901
709923
  callback('Burn Complete');
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  const bignumber_1 = require("@ethersproject/bignumber");
36
36
  const utils_1 = require("./utils");
37
37
  const derive_1 = require("./derive");
38
- const SDK_VERSION = '1.9.13';
38
+ const SDK_VERSION = '1.9.14';
39
39
  class EmblemVaultSDK {
40
40
  constructor(apiKey, baseUrl) {
41
41
  this.apiKey = apiKey;
@@ -428,6 +428,17 @@ class EmblemVaultSDK {
428
428
  value: Number(quote),
429
429
  gasPrice: gasPrice, // Use the current gas price
430
430
  gas: gasLimit // Use the estimated gas limit
431
+ }).on('transactionHash', (hash) => {
432
+ if (callback)
433
+ callback(`Transaction submitted. Hash`, hash);
434
+ })
435
+ .on('confirmation', (confirmationNumber, receipt) => {
436
+ if (callback)
437
+ callback(`Mint Complete. Confirmation Number`, confirmationNumber);
438
+ })
439
+ .on('error', (error) => {
440
+ if (callback)
441
+ callback(`Transaction Error`, error.message);
431
442
  });
432
443
  if (callback) {
433
444
  callback('Mint Complete');
@@ -455,6 +466,17 @@ class EmblemVaultSDK {
455
466
  from: accounts[0],
456
467
  gasPrice: gasPrice,
457
468
  gas: estimatedGas
469
+ }).on('transactionHash', (hash) => {
470
+ if (callback)
471
+ callback(`Transaction submitted. Hash`, hash);
472
+ })
473
+ .on('confirmation', (confirmationNumber, receipt) => {
474
+ if (callback)
475
+ callback(`Burn Complete. Confirmation Number`, confirmationNumber);
476
+ })
477
+ .on('error', (error) => {
478
+ if (callback)
479
+ callback(`Transaction Error`, error.message);
458
480
  });
459
481
  if (callback) {
460
482
  callback('Burn Complete');
package/docs/bundle.js CHANGED
@@ -709476,7 +709476,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
709476
709476
  const bignumber_1 = require("@ethersproject/bignumber");
709477
709477
  const utils_1 = require("./utils");
709478
709478
  const derive_1 = require("./derive");
709479
- const SDK_VERSION = '1.9.13';
709479
+ const SDK_VERSION = '1.9.14';
709480
709480
  class EmblemVaultSDK {
709481
709481
  constructor(apiKey, baseUrl) {
709482
709482
  this.apiKey = apiKey;
@@ -709869,6 +709869,17 @@ class EmblemVaultSDK {
709869
709869
  value: Number(quote),
709870
709870
  gasPrice: gasPrice, // Use the current gas price
709871
709871
  gas: gasLimit // Use the estimated gas limit
709872
+ }).on('transactionHash', (hash) => {
709873
+ if (callback)
709874
+ callback(`Transaction submitted. Hash`, hash);
709875
+ })
709876
+ .on('confirmation', (confirmationNumber, receipt) => {
709877
+ if (callback)
709878
+ callback(`Mint Complete. Confirmation Number`, confirmationNumber);
709879
+ })
709880
+ .on('error', (error) => {
709881
+ if (callback)
709882
+ callback(`Transaction Error`, error.message);
709872
709883
  });
709873
709884
  if (callback) {
709874
709885
  callback('Mint Complete');
@@ -709896,6 +709907,17 @@ class EmblemVaultSDK {
709896
709907
  from: accounts[0],
709897
709908
  gasPrice: gasPrice,
709898
709909
  gas: estimatedGas
709910
+ }).on('transactionHash', (hash) => {
709911
+ if (callback)
709912
+ callback(`Transaction submitted. Hash`, hash);
709913
+ })
709914
+ .on('confirmation', (confirmationNumber, receipt) => {
709915
+ if (callback)
709916
+ callback(`Burn Complete. Confirmation Number`, confirmationNumber);
709917
+ })
709918
+ .on('error', (error) => {
709919
+ if (callback)
709920
+ callback(`Transaction Error`, error.message);
709899
709921
  });
709900
709922
  if (callback) {
709901
709923
  callback('Burn Complete');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emblem-vault-sdk",
3
- "version": "1.9.13",
3
+ "version": "1.9.14",
4
4
  "description": "Emblem Vault Software Development Kit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -354,6 +354,14 @@ class EmblemVaultSDK {
354
354
  value: Number(quote),
355
355
  gasPrice: gasPrice, // Use the current gas price
356
356
  gas: gasLimit // Use the estimated gas limit
357
+ }).on('transactionHash', (hash: any) => {
358
+ if (callback) callback(`Transaction submitted. Hash`, hash);
359
+ })
360
+ .on('confirmation', (confirmationNumber: any, receipt: any) => {
361
+ if (callback) callback(`Mint Complete. Confirmation Number`, confirmationNumber);
362
+ })
363
+ .on('error', (error: { message: any; }) => {
364
+ if (callback) callback(`Transaction Error`, error.message );
357
365
  });
358
366
 
359
367
  if (callback) { callback('Mint Complete') }
@@ -381,6 +389,14 @@ class EmblemVaultSDK {
381
389
  from: accounts[0],
382
390
  gasPrice: gasPrice,
383
391
  gas: estimatedGas
392
+ }).on('transactionHash', (hash: any) => {
393
+ if (callback) callback(`Transaction submitted. Hash`, hash);
394
+ })
395
+ .on('confirmation', (confirmationNumber: any, receipt: any) => {
396
+ if (callback) callback(`Burn Complete. Confirmation Number`, confirmationNumber);
397
+ })
398
+ .on('error', (error: { message: any; }) => {
399
+ if (callback) callback(`Transaction Error`, error.message );
384
400
  });
385
401
 
386
402
  if (callback) { callback('Burn Complete')}