Skip to content

Commit

Permalink
Merge pull request #244 from valory-xyz/develop
Browse files Browse the repository at this point in the history
Release `v0.12.8`
  • Loading branch information
DavidMinarsch authored Mar 7, 2024
2 parents b3429a4 + 399c116 commit b2f9f24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions run_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ directory="trader"
service_repo=https://github.com/$org_name/$directory.git
# This is a tested version that works well.
# Feel free to replace this with a different version of the repo, but be careful as there might be breaking changes
service_version="v0.12.7"
service_version="v0.12.8"

# Define constants for on-chain interaction
gnosis_chain_id=100
Expand Down Expand Up @@ -780,8 +780,7 @@ echo "-----------------------------------------"
AGENT_ID=14
dotenv_set_key "../$env_file_path" "AGENT_ID" "$AGENT_ID"

if [ -z ${service_id+x} ];
then
if [ -z ${service_id+x} ]; then
# Check balances
suggested_amount=$suggested_top_up_default
ensure_minimum_balance "$operator_address" $suggested_amount "owner/operator's address"
Expand Down Expand Up @@ -811,7 +810,6 @@ then
cmd+=" -c $cost_of_bonding"
fi
service_id=$(eval $cmd)
ensure_rpc_reports_service_state $service_id "PRE_REGISTRATION"
# parse only the id from the response
service_id="${service_id##*: }"
# validate id
Expand All @@ -821,6 +819,7 @@ then
exit 1
fi

ensure_rpc_reports_service_state $service_id "PRE_REGISTRATION"
echo -n "$service_id" > "../$service_id_path"
fi

Expand Down Expand Up @@ -1055,7 +1054,8 @@ export ON_CHAIN_SERVICE_ID=$service_id
export ALL_PARTICIPANTS='["'$agent_address'"]'
# This is the default market creator. Feel free to update with other market creators
export OMEN_CREATORS='["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]'
export BET_THRESHOLD=5000000000000000
# 10 cents minimum bet amount. Also, the bet will not be placed if expected returns - bet_threshold <= 0
export BET_THRESHOLD=100000000000000000
export TRADING_STRATEGY=kelly_criterion
export 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?"
export IRRELEVANT_TOOLS='["claude-prediction-online", "openai-gpt-3.5-turbo-instruct", "prediction-online-summarized-info", "prediction-online-sum-url-content", "prediction-online", "openai-text-davinci-002", "openai-text-davinci-003", "openai-gpt-3.5-turbo", "openai-gpt-4", "stabilityai-stable-diffusion-v1-5", "stabilityai-stable-diffusion-xl-beta-v2-2-2", "stabilityai-stable-diffusion-512-v2-1", "stabilityai-stable-diffusion-768-v2-1", "deepmind-optimization-strong", "deepmind-optimization", "claude-prediction-offline", "prediction-offline", "prediction-offline-sme"]'
Expand Down

0 comments on commit b2f9f24

Please sign in to comment.