Skip to content

Commit

Permalink
feat: add ability to update the agent hash on-chain
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Oct 17, 2023
1 parent 1ad2459 commit 9673d3f
Show file tree
Hide file tree
Showing 13 changed files with 1,445 additions and 13 deletions.
11 changes: 6 additions & 5 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
"dev": {
"connection/valory/websocket_client/0.1.0": "bafybeidxgkpajanybyjrmdnor4au4ttghzyp2ulgm7rttjgopxrjoaszzi",
"skill/valory/contract_subscription/0.1.0": "bafybeiaq3aatrngt3qgafxsjlpszzx3x5sqgdt2ba7f7tdhp7godgilx4u",
"agent/valory/mech/0.1.0": "bafybeigv4fyzhbmb3qjenpdfsbyebihfyxe7a2do5jejdq4a5sszqnhrqa",
"skill/valory/mech_abci/0.1.0": "bafybeicm4pf2hulinw7igi5nh2bu4hdzzzudhgls6mm6qln7ok3ykrb5kq",
"agent/valory/mech/0.1.0": "bafybeia73nboagvdzyssa4taa4ajlsx36tahgb4dsuvkfug6djfwnao7ou",
"skill/valory/mech_abci/0.1.0": "bafybeidbxppupkpvu4egcmrlssctxbfbt7qnpn6lqnbwrbtrhwi3blw7rq",
"contract/valory/agent_mech/0.1.0": "bafybeiccjt6322pee3als6v3ale75wxgrv4hy532dlfaugndpq6swahyba",
"service/valory/mech/0.1.0": "bafybeibfk7itaftwxtrwqmqvb4iy3jwvxazq47s3i7esseotiuyt2abera",
"service/valory/mech/0.1.0": "bafybeiexmxl5x2b5vaadjoxaassjku4tqde3gnhe3jb5niccgr7f4rbmji",
"protocol/valory/acn_data_share/0.1.0": "bafybeieyixetwvz767zekhvg7r6etumyanzys6xbalx2brrfswybinnlhi",
"protocol/valory/default/1.0.0": "bafybeiecmut3235aen7wxukllv424f3dysvvlgfmn562kzdunc5hdj3hxu",
"skill/valory/task_submission_abci/0.1.0": "bafybeibc6nyxiao6ezoworfp3xyjei2qbb2pth46eh6s22wjkx26fvoove",
"skill/valory/task_submission_abci/0.1.0": "bafybeicswe2lmcxrqrg4pfbthzgn4laxbg2dfca6xq2nunah3ztlwid7ce",
"skill/valory/task_execution/0.1.0": "bafybeifak6gsvgkku3o6ni6kzh4z2t4jrh4miisbufqnjl4by52oy3645e",
"skill/valory/reset_pause_abci/0.1.0": "bafybeiemeltzzunroxbxvtjxznssomt6jcs32nt6mnflpzbcfdl7uf32ny",
"skill/valory/registration_abci/0.1.0": "bafybeidoobofynxvzu4n32q6it7vy6socjefjq43nvf3dlgeden3bahloq",
"skill/valory/abstract_round_abci/0.1.0": "bafybeif75fef5csbnc6xthpgtnwvd4ojj5zmbeadt4jxmkgap2eo24qixa",
"connection/valory/http_client/0.23.0": "bafybeibewxkzsjia44wqeixwtpefnuewndl4csgxm4jlk77iqmtbya72gu",
"skill/valory/termination_abci/0.1.0": "bafybeig4mrkjhycwa7ursnnchnjcui6yxn4cz6htbqw3k4kya3u3xs6vwq",
"skill/valory/transaction_settlement_abci/0.1.0": "bafybeih54msklfwn62iblftogjmzzoaiu7twmliv4bktwtkyy63dhtjija"
"skill/valory/transaction_settlement_abci/0.1.0": "bafybeih54msklfwn62iblftogjmzzoaiu7twmliv4bktwtkyy63dhtjija",
"contract/valory/agent_registry/0.1.0": "bafybeiargayav6yiztdnwzejoejstcx4idssch2h4f5arlgtzj3tgsgfmu"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeifuxs7gdg2okbn7uofymenjlmnih2wxwkym44lsgwmklgwuckxm2m",
Expand Down
8 changes: 6 additions & 2 deletions packages/valory/agents/mech/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ contracts:
- valory/gnosis_safe_proxy_factory:0.1.0:bafybeid6glyjikjxmefwmhn62cxiofophegjmg2z5vqqsvk6tmyunwc274
- valory/multisend:0.1.0:bafybeieg4tywd5lww2vygvpkilg3hcepa4rmhehjuamyvdf6vazt554v6u
- valory/service_registry:0.1.0:bafybeige6pubafkiqmaiyuql6pcojm6fvh5thvhrsapi53au2rhuumqymu
- valory/agent_registry:0.1.0:bafybeiargayav6yiztdnwzejoejstcx4idssch2h4f5arlgtzj3tgsgfmu
protocols:
- open_aea/signing:1.0.0:bafybeifuxs7gdg2okbn7uofymenjlmnih2wxwkym44lsgwmklgwuckxm2m
- valory/abci:0.1.0:bafybeigootsvqpk6th5xpdtzanxum3earifrrezfyhylfrit7yvqdrtgpe
Expand All @@ -34,11 +35,11 @@ skills:
- valory/abstract_abci:0.1.0:bafybeigafjci7m7ezwzasav5xqo7v2mbxxn7qb4y7vnuc2wr2irzvn7wsy
- valory/abstract_round_abci:0.1.0:bafybeif75fef5csbnc6xthpgtnwvd4ojj5zmbeadt4jxmkgap2eo24qixa
- valory/contract_subscription:0.1.0:bafybeiaq3aatrngt3qgafxsjlpszzx3x5sqgdt2ba7f7tdhp7godgilx4u
- valory/mech_abci:0.1.0:bafybeicm4pf2hulinw7igi5nh2bu4hdzzzudhgls6mm6qln7ok3ykrb5kq
- valory/mech_abci:0.1.0:bafybeidbxppupkpvu4egcmrlssctxbfbt7qnpn6lqnbwrbtrhwi3blw7rq
- valory/task_execution:0.1.0:bafybeifak6gsvgkku3o6ni6kzh4z2t4jrh4miisbufqnjl4by52oy3645e
- valory/registration_abci:0.1.0:bafybeidoobofynxvzu4n32q6it7vy6socjefjq43nvf3dlgeden3bahloq
- valory/reset_pause_abci:0.1.0:bafybeiemeltzzunroxbxvtjxznssomt6jcs32nt6mnflpzbcfdl7uf32ny
- valory/task_submission_abci:0.1.0:bafybeibc6nyxiao6ezoworfp3xyjei2qbb2pth46eh6s22wjkx26fvoove
- valory/task_submission_abci:0.1.0:bafybeicswe2lmcxrqrg4pfbthzgn4laxbg2dfca6xq2nunah3ztlwid7ce
- valory/termination_abci:0.1.0:bafybeig4mrkjhycwa7ursnnchnjcui6yxn4cz6htbqw3k4kya3u3xs6vwq
- valory/transaction_settlement_abci:0.1.0:bafybeih54msklfwn62iblftogjmzzoaiu7twmliv4bktwtkyy63dhtjija
default_ledger: ethereum
Expand Down Expand Up @@ -155,6 +156,9 @@ models:
round_timeout_seconds: ${float:30.0}
reset_period_count: ${int:1000}
on_chain_service_id: ${int:1}
agent_registry_address: ${str:0x0000000000000000000000000000000000000000}
agent_id: ${int:3}
metadata_hash: ${str:null}
share_tm_config_on_startup: ${bool:false}
multisend_address: ${str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
service_registry_address: ${str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
Expand Down
20 changes: 20 additions & 0 deletions packages/valory/contracts/agent_registry/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2023 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 support resources for the registries manager contract."""
Loading

0 comments on commit 9673d3f

Please sign in to comment.