olas-operate-middleware 0.6.2__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ from aea_ledger_ethereum import Web3
26
26
 
27
27
  from operate.constants import MECH_MARKETPLACE_JSON_URL
28
28
  from operate.operate_types import Chain
29
- from operate.quickstart.utils import print_section, unit_to_wei
29
+ from operate.quickstart.utils import print_section
30
30
  from operate.services.protocol import EthSafeTxBuilder
31
31
  from operate.services.service import Service
32
32
  from operate.utils.gnosis import SafeOperation
@@ -74,9 +74,11 @@ def deploy_mech(sftxb: EthSafeTxBuilder, service: Service) -> Tuple[str, str]:
74
74
  mech_type
75
75
  ]
76
76
 
77
- # 0.01xDAI hardcoded for price
78
- # better to be configurable and part of local config
79
- mech_request_price = unit_to_wei(0.01)
77
+ mech_request_price = int(
78
+ service.env_variables.get("MECH_REQUEST_PRICE", {}).get(
79
+ "value", 10000000000000000
80
+ )
81
+ )
80
82
  contract = sftxb.ledger_api.api.eth.contract(
81
83
  address=Web3.to_checksum_address(mech_marketplace_address), abi=abi
82
84
  )
@@ -1,23 +0,0 @@
1
- name: service_staking_token
2
- author: valory
3
- version: 0.1.0
4
- type: contract
5
- description: Service staking token contract
6
- license: Apache-2.0
7
- aea_version: '>=1.0.0, <2.0.0'
8
- fingerprint:
9
- __init__.py: bafybeid3wfzglolebuo6jrrsopswzu4lk77bm76mvw3euizlsjtnt3wmgu
10
- build/ServiceStakingToken.json: bafybeiclsckyk2kkuwhrmifupugg7ixj2hpwhd3mjghwgcdlrjqbwafwym
11
- contract.py: bafybeiff62bquzeisbd6iptqdjetrhlkt2ut5d7j6md2kqinrqgmbveceu
12
- fingerprint_ignore_patterns: []
13
- contracts: []
14
- class_name: ServiceStakingTokenContract
15
- contract_interface_paths:
16
- ethereum: build/ServiceStakingToken.json
17
- dependencies:
18
- open-aea-ledger-ethereum:
19
- version: ==1.42.0
20
- open-aea-test-autonomy:
21
- version: ==0.13.6
22
- web3:
23
- version: <7,>=6.0.0