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

added mech quickstart single agent service #267

Merged
merged 6 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"skill/valory/websocket_client/0.1.0": "bafybeif7rrvsu6z4evqkhblxj3u6wwv2eqou576hgkyoehxuj7cntw7o2m",
"skill/valory/subscription_abci/0.1.0": "bafybeicazs3nnrztew6j5vanmpb3lnhx4a2rclcqxjr7tmtu3adhn5dziy",
"agent/valory/mech/0.1.0": "bafybeigk33wlthqhriruwyv44gcx754xzlne3ywynxg6ezswabac7dcmmq",
"service/valory/mech/0.1.0": "bafybeihy67owel7dgyoaaugjqbcvk6x2edgw7ogsqn7qjvpu32rkjim4y4"
"service/valory/mech/0.1.0": "bafybeihy67owel7dgyoaaugjqbcvk6x2edgw7ogsqn7qjvpu32rkjim4y4",
"service/valory/mech_quickstart/0.1.0": "bafybeiewivkgx27qva6kw7meyrbjecrnnuflfyzgczlxay4bs2bdd7so7a"
},
"third_party": {
"protocol/valory/default/1.0.0": "bafybeifqcqy5hfbnd7fjv4mqdjrtujh2vx3p2xhe33y67zoxa6ph7wdpaq",
Expand Down
1 change: 1 addition & 0 deletions packages/valory/services/mech_quickstart/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Mech Quickstart Single Agent Service
133 changes: 133 additions & 0 deletions packages/valory/services/mech_quickstart/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: mech
author: valory
version: 0.1.0
description: A decentralised task execution engine.
aea_version: '>=1.0.0, <2.0.0'
license: Apache-2.0
fingerprint:
README.md: bafybeif7ia4jdlazy6745ke2k2x5yoqlwsgwr6sbztbgqtwvs3ndm2p7ba
fingerprint_ignore_patterns: []
agent: valory/mech:0.1.0:bafybeidkldpptc6lqjgb7bliogleeixninarhj57u3dsi2o54mhpjg2b7u
number_of_agents: 1
deployment:
agent:
ports:
0:
8000: 8000
volumes:
./data: /data
---
public_id: valory/mech_abci:0.1.0
type: skill
models:
params:
args:
gas_params:
gas_price: ${GAS_PRICE:int:null}
max_fee_per_gas: ${MAX_FEE_PER_GAS:int:null}
max_priority_fee_per_gas: ${MAX_PRIORITY_FEE_PER_GAS:int:null}
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup:
all_participants: ${ALL_PARTICIPANTS:list:[]}
safe_contract_address: ${SAFE_CONTRACT_ADDRESS:str:0x0000000000000000000000000000000000000000}
consensus_threshold: ${CONSENSUS_THRESHOLD:int:null}
share_tm_config_on_startup: ${USE_ACN:bool:false}
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
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}
use_termination: ${USE_TERMINATION:bool:false}
manual_gas_limit: ${MANUAL_GAS_LIMIT:int:1000000}
reset_period_count: ${RESET_PERIOD_COUNT:int:1000}
service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://dummy_service.autonolas.tech/}
use_slashing: ${USE_SLASHING:bool:false}
termination_from_block: ${TERMINATION_FROM_BLOCK:int:0}
slash_cooldown_hours: ${SLASH_COOLDOWN_HOURS:int:3}
mech_marketplace_address: ${MECH_MARKETPLACE_ADDRESS:str:0x0000000000000000000000000000000000000000}
slash_threshold_amount: ${SLASH_THRESHOLD_AMOUNT:int:10000000000000000}
light_slash_unit_amount: ${LIGHT_SLASH_UNIT_AMOUNT:int:5000000000000000}
serious_slash_unit_amount: ${SERIOUS_SLASH_UNIT_AMOUNT:int:8000000000000000}
agent_registry_address: ${AGENT_REGISTRY_ADDRESS:str:0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA}
agent_id: ${AGENT_ID:int:3}
metadata_hash: ${METADATA_HASH:str:f01701220caa53607238e340da63b296acab232c18a48e954f0af6ff2b835b2d93f1962f0}
profit_split_freq: ${PROFIT_SPLIT_FREQ:int:100}
hash_checkpoint_address: ${CHECKPOINT_ADDRESS:str:0x0000000000000000000000000000000000000000}
mech_to_subscription: ${MECH_TO_SUBSCRIPTION:dict:{"0x77af31De935740567Cf4fF1986D04B2c964A786a":{"tokenAddress":"0x0000000000000000000000000000000000000000",
"tokenId":"1"},"0xA6bE7Ef2e2FbdA7fB2BfE60726b74A3B2206D67f":{"tokenAddress":"0x0000000000000000000000000000000000000001",
"tokenId":"2"}}}
agent_funding_amount: ${AGENT_FUNDING_AMOUNT:int:200000000000000000}
minimum_agent_balance: ${MINIMUM_AGENT_BALANCE:int:100000000000000000}
mech_staking_instance_address: ${MECH_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
service_owner_share: ${SERVICE_SHARE:float:0}
---
public_id: valory/task_execution:0.1.0
type: skill
models:
params:
args:
task_deadline: ${TASK_DEADLINE:float:240.0}
tools_to_package_hash:
$TOOLS_TO_PACKAGE_HASH:dict: {}
api_keys: ${API_KEYS:dict:{}}
polling_interval: ${POLLING_INTERVAL:float:30.0}
agent_index: ${AGENT_INDEX_0:int:0}
num_agents: ${NUM_AGENTS:int:4}
mech_marketplace_address: ${MECH_MARKETPLACE_ADDRESS:str:0x0000000000000000000000000000000000000000}
timeout_limit: ${TIMEOUT_LIMIT:int:3}
mech_to_config: ${MECH_TO_CONFIG:dict:{"0xFf82123dFB52ab75C417195c5fDB87630145ae81":{"use_dynamic_pricing":false,"is_marketplace_mech":false},
"0x77af31De935740567Cf4fF1986D04B2c964A786a":{"use_dynamic_pricing":false,"is_marketplace_mech":false}}}
max_block_window: ${MAX_BLOCK_WINDOW:int:500}
---
public_id: valory/ledger:0.19.0
type: connection
config:
ledger_apis:
ethereum:
address: ${ETHEREUM_LEDGER_RPC_0:str:http://host.docker.internal:8545}
chain_id: ${ETHEREUM_LEDGER_CHAIN_ID:int:1}
poa_chain: ${ETHEREUM_LEDGER_IS_POA_CHAIN:bool:false}
default_gas_price_strategy: ${ETHEREUM_LEDGER_PRICING:str:eip1559}
gnosis:
address: ${GNOSIS_RPC_0:str:http://host.docker.internal:8545}
---
public_id: valory/p2p_libp2p_client:0.1.0
type: connection
config:
nodes:
- uri: ${ACN_URI:str:acn.staging.autonolas.tech:9005}
public_key: ${ACN_NODE_PUBLIC_KEY:str:02d3a830c9d6ea1ae91936951430dee11f4662f33118b02190693be835359a9d77}
cert_requests:
- identifier: acn
ledger_id: ethereum
message_format: '{public_key}'
not_after: '2023-01-01'
not_before: '2022-01-01'
public_key: ${ACN_NODE_PUBLIC_KEY:str:02d3a830c9d6ea1ae91936951430dee11f4662f33118b02190693be835359a9d77}
save_path: .certs/acn_cosmos_11000.txt
is_abstract: false
---
public_id: valory/websocket_client:0.1.0:bafybeiexove4oqyhoae5xmk2hilskthosov5imdp65olpgj3cfrepbouyy
type: connection
config:
endpoint: ${ETHEREUM_WEBSOCKET_RPC_0:str:wss://rpc.gnosischain.com/wss}
---
public_id: valory/contract_subscription:0.1.0:bafybeiby5ajjc7a3m2uq73d2pprx6enqt4ghfcq2gkmrtsr75e4d4napi4
type: skill
behaviours:
subscriptions:
args:
contracts: ${SUBSCRIPTIONS_CONTRACTS:list:["0xFf82123dFB52ab75C417195c5fDB87630145ae81"]}
handlers:
new_event:
args:
contract_to_monitor: ${CONTRACT_TO_MONITOR:str:0xFf82123dFB52ab75C417195c5fDB87630145ae81}
websocket_provider: ${ETHEREUM_LEDGER_RPC_0:str:https://rpc.gnosischain.com}
models:
params:
args:
use_polling: ${USE_POLLING:str:false}
Loading