Skip to content

Commit 5826352

Browse files
authoredDec 17, 2024
Merge pull request #405 from valory-xyz/develop
Release `v0.22.1`
2 parents 5eff29f + 291cdbf commit 5826352

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Agent runners are recommended to create a [backup](https://github.com/valory-xyz
131131
### Skip user prompts
132132

133133
You can optionally pass `--attended=false` or export the environment variable `ATTENDED=false` to skip asking for inputs from the user.
134+
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.
134135

135136
## Observe your agents
136137

‎run_service.sh

+13-9
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ directory="trader"
737737
service_repo=https://github.com/$org_name/$directory.git
738738
# This is a tested version that works well.
739739
# Feel free to replace this with a different version of the repo, but be careful as there might be breaking changes
740-
service_version="v0.21.0"
740+
service_version="v0.21.2"
741741

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

10291029
response="y"
1030-
if [ "${USE_STAKING}" = true ] && [ "$ATTENDED" = true ]; then
1030+
if [ "${USE_STAKING}" = true ]; then
10311031
echo "If your service is in a staking program, updating your on-chain service requires that it is first unstaked."
10321032
echo "Unstaking your service will retrieve the accrued staking rewards."
10331033
echo ""
1034-
echo "Do you want to continue updating your service? (yes/no)"
1035-
read -r response
1036-
echo ""
1034+
if [ "$ATTENDED" = true ]; then
1035+
echo "Do you want to continue updating your service? (yes/no)"
1036+
read -r response
1037+
echo ""
1038+
else
1039+
response="n"
1040+
fi
10371041
fi
10381042

10391043
if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
@@ -1261,9 +1265,9 @@ export ALL_PARTICIPANTS='["'$agent_address'"]'
12611265
# This is the default market creator. Feel free to update with other market creators
12621266
export OMEN_CREATORS='["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]'
12631267
# 10 cents minimum bet amount. Also, the bet will not be placed if expected returns - bet_threshold <= 0
1264-
export BET_THRESHOLD=100000000000000000
1265-
export TRADING_STRATEGY=kelly_criterion_no_conf
1266-
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}]]'
1268+
export BET_THRESHOLD=250000000000000000
1269+
export TRADING_STRATEGY=bet_amount_per_threshold
1270+
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}]]'
12671271
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?"
12681272
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"]'
12691273
export STAKING_CONTRACT_ADDRESS=$CUSTOM_STAKING_ADDRESS
@@ -1272,7 +1276,7 @@ export STOP_TRADING_IF_STAKING_KPI_MET=true
12721276
export RESET_PAUSE_DURATION=45
12731277
export MECH_WRAPPED_NATIVE_TOKEN_ADDRESS=$WXDAI_ADDRESS
12741278
export MECH_CHAIN_ID=ethereum
1275-
export TOOLS_ACCURACY_HASH=QmXhah4pLENsc4pbDTdKmw22GLGb4Z1FSG3FiEsF9ayxxd
1279+
export TOOLS_ACCURACY_HASH=QmebjcPizAdVFSUAfMBgAGFJhLPVBMvV68LxhSq4LPvv9d
12761280

12771281
if [ -n "$SUBGRAPH_API_KEY" ]; then
12781282
export CONDITIONAL_TOKENS_SUBGRAPH_URL="https://gateway-arbitrum.network.thegraph.com/api/$SUBGRAPH_API_KEY/subgraphs/id/7s9rGBffUTL8kDZuxvvpuc46v44iuDarbrADBFw5uVp2"

‎scripts/choose_staking.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"quickstart_beta_expert_9": "0x17dBAe44BC5618Cc254055b386A29576b4F87015",
103103
"quickstart_beta_expert_10": "0xB0ef657b8302bd2c74B6E6D9B2b4b39145b19c6f",
104104
"quickstart_beta_expert_11": "0x3112c1613eAC3dBAE3D4E38CeF023eb9E2C91CF7",
105-
"quickstart_beta_expert_12": "0xF4a75F476801B3fBB2e7093aCDcc3576593Cc1fc",
105+
"quickstart_beta_expert_12": "0xF4a75F476801B3fBB2e7093aCDcc3576593Cc1fc",
106106
}
107107

108108
DEPRECATED_STAKING_PROGRAMS = {

0 commit comments

Comments
 (0)
Please sign in to comment.