Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

vana

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vana - pypi Package Compare versions

Comparing version
0.40.0
to
0.41.0
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: vana
Version: 0.40.0
Version: 0.41.0
Summary:

@@ -5,0 +5,0 @@ Home-page: https://github.com/vana-com/vana-framework

[tool.poetry]
name = "vana"
version = "0.40.0"
version = "0.41.0"
description = ""

@@ -5,0 +5,0 @@ authors = ["Tim Nunamaker <tim@vana.com>", "Volodymyr Isai <volod@vana.com>", "Kahtaf Alam <kahtaf@vana.com>"]

@@ -18,3 +18,3 @@ # The MIT License (MIT)

__version__ = "0.40.0"
__version__ = "0.41.0"

@@ -21,0 +21,0 @@ import rich

@@ -147,6 +147,8 @@ from threading import Lock

# Calculate gas price - use base price for first attempt
base_gas_price = self.web3.eth.gas_price
# Calculate gas prices for EIP-1559
base_fee = self.web3.eth.get_block('latest')['baseFeePerGas']
gas_multiplier = base_gas_multiplier * (1.5 ** retry_count)
gas_price = int(base_gas_price * gas_multiplier)
priority_fee = self.web3.eth.max_priority_fee
max_fee_per_gas = int(base_fee * gas_multiplier) + priority_fee
max_priority_fee_per_gas = priority_fee

@@ -158,5 +160,7 @@ # Build transaction

'gas': gas_limit,
'gasPrice': gas_price,
'maxFeePerGas': max_fee_per_gas,
'maxPriorityFeePerGas': max_priority_fee_per_gas,
'nonce': nonce,
'chainId': self.chain_id
'chainId': self.chain_id,
'type': 2
})

@@ -172,3 +176,5 @@

'gas': tx['gas'],
'gasPrice': tx['gasPrice'],
'maxFeePerGas': tx['maxFeePerGas'],
'maxPriorityFeePerGas': tx['maxPriorityFeePerGas'],
'type': 2
})

@@ -183,3 +189,3 @@ except ContractLogicError as e:

f"Sending transaction with nonce {nonce}, "
f"gas price {gas_price} ({gas_multiplier:.1f}x base) "
f"gas limit {gas_limit}, gas price {max_fee_per_gas} ({max_priority_fee_per_gas})"
f"(retry {retry_count})"

@@ -186,0 +192,0 @@ )