@ape.swap/bonds-sdk 1.0.612 → 1.0.613

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.
@@ -67,12 +67,6 @@ var BondModal = function (_a) {
67
67
  hash: hash,
68
68
  pollingInterval: 1000
69
69
  }), isConfirming = _c.isLoading, isConfirmed = _c.isSuccess;
70
- var txReceipt = useWaitForTransactionReceipt({
71
- confirmations: 2,
72
- chainId: accountChainId,
73
- hash: hash,
74
- pollingInterval: 1000
75
- });
76
70
  var _d = useState([]), bondData = _d[0], setBondData = _d[1];
77
71
  //This is a temp solution, but we will force approval each time, and then once set we will set status here and allow
78
72
  //user to buy
@@ -138,18 +132,9 @@ var BondModal = function (_a) {
138
132
  })];
139
133
  case 2:
140
134
  tx = _a.sent();
141
- console.log('txReceipt:', txReceipt);
142
- // const receipt = useWaitForTransactionReceipt({
143
- // confirmations: 4,
144
- // chainId: accountChainId,
145
- // hash: tx,
146
- // pollingInterval: 1_000
147
- // });
148
- // console.log('Receipt',receipt);
149
- // if(receipt.isSuccess) {
150
- // setReceiptTx(receipt.data.transactionHash);
151
- // console.log('Receipt:', receipt);
152
- // }
135
+ console.log('isPending:', isPending);
136
+ console.log('isConfirming:', isConfirming);
137
+ console.log('isConfirmed', isConfirmed);
153
138
  if (tx) {
154
139
  setApproveTx(tx);
155
140
  console.log('setApproveTx:', tx);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.612",
6
+ "version": "1.0.613",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",