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

Feat/conc fsm babydegen #26

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
5a10133
update aea-config.yaml and service.yaml for babydegen
gauravlochab Oct 18, 2024
c022bdf
feat: Add ABCI skills from babydegen to optimus
gauravlochab Oct 18, 2024
50e81af
feat: updating packages.json
gauravlochab Oct 18, 2024
7d20b21
chore: Update aea-config.yaml
gauravlochab Oct 18, 2024
c1df2c4
feat: Update agent_transition environment variable in config files
gauravlochab Oct 22, 2024
6a9596f
feat: Update agent_transition environment variable in config files
gauravlochab Oct 22, 2024
817c6d3
chore: Update dependencies and packages
gauravlochab Oct 22, 2024
cc51ef5
chore: update .gitigonre and .git modules
gauravlochab Oct 22, 2024
f715130
feat: merge dialogues and resolving import errors
gauravlochab Oct 22, 2024
839c7d5
chore: Update event values in LiquidityTraderAbciApp and event values…
gauravlochab Oct 22, 2024
c83ab5d
chore: remove skills
gauravlochab Oct 22, 2024
4100171
chore: Remove unused ABCI skills
gauravlochab Oct 22, 2024
c777f1c
chore: Update agent_transition environment variable in config files
gauravlochab Oct 22, 2024
762854c
chore: changes in rounds , behaviours and merge conflit resolution
gauravlochab Oct 24, 2024
6875318
chore: Update packages
gauravlochab Oct 24, 2024
73c5f54
chore: Update pakacges
gauravlochab Oct 24, 2024
4833655
chore: Update config files
gauravlochab Oct 24, 2024
333f99f
chore: added round changes
gauravlochab Oct 25, 2024
6046f45
chore: Update to Voting Round
gauravlochab Oct 25, 2024
e327467
Merge branch 'main' into feat/conc-fsm-babydegen
gauravlochab Oct 25, 2024
977aa52
chore: update skills yaml in optimus
gauravlochab Oct 28, 2024
b78410f
Merge commit 'e327467f422ce1136a7a7d9257abce343f0c9930' into feat/con…
gauravlochab Oct 28, 2024
dc86dad
chore: Add third-party submodules for balpy and multicaller
gauravlochab Oct 28, 2024
31ec213
chore: Update .gitignore
gauravlochab Oct 28, 2024
688ada8
chore: Update paths in agent config
gauravlochab Oct 28, 2024
e8d21f8
chore: Update balpy and open-multicaller dependencies
gauravlochab Oct 29, 2024
c34d5e9
chore: Update connection in packages
gauravlochab Oct 29, 2024
6acdc31
chore: Update pakages
gauravlochab Oct 29, 2024
64fba89
chore: Remove third-party submodules for balpy and multicaller
gauravlochab Oct 29, 2024
52baec4
chore: updating toml and tox.ini for ci issues
gauravlochab Oct 29, 2024
5215ad1
chore: Update tox.ini to handle unknown packages
gauravlochab Oct 29, 2024
7249b9a
chore: Update dependencies & fsm specs
gauravlochab Oct 29, 2024
b7a6969
chore: Update dependencies
gauravlochab Oct 29, 2024
1e02d69
chore: resolving for linters
gauravlochab Oct 29, 2024
a89cf25
chore: Update packages
gauravlochab Oct 29, 2024
53a17fa
chore: Ignore mypy errors for eightballer package
gauravlochab Oct 29, 2024
d21eed6
chore: Update service.yaml file with new parameters and values
gauravlochab Oct 29, 2024
f4b2a80
chore: Update agent and service configurations
gauravlochab Oct 29, 2024
9da59d8
chore: Update aea-config-replace.py to include new environment variables
gauravlochab Oct 29, 2024
56d8dab
chore: Update service.yaml file with new parameters and values
gauravlochab Oct 29, 2024
3e0c83c
chore: resolving ci checks
gauravlochab Oct 29, 2024
fce018d
chore: add default flag and readme for merge
gauravlochab Oct 30, 2024
f3fe392
chore: Update merge_readme
gauravlochab Oct 30, 2024
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
65 changes: 62 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,75 @@ packages/valory/contracts/multisend
packages/valory/contracts/service_registry
packages/valory/services/*
packages/valory/protocols/*
packages/valory/skills/*

!packages/valory/agents/optimus
!packages/valory/services/optimus
!packages/valory/skills/liquidity_trader_abci
!packages/valory/skills/optimus_abci

leak_report
/Pipfile.lock
keys.json
ethereum_private_key.txt
__pycache__/
.env

.nix-venv
.certs
multisig_address
multisig_vault
*/keys.json
*private_key.txt*
packages/fetchai/
packages/open_aea/

packages/valory/skills/abstract_abci/
packages/valory/skills/abstract_round_abci/
packages/valory/skills/registration_abci/
packages/valory/skills/reset_pause_abci/
packages/valory/skills/transaction_settlement_abci/
packages/valory/skills/termination_abci/

packages/valory/protocols/abci
packages/valory/protocols/acn
packages/valory/protocols/contract_api
packages/valory/protocols/http
packages/valory/protocols/ipfs
packages/valory/protocols/ledger_api
packages/valory/protocols/tendermint

.idea
**/__pycache__/
*.DS_Store

.mypy_cache
/.tox/

keys.json
leak_report

agent/
solana_trader_service/

./solana_trader/

packages/valory/skills/transaction_settlement_abci/

solana_trader/
!/packages/valory/agents/solana_trader/
!/packages/valory/services/solana_trader/

node_modules/
.env

packages/open_aea/protocols/signing
packages/eightballer/protocols/order_book
packages/eightballer/protocols/ohlcv
packages/eightballer/protocols/balances
packages/eightballer/protocols/positions
packages/eightballer/protocols/spot_asset
packages/eightballer/protocols/orders
packages/eightballer/protocols/tickers
packages/eightballer/protocols/default
packages/eightballer/protocols/markets
packages/eightballer/contracts/erc_20
packages/eightballer/contracts/spl_token
packages/eightballer/connections/dcxt
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "third_party/balpy"]
path = third_party/balpy
url = https://github.com/8ball030/balpy.git
[submodule "third_party/multicaller"]
path = third_party/multicaller
url = https://github.com/8ball030/multicaller.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these needed? It would be preferable to have PyPI released packages with version control

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These packages are dependencies used by the BabyDegen agent. While we could switch to using the PyPI packages, it would require 8baller to release the latest versions, as the most recent releases on PyPI are from 2023.

Copy link
Collaborator Author

@gauravlochab gauravlochab Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UPDATE : 8baller will be releasing the updated versions on PyPI, I will integrate those in this merge after that, eliminating the need for the submodules.


24 changes: 24 additions & 0 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,53 @@
"service/valory/optimus/0.1.0": "bafybeidlfxklqbwrba5xdbigchkl5dcqcrlpzbrkem62jbzr5yghwe7tgu"
},
"third_party": {
"custom/eightballer/rsi_strategy/0.1.0": "bafybeigbofp2nqwcxu3rlkuugpc3w6ils3u7glse7c335rddcqg56ybh34",
"custom/eightballer/sma_strategy/0.1.0": "bafybeibve7aw6oye6dc66nl2w6wxuqgxrfh5rilw64vvtfjbld6ocnbcr4",
"custom/eightballer/vwap_momentum/0.1.0": "bafybeih2uiklkrin777kzhyk5khlnj35wapw2m5zeojrhglfosm76xjhym",
"custom/valory/trend_following_strategy/0.1.0": "bafybeibejqrhpxpcszjjq6sqqknk6ja72zfiyebqmpyw32e5hjd5hanx7e",
"custom/eightballer/always_buy/0.1.0": "bafybeic2fpf5ozhkf5jgzmppmfsprqw5ayfx6spgl3owuws464n7mkhpqi",
"custom/eightballer/portfolio_balancer/0.1.0": "bafybeif6aje2tkvmakhhefqown654i3xr3l6erbbhntstllt7m37eenu5m",
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
"protocol/valory/abci/0.1.0": "bafybeiaqmp7kocbfdboksayeqhkbrynvlfzsx4uy4x6nohywnmaig4an7u",
"protocol/valory/contract_api/1.0.0": "bafybeidgu7o5llh26xp3u3ebq3yluull5lupiyeu6iooi2xyymdrgnzq5i",
"protocol/valory/http/1.0.0": "bafybeifugzl63kfdmwrxwphrnrhj7bn6iruxieme3a4ntzejf6kmtuwmae",
"protocol/valory/ledger_api/1.0.0": "bafybeihdk6psr4guxmbcrc26jr2cbgzpd5aljkqvpwo64bvaz7tdti2oni",
"protocol/valory/acn/1.1.0": "bafybeidluaoeakae3exseupaea4i3yvvk5vivyt227xshjlffywwxzcxqe",
"protocol/valory/ipfs/0.1.0": "bafybeiftxi2qhreewgsc5wevogi7yc5g6hbcbo4uiuaibauhv3nhfcdtvm",
"protocol/eightballer/order_book/0.1.0": "bafybeigxj3gnjt4u5z5w2kksjy4stbbvg5kkbzgdxq5ikc35hum7l4eohe",
"protocol/eightballer/ohlcv/0.1.0": "bafybeie6qflg4oshhfm2us3btefmbruwtvr4qumgoca5glmrji7vqlgmzu",
"protocol/eightballer/balances/0.1.0": "bafybeicjxjwmr4wubghu4fa3cdg7dhwpy6b3dhvuaqbzem3jvycooyyazm",
"protocol/eightballer/positions/0.1.0": "bafybeiesp3psarxtmbjk625jpdemkduebnqhxmc6ikb66cr7wj23blphme",
"protocol/eightballer/spot_asset/0.1.0": "bafybeifjjvj2ds7grawmex4kilncabibqlrgvnuwcj3be2qxught37wixy",
"protocol/eightballer/orders/0.1.0": "bafybeifhwwwwj2ygxd3k5syf3oaohhhvwlb3frspszzofyatempnhnk3la",
"protocol/eightballer/tickers/0.1.0": "bafybeihmlyrsrztednef3p2nu42z5vnkur2jr46kbesxqujbfo3ap26jze",
"protocol/eightballer/default/0.1.0": "bafybeib7awcnlmjil7h7egx5fisncllmtgcva3odew3crz4ufdabhwess4",
"protocol/eightballer/markets/0.1.0": "bafybeifvgcpyqcxxptzqdd4xk23rqa5bjk3l7yggo6xo7dk5tivotmrdnm",
"protocol/valory/tendermint/0.1.0": "bafybeig4mi3vmlv5zpbjbfuzcgida6j5f2nhrpedxicmrrfjweqc5r7cra",
"contract/valory/service_registry/0.1.0": "bafybeihafe524ilngwzavkhwz4er56p7nyar26lfm7lrksfiqvvzo3kdcq",
"contract/eightballer/erc_20/0.1.0": "bafybeiezbnm3f5zhuj5bsc542isnlh2fki5q4nmm2vsajzps4uuoamofo4",
"contract/eightballer/spl_token/0.1.0": "bafybeidut74uztdcvhnw7qy6ui6e6ghsrg7hytehgeiysmcl7rkzkoyiaq",
"contract/valory/gnosis_safe_proxy_factory/0.1.0": "bafybeicpcpyurm7gxir2gnlsgzeirzomkhcbnzr5txk67zdf4mmg737rtu",
"contract/valory/multisend/0.1.0": "bafybeig5byt5urg2d2bsecufxe5ql7f4mezg3mekfleeh32nmuusx66p4y",
"contract/valory/gnosis_safe/0.1.0": "bafybeib375xmvcplw7ageic2np3hq4yqeijrvd5kl7rrdnyvswats6ngmm",
"connection/eightballer/dcxt/0.1.0": "bafybeihnaxpiki57ivphf24qpie5g6rxwnztbrymutlw4yuyjxzvj3pdry",
"connection/valory/abci/0.1.0": "bafybeiejymu4ul62zx6weoibnlsrfprfpjnplhjefz6sr6izgdr4sajlnu",
"connection/valory/http_client/0.23.0": "bafybeihi772xgzpqeipp3fhmvpct4y6e6tpjp4sogwqrnf3wqspgeilg4u",
"connection/valory/ipfs/0.1.0": "bafybeiegnapkvkamis47v5ioza2haerrjdzzb23rptpmcydyneas7jc2wm",
"connection/valory/ledger/0.19.0": "bafybeigntoericenpzvwejqfuc3kqzo2pscs76qoygg5dbj6f4zxusru5e",
"connection/valory/p2p_libp2p_client/0.1.0": "bafybeid3xg5k2ol5adflqloy75ibgljmol6xsvzvezebsg7oudxeeolz7e",
"connection/valory/http_server/0.22.0": "bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m",
"skill/valory/trader_abci/0.1.0": "bafybeigco23fstumklkdfaatafca6eyv2vcwzabdsrzhlpmkyl7d3nbgv4",
"skill/valory/strategy_evaluator_abci/0.1.0": "bafybeibsk56r3dd5tza5yl2ltbonxdkb7zgfrupgiq3iyzr2ywqycskvz4",
"skill/valory/market_data_fetcher_abci/0.1.0": "bafybeibaf2ubj56busl7ngaamyjtm3tqsxthluuve6znxeogoxo7ta6b3y",
"skill/valory/portfolio_tracker_abci/0.1.0": "bafybeidprqeiomlvs6e5nvcqr2hnntwiuwyaxifidznjowoexx65yoplmq",
"skill/valory/trader_decision_maker_abci/0.1.0": "bafybeicskzcqr7dd4d5ulwss5u3hsx2wvcxatugtxiuja2neobbr3tqtkm",
"skill/valory/abstract_abci/0.1.0": "bafybeidz54kvxhbdmpruzguuzzq7bjg4pekjb5amqobkxoy4oqknnobopu",
"skill/valory/reset_pause_abci/0.1.0": "bafybeif4lgvbzsmzljesxbphycdv52ka7qnihyjrjpfaseclxadcmm6yiq",
"skill/valory/registration_abci/0.1.0": "bafybeiffipsowrqrkhjoexem7ern5ob4fabgif7wa6gtlszcoaop2e3oey",
"skill/valory/abstract_round_abci/0.1.0": "bafybeiajjzuh6vf23crp55humonknirvv2f4s3dmdlfzch6tc5ow52pcgm",
"skill/valory/termination_abci/0.1.0": "bafybeiekkpo5qef5zaeagm3si6v45qxcojvtjqe4a5ceccvk4q7k3xi3bi",
"skill/valory/ipfs_package_downloader/0.1.0": "bafybeieokinjosnulrsee3kbj7ly4kjfx2ub6lmwkyplgs33vxgmx3fbvm",
"skill/valory/transaction_settlement_abci/0.1.0": "bafybeielv6eivt2z6nforq43xewl2vmpfwpdu2s2vfogobziljnwsclmlm"
}
}
122 changes: 114 additions & 8 deletions packages/valory/agents/optimus/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ fingerprint:
__init__.py: bafybeigx5mdvnamsqfum5ut7htok2y5vsnu7lrvms5gfvqi7hmv7sfbo3a
fingerprint_ignore_patterns: []
connections:
- eightballer/dcxt:0.1.0:bafybeihnaxpiki57ivphf24qpie5g6rxwnztbrymutlw4yuyjxzvj3pdry
- valory/abci:0.1.0:bafybeiejymu4ul62zx6weoibnlsrfprfpjnplhjefz6sr6izgdr4sajlnu
- valory/http_client:0.23.0:bafybeihi772xgzpqeipp3fhmvpct4y6e6tpjp4sogwqrnf3wqspgeilg4u
- valory/http_server:0.22.0:bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m
- valory/ipfs:0.1.0:bafybeiegnapkvkamis47v5ioza2haerrjdzzb23rptpmcydyneas7jc2wm
- valory/ledger:0.19.0:bafybeigntoericenpzvwejqfuc3kqzo2pscs76qoygg5dbj6f4zxusru5e
- valory/p2p_libp2p_client:0.1.0:bafybeid3xg5k2ol5adflqloy75ibgljmol6xsvzvezebsg7oudxeeolz7e
contracts:
- eightballer/erc_20:0.1.0:bafybeiezbnm3f5zhuj5bsc542isnlh2fki5q4nmm2vsajzps4uuoamofo4
- valory/gnosis_safe:0.1.0:bafybeib375xmvcplw7ageic2np3hq4yqeijrvd5kl7rrdnyvswats6ngmm
- valory/gnosis_safe_proxy_factory:0.1.0:bafybeicpcpyurm7gxir2gnlsgzeirzomkhcbnzr5txk67zdf4mmg737rtu
- valory/multisend:0.1.0:bafybeig5byt5urg2d2bsecufxe5ql7f4mezg3mekfleeh32nmuusx66p4y
Expand All @@ -35,15 +37,21 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeidz54kvxhbdmpruzguuzzq7bjg4pekjb5amqobkxoy4oqknnobopu
- valory/abstract_round_abci:0.1.0:bafybeiajjzuh6vf23crp55humonknirvv2f4s3dmdlfzch6tc5ow52pcgm
- valory/liquidity_trader_abci:0.1.0:bafybeihtca6gtyjibj6wkrcdmx3fb3a3bkpdgsphwevkatagxrbqvh6fd4
- valory/optimus_abci:0.1.0:bafybeifjpvqz2m7qhztib4xcjpbjkuiutrot22flqclg36amvqvrp5ra3e
- valory/liquidity_trader_abci:0.1.0:bafybeib2r7z5ufnb5nmtvob4bejb6ql3rrocqb6oinsze7xcaa33ulibye
- valory/market_data_fetcher_abci:0.1.0:bafybeibaf2ubj56busl7ngaamyjtm3tqsxthluuve6znxeogoxo7ta6b3y
- valory/strategy_evaluator_abci:0.1.0:bafybeibsk56r3dd5tza5yl2ltbonxdkb7zgfrupgiq3iyzr2ywqycskvz4
- valory/optimus_abci:0.1.0:bafybeider6qgvmw64zzigonfp6coaap3gubredzqcz7oq7luf3aqkqincm
- valory/registration_abci:0.1.0:bafybeiffipsowrqrkhjoexem7ern5ob4fabgif7wa6gtlszcoaop2e3oey
- valory/reset_pause_abci:0.1.0:bafybeif4lgvbzsmzljesxbphycdv52ka7qnihyjrjpfaseclxadcmm6yiq
- valory/termination_abci:0.1.0:bafybeiekkpo5qef5zaeagm3si6v45qxcojvtjqe4a5ceccvk4q7k3xi3bi
- valory/transaction_settlement_abci:0.1.0:bafybeielv6eivt2z6nforq43xewl2vmpfwpdu2s2vfogobziljnwsclmlm
- valory/trader_decision_maker_abci:0.1.0:bafybeicskzcqr7dd4d5ulwss5u3hsx2wvcxatugtxiuja2neobbr3tqtkm
- valory/ipfs_package_downloader:0.1.0:bafybeieokinjosnulrsee3kbj7ly4kjfx2ub6lmwkyplgs33vxgmx3fbvm
- valory/portfolio_tracker_abci:0.1.0:bafybeidprqeiomlvs6e5nvcqr2hnntwiuwyaxifidznjowoexx65yoplmq
default_ledger: ethereum
required_ledgers:
- ethereum
- solana
default_routing: {}
connection_private_key_paths: {}
private_key_paths: {}
Expand Down Expand Up @@ -93,10 +101,13 @@ config:
poa_chain: ${bool:false}
default_gas_price_strategy: ${str:eip1559}
base:
address: ${str:https://virtual.base.rpc.tenderly.co/5d9c013b-879b-4f20-a6cc-e95dee0d109f}
address: ${str:https://virtual.base.rpc.tenderly.co/70dfa32a-6f92-4dd8-ba44-45bc16760de9}
chain_id: ${int:8453}
poa_chain: ${bool:false}
default_gas_price_strategy: ${str:eip1559}
gas_price_strategies:
eip1559:
default_priority_fee: 500
optimism:
address: ${str:https://virtual.optimism.rpc.tenderly.co/3baf4a62-2fa9-448a-91a6-5f6ab95c76be}
chain_id: ${int:10}
Expand All @@ -118,6 +129,18 @@ cert_requests:
public_key: ${str:02d3a830c9d6ea1ae91936951430dee11f4662f33118b02190693be835359a9d77}
save_path: .certs/acn_cosmos_11000.txt
---
public_id: valory/ipfs_package_downloader:0.1.0
type: skill
models:
params:
args:
cleanup_freq: ${int:50}
timeout_limit: ${int:3}
file_hash_to_id: ${list:[["bafybeic2fpf5ozhkf5jgzmppmfsprqw5ayfx6spgl3owuws464n7mkhpqi",["sma_strategy"]]]}
component_yaml_filename: ${str:component.yaml}
entry_point_key: ${str:entry_point}
callable_keys: ${list:["run_callable","transform_callable","evaluate_callable"]}
---
public_id: valory/http_server:0.22.0:bafybeicblltx7ha3ulthg7bzfccuqqyjmihhrvfeztlgrlcoxhr7kf6nbq
type: connection
config:
Expand All @@ -129,16 +152,59 @@ type: skill
models:
benchmark_tool:
args:
log_dir: ${str:/logs}
log_dir: ${str:/Users/gauravlochab/repos/optimus/logs}
get_balance:
args:
api_id: ${str:get_balance}
headers:
Content-Type: ${str:application/json}
method: ${str:POST}
parameters: ${dict:{}}
response_key: ${str:result:value}
response_type: ${str:int}
error_key: ${str:error:message}
error_type: ${str:str}
retries: ${int:5}
url: ${str:https://api.mainnet-beta.solana.com}
token_accounts:
args:
api_id: ${str:token_accounts}
headers:
Content-Type: ${str:application/json}
method: ${str:POST}
parameters: ${dict:{}}
response_key: ${str:result:value}
response_type: ${str:list}
error_key: ${str:error:message}
error_type: ${str:str}
retries: ${int:5}
url: ${str:https://api.mainnet-beta.solana.com}
coingecko:
args:
endpoint: ${str:https://api.coingecko.com/api/v3/coins/{token_id}/market_chart?vs_currency=usd&days=1}
token_price_endpoint: ${str:https://api.coingecko.com/api/v3/simple/token_price/{asset_platform_id}?contract_addresses={token_address}&vs_currencies=usd}
coin_price_endpoint: ${str:https://api.coingecko.com/api/v3/simple/price?ids={coin_id}&vs_currencies=usd}
api_key: ${str:null}
requests_per_minute: ${int:30}
credits: ${int:10000}
rate_limited_code: ${int:429}
chain_to_platform_id_mapping: ${str:{"optimism":"optimistic-ethereum","base":"base","ethereum":"ethereum"}}
tx_settlement_proxy:
args:
api_id: ${str:tx_settlement_proxy}
headers:
Content-Type: ${str:application/json}
method: ${str:POST}
parameters:
amount: ${int:100000000}
slippageBps: ${int:5}
resendAmount: ${int:200}
timeoutInMs: ${int:120000}
priorityFee: ${int:5000000}
response_key: ${str:null}
response_type: ${str:dict}
retries: ${int:5}
url: ${str:http://localhost:3000/tx}
params:
args:
cleanup_history_depth: 1
Expand Down Expand Up @@ -176,12 +242,13 @@ models:
request_retry_delay: 1.0
request_timeout: 10.0
round_timeout_seconds: 30.0
proxy_round_timeout_seconds: ${float:1200.0}
service_id: optimus
service_registry_address: ${str:null}
setup:
all_participants: ${list:["0x1aCD50F973177f4D320913a9Cc494A9c66922fdF"]}
all_participants: ${list:["0x08012c56eD8adF43586A3cEf68EEb13FDfF70Ef5"]}
consensus_threshold: ${int:null}
safe_contract_address: ${str:0x0000000000000000000000000000000000000000}
safe_contract_address: ${str:0xc4ed6F4B3059AD6aa985A9e47C133a45A39db66e}
share_tm_config_on_startup: ${bool:false}
sleep_time: 1
tendermint_check_sleep_delay: 3
Expand All @@ -201,7 +268,7 @@ models:
serious_slash_unit_amount: ${int:8000000000000000}
multisend_batch_size: ${int:50}
ipfs_address: ${str:https://gateway.autonolas.tech/ipfs/}
default_chain_id: ${str:optimism}
default_chain_id: ${str:base}
termination_from_block: ${int:34088325}
allowed_dexs: ${list:["balancerPool", "UniswapV3"]}
initial_assets: ${str:{"ethereum":{"0x0000000000000000000000000000000000000000":"ETH","0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":"USDC"}}}
Expand Down Expand Up @@ -231,15 +298,54 @@ models:
tenderly_access_key: ${str:access_key}
tenderly_account_slug: ${str:account_slug}
tenderly_project_slug: ${str:project_slug}
agent_transition: ${bool:true}
chain_to_chain_id_mapping: ${str:{"optimism":10,"base":8453,"ethereum":1}}
staking_token_contract_address: ${str:0x88996bbdE7f982D93214881756840cE2c77C4992}
staking_activity_checker_contract_address: ${str:0x7Fd1F4b764fA41d19fe3f63C85d12bf64d2bbf68}
staking_threshold_period: ${int:5}
store_path: ${str:/data/}
store_path: ${str:/Users/gauravlochab/repos/optimus/data/}
assets_info_filename: ${str:assets.json}
pool_info_filename: ${str:current_pool.json}
gas_cost_info_filename: ${str:gas_costs.json}
min_swap_amount_threshold: ${int:10}
max_fee_percentage: ${float:0.02}
max_gas_percentage: ${float:0.25}
balancer_graphql_endpoints: ${str:{"optimism":"https://api.studio.thegraph.com/query/75376/balancer-optimism-v2/version/latest","base":"https://api.studio.thegraph.com/query/24660/balancer-base-v2/version/latest"}}
token_symbol_whitelist: ${list:["coingecko_id=weth&address=7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs"]}
tracked_tokens: ${list:["7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs"]}
strategies_kwargs: ${list:[["ma_period",35]]}
use_proxy_server: ${bool:false}
expected_swap_tx_cost: ${int:20000000}
ipfs_fetch_retries: ${int:5}
squad_vault: ${str:GFWUcLp1equf4QtrRMj5RZasm8yshs4MZa2pR5Ghz54u}
agent_balance_threshold: ${int:0}
multisig_balance_threshold: ${int:0}
refill_action_timeout: ${int:10}
rpc_polling_interval: ${int:5}
epsilon: ${float:0.1}
sharpe_threshold: ${float:-10.1}
ledger_ids: ${list:["base"]}
exchange_ids:
optimism: []
ethereum: []
base:
- balancer
trade_size_in_base_token: ${float:0.0001}
---
public_id: valory/http_client:0.23.0
type: connection
config:
host: ${str:127.0.0.1}
port: ${int:8000}
timeout: ${int:1200}
---
public_id: eightballer/dcxt:0.1.0
type: connection
config:
target_skill_id: eightballer/chained_dex_app:0.1.0
exchanges:
- name: ${str:balancer}
key_path: ${str:ethereum_private_key.txt}
ledger_id: ${str:base}
rpc_url: ${str:https://virtual.base.rpc.tenderly.co/70dfa32a-6f92-4dd8-ba44-45bc16760de9}
etherscan_api_key: ${str:YOUR_ETHERSCAN_API_KEY}
3 changes: 2 additions & 1 deletion packages/valory/services/optimus/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ models:
tenderly_access_key: ${TENDERLY_ACCESS_KEY:str:access_key}
tenderly_account_slug: ${TENDERLY_ACCOUNT_SLUG:str:account_slug}
tenderly_project_slug: ${TENDERLY_PROJECT_SLUG:str:project_slug}
agent_transition: ${AGENT_TRANSITION:bool:agent_transition}
tendermint_p2p_url: ${TENDERMINT_P2P_URL_0:str:optimism_tm_0:26656}
service_endpoint_base: ${SERVICE_ENDPOINT_BASE:str:https://optimism.autonolas.tech/}
multisend_batch_size: ${MULTISEND_BATCH_SIZE:int:5}
Expand Down Expand Up @@ -127,4 +128,4 @@ cert_requests:
not_after: '2023-01-01'
not_before: '2022-01-01'
public_key: ${ACN_NODE_PUBLIC_KEY:str:02d3a830c9d6ea1ae91936951430dee11f4662f33118b02190693be835359a9d77}
save_path: .certs/acn_cosmos_11000.txt
save_path: .certs/acn_cosmos_11000.txt
20 changes: 20 additions & 0 deletions packages/valory/skills/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2024 Valory AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ------------------------------------------------------------------------------

"""This module contains the skills packages authored by Valory AG."""
Loading
Loading