Skip to content

Commit

Permalink
Feat: Support Modius and configurable staking programs
Browse files Browse the repository at this point in the history
Signed-off-by: OjusWiZard <[email protected]>
  • Loading branch information
OjusWiZard committed Dec 27, 2024
1 parent 20d9077 commit 3475a7d
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 8 deletions.
110 changes: 110 additions & 0 deletions configs/config_modius.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"name": "Modius",
"agent_id": 40,
"hash": "bafybeihqho73he6mirkodg4ubom6ngf2nkgebhmxr435yxpsxgsthu5nvy",
"description": "Modius",
"image": "https://gateway.autonolas.tech/ipfs/bafybeiaakdeconw7j5z76fgghfdjmsr6tzejotxcwnvmp3nroaw3glgyve",
"service_version": "v0.18.1",
"home_chain": "mode",
"configurations": {
"mode": {
"nft": "bafybeiaakdeconw7j5z76fgghfdjmsr6tzejotxcwnvmp3nroaw3glgyve",
"threshold": 1,
"use_mech_marketplace": false,
"fund_requirements": {
"0x0000000000000000000000000000000000000000": {
"agent": 5000000000000000,
"safe": 15000000000000000
},
"0xd988097fb8612cc24eeC14542bC03424c656005f": {
"agent": 0,
"safe": 40000000
}
}
}
},
"staking_programs": {
"no_staking": "0x0000000000000000000000000000000000000000",
"optimus_alpha": "0x5fc25f50E96857373C64dC0eDb1AbCBEd4587e91"
},
"env_variables": {
"SAFE_CONTRACT_ADDRESSES": {
"name": "Safe contract addresses",
"description": "",
"value": "",
"provision_type": "computed"
},
"TENDERLY_ACCESS_KEY": {
"name": "Tenderly API Key",
"description": "Tenderly API Key can be obtained at https://dashboard.tenderly.co/",
"value": "",
"provision_type": "user"
},
"TENDERLY_ACCOUNT_SLUG": {
"name": "Tenderly Account Slug",
"description": "Tenderly Account Slug can be obtained at https://dashboard.tenderly.co/",
"value": "",
"provision_type": "user"
},
"TENDERLY_PROJECT_SLUG": {
"name": "Tenderly Project Slug",
"description": "Tenderly Project Slug can be obtained at https://dashboard.tenderly.co/",
"value": "",
"provision_type": "user"
},
"STAKING_TOKEN_CONTRACT_ADDRESS": {
"name": "Staking Token Contract Address",
"description": "",
"value": "",
"provision_type": "computed"
},
"COINGECKO_API_KEY": {
"name": "Coingecko API Key",
"description": "Coingecko API Key will be used to fetch the prices of the tokens. Get your key at https://www.coingecko.com/en/api",
"value": "",
"provision_type": "user"
},
"STAKING_CHAIN": {
"name": "",
"description": "",
"value": "",
"provision_type": "computed"
},
"STAKING_ACTIVITY_CHECKER_CONTRACT_ADDRESS": {
"name": "",
"description": "",
"value": "0x07bc3C23DbebEfBF866Ca7dD9fAA3b7356116164",
"provision_type": "fixed"
},
"MIN_SWAP_AMOUNT_THRESHOLD": {
"name": "Minimum Investment",
"description": "Minimum Investment amount is the minimum amount of USD on both USDC and ETH tokens that the agent will invest. Enter at least 15.",
"value": "15",
"provision_type": "fixed"
},
"ALLOWED_CHAINS": {
"name": "",
"description": "",
"value": "[\"mode\"]",
"provision_type": "fixed"
},
"TARGET_INVESTMENT_CHAINS": {
"name": "",
"description": "",
"value": "[\"mode\"]",
"provision_type": "fixed"
},
"INITIAL_ASSETS": {
"name": "",
"description": "",
"value": "{\"mode\":{\"0x0000000000000000000000000000000000000000\":\"ETH\",\"0xd988097fb8612cc24eeC14542bC03424c656005f\":\"USDC\"}}",
"provision_type": "fixed"
},
"SELECTED_STRATEGIES": {
"name": "",
"description": "",
"value": "[\"merkl_pools_search\",\"balancer_pools_search\",\"asset_lending\"]",
"provision_type": "fixed"
}
}
}
19 changes: 17 additions & 2 deletions configs/config_predict_trader.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Trader Agent",
"agent_id": 14,
"hash": "bafybeifzqsbzidvhhiruhk7jf4v7tpxarvbatl72adq2omhxqgosul3uli",
"description": "Trader agent for omen prediction markets",
"image": "https://operate.olas.network/_next/image?url=%2Fimages%2Fprediction-agent.png&w=3840&q=75",
Expand All @@ -11,11 +12,25 @@
"threshold": 1,
"use_mech_marketplace": true,
"fund_requirements": {
"agent": 100000000000000000,
"safe": 5000000000000000000
"0x0000000000000000000000000000000000000000": {
"agent": 100000000000000000,
"safe": 5000000000000000000
}
}
}
},
"staking_programs": {
"no_staking": "0x0000000000000000000000000000000000000000",
"quickstart_beta_hobbyist": "0x389B46c259631Acd6a69Bde8B6cEe218230bAE8C",
"quickstart_beta_hobbyist_2": "0x238EB6993b90a978ec6AAD7530d6429c949C08DA",
"quickstart_beta_expert": "0x5344B7DD311e5d3DdDd46A4f71481bD7b05AAA3e",
"quickstart_beta_expert_2": "0xb964e44c126410df341ae04B13aB10A985fE3513",
"quickstart_beta_expert_3": "0x80faD33Cadb5F53f9D29F02Db97D682E8b101618",
"quickstart_beta_expert_4": "0xaD9d891134443B443D7F30013c7e14Fe27F2E029",
"quickstart_beta_expert_5": "0xE56dF1E563De1B10715cB313D514af350D207212",
"quickstart_beta_expert_6": "0x2546214aEE7eEa4bEE7689C81231017CA231Dc93",
"quickstart_beta_expert_7": "0xD7A3C8b975f71030135f1a66e9e23164d54fF455"
},
"env_variables": {
"GNOSIS_LEDGER_RPC": {
"name": "Gnosis ledger RPC",
Expand Down
10 changes: 5 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include = []

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
olas-operate-middleware = { git = "https://github.com/valory-xyz/olas-operate-app.git", rev = "caed60d6757f9fa477d9723fd2ec017413ce5d6f" }
olas-operate-middleware = { git = "https://github.com/valory-xyz/olas-operate-app.git", rev = "ee3b200cf6c847778b6f2af5b72456c156040967"}
tqdm = "^4.67.1"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 3475a7d

Please sign in to comment.