diff --git a/packages/packages.json b/packages/packages.json index 365036be..b42cc098 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -23,7 +23,7 @@ "skill/valory/check_stop_trading_abci/0.1.0": "bafybeiepylk35n3faurvp7dskjkdovehftzfjrjxfkpekzuaovt5gojxne", "agent/valory/trader/0.1.0": "bafybeieqmpzvhjgauuprkanbfwsvk7mqvaqjliemz77nymekns653lex2y", "service/valory/trader/0.1.0": "bafybeifix6zlmxvhzmjkrod6yn7niwjqtkn2sofl7xvwolq5zka3nsqc5y", - "service/valory/trader_pearl/0.1.0": "bafybeidw3rgri7r5ha7h4tmhlijz43zlw7gqcf2am75dwn3kclzoinegjy" + "service/valory/trader_pearl/0.1.0": "bafybeifzqsbzidvhhiruhk7jf4v7tpxarvbatl72adq2omhxqgosul3uli" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi", @@ -40,6 +40,7 @@ "contract/valory/service_registry/0.1.0": "bafybeiekytropd5ysnap2wkekub3byi5jbda3qll7awchvhu5plbpafhmi", "contract/valory/multisend/0.1.0": "bafybeig5byt5urg2d2bsecufxe5ql7f4mezg3mekfleeh32nmuusx66p4y", "contract/valory/erc20/0.1.0": "bafybeia7a7mfjeok4ywpmejz74msofagagcentsudqxfojadmxlur5qolu", + "contract/valory/mech_marketplace/0.1.0": "bafybeiba7kh3wygwtpyf7oo3sili6givzo2gyadhbb66rvwsokswsywvuu", "connection/valory/abci/0.1.0": "bafybeicksmavx23ralbdw3ajxv5fq5s4c3wzhbc3zdudefm4jqsgrg72ai", "connection/valory/http_client/0.23.0": "bafybeihi772xgzpqeipp3fhmvpct4y6e6tpjp4sogwqrnf3wqspgeilg4u", "connection/valory/ledger/0.19.0": "bafybeig7woeog4srdby75hpjkmx4rhpkzncbf4h2pm5r6varsp26pf2uhu", diff --git a/packages/valory/services/trader_pearl/service.yaml b/packages/valory/services/trader_pearl/service.yaml index cb1fb4e1..dfa2681d 100644 --- a/packages/valory/services/trader_pearl/service.yaml +++ b/packages/valory/services/trader_pearl/service.yaml @@ -27,62 +27,66 @@ models: all_participants: [] safe_contract_address: '0x0000000000000000000000000000000000000000' consensus_threshold: null - drand_public_key: 868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31 - multisend_address: '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761' - on_chain_service_id: null - service_id: trader - service_registry_address: '0x9338b5153AE39BB89f50468E608eD9d764B755fD' - agent_registry_address: '0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA' - sleep_time: 1 - tendermint_com_url: http://localhost:8080 - tendermint_url: http://localhost:26657 - tendermint_p2p_url: node0:26656 + drand_public_key: ${DRAND_PUBLIC_KEY:str:868f005eb8e6e4ca0a47c8a77ceaa5309a47978a7c71bc5cce96366b5d7a569937c529eeda66c7293784a9402801af31} + multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761} + on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null} + service_id: ${SERVICE_ID:str:trader} + service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x9338b5153AE39BB89f50468E608eD9d764B755fD} + agent_registry_address: ${AGENT_REGISTRY_ADDRESS:str:0xE49CB081e8d96920C38aA7AB90cb0294ab4Bc8EA} + sleep_time: ${SLEEP_TIME:int:1} + 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} creator_per_subgraph: - omen_subgraph: - - '0xFfc8029154ECD55ABED15BD428bA596E7D23f557' - slot_count: 2 - opening_margin: 300 - languages: - - en_US - average_block_time: 5 - abt_error_mult: 5 - mech_contract_address: '0x77af31De935740567Cf4fF1986D04B2c964A786a' - mech_request_price: 0 - mech_chain_id: ethereum - mech_wrapped_native_token_address: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d' - mech_activity_checker_contract: '0x155547857680A6D51bebC5603397488988DEb1c8' - sample_bets_closing_days: 10 - trading_strategy: kelly_criterion - use_fallback_strategy: true - bet_threshold: 100000000000000000 - blacklisting_duration: 3600 - ipfs_address: https://gateway.autonolas.tech/ipfs/ - tools_accuracy_hash: QmR8etyW3TPFadNtNrW54vfnFqmh8vBrMARWV76EmxCZyk - prompt_template: Please take over the role of a Data Scientist to evaluate the - given question. With the given question "@{question}" and the `yes` option - represented by `@{yes}` and the `no` option represented by `@{no}`, what are - the respective probabilities of `p_yes` and `p_no` occurring? - dust_threshold: 10000000000000 - conditional_tokens_address: '0xCeAfDD6bc0bEF976fdCd1112955828E00543c0Ce' - realitio_proxy_address: '0xAB16D643bA051C11962DA645f74632d3130c81E2' - realitio_address: '0x79e32aE03fb27B07C89c0c568F80287C01ca2E57' - event_filtering_batch_size: 5000 - reduce_factor: 0.25 - max_filtering_retries: 6 - minimum_batch_size: 500 - redeeming_batch_size: 1 - slippage: 0.01 - store_path: ./data - policy_epsilon: 0.1 - irrelevant_tools: ${IRRELEVANT_TOOLS:list:["prediction-request-rag","prediction-request-reasoning-claude","prediction-url-cot-claude","claude-prediction-offline","claude-prediction-online","prediction-offline-sme","deepmind-optimization","deepmind-optimization-strong","openai-gpt-3.5-turbo","openai-gpt-3.5-turbo-instruct","openai-gpt-4","openai-text-davinci-002","openai-text-davinci-003","prediction-online-sum-url-content","prediction-online-summarized-info","stabilityai-stable-diffusion-512-v2-1","stabilityai-stable-diffusion-768-v2-1","stabilityai-stable-diffusion-v1-5","stabilityai-stable-diffusion-xl-beta-v2-2-2"]} - staking_contract_address: '0xeF44Fb0842DDeF59D37f85D61A1eF492bbA6135d' - disable_trading: false - stop_trading_if_staking_kpi_met: true - agent_balance_threshold: 10000000000000000 - refill_check_interval: 10 - tool_punishment_multiplier: 1 - redeem_round_timeout: 3600.0 - contract_timeout: 300.0 + omen_subgraph: ${OMEN_CREATORS:list:["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]} + slot_count: ${SLOT_COUNT:int:2} + opening_margin: ${OPENING_MARGIN:int:300} + languages: ${LANGUAGES:list:["en_US"]} + average_block_time: ${ABT:int:5} + abt_error_mult: ${ABT_ERROR_MULT:int:5} + mech_contract_address: ${MECH_CONTRACT_ADDRESS:str:0x77af31De935740567Cf4fF1986D04B2c964A786a} + mech_request_price: ${MECH_REQUEST_PRICE:int:0} + mech_chain_id: ${MECH_CHAIN_ID:str:ethereum} + mech_wrapped_native_token_address: ${MECH_WRAPPED_NATIVE_TOKEN_ADDRESS:str:0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d} + mech_activity_checker_contract: ${MECH_ACTIVITY_CHECKER_CONTRACT:str:0x155547857680A6D51bebC5603397488988DEb1c8} + sample_bets_closing_days: ${SAMPLE_BETS_CLOSING_DAYS:int:10} + trading_strategy: ${TRADING_STRATEGY:str:bet_amount_per_threshold} + use_fallback_strategy: ${USE_FALLBACK_STRATEGY:bool:true} + bet_threshold: ${BET_THRESHOLD:int:10000000000000000} + ipfs_address: ${IPFS_ADDRESS:str:https://gateway.autonolas.tech/ipfs/} + tools_accuracy_hash: ${TOOLS_ACCURACY_HASH:str:QmR8etyW3TPFadNtNrW54vfnFqmh8vBrMARWV76EmxCZyk} + prompt_template: ${PROMPT_TEMPLATE:str:Please take over the role of a Data Scientist + to evaluate the given question. With the given question "@{question}" and + the `yes` option represented by `@{yes}` and the `no` option represented by + `@{no}`, what are the respective probabilities of `p_yes` and `p_no` occurring?} + dust_threshold: ${DUST_THRESHOLD:int:10000000000000} + conditional_tokens_address: ${CONDITIONAL_TOKENS_ADDRESS:str:0xCeAfDD6bc0bEF976fdCd1112955828E00543c0Ce} + realitio_proxy_address: ${REALITIO_PROXY_ADDRESS:str:0xAB16D643bA051C11962DA645f74632d3130c81E2} + realitio_address: ${REALITIO_ADDRESS:str:0x79e32aE03fb27B07C89c0c568F80287C01ca2E57} + event_filtering_batch_size: ${EVENT_FILTERING_BATCH_SIZE:int:5000} + reduce_factor: ${REDUCE_FACTOR:float:0.25} + max_filtering_retries: ${MAX_FILTERING_RETRIES:int:6} + minimum_batch_size: ${MINIMUM_BATCH_SIZE:int:500} + redeeming_batch_size: ${REDEEMING_BATCH_SIZE:int:1} + slippage: ${SLIPPAGE:float:0.01} + store_path: ${STORE_PATH:str:/data/} + policy_epsilon: ${POLICY_EPSILON:float:0.1} + irrelevant_tools: ${IRRELEVANT_TOOLS:list:["prediction-offline", "prediction-online", + "prediction-online-sme", "prediction-request-reasoning","native-transfer","prediction-online-lite","claude-prediction-online-lite","prediction-online-sme-lite","prediction-request-reasoning-lite","prediction-request-reasoning-claude-lite","prediction-request-rag","prediction-request-reasoning-claude","prediction-url-cot-claude","claude-prediction-offline","prediction-offline-sme","deepmind-optimization", + "deepmind-optimization-strong", "openai-gpt-3.5-turbo", "openai-gpt-3.5-turbo-instruct", + "openai-gpt-4", "openai-text-davinci-002", "openai-text-davinci-003", "prediction-online-sum-url-content", + "prediction-online-summarized-info", "stabilityai-stable-diffusion-512-v2-1", + "stabilityai-stable-diffusion-768-v2-1", "stabilityai-stable-diffusion-v1-5", + "stabilityai-stable-diffusion-xl-beta-v2-2-2"]} + staking_contract_address: ${STAKING_CONTRACT_ADDRESS:str:0x0000000000000000000000000000000000000000} + disable_trading: ${DISABLE_TRADING:bool:false} + stop_trading_if_staking_kpi_met: ${STOP_TRADING_IF_STAKING_KPI_MET:bool:true} + agent_balance_threshold: ${AGENT_BALANCE_THRESHOLD:int:10000000000000000} + refill_check_interval: ${REFILL_CHECK_INTERVAL:int:10} + tool_punishment_multiplier: ${TOOL_PUNISHMENT_MULTIPLIER:int:1} + redeem_round_timeout: ${REDEEM_ROUND_TIMEOUT:float:3600.0} + contract_timeout: ${CONTRACT_TIMEOUT:float:300.0} + blacklisting_duration: ${BLACKLISTING_DURATION:int:3600} file_hash_to_strategies_json: ${FILE_HASH_TO_STRATEGIES_JSON:list:[["bafybeihufqu2ra7vud4h6g2nwahx7mvdido7ff6prwnib2tdlc4np7dw24",["bet_amount_per_threshold"]],["bafybeif55cu7cf6znyma7kxus4wxa2doarhau2xmndo57iegshxorivwmq",["kelly_criterion"]]]} mech_to_subscription_params: ${SUBSCRIPTION_PARAMS:list:[["base_url", "https://marketplace-api.gnosis.nevermined.app/api/v1/metadata/assets/ddo"], ["did", "did:nv:0ea01d5de3b34e3792db825f2a5f5595c393c68b19fd5efdacd00fcc63a53483"], @@ -93,8 +97,17 @@ models: "0xc7751eff5396a846e7bc83ac31d3cb7d37cb49e4"], ["nft_amount", "100"], ["payment_token", "0x0000000000000000000000000000000000000000"], ["order_address", "0xc7751eff5396a846e7bc83ac31d3cb7d37cb49e4"], ["price", "1000000000000000000"]]} - use_subgraph_for_redeeming: true - use_nevermined: false + use_subgraph_for_redeeming: ${USE_SUBGRAPH_FOR_REDEEMING:bool:true} + use_nevermined: ${USE_NEVERMINED:bool:false} + use_mech_marketplace: ${USE_MECH_MARKETPLACE:bool:false} + mech_marketplace_config: + mech_marketplace_address: ${MECH_MARKETPLACE_ADDRESS:str:0x4554fE75c1f5576c1d7F765B2A036c199Adae329} + priority_mech_address: ${PRIORITY_MECH_ADDRESS:str:0x0000000000000000000000000000000000000000} + priority_mech_staking_instance_address: ${PRIORITY_MECH_STAKING_INSTANCE_ADDRESS:str:0x998dEFafD094817EF329f6dc79c703f1CF18bC90} + priority_mech_service_id: ${PRIORITY_MECH_SERVICE_ID:int:975} + requester_staking_instance_address: ${REQUESTER_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000} + response_timeout: ${RESPONSE_TIMEOUT:int:300} + policy_store_update_offset: ${POLICY_STORE_UPDATE_OFFSET:int:259200} benchmark_tool: args: log_dir: /benchmarks @@ -119,10 +132,10 @@ type: connection config: ledger_apis: ethereum: - address: http://host.docker.internal:8545 - chain_id: 100 - default_gas_price_strategy: eip1559 - poa_chain: false + address: ${GNOSIS_LEDGER_RPC:str:http://host.docker.internal:8545} + chain_id: ${GNOSIS_LEDGER_CHAIN_ID:int:100} + default_gas_price_strategy: ${GNOSIS_LEDGER_PRICING:str:eip1559} + poa_chain: ${GNOSIS_LEDGER_IS_POA_CHAIN:bool:false} --- public_id: valory/p2p_libp2p_client:0.1.0 type: connection @@ -138,10 +151,11 @@ cert_requests: not_before: '2022-01-01' public_key: 02d3a830c9d6ea1ae91936951430dee11f4662f33118b02190693be835359a9d77 save_path: .certs/acn_cosmos_11000.txt -is_abstract: false +is_abstract: true --- public_id: valory/http_server:0.22.0 type: connection config: host: ${HTTP_SERVER_HOST:str:0.0.0.0} port: ${HTTP_SERVER_PORT:int:8716} + target_skill_id: valory/trader_abci:0.1.0