Skip to content

Commit

Permalink
chore: handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Aug 28, 2023
1 parent 04759aa commit e7b0f6d
Show file tree
Hide file tree
Showing 10 changed files with 93 additions and 196 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/common_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
run: |
tox -e check-abci-docstrings
tox -e check-abciapp-specs
tox -e check-handlers
# tox -e check-handlers
# ignore for now due to https://github.com/valory-xyz/open-autonomy/issues/1988
# tox -e analyse-service
Expand Down
10 changes: 5 additions & 5 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"dev": {
"connection/valory/websocket_client/0.1.0": "bafybeicz53kzs5uvyiod2azntl76zwgmpgr22ven4wl5fnwt2m546j3wsu",
"skill/valory/contract_subscription/0.1.0": "bafybeifbgzfrhtdtendqzwmh3o436nyexwkif6mbvsouvk2ktdfk5lhe7y",
"agent/valory/mech/0.1.0": "bafybeigpofvangphttvnhss4rdomaa3ftbohb5vrqdd7i2b23uvk3xsl7e",
"skill/valory/mech_abci/0.1.0": "bafybeifmwddxenn4s6jnagnvrlp5pqujdux3kywfvzntihzq4hdhrwwwgq",
"agent/valory/mech/0.1.0": "bafybeicrc7bkd5izskm5dybbozablcahai2mylswxx3t65pixf3sa2jypa",
"skill/valory/mech_abci/0.1.0": "bafybeie2qjdu2fr5wssiksnp22tcsdxoffvdixmccoknug6wrj4nwb6arm",
"contract/valory/agent_mech/0.1.0": "bafybeidl6kwc3sgcxiphgb3osjqlqwylhqetv2nyv2fu6zxcgn5qctv2ju",
"service/valory/mech/0.1.0": "bafybeid4tw6ul3d24pkgevhmf5577n4tsfkiiajwtjybu2vzkaolawm44y",
"service/valory/mech/0.1.0": "bafybeib5bdai2ivtv2hlj4z7qy3dssy5gexswrxkrlfqkzv6476q6du5a4",
"protocol/valory/acn_data_share/0.1.0": "bafybeieyixetwvz767zekhvg7r6etumyanzys6xbalx2brrfswybinnlhi",
"protocol/valory/default/1.0.0": "bafybeiecmut3235aen7wxukllv424f3dysvvlgfmn562kzdunc5hdj3hxu",
"skill/valory/task_submission_abci/0.1.0": "bafybeicbbnxxjigu5ktore6v5hja3z5tgwlbsbittsdonfyvizxv4us524",
"skill/valory/task_execution/0.1.0": "bafybeigiy77gcojv77krmmah6xq46m4tb6ytz47omrrqsoydab5xsm36wa"
"skill/valory/task_submission_abci/0.1.0": "bafybeif3c3cyfjbvwgr35qv7sq5sg7bddggwna5i37q7eljre5hrdylk3u",
"skill/valory/task_execution/0.1.0": "bafybeicvt4pjpqltvs7mvkbggm2cdxvr2xrgx7zjjbmhj2daho45nhuz7i"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeifuxs7gdg2okbn7uofymenjlmnih2wxwkym44lsgwmklgwuckxm2m",
Expand Down
20 changes: 11 additions & 9 deletions packages/valory/agents/mech/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ skills:
- valory/abstract_abci:0.1.0:bafybeicg7dv7cff34nv2k2z47c4yp4kddsxp3wozonzow6tnvfvwndz3cy
- valory/abstract_round_abci:0.1.0:bafybeigxjcci53vwytymzlhr37436yvenh7jup4astrn7dgyixo24aq2pq
- valory/contract_subscription:0.1.0:bafybeifbgzfrhtdtendqzwmh3o436nyexwkif6mbvsouvk2ktdfk5lhe7y
- valory/mech_abci:0.1.0:bafybeifmwddxenn4s6jnagnvrlp5pqujdux3kywfvzntihzq4hdhrwwwgq
- valory/task_execution:0.1.0:bafybeigiy77gcojv77krmmah6xq46m4tb6ytz47omrrqsoydab5xsm36wa
- valory/mech_abci:0.1.0:bafybeie2qjdu2fr5wssiksnp22tcsdxoffvdixmccoknug6wrj4nwb6arm
- valory/task_execution:0.1.0:bafybeicvt4pjpqltvs7mvkbggm2cdxvr2xrgx7zjjbmhj2daho45nhuz7i
- valory/registration_abci:0.1.0:bafybeibc4kczqbh23sc6tufrzn3axmhp3vjav7fa3u6cnpvolrbbc2fd7i
- valory/reset_pause_abci:0.1.0:bafybeid445uy6wwvugf3byzl7r73c7teu6xr5ezxb4h7cxbenghg3copvy
- valory/task_submission_abci:0.1.0:bafybeicbbnxxjigu5ktore6v5hja3z5tgwlbsbittsdonfyvizxv4us524
- valory/task_submission_abci:0.1.0:bafybeif3c3cyfjbvwgr35qv7sq5sg7bddggwna5i37q7eljre5hrdylk3u
- valory/termination_abci:0.1.0:bafybeiguy7pkrcptg6c754ioig4mlkr7truccym3fpv6jwpjx2tmpdbzhi
- valory/transaction_settlement_abci:0.1.0:bafybeidpsnguxizkpihtkqzojr3em7yy7c6qc7gxpbh5vglmwws5wke7bi
default_ledger: ethereum
Expand Down Expand Up @@ -133,23 +133,25 @@ type: skill
models:
params:
args:
sleep_time: 1
sleep_time: ${int:1}
ipfs_fetch_timeout: ${float:15.0}
tendermint_check_sleep_delay: 3
tendermint_check_sleep_delay: ${int:3}
tendermint_p2p_url: ${str:localhost:26656}
tendermint_com_url: ${str:http://localhost:8080}
tendermint_max_retries: 5
tendermint_max_retries: ${int:5}
tendermint_url: ${str:http://localhost:26657}
use_termination: ${bool:false}
agent_mech_contract_address: ${str:0xFf82123dFB52ab75C417195c5fDB87630145ae81}
round_timeout_seconds: ${float:30.0}
reset_period_count: ${int:1000}
on_chain_service_id: ${int:1}
share_tm_config_on_startup: ${bool:false}
multisend_address: ${str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
service_registry_address: ${str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
setup:
all_participants: ${list:["0x10E867Ac2Fb0Aa156ca81eF440a5cdf373bE1AaC"]}
safe_contract_address: ${str:0x5e1D1eb61E1164D5a50b28C575dA73A29595dFf7}
consensus_threshold: ${int:null}
---
public_id: valory/task_execution:0.1.0
type: skill
Expand All @@ -171,6 +173,6 @@ config:
ledger_apis:
ethereum:
address: ${str:https://rpc.gnosischain.com/}
chain_id: 100
poa_chain: false
default_gas_price_strategy: eip1559
chain_id: ${int:100}
poa_chain: ${bool:false}
default_gas_price_strategy: ${str:eip1559}
141 changes: 11 additions & 130 deletions packages/valory/services/mech/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeif7ia4jdlazy6745ke2k2x5yoqlwsgwr6sbztbgqtwvs3ndm2p7ba
fingerprint_ignore_patterns: []
agent: valory/mech:0.1.0:bafybeigpofvangphttvnhss4rdomaa3ftbohb5vrqdd7i2b23uvk3xsl7e
agent: valory/mech:0.1.0:bafybeicrc7bkd5izskm5dybbozablcahai2mylswxx3t65pixf3sa2jypa
number_of_agents: 4
deployment:
agent:
Expand All @@ -25,202 +25,83 @@ public_id: valory/mech_abci:0.1.0
type: skill
0:
models:
benchmark_tool: &id001
args:
log_dir: /logs
params:
args:
cleanup_history_depth: 1
cleanup_history_depth_current: null
drand_public_key: 868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31
finalize_timeout: 60.0
genesis_config: &id002
genesis_time: '2022-09-26T00:00:00.000000000Z'
chain_id: chain-c4daS1
consensus_params:
block:
max_bytes: '22020096'
max_gas: '-1'
time_iota_ms: '1000'
evidence:
max_age_num_blocks: '100000'
max_age_duration: '172800000000000'
max_bytes: '1048576'
validator:
pub_key_types:
- ed25519
version: {}
voting_power: '10'
history_check_timeout: 1205
init_fallback_gas: 0
keeper_allowed_retries: 3
keeper_timeout: 30.0
max_attempts: 10
max_healthcheck: 120
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
request_retry_delay: 1.0
request_timeout: 10.0
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
service_id: mech
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: &id003
setup: &id001
all_participants: ${ALL_PARTICIPANTS:list:[]}
safe_contract_address: ${SAFE_CONTRACT_ADDRESS:str:0x0000000000000000000000000000000000000000}
consensus_threshold: null
consensus_threshold: ${CONSENSUS_THRESHOLD:int:null}
share_tm_config_on_startup: ${USE_ACN:bool:false}
sleep_time: 1
tendermint_check_sleep_delay: 3
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
tendermint_max_retries: 5
tendermint_url: ${TENDERMINT_URL:str:http://localhost:26657}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_0:str:node0:26656}
termination_sleep: ${TERMINATION_SLEEP:int:900}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:false}
validate_timeout: 1205
agent_mech_contract_address: ${AGENT_MECH_CONTRACT_ADDRESS:str:0xFf82123dFB52ab75C417195c5fDB87630145ae81}
reset_period_count: ${RESET_PERIOD_COUNT:int:1000}
1:
models:
benchmark_tool: *id001
params:
args:
cleanup_history_depth: 1
cleanup_history_depth_current: null
drand_public_key: 868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31
finalize_timeout: 60.0
genesis_config: *id002
history_check_timeout: 1205
init_fallback_gas: 0
keeper_allowed_retries: 3
keeper_timeout: 30.0
max_attempts: 10
max_healthcheck: 120
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
request_retry_delay: 1.0
request_timeout: 10.0
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
service_id: mech
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: *id003
setup: *id001
share_tm_config_on_startup: ${USE_ACN:bool:false}
sleep_time: 1
tendermint_check_sleep_delay: 3
use_polling: ${USE_POLLING:str:false}
polling_interval: ${POLLING_INTERVAL:int:25}
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
tendermint_max_retries: 5
tendermint_url: ${TENDERMINT_URL:str:http://localhost:26657}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_1:str:node0:26656}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_0:str:node0:26656}
termination_sleep: ${TERMINATION_SLEEP:int:900}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:false}
validate_timeout: 1205
agent_mech_contract_address: ${AGENT_MECH_CONTRACT_ADDRESS:str:0xFf82123dFB52ab75C417195c5fDB87630145ae81}
reset_period_count: ${RESET_PERIOD_COUNT:int:1000}
file_hash_to_tools_json: ${FILE_HASH_TO_TOOLS:str:null}
api_keys_json: ${API_KEYS:list:[]}
2:
models:
benchmark_tool: *id001
params:
args:
cleanup_history_depth: 1
cleanup_history_depth_current: null
drand_public_key: 868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31
finalize_timeout: 60.0
genesis_config: *id002
history_check_timeout: 1205
init_fallback_gas: 0
keeper_allowed_retries: 3
keeper_timeout: 30.0
max_attempts: 10
max_healthcheck: 120
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
request_retry_delay: 1.0
request_timeout: 10.0
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
service_id: mech
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: *id003
setup: *id001
share_tm_config_on_startup: ${USE_ACN:bool:false}
use_polling: ${USE_POLLING:str:false}
sleep_time: 1
tendermint_check_sleep_delay: 3
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
tendermint_max_retries: 5
tendermint_url: ${TENDERMINT_URL:str:http://localhost:26657}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_2:str:node0:26656}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_0:str:node0:26656}
termination_sleep: ${TERMINATION_SLEEP:int:900}
polling_interval: ${POLLING_INTERVAL:int:25}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:false}
validate_timeout: 1205
agent_mech_contract_address: ${AGENT_MECH_CONTRACT_ADDRESS:str:0xFf82123dFB52ab75C417195c5fDB87630145ae81}
reset_period_count: ${RESET_PERIOD_COUNT:int:1000}
file_hash_to_tools_json: ${FILE_HASH_TO_TOOLS:str:null}
api_keys_json: ${API_KEYS:list:[]}
3:
models:
benchmark_tool: *id001
params:
args:
cleanup_history_depth: 1
cleanup_history_depth_current: null
drand_public_key: 868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31
finalize_timeout: 60.0
genesis_config: *id002
history_check_timeout: 1205
init_fallback_gas: 0
keeper_allowed_retries: 3
keeper_timeout: 30.0
max_attempts: 10
max_healthcheck: 120
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_tendermint_after: 2
retry_attempts: 400
retry_timeout: 3
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
request_retry_delay: 1.0
request_timeout: 10.0
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
use_polling: ${USE_POLLING:bool:false}
polling_interval: ${POLLING_INTERVAL:int:25}
service_id: mech
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: *id003
setup: *id001
share_tm_config_on_startup: ${USE_ACN:bool:false}
sleep_time: 1
tendermint_check_sleep_delay: 3
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
tendermint_max_retries: 5
tendermint_url: ${TENDERMINT_URL:str:http://localhost:26657}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_3:str:node0:26656}
tendermint_p2p_url: ${TM_P2P_ENDPOINT_NODE_0:str:node0:26656}
termination_sleep: ${TERMINATION_SLEEP:int:900}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:false}
validate_timeout: 1205
agent_mech_contract_address: ${AGENT_MECH_CONTRACT_ADDRESS:str:0xFf82123dFB52ab75C417195c5fDB87630145ae81}
reset_period_count: ${RESET_PERIOD_COUNT:int:1000}
file_hash_to_tools_json: ${FILE_HASH_TO_TOOLS:str:null}
api_keys_json: ${API_KEYS:list:[]}
---
public_id: valory/task_execution:0.1.0
type: skill
Expand Down
Loading

0 comments on commit e7b0f6d

Please sign in to comment.