@@ -370,8 +370,6 @@ def send_offchain_marketplace_request( # pylint: disable=too-many-arguments,too
370
370
:type method_args_data: MechMarketplaceRequestConfig
371
371
:param extra_attributes: Extra attributes to be included in the request metadata.
372
372
:type extra_attributes: Optional[Dict[str,Any]]
373
- :param price: The price for the request (default: 10_000_000_000_000_000).
374
- :type price: int
375
373
:param retries: Number of retries for sending a transaction
376
374
:type retries: int
377
375
:param timeout: Timeout to wait for the transaction
@@ -543,12 +541,26 @@ def wait_for_offchain_marketplace_data(request_id: str) -> Any:
543
541
544
542
545
543
def check_prepaid_balances (
546
- crypto ,
547
- ledger_api ,
548
- mech_payment_balance_tracker ,
549
- payment_type ,
550
- max_delivery_rate ,
551
- ):
544
+ crypto : Crypto ,
545
+ ledger_api : EthereumApi ,
546
+ mech_payment_balance_tracker : str ,
547
+ payment_type : str ,
548
+ max_delivery_rate : int ,
549
+ ) -> None :
550
+ """
551
+ Checks the requester's prepaid balances for native and token mech.
552
+
553
+ :param crypto: The cryptographic object.
554
+ :type crypto: Crypto
555
+ :param ledger_api: The Ethereum API used for interacting with the ledger.
556
+ :type ledger_api: EthereumApi
557
+ :param mech_payment_balance_tracker: The mech's balance tracker contract address.
558
+ :type mech_payment_balance_tracker: str
559
+ :param payment_type: The payment type of the mech.
560
+ :type payment_type: str
561
+ :param max_delivery_rate: The max_delivery_rate of the mech
562
+ :type max_delivery_rate: int
563
+ """
552
564
requester = crypto .address
553
565
if payment_type == PAYMENT_TYPE_NATIVE :
554
566
with open (
0 commit comments