@openocean.finance/openocean-sdk 1.6.27 → 1.6.29

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/lib/.DS_Store ADDED
Binary file
@@ -670,13 +670,10 @@ var Swap = /** @class */ (function () {
670
670
  _this.transactionHashCallback(transactionHash);
671
671
  })
672
672
  .on("receipt", function (receipt) {
673
- _this.receiptCallback(receipt);
674
- // this.getSuccess()
675
- })
676
- .on("confirmation", function (confirmationNumber, receipt) {
677
- console.log('confirmation', confirmationNumber, receipt);
673
+ console.log('receipt', receipt);
678
674
  var transactionHash = (receipt || {}).transactionHash;
679
- _this.successCallback(transactionHash);
675
+ _this.receiptCallback(transactionHash);
676
+ // this.getSuccess()
680
677
  });
681
678
  return [2 /*return*/];
682
679
  }
@@ -769,8 +766,9 @@ var Swap = /** @class */ (function () {
769
766
  _this.transactionHashCallback(transactionHash);
770
767
  })
771
768
  .on("receipt", function (receipt) {
772
- _this.receiptCallback(receipt);
773
- // this.getSuccess()
769
+ console.log('receipt', receipt);
770
+ var transactionHash = (receipt || {}).transactionHash;
771
+ _this.receiptCallback(transactionHash);
774
772
  });
775
773
  return [2 /*return*/];
776
774
  }
@@ -125,7 +125,7 @@ var SwapSdk = /** @class */ (function () {
125
125
  resolve(res);
126
126
  }
127
127
  })
128
- .on('success', function (res) {
128
+ .on('receipt', function (res) {
129
129
  if (swapData.permit) {
130
130
  resolve(res);
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.6.27",
3
+ "version": "1.6.29",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@ethersproject/bignumber": "^5.1.1",
51
51
  "@looksrare/sdk": "^0.12.1",
52
- "@openocean.finance/wallet": "^1.9.17",
52
+ "@openocean.finance/wallet": "^1.9.18",
53
53
  "@uniswap/v2-core": "^1.0.1",
54
54
  "@walletconnect/web3-provider": "^1.7.8",
55
55
  "aptos": "^1.3.17",