Skip to content

Commit

Permalink
Merge pull request #194 from valory-xyz/feat/mech-marketplace
Browse files Browse the repository at this point in the history
feat: add mech-marketplace support
  • Loading branch information
0xArdi authored Oct 3, 2024
2 parents e747f30 + dd6327f commit 1f4b9f6
Show file tree
Hide file tree
Showing 17 changed files with 1,335 additions and 32 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In order to run a local demo service based on the IEKit:
2. Fetch the IEKit.

```bash
autonomy fetch valory/impact_evaluator:0.1.0:bafybeihig5bdamlnm5m6nbyeunku3bmugzn2r5xkemsqwgvh7fiq6sguqm --service
autonomy fetch valory/impact_evaluator:0.1.0:bafybeifjdyevnvofr4ttoi7khq352hu2drnx4ajswhytonyuvegsckylma --service
```

3. Build the Docker image of the service agents
Expand Down
13 changes: 7 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@
"contract/valory/wveolas/0.1.0": "bafybeibt33dfhx5o3hbahdbhveaadh77xm7avfqxhirufu2kb7jq6tp2mi",
"contract/valory/veolas_delegation/0.1.0": "bafybeieicrbkito2hglwvd4j2cbq3etxpm3rrzfyx5kqqe34fu7q5aftye",
"contract/valory/erc20/0.1.0": "bafybeid2p2jyvjjlcsqugnawksdzsca6ljghpqbp2kfi3cxuxoy2233dbi",
"contract/valory/mech_marketplace/0.1.0": "bafybeiba7kh3wygwtpyf7oo3sili6givzo2gyadhbb66rvwsokswsywvuu",
"connection/valory/twitter/0.1.0": "bafybeidcalgczvpoq6l2uh7kkfblwxmytm6bicmsxub7pevu2k46sp7mky",
"connection/valory/openai/0.1.0": "bafybeigyehjbahya5mp7vyp5tjvn36rey4btvzskp3ql3mgxp3zu6gwq5a",
"connection/valory/farcaster/0.1.0": "bafybeibbdas7lxbipksodaphjms3uop7vnzjqkroktjq2g6wbvgtlldaxi",
"skill/valory/dynamic_nft_abci/0.1.0": "bafybeietq6nqkeze6esw5dwa4cjajluzd2tvg24hlg2pihxz2v67vxorpu",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeiedultjq4wokxuchbr4nv7m3y3mqq6qwtir6m5epggnbgew6yb24i",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeig5aj7uj45x2yqbj2hmxeqbgoywjfmmrzout3c3vwizwhjp7udl3y",
"skill/valory/ceramic_read_abci/0.1.0": "bafybeiede3ehp4bfpbk23gncj52goq62rd3rm5wwlbyaexxrfohucdcpia",
"skill/valory/ceramic_write_abci/0.1.0": "bafybeiemid3ipekyqupbqpfw55g7b2wwx56g2ita73rjalk6fyqgneroam",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeifbgoisaa553l6oi5odt5d24hqwdz3ev6eqffh4tqkfzd73l3f6uu",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeiafhuuwpdwvsu6a2yiv2ndwl4szzpx54xbb3ovb6dza7s62ttdf3u",
"skill/valory/generic_scoring_abci/0.1.0": "bafybeidxytbreu7sudoggnfjxpbfxsxwbis6dipokkq6uo23xaautnwca4",
"skill/valory/twitter_write_abci/0.1.0": "bafybeid377kr5f3dmb5nyhvucglyaaqkuhthxkfosgl54zskwmsuwz56ie",
"skill/valory/llm_abci/0.1.0": "bafybeibmckwphs5zqdfnutktwgq7bxfw2auhsxezoopkep5dadkuwqvwgy",
"skill/valory/decision_making_abci/0.1.0": "bafybeigsywkfb4lujy4y2c5tsmr2iulq7s6uad7uv2fbiwv7awxz5wfbi4",
"skill/valory/olas_week_abci/0.1.0": "bafybeifvhx6issf3xzesjihtbl63ymfrdvzfp4lqrg7liesyes4aiaydfm",
"skill/valory/mech_interact_abci/0.1.0": "bafybeigto5ssrbrbqmeoc6wijcly2klmrhfcnaioa5u3wsofdm7bccowcq",
"skill/valory/mech_interact_abci/0.1.0": "bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm",
"skill/valory/farcaster_write_abci/0.1.0": "bafybeihiayft7ovmijrstdo6m7fd5pqnqi7z2mximljpeskambbgo6476q",
"skill/valory/farcaster_test_abci/0.1.0": "bafybeidkrbog6z54364dor5irf5tlebhaxy4btnmb2cgobpswqfh6cfk5i",
"agent/valory/impact_evaluator/0.1.0": "bafybeifhygewmf2pdq4vyeiwucoutziaw6nral34pxjtwjgybjp5rfu4aq",
"agent/valory/impact_evaluator/0.1.0": "bafybeibjmaxplflre553p27hpajvuxyjdpqxmfg4omg2nl6zy5sflhnmri",
"agent/valory/farcaster_test/0.1.0": "bafybeihelkwq4ocgpdkiglclwhigklp67clhjkaabg7dkiduw5apb6zwbe",
"service/valory/impact_evaluator/0.1.0": "bafybeihig5bdamlnm5m6nbyeunku3bmugzn2r5xkemsqwgvh7fiq6sguqm",
"service/valory/impact_evaluator_local/0.1.0": "bafybeiflg7sn26pqmvkvm7feohjolorwtutqqwc3kk7d4uqamr3qzi5xpq"
"service/valory/impact_evaluator/0.1.0": "bafybeifjdyevnvofr4ttoi7khq352hu2drnx4ajswhytonyuvegsckylma",
"service/valory/impact_evaluator_local/0.1.0": "bafybeidzdqvnenviy4z3m6crdcaxeiyiaj6duqunqntcb7mgirv5irlubm"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
15 changes: 12 additions & 3 deletions packages/valory/agents/impact_evaluator/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ contracts:
- valory/multisend:0.1.0:bafybeig5byt5urg2d2bsecufxe5ql7f4mezg3mekfleeh32nmuusx66p4y
- valory/service_registry:0.1.0:bafybeiaop64kwdoetxtedoehabmsalojmms7ihuoqcdwxtwb2hk5i6bzye
- valory/veolas_delegation:0.1.0:bafybeieicrbkito2hglwvd4j2cbq3etxpm3rrzfyx5kqqe34fu7q5aftye
- valory/mech_marketplace:0.1.0:bafybeiba7kh3wygwtpyf7oo3sili6givzo2gyadhbb66rvwsokswsywvuu
protocols:
- open_aea/signing:1.0.0:bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi
- valory/abci:0.1.0:bafybeiaqmp7kocbfdboksayeqhkbrynvlfzsx4uy4x6nohywnmaig4an7u
Expand All @@ -43,9 +44,9 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeieeaseuy5rbbw465knz27vccvpkfge43q7isl7fkdlfapwd7bpi24
- valory/abstract_round_abci:0.1.0:bafybeib733xfbndtpvkf44mtk7oyodnficgloo6xhn7xmqxxeos33es65u
- valory/impact_evaluator_abci:0.1.0:bafybeifbgoisaa553l6oi5odt5d24hqwdz3ev6eqffh4tqkfzd73l3f6uu
- valory/impact_evaluator_abci:0.1.0:bafybeiafhuuwpdwvsu6a2yiv2ndwl4szzpx54xbb3ovb6dza7s62ttdf3u
- valory/generic_scoring_abci:0.1.0:bafybeidxytbreu7sudoggnfjxpbfxsxwbis6dipokkq6uo23xaautnwca4
- valory/twitter_scoring_abci:0.1.0:bafybeiedultjq4wokxuchbr4nv7m3y3mqq6qwtir6m5epggnbgew6yb24i
- valory/twitter_scoring_abci:0.1.0:bafybeig5aj7uj45x2yqbj2hmxeqbgoywjfmmrzout3c3vwizwhjp7udl3y
- valory/ceramic_read_abci:0.1.0:bafybeiede3ehp4bfpbk23gncj52goq62rd3rm5wwlbyaexxrfohucdcpia
- valory/ceramic_write_abci:0.1.0:bafybeiemid3ipekyqupbqpfw55g7b2wwx56g2ita73rjalk6fyqgneroam
- valory/dynamic_nft_abci:0.1.0:bafybeietq6nqkeze6esw5dwa4cjajluzd2tvg24hlg2pihxz2v67vxorpu
Expand All @@ -57,7 +58,7 @@ skills:
- valory/decision_making_abci:0.1.0:bafybeigsywkfb4lujy4y2c5tsmr2iulq7s6uad7uv2fbiwv7awxz5wfbi4
- valory/llm_abci:0.1.0:bafybeibmckwphs5zqdfnutktwgq7bxfw2auhsxezoopkep5dadkuwqvwgy
- valory/olas_week_abci:0.1.0:bafybeifvhx6issf3xzesjihtbl63ymfrdvzfp4lqrg7liesyes4aiaydfm
- valory/mech_interact_abci:0.1.0:bafybeigto5ssrbrbqmeoc6wijcly2klmrhfcnaioa5u3wsofdm7bccowcq
- valory/mech_interact_abci:0.1.0:bafybeid6m3i5ofq7vuogqapdnoshhq7mswmudhvfcr2craw25fdwtoe3lm
default_ledger: ethereum
required_ledgers:
- ethereum
Expand Down Expand Up @@ -260,6 +261,14 @@ models:
termination_from_block: ${int:0}
mech_chain_id: ${str:gnosis}
mech_interaction_sleep_time: ${int:10}
use_mech_marketplace: ${bool:false}
mech_marketplace_config:
mech_marketplace_address: ${str:0x0000000000000000000000000000000000000000}
priority_mech_address: ${str:0x0000000000000000000000000000000000000000}
priority_mech_staking_instance_address: ${str:0x0000000000000000000000000000000000000000}
priority_mech_service_id: ${int:0}
requester_staking_instance_address: ${str:0x0000000000000000000000000000000000000000}
response_timeout: ${int:300}
randomness_api:
args:
api_id: cloudflare
Expand Down
1 change: 1 addition & 0 deletions packages/valory/contracts/mech_marketplace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Agent Mech Marketplace Contract
20 changes: 20 additions & 0 deletions packages/valory/contracts/mech_marketplace/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2024 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 an agent MechMarketplace."""
Loading

0 comments on commit 1f4b9f6

Please sign in to comment.