Skip to content
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

update params on the fly #219

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ packages/valory/connections/http_client/
packages/valory/connections/ipfs/
packages/valory/connections/ledger/
packages/valory/connections/p2p_libp2p_client/
packages/valory/connections/http_server/

packages/valory/skills/abstract_abci/
packages/valory/skills/abstract_round_abci/
Expand Down
1 change: 1 addition & 0 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"skill/valory/abstract_round_abci/0.1.0": "bafybeidyrcd4hxl4gq7xhkcd546wkidebbvt6vnomxmrdsja6shkpysh5u",
"connection/valory/abci/0.1.0": "bafybeifduae3yvckxlopuoif2i6s4q76r663pmc7itabq4fyznwzxrpnuu",
"connection/valory/http_client/0.23.0": "bafybeih5vzo22p2umhqo52nzluaanxx7kejvvpcpdsrdymckkyvmsim6gm",
"connection/valory/http_server/0.22.0": "bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m",
"connection/valory/ledger/0.19.0": "bafybeic3ft7l7ca3qgnderm4xupsfmyoihgi27ukotnz7b5hdczla2enya",
"connection/valory/p2p_libp2p_client/0.1.0": "bafybeid3xg5k2ol5adflqloy75ibgljmol6xsvzvezebsg7oudxeeolz7e",
"connection/valory/ipfs/0.1.0": "bafybeibsjllc2l62jvc4gdyv73irldlvbqlslytm4gw6xjvugcp5oylx44",
Expand Down
11 changes: 11 additions & 0 deletions packages/valory/agents/trader/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ connections:
- valory/ipfs:0.1.0:bafybeibsjllc2l62jvc4gdyv73irldlvbqlslytm4gw6xjvugcp5oylx44
- valory/ledger:0.19.0:bafybeic3ft7l7ca3qgnderm4xupsfmyoihgi27ukotnz7b5hdczla2enya
- valory/p2p_libp2p_client:0.1.0:bafybeid3xg5k2ol5adflqloy75ibgljmol6xsvzvezebsg7oudxeeolz7e
- valory/http_server:0.22.0:bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m
contracts:
- valory/gnosis_safe:0.1.0:bafybeigz4lf4b536uxb52tmqkfajdjtszclv67gtqitygrkaww4vzg2fle
- valory/gnosis_safe_proxy_factory:0.1.0:bafybeifilkilg2vw5ry7zyof3mmwgnfinheusnu53dv3ocxhppypgaouo4
Expand Down Expand Up @@ -49,6 +50,7 @@ skills:
- valory/decision_maker_abci:0.1.0:bafybeifharwkzhzh5ngtbky3zo55ik2eqjqrxxx4yqr4hiwmdoqyp2td54
- valory/trader_abci:0.1.0:bafybeiboyjvttf75atsz7ci5qp4hlaxt5zuq6aa23olxekkcc5enbyew4a
- valory/staking_abci:0.1.0:bafybeidgivibaeant53uef3j2virsxlgr5kpd6lsenr7pjdhqktwbqxfye
- valory/params_server_abci:0.1.0:bafybeidgivibaeant53uef3j2virsxlgr5kpd6lsenr7pjdhqktwbqxfye
default_ledger: ethereum
required_ledgers:
- ethereum
Expand Down Expand Up @@ -137,6 +139,8 @@ models:
retry_timeout: ${int:3}
request_retry_delay: ${float:1.0}
request_timeout: ${float:10.0}
service_endpoint_base: ${str:https://trader.staging.autonolas.tech/}
update_secret: ${str:secret}
service_id: ${str:trader}
tendermint_url: ${str:http://localhost:26657}
tendermint_com_url: ${str:http://localhost:8080}
Expand Down Expand Up @@ -236,3 +240,10 @@ config:
chain_id: ${int:1337}
default_gas_price_strategy: ${str:eip1559}
poa_chain: ${bool:false}
---
public_id: valory/http_server:0.22.0:bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m
type: connection
config:
host: 127.0.0.1
port: 8000
target_skill_id: valory/trader_abci:0.1.0
8 changes: 8 additions & 0 deletions packages/valory/services/trader/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ type: skill
request_retry_delay: ${REQUEST_RETRY_DELAY:float:1.0}
request_timeout: ${REQUEST_TIMEOUT:float:10.0}
round_timeout_seconds: ${ROUND_TIMEOUT:float:350.0}
service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://trader.staging.autonolas.tech/}
update_secret: ${UPDATE_SECRET:str:secret}
service_id: ${SERVICE_ID:str:trader}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
agent_registry_address: ${AGENT_REGISTRY_ADDRESS:str:0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA}
Expand Down Expand Up @@ -151,6 +153,8 @@ type: skill
request_retry_delay: ${REQUEST_RETRY_DELAY:float:1.0}
request_timeout: ${REQUEST_TIMEOUT:float:10.0}
round_timeout_seconds: ${ROUND_TIMEOUT:float:350.0}
service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://trader.staging.autonolas.tech/}
update_secret: ${UPDATE_SECRET:str:secret}
service_id: ${SERVICE_ID:str:trader}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
agent_registry_address: ${AGENT_REGISTRY_ADDRESS:str:0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA}
Expand Down Expand Up @@ -244,6 +248,8 @@ type: skill
request_retry_delay: ${REQUEST_RETRY_DELAY:float:1.0}
request_timeout: ${REQUEST_TIMEOUT:float:10.0}
round_timeout_seconds: ${ROUND_TIMEOUT:float:350.0}
service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://trader.staging.autonolas.tech/}
update_secret: ${UPDATE_SECRET:str:secret}
service_id: ${SERVICE_ID:str:trader}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
agent_registry_address: ${AGENT_REGISTRY_ADDRESS:str:0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA}
Expand Down Expand Up @@ -337,6 +343,8 @@ type: skill
request_retry_delay: ${REQUEST_RETRY_DELAY:float:1.0}
request_timeout: ${REQUEST_TIMEOUT:float:10.0}
round_timeout_seconds: ${ROUND_TIMEOUT:float:350.0}
service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://trader.staging.autonolas.tech/}
update_secret: ${UPDATE_SECRET:str:secret}
service_id: ${SERVICE_ID:str:trader}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
agent_registry_address: ${AGENT_REGISTRY_ADDRESS:str:0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA}
Expand Down
20 changes: 20 additions & 0 deletions packages/valory/skills/params_server_abci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Abstract abci

## Description

This module contains an abstract ABCI skill template for an AEA.

## Behaviours

No behaviours (the skill is purely reactive).

## Handlers

* `ABCIHandler`

This abstract skill provides a template of an ABCI application managed by an
AEA. This abstract Handler replies to ABCI requests with default responses.
In another skill, extend the class and override the request handlers
to implement a custom behaviour.


25 changes: 25 additions & 0 deletions packages/valory/skills/params_server_abci/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2021-2022 Valory AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ------------------------------------------------------------------------------

"""This module contains an abstract ABCI skill template for an AEA."""

from aea.configurations.base import PublicId


PUBLIC_ID = PublicId.from_str("valory/params_server_abci:0.1.0")
39 changes: 39 additions & 0 deletions packages/valory/skills/params_server_abci/dialogues.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2021-2022 Valory AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ------------------------------------------------------------------------------

"""This module contains the classes required for dialogue management."""

from packages.valory.skills.abstract_round_abci.dialogues import (
AbciDialogue as BaseAbciDialogue,
)
from packages.valory.skills.abstract_round_abci.dialogues import (
AbciDialogues as BaseAbciDialogues,
)
from packages.valory.skills.abstract_round_abci.dialogues import (
HttpDialogue as BaseHttpDialogue,
)
from packages.valory.skills.abstract_round_abci.dialogues import (
HttpDialogues as BaseHttpDialogues,
)


AbciDialogue = BaseAbciDialogue
AbciDialogues = BaseAbciDialogues
HttpDialogue = BaseHttpDialogue
HttpDialogues = BaseHttpDialogues
Loading