diff --git a/docs/api/plugins/aea_ledger_ethereum/ethereum.md b/docs/api/plugins/aea_ledger_ethereum/ethereum.md index 8fd337e974..c27b74784d 100644 --- a/docs/api/plugins/aea_ledger_ethereum/ethereum.md +++ b/docs/api/plugins/aea_ledger_ethereum/ethereum.md @@ -22,25 +22,17 @@ percentage gwei - + -#### wei`_`to`_`gwei +#### to`_`eth`_`unit ```python -def wei_to_gwei(number: Type[int]) -> Union[int, decimal.Decimal] +def to_eth_unit(number: Union[int, float, str, decimal.Decimal], + unit_in: str = DEFAULT_CURRENCY_DENOM, + unit_out: str = GWEI) -> Union[int, Wei, decimal.Decimal] ``` -Covert WEI to GWEI - - - -#### round`_`to`_`whole`_`gwei - -```python -def round_to_whole_gwei(number: Type[int]) -> Wei -``` - -Round WEI to equivalent GWEI +Covert a number to the given unit. @@ -74,9 +66,8 @@ Estimate priority fee from base fee. ```python def get_gas_price_strategy_eip1559( max_gas_fast: int, fee_history_blocks: int, fee_history_percentile: int, - default_priority_fee: Optional[int], - fallback_estimate: Dict[str, - Optional[int]], priority_fee_increase_boundary: int + default_priority_fee: Optional[int], fallback_estimate: Dict[str, Wei], + priority_fee_increase_boundary: int ) -> Callable[[Web3, TxParams], Dict[str, Wei]] ``` @@ -89,7 +80,7 @@ Get the gas price strategy. ```python def get_gas_price_strategy_eip1559_polygon( gas_endpoint: str, - fallback_estimate: Dict[str, Optional[int]], + fallback_estimate: Dict[str, Wei], speed: Optional[str] = SPEED_FAST ) -> Callable[[Any, Any], Dict[str, Wei]] ``` diff --git a/docs/package_list.md b/docs/package_list.md index 873d6302f7..0fdc463aff 100644 --- a/docs/package_list.md +++ b/docs/package_list.md @@ -14,7 +14,7 @@ | contract/fetchai/erc1155/0.22.0 | `bafybeiff7a6xncyad53o2r7lekpnhexcspze6ocy55xtpzqeuacnlpunm4` | | connection/fetchai/gym/0.19.0 | `bafybeicqqvl4tt3qbulnkoffciagmfd6p3hxxi3i2mrrqtnbycv757pn6y` | | connection/fetchai/stub/0.21.0 | `bafybeibybboiwgklfiqpkkcw6rwj65s5jalzfzf6mh6fstxdlt6habzwvy` | -| connection/valory/ledger/0.19.0 | `bafybeibigvowo52dw3tqwmxkdxtq52qzm6iqw752gpzpi23kgej4k3sum4` | +| connection/valory/ledger/0.19.0 | `bafybeigntoericenpzvwejqfuc3kqzo2pscs76qoygg5dbj6f4zxusru5e` | | connection/valory/http_server/0.22.0 | `bafybeihpgu56ovmq4npazdbh6y6ru5i7zuv6wvdglpxavsckyih56smu7m` | | connection/valory/p2p_libp2p/0.1.0 | `bafybeic2u7azbwjny2nhaltqnbohlvysx3x6ectzbege7sxwrbzcz4lcma` | | connection/valory/p2p_libp2p_client/0.1.0 | `bafybeid3xg5k2ol5adflqloy75ibgljmol6xsvzvezebsg7oudxeeolz7e` | @@ -26,12 +26,12 @@ | skill/fetchai/error_test_skill/0.1.0 | `bafybeihsbtlpe7h6fsvoxban5rilkmwviwkokul5cqym6atoolirontiyu` | | skill/fetchai/gym/0.20.0 | `bafybeie7y2fsxfuhsqxqcaluo5exskmrm5q3a6e2hfcskcuvzvxjjhijh4` | | skill/fetchai/http_echo/0.20.0 | `bafybeicfiri2juaqh3azeit3z3rf44kgxdo6oj4lgxjgvnowq6m7j47qrm` | -| skill/fetchai/erc1155_client/0.28.0 | `bafybeigeoxvo3dabzbhjphu2n32wn5bomhv7b6ge6ogcte7qa6h42rwn5a` | -| skill/fetchai/erc1155_deploy/0.30.0 | `bafybeialn4tcp4vs7nousugfjpin5r37vhd2qcmphi3fs7ob66kcwb5gu4` | +| skill/fetchai/erc1155_client/0.28.0 | `bafybeih7q6b2lcqcbh7rln3mgcnbtzlw7cpzjl23znnz6jj74cc4noahvq` | +| skill/fetchai/erc1155_deploy/0.30.0 | `bafybeigoarj6k2czdhhfqzry5w5jn2ux7chszem37zxiqy3232jr2mxs64` | | skill/fetchai/error/0.17.0 | `bafybeicboomvykqhel3otyv4qg5t3hzpo6kmn5bk4ljluithhuieu7flsm` | | skill/fetchai/fipa_dummy_buyer/0.2.0 | `bafybeidgso7lo5ay44mbxsp3lxilrgeek3ye44e6wus2ayq6kyxfvc3vjm` | -| skill/fetchai/generic_buyer/0.26.0 | `bafybeienntvkd7blbbc4p624dop7tz4iejtpi36somhohbi4tmxd63ksr4` | -| skill/fetchai/generic_seller/0.27.0 | `bafybeid4y4p2xlnkezvtzhgwfdzrowhul34md64shf3jv5nskpggskc3fm` | +| skill/fetchai/generic_buyer/0.26.0 | `bafybeihzzcbki3p5l4nt5spbddx6nzbejv7b6nruhycwaxfrstjwmrfucq` | +| skill/fetchai/generic_seller/0.27.0 | `bafybeig3ffbcefeandebzepxabztob5sdkumydzla52k7pvztmjfegwflq` | | skill/fetchai/task_test_skill/0.1.0 | `bafybeidv77u2xl52mnxakwvh7fuh46aiwfpteyof4eaptfd4agoi6cdble` | | agent/fetchai/error_test/0.1.0 | `bafybeiecm675ndzbh35jkejtxn4ughoutztltjhgwzfbp57okabedjmnpq` | | agent/fetchai/gym_aea/0.25.0 | `bafybeibzn3qomqmkaksgpd3gn6aijffvvw7rojswhoytiovohuc737fvfm` |