from typing import Protocol
from multiversx_sdk.core.address import Address
from multiversx_sdk.core.transaction import Transaction
[docs]
class INetworkConfig(Protocol):
min_gas_limit: int
gas_per_data_byte: int
gas_price_modifier: float
# fmt: off
[docs]
class IAccount(Protocol):
@property
def use_hash_signing(self) -> bool:
...
@property
def address(self) -> Address:
...
[docs]
def sign_transaction(self, transaction: Transaction) -> bytes:
...
[docs]
class IGasLimitEstimator(Protocol):
[docs]
def estimate_gas_limit(self, transaction: Transaction) -> int:
...
# fmt: on