Skip to content

Commit c5875fc

Browse files
committed
Fix: Use base fee multiplier
Signed-off-by: OjusWiZard <[email protected]>
1 parent c3b366a commit c5875fc

File tree

22 files changed

+48
-28
lines changed

22 files changed

+48
-28
lines changed

HISTORY.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History - open AEA
22

3+
## 1.64.0 (2025-02-12)
4+
5+
Plugins:
6+
- `open-aea-ethereum` now multiplies the base gas fee as before. #786
7+
38
## 1.63.0 (2025-02-03)
49

510
Plugins:

aea/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
__title__ = "open-aea"
2424
__description__ = "Open Autonomous Economic Agent framework (without vendor lock-in)"
2525
__url__ = "https://github.com/valory-xyz/open-aea.git"
26-
__version__ = "1.63.0"
26+
__version__ = "1.64.0"
2727
__author__ = "Valory AG"
2828
__license__ = "Apache-2.0"
2929
__copyright__ = "2021 Valory AG, 2019 Fetch.AI Limited"

deploy-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apk add --no-cache go
1616

1717
# aea installation
1818
RUN pip install --upgrade pip
19-
RUN pip install --upgrade --force-reinstall open-aea[all]==1.63.0 "open-aea-cli-ipfs<2.0.0,>=1.63.0"
19+
RUN pip install --upgrade --force-reinstall open-aea[all]==1.64.0 "open-aea-cli-ipfs<2.0.0,>=1.64.0"
2020

2121
# directories and aea cli config
2222
WORKDIR /home/agents

deploy-image/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The example uses the `fetchai/my_first_aea` project. You will likely want to mod
1111
Install subversion, then download the example directory to your local working directory
1212

1313
``` bash
14-
svn checkout https://github.com/valory-xyz/open-aea/tags/v1.63.0/packages packages
14+
svn checkout https://github.com/valory-xyz/open-aea/tags/v1.64.0/packages packages
1515
```
1616

1717
### Modify scripts

develop-image/docker-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Swap the following lines if you want to work with 'latest'
4-
DOCKER_IMAGE_TAG=valory/open-aea-develop:1.63.0
4+
DOCKER_IMAGE_TAG=valory/open-aea-develop:1.64.0
55
# DOCKER_IMAGE_TAG=valory/open-aea-develop:latest
66

77
DOCKER_BUILD_CONTEXT_DIR=..

docs/upgrading.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Below we describe the additional manual steps required to upgrade between differ
99

1010
### Upgrade guide
1111

12+
## `v1.63.0` to `v1.64.0`
13+
14+
- No backwards incompatible changes
15+
1216
## `v1.62.0` to `v1.63.0`
1317

1418
- No backwards incompatible changes

examples/tac_deploy/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN apk add --no-cache go
1919

2020
# aea installation
2121
RUN python -m pip install --upgrade pip
22-
RUN pip install --upgrade --force-reinstall open-aea[all]==1.63.0
22+
RUN pip install --upgrade --force-reinstall open-aea[all]==1.64.0
2323

2424
# directories and aea cli config
2525
COPY /.aea /home/.aea

plugins/aea-cli-benchmark/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="open-aea-cli-benchmark",
29-
version="1.63.0",
29+
version="1.64.0",
3030
author="Valory AG",
3131
license="Apache-2.0",
3232
description="CLI extension for AEA framework benchmarking.",

plugins/aea-cli-ipfs/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setup(
3030
name="open-aea-cli-ipfs",
31-
version="1.63.0",
31+
version="1.64.0",
3232
author="Valory AG",
3333
license="Apache-2.0",
3434
description="CLI extension for open AEA framework wrapping IPFS functionality.",

plugins/aea-ledger-cosmos/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="open-aea-ledger-cosmos",
29-
version="1.63.0",
29+
version="1.64.0",
3030
author="Valory AG",
3131
license="Apache-2.0",
3232
description="Python package wrapping the public and private key cryptography and ledger api of Cosmos.",

plugins/aea-ledger-ethereum-flashbots/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="open-aea-ledger-ethereum-flashbots",
28-
version="1.63.0",
28+
version="1.64.0",
2929
author="Valory AG",
3030
license="Apache-2.0",
3131
description="Python package extending the default open-aea ethereum ledger plugin to add support for flashbots.",
@@ -41,7 +41,7 @@
4141
},
4242
python_requires=">=3.9,<4.0",
4343
install_requires=[
44-
"open-aea-ledger-ethereum~=1.63.0",
44+
"open-aea-ledger-ethereum~=1.64.0",
4545
"open-aea-flashbots==1.4.0",
4646
],
4747
tests_require=["pytest"],

plugins/aea-ledger-ethereum-hwi/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="open-aea-ledger-ethereum-hwi",
28-
version="1.63.0",
28+
version="1.64.0",
2929
author="Valory AG",
3030
license="Apache-2.0",
3131
description="Python package wrapping the public and private key cryptography and support for hardware wallet interactions.",
@@ -42,7 +42,7 @@
4242
"web3>=6.0.0,<7",
4343
"ipfshttpclient==0.8.0a2",
4444
"eth-account>=0.8.0,<0.9.0",
45-
"open-aea-ledger-ethereum~=1.63.0",
45+
"open-aea-ledger-ethereum~=1.64.0",
4646
"ledgerwallet==0.1.3",
4747
"protobuf<4.25.0,>=4.21.6",
4848
"construct<=2.10.61",

plugins/aea-ledger-ethereum/aea_ledger_ethereum/ethereum.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ def eip1559_price_strategy(
282282
if base_fee is None or block_number is None:
283283
return fallback()
284284

285+
base_fee_gwei = to_eth_unit(base_fee)
286+
285287
estimated_priority_fee = estimate_priority_fee(
286288
web3,
287289
block_number,
@@ -295,9 +297,19 @@ def eip1559_price_strategy(
295297
if estimated_priority_fee is None:
296298
return fallback()
297299

298-
max_fee_per_gas = base_fee + estimated_priority_fee
300+
multiplier = get_base_fee_multiplier(base_fee_gwei)
301+
302+
potential_max_fee = base_fee * multiplier
303+
max_fee_per_gas = (
304+
(potential_max_fee + estimated_priority_fee)
305+
if estimated_priority_fee > potential_max_fee
306+
else potential_max_fee
307+
)
299308

300-
if to_eth_unit(max_fee_per_gas) >= max_gas_fast:
309+
if (
310+
to_eth_unit(max_fee_per_gas) >= max_gas_fast
311+
or to_eth_unit(estimated_priority_fee) >= max_gas_fast
312+
):
301313
return fallback(
302314
"The estimated gas price is larger than the `max_gas_fast`. Falling back."
303315
)

plugins/aea-ledger-ethereum/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="open-aea-ledger-ethereum",
29-
version="1.63.0",
29+
version="1.64.0",
3030
author="Valory AG",
3131
license="Apache-2.0",
3232
description="Python package wrapping the public and private key cryptography and ledger api of Ethereum.",

plugins/aea-ledger-ethereum/tests/test_ethereum.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
get_gas_price_strategy_eip1559,
4545
requests,
4646
rpc_gas_price_strategy_wrapper,
47+
to_eth_unit,
4748
)
4849
from aea_ledger_ethereum.ethereum import (
4950
DEFAULT_EIP1559_STRATEGY,
@@ -529,10 +530,8 @@ def test_gas_price_strategy_eip1559() -> None:
529530

530531
assert all([key in gas_stregy for key in ["maxFeePerGas", "maxPriorityFeePerGas"]])
531532
assert gas_stregy["maxPriorityFeePerGas"] < max(rewards)
532-
assert (
533-
gas_stregy["maxFeePerGas"]
534-
== base_fee_per_gas_mock + gas_stregy["maxPriorityFeePerGas"]
535-
)
533+
base_fee_per_gas_mock *= get_base_fee_multiplier(to_eth_unit(base_fee_per_gas_mock))
534+
assert gas_stregy["maxFeePerGas"] == base_fee_per_gas_mock
536535

537536

538537
def test_gas_price_strategy_eip1559_estimate_none() -> None:

plugins/aea-ledger-fetchai/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
setup(
3333
name="open-aea-ledger-fetchai",
34-
version="1.63.0",
34+
version="1.64.0",
3535
author="Valory AG",
3636
license="Apache-2.0",
3737
description="Python package wrapping the public and private key cryptography and ledger API of Fetch.AI.",
@@ -44,7 +44,7 @@
4444
"test_tools/data/*",
4545
]
4646
},
47-
install_requires=["open-aea-ledger-cosmos~=1.63.0"],
47+
install_requires=["open-aea-ledger-cosmos~=1.64.0"],
4848
tests_require=["pytest"],
4949
entry_points={
5050
"aea.cryptos": ["fetchai = aea_ledger_fetchai:FetchAICrypto"],

plugins/aea-ledger-solana/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="open-aea-ledger-solana",
28-
version="1.63.0",
28+
version="1.64.0",
2929
author="dassy23",
3030
license="Apache-2.0",
3131
description="Python package wrapping the public and private key cryptography and ledger api of solana.",

scripts/install.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function instal_choco_golang_gcc {
3434
}
3535
function install_aea {
3636
echo "Install aea"
37-
$output=pip install open-aea[all]==1.63.0 --force --no-cache-dir 2>&1 |out-string;
37+
$output=pip install open-aea[all]==1.64.0 --force --no-cache-dir 2>&1 |out-string;
3838
if ($LastExitCode -ne 0) {
3939
echo $output
4040
echo "AEA install failed!"

scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function is_python_version_ok() {
4242

4343
function install_aea (){
4444
echo "Install AEA"
45-
output=$(pip3 install --user open-aea[all]==1.63.0 --force --no-cache-dir)
45+
output=$(pip3 install --user open-aea[all]==1.64.0 --force --no-cache-dir)
4646
if [[ $? -ne 0 ]];
4747
then
4848
echo "$output"

skaffold.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
build:
66
tagPolicy:
77
envTemplate:
8-
template: "1.63.0"
8+
template: "1.64.0"
99
artifacts:
1010
- image: valory/open-aea-develop
1111
docker:
@@ -24,7 +24,7 @@ profiles:
2424
build:
2525
tagPolicy:
2626
envTemplate:
27-
template: "1.63.0"
27+
template: "1.64.0"
2828
artifacts:
2929
- image: valory/open-aea-docs
3030
docker:

user-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV LANG C.UTF-8
77
RUN apt update && apt install -y python3.11-dev python3-pip -y && apt autoremove && apt autoclean
88

99
RUN pip3 install --upgrade pip
10-
RUN pip3 install "open-aea[all]==1.63.0" open-aea-cli-ipfs==1.63.0
10+
RUN pip3 install "open-aea[all]==1.64.0" open-aea-cli-ipfs==1.64.0
1111

1212
COPY user-image/openssl.cnf /etc/ssl
1313

user-image/docker-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Swap the following lines if you want to work with 'latest'
4-
DOCKER_IMAGE_TAG=valory/open-aea-user:1.63.0
4+
DOCKER_IMAGE_TAG=valory/open-aea-user:1.64.0
55
# DOCKER_IMAGE_TAG=valory/open-aea-user:latest
66

77
DOCKER_BUILD_CONTEXT_DIR=..

0 commit comments

Comments
 (0)