-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support different networks #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: All subgraphs endpoint are wrong (except for gnosis). Therefore, it will not work until fixed.
@@ -27,7 +27,7 @@ | |||
}, | |||
"gas_limit": 100000, | |||
"contract_abi_url": "https://api.arbiscan.io/api?module=contract&action=getabi&address={contract_address}", | |||
"subgraph_url": "https://api.studio.thegraph.com/query/57238/mech/version/latest" | |||
"subgraph_url": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep missing values empty for clarity
}, | ||
"base": { | ||
"agent_registry_contract": "0x88DE734655184a09B70700aE4F72364d1ad23728", | ||
"rpc_url": "https://base.llamarpc.com", | ||
"wss_endpoint": "wss://base-rpc.publicnode.com", | ||
"wss_endpoint": "wss://base.gateway.tenderly.co", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other one doesn't work
@@ -56,8 +56,8 @@ | |||
"is_gas_estimation_enabled": false | |||
}, | |||
"gas_limit": 100000, | |||
"contract_abi_url": "https://base.blockscout.com/api/v2/smart-contracts/{contract_address}", | |||
"subgraph_url": "https://api.studio.thegraph.com/query/57238/mech/version/latest" | |||
"contract_abi_url": "https://api.basescan.org/api?module=contract&action=getabi&address={contract_address}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other one doesn't work
:return: The agent address if found, None otherwise. | ||
:rtype: Optional[str] | ||
""" | ||
# temporary hard coded until subgraph present |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
temporary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging this for now onto main
Support different networks through configuration file
configs/mechs.json
, and also overriding configuration using environment variables starting withMECHX_
:Breaking changes
Environment variable renaming: