Skip to content

Commit

Permalink
feat: remove the hacky dict overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantios committed Oct 18, 2024
1 parent e4b794b commit 0a02ad5
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 186 deletions.
24 changes: 11 additions & 13 deletions packages/valory/agents/trader/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ models:
termination_from_block: ${int:0}
use_termination: ${bool:false}
on_chain_service_id: ${int:null}
creator_per_subgraph:
omen_subgraph: ${list:["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]}
creator_per_subgraph: ${dict:{"omen_subgraph":["0x89c5cc945dd550BcFfb72Fe42BfF002429F46Fec"]}}
slot_count: ${int:2}
opening_margin: ${int:300}
languages: ${list:["en_US"]}
Expand Down Expand Up @@ -215,15 +214,14 @@ models:
"stabilityai-stable-diffusion-xl-beta-v2-2-2", "stabilityai-stable-diffusion-512-v2-1",
"stabilityai-stable-diffusion-768-v2-1"]}
use_nevermined: ${bool:true}
mech_to_subscription_params: ${list:[["base_url", "https://marketplace-api.gnosis.nevermined.app/api/v1/metadata/assets/ddo"],
["did", "did:nv:01706149da2f9f3f67cf79ec86c37d63cec87fc148f5633b12bf6695653d5b3c"],
["escrow_payment_condition_address", "0x31B2D187d674C9ACBD2b25f6EDce3d2Db2B7f446"],
["lock_payment_condition_address", "0x2749DDEd394196835199471027713773736bffF2"],
["transfer_nft_condition_address", "0x659fCA7436936e9fe8383831b65B8B442eFc8Ea8"],
["token_address", "0x1b5DeaD7309b56ca7663b3301A503e077Be18cba"], ["order_address",
"0x72201948087aE83f8Eac22cf7A9f2139e4cFA829"], ["nft_amount", "100"], ["payment_token",
"0x0000000000000000000000000000000000000000"], ["order_address", "0x72201948087aE83f8Eac22cf7A9f2139e4cFA829"],
["price", "1000000000000000000"]]}
mech_to_subscription_params: ${dict:{"base_url":"https://marketplace-api.gnosis.nevermined.app/api/v1/metadata/assets/ddo",
"did":"did:nv:01706149da2f9f3f67cf79ec86c37d63cec87fc148f5633b12bf6695653d5b3c",
"escrow_payment_condition_address":"0x31B2D187d674C9ACBD2b25f6EDce3d2Db2B7f446",
"lock_payment_condition_address":"0x2749DDEd394196835199471027713773736bffF2",
"transfer_nft_condition_address":"0x659fCA7436936e9fe8383831b65B8B442eFc8Ea8",
"token_address":"0x1b5DeaD7309b56ca7663b3301A503e077Be18cba", "order_address":"0x72201948087aE83f8Eac22cf7A9f2139e4cFA829",
"nft_amount":"100", "payment_token":"0x0000000000000000000000000000000000000000",
"price":"1000000000000000000"}}
staking_contract_address: ${str:0x2Ef503950Be67a98746F484DA0bBAdA339DF3326}
staking_interaction_sleep_time: ${int:5}
disable_trading: ${bool:false}
Expand All @@ -232,8 +230,8 @@ models:
refill_check_interval: ${int:10}
tool_punishment_multiplier: ${int:1}
contract_timeout: ${float:300.0}
file_hash_to_strategies_json: ${list:[["bafybeihufqu2ra7vud4h6g2nwahx7mvdido7ff6prwnib2tdlc4np7dw24",["bet_amount_per_threshold"]],["bafybeibxfp27rzrfnp7sxq62vwv32pdvrijxi7vzg7ihukkaka3bwzrgae",["kelly_criterion_no_conf"]]]}
strategies_kwargs: ${list:[["bet_kelly_fraction",1.0],["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":90000000000000000,"0.8":100000000000000000,"0.9":1000000000000000000,"1.0":10000000000000000000}]]}
file_hash_to_strategies: ${dict:{"bafybeihufqu2ra7vud4h6g2nwahx7mvdido7ff6prwnib2tdlc4np7dw24":["bet_amount_per_threshold"],"bafybeibxfp27rzrfnp7sxq62vwv32pdvrijxi7vzg7ihukkaka3bwzrgae":["kelly_criterion_no_conf"]}}
strategies_kwargs: ${dict:{"bet_kelly_fraction":1.0,"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":90000000000000000,"0.8":100000000000000000,"0.9":1000000000000000000,"1.0":10000000000000000000}}}
service_endpoint: ${str:https://trader.staging.autonolas.tech/}
rpc_sleep_time: ${int:10}
mech_interaction_sleep_time: ${int:10}
Expand Down
Loading

0 comments on commit 0a02ad5

Please sign in to comment.