vana
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: vana | ||
| Version: 0.38.0 | ||
| Version: 0.39.0 | ||
| Summary: | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/vana-com/vana-framework |
+1
-1
| [tool.poetry] | ||
| name = "vana" | ||
| version = "0.38.0" | ||
| version = "0.39.0" | ||
| description = "" | ||
@@ -5,0 +5,0 @@ authors = ["Tim Nunamaker <tim@vana.com>", "Volodymyr Isai <volod@vana.com>", "Kahtaf Alam <kahtaf@vana.com>"] |
+1
-1
@@ -18,3 +18,3 @@ # The MIT License (MIT) | ||
| __version__ = "0.38.0" | ||
| __version__ = "0.39.0" | ||
@@ -21,0 +21,0 @@ import rich |
@@ -148,5 +148,4 @@ from threading import Lock | ||
| base_gas_multiplier: float = 1.5, | ||
| max_gas_multiplier: float = 5.0, | ||
| timeout: int = 30, | ||
| clear_pending_transactions: bool = False | ||
| clear_pending_transactions: bool = True | ||
| ) -> Tuple[HexBytes, TxReceipt]: | ||
@@ -194,22 +193,9 @@ """ | ||
| }) | ||
| gas_limit = int(gas_estimate * 1.5) | ||
| gas_limit = int(gas_estimate * 2) | ||
| # Calculate gas price - use base price for first attempt | ||
| base_gas_price = self.web3.eth.gas_price | ||
| if retry_count == 0: | ||
| gas_price = base_gas_price | ||
| else: | ||
| gas_multiplier = min( | ||
| base_gas_multiplier * (1.2 ** (retry_count - 1)), | ||
| max_gas_multiplier | ||
| ) | ||
| gas_price = int(base_gas_price * gas_multiplier) | ||
| gas_multiplier = base_gas_multiplier * (1.5 ** retry_count) | ||
| gas_price = int(base_gas_price * gas_multiplier) | ||
| # Log gas details | ||
| vana.logging.debug( | ||
| f"Gas details - Base price: {self.web3.from_wei(base_gas_price, 'gwei')} Gwei, " + | ||
| (f"Multiplier: {gas_multiplier:.2f}x, " if retry_count > 0 else "") + | ||
| f"Final price: {self.web3.from_wei(gas_price, 'gwei')} Gwei" | ||
| ) | ||
| # Get safe nonce and build transaction | ||
@@ -244,4 +230,4 @@ nonce = self._get_safe_nonce() | ||
| f"Sending transaction with nonce {nonce}, " | ||
| f"gas price {self.web3.from_wei(gas_price, 'gwei')} Gwei " | ||
| f"(retry {retry_count if retry_count > 0 else 'initial attempt'})" | ||
| f"gas price {gas_price} ({gas_multiplier:.1f}x base) " | ||
| f"(retry {retry_count})" | ||
| ) | ||
@@ -248,0 +234,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
457386
-0.15%12280
-0.11%