@ape.swap/bonds-sdk 1.0.612 → 1.0.614

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.
@@ -62,17 +62,10 @@ var BondModal = function (_a) {
62
62
  return null;
63
63
  var _b = useWriteContract(), hash = _b.data, isPending = _b.isPending, writeContract = _b.writeContract, writeContractAsync = _b.writeContractAsync;
64
64
  var _c = useWaitForTransactionReceipt({
65
- confirmations: 2,
65
+ confirmations: 4,
66
66
  chainId: accountChainId,
67
67
  hash: hash,
68
- pollingInterval: 1000
69
68
  }), isConfirming = _c.isLoading, isConfirmed = _c.isSuccess;
70
- var txReceipt = useWaitForTransactionReceipt({
71
- confirmations: 2,
72
- chainId: accountChainId,
73
- hash: hash,
74
- pollingInterval: 1000
75
- });
76
69
  var _d = useState([]), bondData = _d[0], setBondData = _d[1];
77
70
  //This is a temp solution, but we will force approval each time, and then once set we will set status here and allow
78
71
  //user to buy
@@ -138,18 +131,9 @@ var BondModal = function (_a) {
138
131
  })];
139
132
  case 2:
140
133
  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
- // }
134
+ console.log('isPending:', isPending);
135
+ console.log('isConfirming:', isConfirming);
136
+ console.log('isConfirmed', isConfirmed);
153
137
  if (tx) {
154
138
  setApproveTx(tx);
155
139
  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.614",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",