@hypurrquant/defi-cli 0.3.3 → 0.3.4

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.
@@ -7073,7 +7073,7 @@ var Executor = class _Executor {
7073
7073
  const [maxFee, priorityFee] = await this.fetchEip1559Fees(rpcUrl);
7074
7074
  return {
7075
7075
  tx_hash: void 0,
7076
- status: "simulated",
7076
+ status: TxStatus.Simulated,
7077
7077
  gas_used: gasEstimate > 0n ? Number(gasEstimate) : void 0,
7078
7078
  description: tx.description,
7079
7079
  details: {
@@ -7093,7 +7093,7 @@ var Executor = class _Executor {
7093
7093
  const revertReason = extractRevertReason(errMsg);
7094
7094
  return {
7095
7095
  tx_hash: void 0,
7096
- status: "simulation_failed",
7096
+ status: TxStatus.SimulationFailed,
7097
7097
  gas_used: tx.gas_estimate,
7098
7098
  description: tx.description,
7099
7099
  details: {
@@ -7115,7 +7115,7 @@ var Executor = class _Executor {
7115
7115
  }
7116
7116
  return {
7117
7117
  tx_hash: void 0,
7118
- status: "dry_run",
7118
+ status: TxStatus.DryRun,
7119
7119
  gas_used: tx.gas_estimate,
7120
7120
  description: tx.description,
7121
7121
  details: {
@@ -7200,7 +7200,7 @@ var Executor = class _Executor {
7200
7200
  `);
7201
7201
  process.stderr.write("Waiting for confirmation...\n");
7202
7202
  const receipt = await publicClient.waitForTransactionReceipt({ hash: txHash });
7203
- const status = receipt.status === "success" ? "confirmed" : "failed";
7203
+ const status = receipt.status === "success" ? TxStatus.Confirmed : TxStatus.Failed;
7204
7204
  let mintedTokenId;
7205
7205
  if (receipt.status === "success" && receipt.logs) {
7206
7206
  const TRANSFER_TOPIC = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef";