-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump [email protected]
#2065
Merged
Merged
Bump [email protected]
#2065
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
ac0acc5
bump: [email protected]
angrybayblade 85cf68d
fix: protobuf incompatibility issue when importing HWI plugin
angrybayblade c1991e4
chore: bump packages
angrybayblade 2323865
chore: generate all protocols
angrybayblade 0e763ce
fix: temporarily ignore `E0611` on pylint checks
angrybayblade 53372bd
chore: api docs
angrybayblade 5fc9572
fix: bump [email protected]
angrybayblade 320dbec
feat: build abci protos
angrybayblade 8603f9c
chore: linters
angrybayblade b7c0a96
chore: dependency pins
angrybayblade 86fb978
chore: linters
angrybayblade 3be1efc
fix: protobuf builds
angrybayblade 01ef7ee
fix: proto build target
angrybayblade 67dac33
refactor: autonomy image
angrybayblade b02e41d
chore: clean agent image
angrybayblade d32abe8
fix: images tests
angrybayblade c008a2d
chore: skip HWI loader tests
angrybayblade dac1da8
fix: version specifier string
angrybayblade 03bc0a4
chore: clean dev image
angrybayblade 4ec0db4
feat: bump [email protected]
angrybayblade 23a2565
feat: bump plugins
angrybayblade 7f402b7
chore: lock packages
angrybayblade 0c25f3e
chore: release notes
angrybayblade 294710b
fix: TCP fuzzer tests
angrybayblade c457950
docs: add `--reuse-multisig` flag to command guide [no ci]
angrybayblade 2f739a7
Merge pull request #2067 from valory-xyz/release/v0.13.0
angrybayblade 316e046
Merge pull request #2066 from valory-xyz/feat/optimise-images
angrybayblade File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,3 +236,19 @@ fix-abci-app-specs: | |
|
||
release-images: | ||
skaffold build -p release --cache-artifacts=false && skaffold build -p release-latest | ||
|
||
|
||
# Usage: INCLUDE=PATH_TO_PROTOC_INCLUDE_DIRECTORY make build-proto | ||
.PHONY: build-proto | ||
build-proto: | ||
@protoc -I $$INCLUDE \ | ||
--proto_path=packages/valory/connections/abci/protos/ \ | ||
--python_out=packages/valory/connections/abci/ \ | ||
packages/valory/connections/abci/protos/gogoproto/gogo.proto \ | ||
packages/valory/connections/abci/protos/tendermint/crypto/proof.proto \ | ||
packages/valory/connections/abci/protos/tendermint/crypto/keys.proto \ | ||
packages/valory/connections/abci/protos/tendermint/abci/types.proto \ | ||
packages/valory/connections/abci/protos/tendermint/types/types.proto \ | ||
packages/valory/connections/abci/protos/tendermint/types/validator.proto \ | ||
packages/valory/connections/abci/protos/tendermint/types/params.proto \ | ||
packages/valory/connections/abci/protos/tendermint/version/types.proto | ||
Comment on lines
+242
to
+254
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To build the abci connection protos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
"""On-chain interaction helpers.""" | ||
|
||
from pathlib import Path | ||
from typing import Any, Dict, List, Optional, Tuple, cast | ||
from typing import Any, Dict, List, Optional, Tuple, Type, cast | ||
|
||
import click | ||
from aea.configurations.base import PackageConfiguration | ||
|
@@ -90,14 +90,6 @@ | |
except ImportError: # pragma: nocover | ||
ETHEREUM_PLUGIN_INSTALLED = False | ||
|
||
try: | ||
from aea_ledger_ethereum_hwi.exceptions import HWIError | ||
from aea_ledger_ethereum_hwi.hwi import EthereumHWIApi | ||
|
||
HWI_PLUGIN_INSTALLED = True | ||
except ImportError: # pragma: nocover | ||
HWI_PLUGIN_INSTALLED = False | ||
|
||
|
||
class OnChainHelper: # pylint: disable=too-few-public-methods | ||
"""On-chain interaction helper.""" | ||
|
@@ -124,7 +116,28 @@ | |
) | ||
|
||
@staticmethod | ||
def load_hwi_plugin() -> Type[LedgerApi]: # pragma: nocover | ||
"""Load HWI Plugin.""" | ||
try: | ||
from aea_ledger_ethereum_hwi.hwi import ( # pylint: disable=import-outside-toplevel | ||
EthereumHWIApi, | ||
) | ||
|
||
return EthereumHWIApi | ||
except ImportError as e: | ||
raise click.ClickException( | ||
"Hardware wallet plugin not installed, " | ||
"Run `pip3 install open-aea-ledger-ethereum-hwi` to install the plugin" | ||
) from e | ||
except TypeError as e: | ||
raise click.ClickException( | ||
'Protobuf compatibility error; Please export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python" ' | ||
"to use the hardware wallet without any issues" | ||
) from e | ||
Comment on lines
+119
to
+136
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lazy loading to avoid the protobuf incompatibility issue valory-xyz/open-aea#671 |
||
|
||
@classmethod | ||
def get_ledger_and_crypto_objects( | ||
cls, | ||
chain_type: ChainType, | ||
key: Optional[Path] = None, | ||
password: Optional[str] = None, | ||
|
@@ -141,13 +154,8 @@ | |
f"using `{ChainConfigs.get_rpc_env_var(chain_type)}` environment variable" | ||
) | ||
|
||
if hwi and not HWI_PLUGIN_INSTALLED: # pragma: nocover | ||
raise click.ClickException( | ||
"Hardware wallet plugin not installed, " | ||
"Run `pip3 install open-aea-ledger-ethereum-hwi` to install the plugin" | ||
) | ||
|
||
if hwi: | ||
EthereumHWIApi = cls.load_hwi_plugin() | ||
identifier = EthereumHWIApi.identifier | ||
|
||
if not hwi and not ETHEREUM_PLUGIN_INSTALLED: # pragma: nocover | ||
|
@@ -185,8 +193,8 @@ | |
|
||
try: | ||
ledger_api.api.eth.default_account = crypto.address | ||
except HWIError as e: # pragma: nocover | ||
raise click.ClickException(e.message) | ||
except Exception as e: # pragma: nocover | ||
raise click.ClickException(str(e)) | ||
|
||
return ledger_api, crypto | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
ARG AEA_VERSION=latest | ||
FROM valory/open-aea-user:${AEA_VERSION} | ||
ARG AUTHOR=default_author | ||
|
||
WORKDIR /home/ubuntu | ||
ENV PATH=$PATH:/home/ubuntu/.local/bin | ||
FROM valory/open-aea-user:${AEA_VERSION} | ||
|
||
RUN sudo apt-get update && sudo apt-get upgrade -y | ||
RUN cd /usr/bin && sudo rm python3 && sudo ln -s python3.10 python3 && sudo ln -s python3.10 python | ||
RUN sudo apt-get install wait-for-it net-tools -y | ||
RUN sudo apt remove --purge python3-virtualenv | ||
ARG AUTHOR=default_author | ||
|
||
RUN apt remove --purge python3-virtualenv | ||
RUN python -m pip uninstall -y setuptools | ||
RUN python -m pip install --upgrade pip | ||
RUN python -m pip install --force-reinstall pipenv virtualenv --user | ||
RUN python -m pip uninstall -y setuptools | ||
WORKDIR /home/ubuntu | ||
|
||
COPY openssl.cnf /etc/ssl | ||
COPY Pipfile /home/ubuntu/Pipfile | ||
COPY start_dev.sh /home/ubuntu/start_dev.sh | ||
COPY start.sh /home/ubuntu/start.sh | ||
COPY watcher.py /home/ubuntu/watcher.py | ||
WORKDIR /root | ||
|
||
CMD ["./start_dev.sh"] | ||
COPY Pipfile /root/Pipfile | ||
COPY start_dev.sh /root/start_dev.sh | ||
COPY start.sh /root/start.sh | ||
COPY watcher.py /root/watcher.py | ||
|
||
HEALTHCHECK --interval=3s --timeout=600s --retries=600 CMD netstat -ltn | grep -c 26658 > /dev/null; if [ 0 != $? ]; then exit 1; fi; | ||
CMD ["/root/start_dev.sh"] | ||
|
||
HEALTHCHECK --interval=3s --timeout=600s --retries=600 CMD netstat -ltn | grep -c 26658 > /dev/null; if [ 0 != $? ]; then exit 1; fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumped because of the protobuf bump