Skip to content

Commit

Permalink
Merge pull request #211 from valory-xyz/fix/gas
Browse files Browse the repository at this point in the history
Fix/gas
  • Loading branch information
dvilelaf authored Nov 8, 2024
2 parents fca9fcd + 7476bf6 commit dc4990b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In order to run a local demo service based on the IEKit:
2. Fetch the IEKit.

```bash
autonomy fetch valory/impact_evaluator:0.1.0:bafybeihp7m4dgtqgte55lonmr5gp3dl4xcbkm2zyydi2jpvh2qttvt3n6e --service
autonomy fetch valory/impact_evaluator:0.1.0:bafybeidbt6znzxtiwybc3u6354wnlyt6hdah5pmki4ttmcrl6uakntvaey --service
```

3. Build the Docker image of the service agents
Expand Down
2 changes: 1 addition & 1 deletion packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"skill/valory/staking_abci/0.1.0": "bafybeidgmviq6inwwjachktoeddmyuo7iyg7yfyhvhvy3znndkvuuudllq",
"agent/valory/impact_evaluator/0.1.0": "bafybeibovzkwdrttlcpleqesolaai5ehckoznddwcolul4h3regnzbp4yq",
"agent/valory/farcaster_test/0.1.0": "bafybeiefui6dnhhy5leqyvfrbkeleb64gap5tzctkrzzggjf4ubbxamjvy",
"service/valory/impact_evaluator/0.1.0": "bafybeihp7m4dgtqgte55lonmr5gp3dl4xcbkm2zyydi2jpvh2qttvt3n6e",
"service/valory/impact_evaluator/0.1.0": "bafybeidbt6znzxtiwybc3u6354wnlyt6hdah5pmki4ttmcrl6uakntvaey",
"service/valory/impact_evaluator_local/0.1.0": "bafybeic5yj3fkyggtygozpotfeqdd2i5rr55txko7g2aszkfwa56jc67v4"
},
"third_party": {
Expand Down
39 changes: 17 additions & 22 deletions packages/valory/services/impact_evaluator/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,7 @@ extra:
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
use_mech_marketplace: ${USE_MECH_MARKETPLACE:bool:false}
mech_marketplace_config:
mech_marketplace_address: ${MECH_MARKETPLACE_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_address: ${PRIORITY_MECH_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_staking_instance_address: ${PRIORITY_MECH_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_service_id: ${PRIORITY_MECH_SERVICE_ID:int:0}
requester_staking_instance_address: ${REQUESTER_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
response_timeout: ${RESPONSE_TIMEOUT:int:300}
mech_marketplace_config: ${MECH_MARKETPLACE_CONFIG:dict:{"mech_marketplace_address":"0x0000000000000000000000000000000000000000","priority_mech_address":"0x0000000000000000000000000000000000000000","priority_mech_staking_instance_address":"0x0000000000000000000000000000000000000000","priority_mech_service_id":0,"requester_staking_instance_address":"0x0000000000000000000000000000000000000000","response_timeout":300}}
checkpoint_threshold_minutes: ${CHECKPOINT_THRESHOLD_MINUTES:int:600}
staking_activity_threshold: ${STAKING_ACTIVITY_THRESHOLD:int:5}
staking_contract_addresses: ${STAKING_CONTRACT_ADDRESSES:list:["0x95146Adf659f455f300D7521B3b62A3b6c4aBA1F","0x2C8a5aC7B431ce04a037747519BA475884BCe2Fb","0x708E511d5fcB3bd5a5d42F42aA9a69EC5B0Ee2E8"]}
Expand Down Expand Up @@ -331,13 +325,7 @@ extra:
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
use_mech_marketplace: ${USE_MECH_MARKETPLACE:bool:false}
mech_marketplace_config:
mech_marketplace_address: ${MECH_MARKETPLACE_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_address: ${PRIORITY_MECH_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_staking_instance_address: ${PRIORITY_MECH_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_service_id: ${PRIORITY_MECH_SERVICE_ID:int:0}
requester_staking_instance_address: ${REQUESTER_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
response_timeout: ${RESPONSE_TIMEOUT:int:300}
mech_marketplace_config: ${MECH_MARKETPLACE_CONFIG:dict:{"mech_marketplace_address":"0x0000000000000000000000000000000000000000","priority_mech_address":"0x0000000000000000000000000000000000000000","priority_mech_staking_instance_address":"0x0000000000000000000000000000000000000000","priority_mech_service_id":0,"requester_staking_instance_address":"0x0000000000000000000000000000000000000000","response_timeout":300}}
checkpoint_threshold_minutes: ${CHECKPOINT_THRESHOLD_MINUTES:int:600}
staking_activity_threshold: ${STAKING_ACTIVITY_THRESHOLD:int:5}
staking_contract_addresses: ${STAKING_CONTRACT_ADDRESSES:list:["0x95146Adf659f455f300D7521B3b62A3b6c4aBA1F","0x2C8a5aC7B431ce04a037747519BA475884BCe2Fb","0x708E511d5fcB3bd5a5d42F42aA9a69EC5B0Ee2E8"]}
Expand Down Expand Up @@ -437,13 +425,7 @@ extra:
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
use_mech_marketplace: ${USE_MECH_MARKETPLACE:bool:false}
mech_marketplace_config:
mech_marketplace_address: ${MECH_MARKETPLACE_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_address: ${PRIORITY_MECH_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_staking_instance_address: ${PRIORITY_MECH_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
priority_mech_service_id: ${PRIORITY_MECH_SERVICE_ID:int:0}
requester_staking_instance_address: ${REQUESTER_STAKING_INSTANCE_ADDRESS:str:0x0000000000000000000000000000000000000000}
response_timeout: ${RESPONSE_TIMEOUT:int:300}
mech_marketplace_config: ${MECH_MARKETPLACE_CONFIG:dict:{"mech_marketplace_address":"0x0000000000000000000000000000000000000000","priority_mech_address":"0x0000000000000000000000000000000000000000","priority_mech_staking_instance_address":"0x0000000000000000000000000000000000000000","priority_mech_service_id":0,"requester_staking_instance_address":"0x0000000000000000000000000000000000000000","response_timeout":300}}
checkpoint_threshold_minutes: ${CHECKPOINT_THRESHOLD_MINUTES:int:600}
staking_activity_threshold: ${STAKING_ACTIVITY_THRESHOLD:int:5}
staking_contract_addresses: ${STAKING_CONTRACT_ADDRESSES:list:["0x95146Adf659f455f300D7521B3b62A3b6c4aBA1F","0x2C8a5aC7B431ce04a037747519BA475884BCe2Fb","0x708E511d5fcB3bd5a5d42F42aA9a69EC5B0Ee2E8"]}
Expand Down Expand Up @@ -483,7 +465,20 @@ config:
chain_id: ${GNOSIS_LEDGER_CHAIN_ID:int:100}
poa_chain: ${GNOSIS_LEDGER_IS_POA_CHAIN:bool:false}
default_gas_price_strategy: ${GNOSIS_LEDGER_PRICING:str:eip1559}
gas_price_strategies: *id001
gas_price_strategies:
gas_station:
gas_price_api_key: null
gas_price_strategy: fast
eip1559:
max_gas_fast: 1500
fee_history_blocks: 10
fee_history_percentile: 5
default_priority_fee: ${DEFAULT_PRIORITY_FEE_GNOSIS:int:1000000000}
fallback_estimate:
maxFeePerGas: 20000000000
maxPriorityFeePerGas: 3000000000
baseFee: null
priority_fee_increase_boundary: 200
base:
address: ${BASE_LEDGER_RPC:str:http://host.docker.internal:8545}
chain_id: ${BASE_LEDGER_CHAIN_ID:int:8453}
Expand Down

0 comments on commit dc4990b

Please sign in to comment.