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

Release v0.22.1 #405

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Agent runners are recommended to create a [backup](https://github.com/valory-xyz
### Skip user prompts

You can optionally pass `--attended=false` or export the environment variable `ATTENDED=false` to skip asking for inputs from the user.
Note: In this case, if the service is staked, then it will not update the on-chain service, to avoid unstaking. If you choose a staking contract with different parameters (e.g., different bond), then you have to execute the attended mode of the script to update the on-chain service.

## Observe your agents

Expand Down
20 changes: 12 additions & 8 deletions run_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,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.21.0"
service_version="v0.21.2"

# Define constants for on-chain interaction
gnosis_chain_id=100
Expand Down Expand Up @@ -1027,13 +1027,17 @@ if [ "$local_service_hash" != "$remote_service_hash" ] || [ "$on_chain_agent_id"
echo ""

response="y"
if [ "${USE_STAKING}" = true ] && [ "$ATTENDED" = true ]; then
if [ "${USE_STAKING}" = true ]; then
echo "If your service is in a staking program, updating your on-chain service requires that it is first unstaked."
echo "Unstaking your service will retrieve the accrued staking rewards."
echo ""
echo "Do you want to continue updating your service? (yes/no)"
read -r response
echo ""
if [ "$ATTENDED" = true ]; then
echo "Do you want to continue updating your service? (yes/no)"
read -r response
echo ""
else
response="n"
fi
fi

if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
Expand Down Expand Up @@ -1261,9 +1265,9 @@ export ALL_PARTICIPANTS='["'$agent_address'"]'
# This is the default market creator. Feel free to update with other market creators
export OMEN_CREATORS='["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]'
# 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_no_conf
export STRATEGIES_KWARGS='[["bet_kelly_fraction",1.5],["floor_balance",500000000000000000],["bet_amount_per_threshold",{"0.0":0,"0.1":0,"0.2":0,"0.3":0,"0.4":0,"0.5":0,"0.6":60000000000000000,"0.7":80000000000000000,"0.8":160000000000000000,"0.9":1000000000000000000,"1.0":1000000000000000000}]]'
export BET_THRESHOLD=250000000000000000
export TRADING_STRATEGY=bet_amount_per_threshold
export STRATEGIES_KWARGS='[["bet_kelly_fraction",1.5],["floor_balance",500000000000000000],["bet_amount_per_threshold",{"0.0":0,"0.1":0,"0.2":0,"0.3":0,"0.4":0,"0.5":0,"0.6":0,"0.7":0,"0.8":250000000000000000,"0.9":250000000000000000,"1.0":250000000000000000}]]'
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='["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","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"]'
export STAKING_CONTRACT_ADDRESS=$CUSTOM_STAKING_ADDRESS
Expand Down
5 changes: 5 additions & 0 deletions scripts/choose_staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
"quickstart_beta_expert_5": "0xE56dF1E563De1B10715cB313D514af350D207212",
"quickstart_beta_expert_6": "0x2546214aEE7eEa4bEE7689C81231017CA231Dc93",
"quickstart_beta_expert_7": "0xD7A3C8b975f71030135f1a66e9e23164d54fF455",
"quickstart_beta_expert_8": "0x356C108D49C5eebd21c84c04E9162de41933030c",
"quickstart_beta_expert_9": "0x17dBAe44BC5618Cc254055b386A29576b4F87015",
"quickstart_beta_expert_10": "0xB0ef657b8302bd2c74B6E6D9B2b4b39145b19c6f",
"quickstart_beta_expert_11": "0x3112c1613eAC3dBAE3D4E38CeF023eb9E2C91CF7",
"quickstart_beta_expert_12": "0xF4a75F476801B3fBB2e7093aCDcc3576593Cc1fc",
}

DEPRECATED_STAKING_PROGRAMS = {
Expand Down