Skip to content

Commit d3f177a

Browse files
authored
Merge pull request #2672 from fetchai/develop
release 1.1.1
2 parents 0fe0060 + cd1b9fc commit d3f177a

409 files changed

Lines changed: 5858 additions & 4413 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.spelling

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ CosmPy
226226
dockerised
227227
Mermaid-JS
228228
darglint
229+
aea-cli-ipfs
229230
- docs/language-agnostic-definition.md
230231
fetchai
231232
protocol_id

HISTORY.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Release History
22

3+
## 1.1.1 (2021-12-15)
4+
5+
AEA:
6+
- Updates the protocol generator to generate protocols that satisfy linter constraints
7+
8+
Plugins:
9+
- aea-cli-ipfs plugin small update
10+
11+
Packages:
12+
- Fixes fetchai/p2p_libp2p connection to address a slow DHT lookup problem
13+
- Updates protocols with the latest protocol generator
14+
- Updates random beacon agent so it produces block data instead of the (now deprecated feature of the test-net) random beacon data
15+
16+
Misc
17+
- Bumps go library versions
18+
- Various fixes and improvements
19+
320
## 1.1.0 (2021-10-13)
421

522
AEA:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ lint:
4646
isort aea benchmark examples packages plugins scripts tests
4747
flake8 aea benchmark examples packages plugins scripts tests
4848
vulture aea scripts/whitelist.py --exclude "*_pb2.py"
49-
darglint aea benchmark examples libs packages/fetchai/connections packages/fetchai/contracts packages/fetchai/skills plugins scripts
49+
darglint aea benchmark examples libs packages plugins scripts
5050

5151
.PHONY: pylint
5252
pylint:

aea/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
__title__ = "aea"
2323
__description__ = "Autonomous Economic Agent framework"
2424
__url__ = "https://github.com/fetchai/agents-aea.git"
25-
__version__ = "1.1.0"
25+
__version__ = "1.1.1"
2626
__author__ = "Fetch.AI Limited"
2727
__license__ = "Apache-2.0"
2828
__copyright__ = "2019 Fetch.AI Limited"

aea/manager/manager.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ def stop_event_thread() -> None:
281281
t.start()
282282
loop = asyncio.get_event_loop()
283283
aea.runtime.set_loop(loop)
284-
aea.start()
284+
aea.runtime.start()
285+
loop.run_until_complete(aea.runtime.wait_completed())
286+
285287
except BaseException as e: # pylint: disable=broad-except
286288
print(
287289
f"Exception in agent subprocess task at {datetime.datetime.now()}:\n{format_exc()}"
@@ -291,8 +293,8 @@ def stop_event_thread() -> None:
291293
run_stop_thread = False
292294
if t:
293295
t.join(10)
294-
295-
result_queue.put(r)
296+
result_queue.put(r)
297+
aea.logger.debug("process task stopped")
296298

297299
def stop(self) -> None:
298300
"""Stop the task."""

aea/protocols/generator/base.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ def _message_class_str(self) -> str:
746746
cls_str += self.indent + ":param dialogue_reference: the dialogue reference.\n"
747747
cls_str += self.indent + ":param target: the message target.\n"
748748
cls_str += self.indent + ":param performative: the message performative.\n"
749+
cls_str += self.indent + ":param **kwargs: extra options.\n"
749750
cls_str += self.indent + '"""\n'
750751

751752
cls_str += self.indent + "super().__init__(\n"
@@ -965,7 +966,10 @@ def _valid_replies_str(self) -> str:
965966
966967
:return: the `valid replies` dictionary string
967968
"""
968-
valid_replies_str = self.indent + "VALID_REPLIES = {\n"
969+
valid_replies_str = (
970+
self.indent
971+
+ "VALID_REPLIES: Dict[Message.Performative, FrozenSet[Message.Performative]] = {\n"
972+
)
969973
self._change_indent(1)
970974
for performative in sorted(self.spec.reply.keys()):
971975
valid_replies_str += (
@@ -1067,7 +1071,7 @@ def _dialogue_class_str(self) -> str:
10671071
# Imports
10681072
cls_str += self.indent + "from abc import ABC\n"
10691073
cls_str += (
1070-
self.indent + "from typing import Callable, FrozenSet, Type, cast\n\n"
1074+
self.indent + "from typing import Callable, Dict, FrozenSet, Type, cast\n\n"
10711075
)
10721076
cls_str += self.indent + "from aea.common import Address\n"
10731077
cls_str += self.indent + "from aea.protocols.base import Message\n"
@@ -1111,11 +1115,11 @@ def _dialogue_class_str(self) -> str:
11111115
)
11121116
cls_str += (
11131117
self.indent
1114-
+ "INITIAL_PERFORMATIVES = frozenset({"
1118+
+ "INITIAL_PERFORMATIVES: FrozenSet[Message.Performative] = frozenset({"
11151119
+ initial_performatives_str
11161120
+ "})\n"
11171121
+ self.indent
1118-
+ "TERMINAL_PERFORMATIVES = frozenset({"
1122+
+ "TERMINAL_PERFORMATIVES: FrozenSet[Message.Performative] = frozenset({"
11191123
+ terminal_performatives_str
11201124
+ "})\n"
11211125
+ self._valid_replies_str()
@@ -1153,7 +1157,7 @@ def _dialogue_class_str(self) -> str:
11531157
self.indent
11541158
+ ":param role: the role of the agent this dialogue is maintained for\n"
11551159
)
1156-
cls_str += self.indent + ":return: None\n"
1160+
cls_str += self.indent + ":param message_class: the message class used\n"
11571161
cls_str += self.indent + '"""\n'
11581162
cls_str += self.indent + "Dialogue.__init__(\n"
11591163
cls_str += self.indent + "self,\n"
@@ -1216,7 +1220,11 @@ def _dialogue_class_str(self) -> str:
12161220
self.indent
12171221
+ ":param self_address: the address of the entity for whom dialogues are maintained\n"
12181222
)
1219-
cls_str += self.indent + ":return: None\n"
1223+
cls_str += self.indent + ":param dialogue_class: the dialogue class used\n"
1224+
cls_str += (
1225+
self.indent
1226+
+ ":param role_from_first_message: the callable determining role from first message\n"
1227+
)
12201228
cls_str += self.indent + '"""\n'
12211229
cls_str += self.indent + "Dialogues.__init__(\n"
12221230
self._change_indent(1)
@@ -1303,7 +1311,6 @@ def _custom_types_module_str(self) -> str:
13031311
_camel_case_to_snake_case(custom_type)
13041312
)
13051313
)
1306-
cls_str += self.indent + ":return: None\n"
13071314
cls_str += self.indent + '"""\n'
13081315
cls_str += self.indent + "raise NotImplementedError\n\n"
13091316
self._change_indent(-1)

deploy-image/Dockerfile

Lines changed: 1 addition & 1 deletion
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 aea[all]==1.1.0
19+
RUN pip install --upgrade --force-reinstall aea[all]==1.1.1
2020

2121
# directories and aea cli config
2222
COPY /.aea /home/.aea

develop-image/docker-env.sh

Lines changed: 1 addition & 1 deletion
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=fetchai/aea-develop:1.1.0
4+
DOCKER_IMAGE_TAG=fetchai/aea-develop:1.1.1
55
# DOCKER_IMAGE_TAG=aea-develop:latest
66

77
DOCKER_BUILD_CONTEXT_DIR=..

docs/aggregation-demo.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Repeat the following process four times in four different terminals (for each {`
1919
Fetch the aggregator AEA:
2020
``` bash
2121
agent_name="agg$i"
22-
aea fetch fetchai/simple_aggregator:0.4.0 --alias $agent_name
22+
aea fetch fetchai/simple_aggregator:0.5.0 --alias $agent_name
2323
cd $agent_name
2424
aea install
2525
aea build
@@ -34,15 +34,15 @@ Create the AEA.
3434
agent_name="agg$i"
3535
aea create agent_name
3636
cd agent_name
37-
aea add connection fetchai/http_client:0.23.0
38-
aea add connection fetchai/http_server:0.22.0
39-
aea add connection fetchai/p2p_libp2p:0.25.0
40-
aea add connection fetchai/soef:0.26.0
41-
aea add connection fetchai/prometheus:0.8.0
42-
aea add skill fetchai/advanced_data_request:0.6.0
43-
aea add skill fetchai/simple_aggregation:0.2.0
44-
45-
aea config set agent.default_connection fetchai/p2p_libp2p:0.25.0
37+
aea add connection fetchai/http_client:0.24.0
38+
aea add connection fetchai/http_server:0.23.0
39+
aea add connection fetchai/p2p_libp2p:0.26.0
40+
aea add connection fetchai/soef:0.27.0
41+
aea add connection fetchai/prometheus:0.9.0
42+
aea add skill fetchai/advanced_data_request:0.7.0
43+
aea add skill fetchai/simple_aggregation:0.3.0
44+
45+
aea config set agent.default_connection fetchai/p2p_libp2p:0.26.0
4646
aea install
4747
aea build
4848
```
@@ -126,8 +126,8 @@ aea config set vendor.fetchai.connections.http_server.config.port $((8000+i))
126126

127127
To publish the aggregated value to an oracle smart contract, add the ledger connection and simple oracle skill to one of the aggregators:
128128
``` bash
129-
aea add connection fetchai/ledger:0.19.0
130-
aea add skill fetchai/simple_oracle:0.14.0
129+
aea add connection fetchai/ledger:0.20.0
130+
aea add skill fetchai/simple_oracle:0.15.0
131131
```
132132

133133
Configure the simple oracle skill for the `fetchai` ledger:

docs/api/protocols/default/custom_types.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ The protocol buffer object in the error_code_protobuf_object argument is matched
2929
- `error_code_protobuf_object`: the protocol buffer object whose type corresponds with this class.
3030
- `error_code_object`: an instance of this class to be encoded in the protocol buffer object.
3131

32-
**Returns**:
33-
34-
None
35-
3632
<a name="packages.fetchai.protocols.default.custom_types.ErrorCode.decode"></a>
3733
#### decode
3834

0 commit comments

Comments
 (0)