Skip to content

Commit bb783dc

Browse files
authored
feat: release 1.2.2 (#2787)
* plugins versions are updated * release history and updating are updated * packages versions bumped * documentation updated * bump_aea_version script updated to support pyproject.toml * aea version bumped to 1.2.2 * spelling fixes * small fixes * protocols versions bumped
1 parent b831a7f commit bb783dc

File tree

355 files changed

+2439
-2385
lines changed

Some content is hidden

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

355 files changed

+2439
-2385
lines changed

Diff for: .spelling

+15
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,20 @@ dockerised
227227
Mermaid-JS
228228
darglint
229229
aea-cli-ipfs
230+
tensorflow
231+
ethereum
232+
mypy
233+
ipfshttpclient
234+
0.8.0a2
235+
int64
236+
int32
237+
cosmpy
238+
tx
239+
asyncio
240+
golang
241+
basecontracttesttool
242+
linter
243+
stargateworld
230244
- docs/language-agnostic-definition.md
231245
fetchai
232246
protocol_id
@@ -236,6 +250,7 @@ CosmWasm
236250
- docs/ledger-integration.md
237251
atestfet
238252
v0.2.x
253+
dorado-1
239254
- docs/questions-and-answers.md
240255
state_update
241256
txt

Diff for: HISTORY.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
# Release History
22

33

4+
## 1.2.1 (2022-10-17)
5+
6+
AEA:
7+
- Dependency management switched from pipenv to poetry.
8+
- Protocol generator updated to support Unions
9+
- Dependencies versions updates: click, mypy, black, ipfshttpclient
10+
- Small code format improvements
11+
12+
Plugins:
13+
- Update web3 to version 5.31
14+
- Small code format improvements
15+
- ipfshttpclient dependency version updated to 0.8.0a2
16+
17+
Packages:
18+
- Protocols regenerated according to the latest protocol generator improvements: Union support
19+
- Small code format improvements
20+
421
## 1.2.1 (2022-07-12)
522

623
AEA:

Diff for: aea/__version__.py

+1-1
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.2.1"
25+
__version__ = "1.2.2"
2626
__author__ = "Fetch.AI Limited"
2727
__license__ = "Apache-2.0"
2828
__copyright__ = "2022 Fetch.AI Limited"

Diff for: docs/aggregation-demo.md

+12-12
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.5.1 --alias $agent_name
22+
aea fetch fetchai/simple_aggregator:0.5.2 --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.24.2
38-
aea add connection fetchai/http_server:0.23.2
39-
aea add connection fetchai/p2p_libp2p:0.27.1
40-
aea add connection fetchai/soef:0.27.2
41-
aea add connection fetchai/prometheus:0.9.2
42-
aea add skill fetchai/advanced_data_request:0.7.2
43-
aea add skill fetchai/simple_aggregation:0.3.2
44-
45-
aea config set agent.default_connection fetchai/p2p_libp2p:0.27.1
37+
aea add connection fetchai/http_client:0.24.3
38+
aea add connection fetchai/http_server:0.23.3
39+
aea add connection fetchai/p2p_libp2p:0.27.2
40+
aea add connection fetchai/soef:0.27.3
41+
aea add connection fetchai/prometheus:0.9.3
42+
aea add skill fetchai/advanced_data_request:0.7.3
43+
aea add skill fetchai/simple_aggregation:0.3.3
44+
45+
aea config set agent.default_connection fetchai/p2p_libp2p:0.27.2
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.21.1
130-
aea add skill fetchai/simple_oracle:0.16.1
129+
aea add connection fetchai/ledger:0.21.2
130+
aea add skill fetchai/simple_oracle:0.16.2
131131
```
132132

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

Diff for: docs/api/aea_builder.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ Reset the builder.
224224

225225
A full reset causes a reset of all data on the builder. A partial reset
226226
only resets:
227-
- name,
228-
- private keys, and
229-
- component instances
227+
- name,
228+
- private keys, and
229+
- component instances
230230

231231
**Arguments**:
232232

@@ -544,7 +544,7 @@ Add a private key path.
544544

545545
- `identifier`: the identifier for that private key path.
546546
- `private_key_path`: an (optional) path to the private key file.
547-
If None, the key will be created at build time.
547+
If None, the key will be created at build time.
548548
- `is_connection`: if the pair is for the connection cryptos
549549

550550
**Returns**:
@@ -677,7 +677,7 @@ Add a component, given its type and the directory.
677677
**Raises**:
678678

679679
- `AEAException`: if a component is already registered with the same component id. # noqa: DAR402
680-
| or if there's a missing dependency. # noqa: DAR402
680+
| or if there's a missing dependency. # noqa: DAR402
681681

682682
**Returns**:
683683

Diff for: docs/api/configurations/base.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Transform a Dependencies object into a JSON object.
3636
**Returns**:
3737

3838
a dictionary whose keys are package names and
39-
values are the JSON version of a Dependency object.
39+
values are the JSON version of a Dependency object.
4040

4141
<a name="aea.configurations.base.ProtocolSpecificationParseError"></a>
4242
## ProtocolSpecificationParseError Objects
@@ -452,8 +452,8 @@ Check that the fingerprint are correct against a directory path.
452452
**Raises**:
453453

454454
- `ValueError`: if
455-
- the argument is not a valid package directory
456-
- the fingerprints do not match.
455+
- the argument is not a valid package directory
456+
- the fingerprints do not match.
457457

458458
<a name="aea.configurations.base.ComponentConfiguration.check_public_id_consistency"></a>
459459
#### check`_`public`_`id`_`consistency
@@ -471,8 +471,8 @@ Check that the public ids in the init file match the config.
471471
**Raises**:
472472

473473
- `ValueError`: if
474-
- the argument is not a valid package directory
475-
- the public ids do not match.
474+
- the argument is not a valid package directory
475+
- the public ids do not match.
476476

477477
<a name="aea.configurations.base.ConnectionConfig"></a>
478478
## ConnectionConfig Objects

Diff for: docs/api/configurations/manager.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ handle_dotted_path(value: str, author: str, aea_project_path: Union[str, Path] =
2222
Separate the path between path to resource and json path to attribute.
2323

2424
Allowed values:
25-
'agent.an_attribute_name'
26-
'protocols.my_protocol.an_attribute_name'
27-
'connections.my_connection.an_attribute_name'
28-
'contracts.my_contract.an_attribute_name'
29-
'skills.my_skill.an_attribute_name'
30-
'vendor.author.[protocols|contracts|connections|skills].package_name.attribute_name
25+
'agent.an_attribute_name'
26+
'protocols.my_protocol.an_attribute_name'
27+
'connections.my_connection.an_attribute_name'
28+
'contracts.my_contract.an_attribute_name'
29+
'skills.my_skill.an_attribute_name'
30+
'vendor.author.[protocols|contracts|connections|skills].package_name.attribute_name
3131

3232
We also return the component id to retrieve the configuration of a specific
3333
component. Notice that at this point we don't know the version,

Diff for: docs/api/configurations/pypi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ False
4545

4646
For other details, please refer to PEP440:
4747

48-
https://www.python.org/dev/peps/pep-0440
48+
https://www.python.org/dev/peps/pep-0440
4949

5050
**Arguments**:
5151

Diff for: docs/api/context/base.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Provide read access to relevant objects of the agent for the skills.
1616
#### `__`init`__`
1717

1818
```python
19-
| __init__(identity: Identity, connection_status: MultiplexerStatus, outbox: OutBox, decision_maker_message_queue: Queue, decision_maker_handler_context: SimpleNamespace, task_manager: TaskManager, default_ledger_id: str, currency_denominations: Dict[str, str], default_connection: Optional[PublicId], default_routing: Dict[PublicId, PublicId], search_service_address: Address, decision_maker_address: Address, data_dir: str, storage_callable: Callable[[], Optional[Storage]] = lambda: None, send_to_skill: Optional[Callable] = None, **kwargs: Any) -> None
19+
| __init__(identity: Identity, connection_status: MultiplexerStatus, outbox: OutBox, decision_maker_message_queue: Queue, decision_maker_handler_context: SimpleNamespace, task_manager: TaskManager, default_ledger_id: str, currency_denominations: Dict[str, str], default_connection: Optional[PublicId], default_routing: Dict[PublicId, PublicId], search_service_address: Address, decision_maker_address: Address, data_dir: str, storage_callable: Callable[[], Optional[Storage]] = lambda: None, send_to_skill: Optional[Callable] = None, **kwargs: Any, ,) -> None
2020
```
2121

2222
Initialize an agent context.

Diff for: docs/api/crypto/base.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Either way, the entity object will be accessible as a property.
2828
**Arguments**:
2929

3030
- `private_key_path`: the path to the private key.
31-
If None, the key will be generated by 'generate_private_key()'.
32-
If not None, the path will be processed by 'load_private_key_from_path()'.
31+
If None, the key will be generated by 'generate_private_key()'.
32+
If not None, the path will be processed by 'load_private_key_from_path()'.
3333
- `password`: the password to encrypt/decrypt the private key.
3434
- `kwargs`: keyword arguments.
3535

Diff for: docs/api/crypto/registries/base.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ Create an instance of the associated type item id.
188188
**Arguments**:
189189

190190
- `id_`: the id of the item class. Make sure it has been registered earlier
191-
before calling this function.
191+
before calling this function.
192192
- `module`: dotted path to a module.
193-
whether a module should be loaded before creating the object.
194-
this argument is useful when the item might not be registered
195-
beforehand, and loading the specified module will make the registration.
196-
E.g. suppose the call to 'register' for a custom object
197-
is located in some_package/__init__.py. By providing module="some_package",
198-
the call to 'register' in such module gets triggered and
199-
the make can then find the identifier.
193+
whether a module should be loaded before creating the object.
194+
this argument is useful when the item might not be registered
195+
beforehand, and loading the specified module will make the registration.
196+
E.g. suppose the call to 'register' for a custom object
197+
is located in some_package/__init__.py. By providing module="some_package",
198+
the call to 'register' in such module gets triggered and
199+
the make can then find the identifier.
200200
- `kwargs`: keyword arguments to be forwarded to the object.
201201

202202
**Returns**:
@@ -215,15 +215,15 @@ Load a class of the associated type item id.
215215
**Arguments**:
216216

217217
- `id_`: the id of the item class. Make sure it has been registered earlier
218-
before calling this function.
218+
before calling this function.
219219
- `module`: dotted path to a module.
220-
whether a module should be loaded before creating the object.
221-
this argument is useful when the item might not be registered
222-
beforehand, and loading the specified module will make the registration.
223-
E.g. suppose the call to 'register' for a custom object
224-
is located in some_package/__init__.py. By providing module="some_package",
225-
the call to 'register' in such module gets triggered and
226-
the make can then find the identifier.
220+
whether a module should be loaded before creating the object.
221+
this argument is useful when the item might not be registered
222+
beforehand, and loading the specified module will make the registration.
223+
E.g. suppose the call to 'register' for a custom object
224+
is located in some_package/__init__.py. By providing module="some_package",
225+
the call to 'register' in such module gets triggered and
226+
the make can then find the identifier.
227227

228228
**Returns**:
229229

Diff for: docs/api/crypto/wallet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Initialize the crypto store.
2424
**Arguments**:
2525

2626
- `crypto_id_to_path`: dictionary from crypto id to an (optional) path
27-
to the private key.
27+
to the private key.
2828
- `password`: the password to encrypt/decrypt the private key.
2929

3030
<a name="aea.crypto.wallet.CryptoStore.public_keys"></a>

Diff for: docs/api/helpers/async_utils.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Provides better cancel behaviour: on cancel it will wait till cancelled complete
161161
#### `__`init`__`
162162

163163
```python
164-
| __init__(coro: Awaitable, loop: AbstractEventLoop) -> None
164+
| __init__(coro: Coroutine[Any, Any, Any], loop: AbstractEventLoop) -> None
165165
```
166166

167167
Init the task.
@@ -250,7 +250,7 @@ Run code inside thread.
250250
#### call
251251

252252
```python
253-
| call(coro: Awaitable) -> Any
253+
| call(coro: Coroutine[Any, Any, Any]) -> Any
254254
```
255255

256256
Run a coroutine inside the event loop.
@@ -336,7 +336,7 @@ Implement run logic respectful to CancelError on termination.
336336
#### wait`_`completed
337337

338338
```python
339-
| wait_completed(sync: bool = False, timeout: float = None, force_result: bool = False) -> Awaitable
339+
| wait_completed(sync: bool = False, timeout: float = None, force_result: bool = False) -> Union[Coroutine, Awaitable]
340340
```
341341

342342
Wait runnable execution completed.
@@ -364,7 +364,7 @@ Stop runnable.
364364
#### start`_`and`_`wait`_`completed
365365

366366
```python
367-
| start_and_wait_completed(*args: Any, **kwargs: Any) -> Awaitable
367+
| start_and_wait_completed(*args: Any, **kwargs: Any) -> Union[Coroutine, Awaitable]
368368
```
369369

370370
Alias for start and wait methods.

Diff for: docs/api/helpers/base.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,13 @@ It can be used both as:
654654

655655
@mydecorator
656656
def myfunction():
657-
...
657+
...
658658

659659
or as:
660660

661661
@mydecorator(arg1, kwarg1="value")
662662
def myfunction():
663-
...
663+
...
664664

665665
**Arguments**:
666666

0 commit comments

Comments
 (0)