Skip to content

Commit

Permalink
feat: remove mech tool which will not be necessary anymore
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
Adamantios committed Sep 20, 2023
1 parent da8f225 commit 89d0594
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export ALL_PARTICIPANTS='["YOUR_AGENT_ADDRESS"]'
export SAFE_CONTRACT_ADDRESS="YOUR_SAFE_ADDRESS"
export OMEN_CREATORS='["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]'

export MECH_TOOL="prediction-online"

export BET_AMOUNT_PER_THRESHOLD_000=0
export BET_AMOUNT_PER_THRESHOLD_010=0
export BET_AMOUNT_PER_THRESHOLD_020=0
Expand All @@ -117,12 +115,6 @@ These are the description of the variables used by the Trader service:
- `SAFE_CONTRACT_ADDRESS`: address of the agents multisig wallet created [in the previous section](#prepare-the-keys-and-the-safe).
- `OMEN_CREATORS`: addresses of the market creator(s) that the service will track
for placing bets on Omen. The address `0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec` corresponds to the Market creator agent for the Hackathon.
- `MECH_TOOL`: the tool that the service will use to get the prediction when performing requests to the AI Mech.
You may find all the available Mech scripts [here](https://github.com/valory-xyz/mech/tree/v0.5.0/tools)
for Mech's version `v0.5.0`.
Each script contains one or more tools.
For example, you may find all the `prediction_request` tools
[here](https://github.com/valory-xyz/mech/blob/v0.5.0/tools/prediction_request.py#L37-L40).
- `BET_AMOUNT_PER_THRESHOLD_X`: amount (wei) to bet when the prediction returned by the AI Mech surpasses a threshold of `X`% confidence for a given prediction market. In the values provided above the amounts vary between 0.03 xDAI (60% confidence) and 0.1 xDAI (100% confidence).
- `BET_THRESHOLD`: threshold (wei) for placing a bet. A bet will only be placed if `potential_net_profit - BET_THRESHOLD >= 0`. [See below](#some-notes-on-the-service).
- `PROMPT_TEMPLATE`: prompt to be used with the prediction AI Mech. Please keep it as a single line including the placeholders `@{question}`, `@{yes}` and `@{no}`.
Expand Down
1 change: 0 additions & 1 deletion packages/valory/agents/trader/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ models:
average_block_time: ${int:5}
abt_error_mult: ${int:5}
mech_agent_address: ${str:0xff82123dfb52ab75c417195c5fdb87630145ae81}
mech_tool: ${str:prediction-online}
bet_amount_per_threshold:
0.0: ${int:0}
0.1: ${int:0}
Expand Down
4 changes: 0 additions & 4 deletions packages/valory/services/trader/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ type: skill
average_block_time: ${ABT:int:5}
abt_error_mult: ${ABT_ERROR_MULT:int:5}
mech_agent_address: ${MECH_AGENT_ADDRESS:str:0xff82123dfb52ab75c417195c5fdb87630145ae81}
mech_tool: ${MECH_TOOL:str:prediction-online}
bet_amount_per_threshold: &id004
0.0: ${BET_AMOUNT_PER_THRESHOLD_000:int:0}
0.1: ${BET_AMOUNT_PER_THRESHOLD_010:int:0}
Expand Down Expand Up @@ -159,7 +158,6 @@ type: skill
average_block_time: ${ABT:int:5}
abt_error_mult: ${ABT_ERROR_MULT:int:5}
mech_agent_address: ${MECH_AGENT_ADDRESS:str:0xff82123dfb52ab75c417195c5fdb87630145ae81}
mech_tool: ${MECH_TOOL:str:prediction-online}
bet_amount_per_threshold: *id004
bet_threshold: ${BET_THRESHOLD:int:100000000000000000}
blacklisting_duration: ${BLACKLISTING_DURATION:int:3600}
Expand Down Expand Up @@ -227,7 +225,6 @@ type: skill
average_block_time: ${ABT:int:5}
abt_error_mult: ${ABT_ERROR_MULT:int:5}
mech_agent_address: ${MECH_AGENT_ADDRESS:str:0xff82123dfb52ab75c417195c5fdb87630145ae81}
mech_tool: ${MECH_TOOL:str:prediction-online}
bet_amount_per_threshold: *id004
bet_threshold: ${BET_THRESHOLD:int:100000000000000000}
blacklisting_duration: ${BLACKLISTING_DURATION:int:3600}
Expand Down Expand Up @@ -295,7 +292,6 @@ type: skill
average_block_time: ${ABT:int:5}
abt_error_mult: ${ABT_ERROR_MULT:int:5}
mech_agent_address: ${MECH_AGENT_ADDRESS:str:0xff82123dfb52ab75c417195c5fdb87630145ae81}
mech_tool: ${MECH_TOOL:str:prediction-online}
bet_amount_per_threshold: *id004
bet_threshold: ${BET_THRESHOLD:int:100000000000000000}
blacklisting_duration: ${BLACKLISTING_DURATION:int:3600}
Expand Down
1 change: 0 additions & 1 deletion packages/valory/skills/decision_maker_abci/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class DecisionMakerParams(MarketManagerParams):
def __init__(self, *args: Any, **kwargs: Any) -> None:
"""Initialize the parameters' object."""
self.mech_agent_address: str = self._ensure("mech_agent_address", kwargs, str)
self.mech_tool: str = self._ensure("mech_tool", kwargs, str)
# this is a mapping from the confidence of a bet's choice to the amount we are willing to bet
self.bet_amount_per_threshold: Dict[float, int] = self._ensure(
"bet_amount_per_threshold", kwargs, Dict[float, int]
Expand Down
1 change: 0 additions & 1 deletion packages/valory/skills/decision_maker_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ models:
tx_timeout: 10.0
use_termination: false
mech_agent_address: '0xff82123dfb52ab75c417195c5fdb87630145ae81'
mech_tool: prediction-online
bet_amount_per_threshold:
0.0: 0
0.1: 0
Expand Down
1 change: 0 additions & 1 deletion packages/valory/skills/trader_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ models:
average_block_time: 5
abt_error_mult: 5
mech_agent_address: '0xff82123dfb52ab75c417195c5fdb87630145ae81'
mech_tool: prediction-online
bet_amount_per_threshold:
0.0: 0
0.1: 0
Expand Down

0 comments on commit 89d0594

Please sign in to comment.