Skip to content

Commit

Permalink
chore: allow for gas params to be overritten
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Mar 25, 2024
1 parent 905ed15 commit f2b9d4e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"contract/valory/hash_checkpoint/0.1.0": "bafybeigv2bceirhy72yajxzibi4a5wrcfptfbkjbzzko6pqdq2f4dzr3xa",
"connection/valory/websocket_client/0.1.0": "bafybeiflmystocxaqblhpzqlcop2vkhsknpzjx2jomohomaxamwskeokzm",
"skill/valory/contract_subscription/0.1.0": "bafybeicyugrkx5glat4p4ezwf6i7oduh26eycfie6ftd4uxrknztzl3ik4",
"skill/valory/mech_abci/0.1.0": "bafybeicfqyuqwklklqgyj7733t4wasea5jxbmb5kjdwyyva5dlporkmr5y",
"skill/valory/mech_abci/0.1.0": "bafybeicpuwyiiivolhfs3w6iwcx5gpcxtsf273ay7nch7f2ocxm7fd6bqm",
"skill/valory/task_submission_abci/0.1.0": "bafybeidmkzpqpvyol3636eeprkloy3z3t2nipmwvu6da3dtk2q4tjlab6u",
"skill/valory/task_execution/0.1.0": "bafybeifb5ic5lczqiekojahagyw73ylp7me4nrn7ltgycpbryvzorrqbwa",
"skill/valory/websocket_client/0.1.0": "bafybeidwntmkk4b2ixq5454ycbkknclqx7a6vpn7aqpm2nw3duszqrxvta",
"skill/valory/subscription_abci/0.1.0": "bafybeidoqeznyhbh3znaqbfdnftzq6fdh77m35qgftdwz46nz2iwda4yam",
"agent/valory/mech/0.1.0": "bafybeieali6bcbtmkrwv3g3fxaslrn7ymqhvtkoc5eobad3zpvhtkxxlfa",
"service/valory/mech/0.1.0": "bafybeicfty3hkepnkcsio3ndogqtxzhkkvrnqgfcwpkgtiyrdalpt7jfqu"
"agent/valory/mech/0.1.0": "bafybeia6suywbe4ptwtrmccbgiotf5rmzz6xusqbmqclzebk6sbkgtwku4",
"service/valory/mech/0.1.0": "bafybeicpthl4524tdqcek5qfuof552ibbagz4jipczimi6c2osmyfxmnm4"
},
"third_party": {
"protocol/valory/default/1.0.0": "bafybeifqcqy5hfbnd7fjv4mqdjrtujh2vx3p2xhe33y67zoxa6ph7wdpaq",
Expand Down
6 changes: 5 additions & 1 deletion packages/valory/agents/mech/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ skills:
- valory/abstract_abci:0.1.0:bafybeihat4giyc4bz6zopvahcj4iw53356pbtwfn7p4d5yflwly2qhahum
- valory/abstract_round_abci:0.1.0:bafybeih3enhagoql7kzpeyzzu2scpkif6y3ubakpralfnwxcvxexdyvy5i
- valory/contract_subscription:0.1.0:bafybeicyugrkx5glat4p4ezwf6i7oduh26eycfie6ftd4uxrknztzl3ik4
- valory/mech_abci:0.1.0:bafybeicfqyuqwklklqgyj7733t4wasea5jxbmb5kjdwyyva5dlporkmr5y
- valory/mech_abci:0.1.0:bafybeicpuwyiiivolhfs3w6iwcx5gpcxtsf273ay7nch7f2ocxm7fd6bqm
- valory/registration_abci:0.1.0:bafybeiek7zcsxbucjwzgqfftafhfrocvc7q4yxllh2q44jeemsjxg3rcfm
- valory/reset_pause_abci:0.1.0:bafybeidw4mbx3os3hmv7ley7b3g3gja7ydpitr7mxbjpwzxin2mzyt5yam
- valory/subscription_abci:0.1.0:bafybeidoqeznyhbh3znaqbfdnftzq6fdh77m35qgftdwz46nz2iwda4yam
Expand Down Expand Up @@ -190,6 +190,10 @@ models:
multisend_address: ${str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
service_registry_address: ${str:0x9338b5153AE39BB89f50468E608eD9d764B755fD}
service_endpoint_base: ${str:https://dummy_service.autonolas.tech/}
gas_params:
gas_price: ${int:null}
max_fee_per_gas: ${int:null}
max_priority_fee_per_gas: ${int:null}
init_fallback_gas: ${int:500000}
manual_gas_limit: ${int:1000000}
service_owner_share: ${float:0.1}
Expand Down
17 changes: 12 additions & 5 deletions packages/valory/services/mech/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeif7ia4jdlazy6745ke2k2x5yoqlwsgwr6sbztbgqtwvs3ndm2p7ba
fingerprint_ignore_patterns: []
agent: valory/mech:0.1.0:bafybeieali6bcbtmkrwv3g3fxaslrn7ymqhvtkoc5eobad3zpvhtkxxlfa
agent: valory/mech:0.1.0:bafybeia6suywbe4ptwtrmccbgiotf5rmzz6xusqbmqclzebk6sbkgtwku4
number_of_agents: 4
deployment:
agent:
Expand All @@ -27,13 +27,17 @@ type: skill
models:
params:
args:
gas_params: &id001
gas_price: ${GAS_PRICE:int:null}
max_fee_per_gas: ${MAX_FEE_PER_GAS:int:null}
max_priority_fee_per_gas: ${MAX_PRIORITY_FEE_PER_GAS:int:null}
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: &id001
setup: &id002
all_participants: ${ALL_PARTICIPANTS:list:[]}
safe_contract_address: ${SAFE_CONTRACT_ADDRESS:str:0x0000000000000000000000000000000000000000}
consensus_threshold: ${CONSENSUS_THRESHOLD:int:null}
Expand Down Expand Up @@ -65,14 +69,15 @@ type: skill
models:
params:
args:
gas_params: *id001
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
manual_gas_limit: ${MANUAL_GAS_LIMIT:int:1000000}
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: *id001
setup: *id002
share_tm_config_on_startup: ${USE_ACN:bool:false}
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
tendermint_url: ${TENDERMINT_URL:str:http://localhost:26657}
Expand Down Expand Up @@ -100,14 +105,15 @@ type: skill
models:
params:
args:
gas_params: *id001
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
use_polling: ${USE_POLLING:bool:false}
manual_gas_limit: ${MANUAL_GAS_LIMIT:int:1000000}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: *id001
setup: *id002
share_tm_config_on_startup: ${USE_ACN:bool:false}
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
termination_from_block: ${TERMINATION_FROM_BLOCK:int:0}
Expand Down Expand Up @@ -135,13 +141,14 @@ type: skill
models:
params:
args:
gas_params: *id001
multisend_address: ${MULTISEND_ADDRESS:str:0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761}
on_chain_service_id: ${ON_CHAIN_SERVICE_ID:int:null}
reset_pause_duration: ${RESET_PAUSE_DURATION:int:10}
round_timeout_seconds: ${ROUND_TIMEOUT:float:150.0}
use_polling: ${USE_POLLING:bool:false}
service_registry_address: ${SERVICE_REGISTRY_ADDRESS:str:0x0000000000000000000000000000000000000000}
setup: *id001
setup: *id002
share_tm_config_on_startup: ${USE_ACN:bool:false}
manual_gas_limit: ${MANUAL_GAS_LIMIT:int:1000000}
tendermint_com_url: ${TENDERMINT_COM_URL:str:http://localhost:8080}
Expand Down
4 changes: 4 additions & 0 deletions packages/valory/skills/mech_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ models:
request_timeout: 10.0
reset_pause_duration: 10
reset_period_count: 100
gas_params:
gas_price: null
max_fee_per_gas: null
max_priority_fee_per_gas: null
reset_tendermint_after: 10
retry_attempts: 400
retry_timeout: 3
Expand Down

0 comments on commit f2b9d4e

Please sign in to comment.