diff --git a/python/nekoton/__main__.py b/python/nekoton/__main__.py index a94f91a..06e654b 100644 --- a/python/nekoton/__main__.py +++ b/python/nekoton/__main__.py @@ -6,11 +6,11 @@ from . import generator parser = argparse.ArgumentParser( - prog='nekoton', - description='Generates a wrapper using an ABI') + prog="nekoton", description="Generates a wrapper using an ABI" +) -parser.add_argument('filename') -parser.add_argument('-n', '--name', required=False) +parser.add_argument("filename") +parser.add_argument("-n", "--name", required=False) args = parser.parse_args() diff --git a/python/nekoton/contracts/ever_wallet.py b/python/nekoton/contracts/ever_wallet.py index a22d7aa..c0fa48b 100644 --- a/python/nekoton/contracts/ever_wallet.py +++ b/python/nekoton/contracts/ever_wallet.py @@ -1,8 +1,9 @@ from typing import Optional -from ... import base as _base +from . import IGiver import nekoton as _nt + _wallet_abi = _nt.ContractAbi("""{ "ABI version": 2, "version": "2.3", @@ -33,7 +34,7 @@ ] -class EverWallet(_base.IGiver): +class EverWallet(IGiver): @classmethod def compute_address( cls, public_key: _nt.PublicKey, workchain: int = 0 diff --git a/python/nekoton/contracts/giver.py b/python/nekoton/contracts/giver.py index d9b8673..c5c59a9 100644 --- a/python/nekoton/contracts/giver.py +++ b/python/nekoton/contracts/giver.py @@ -1,6 +1,6 @@ from __future__ import annotations -from ... import base as _base +from . import IGiver import nekoton as _nt _giver_v1_abi = _nt.ContractAbi("""{ @@ -25,7 +25,7 @@ _giver_v1_tvc = "te6ccgECJQEABaMAAgE0BgEBAcACAgPPIAUDAQHeBAAD0CAAQdgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAIo/wAgwAH0pCBYkvSg4YrtU1gw9KATBwEK9KQg9KEIAgPNQBAJAgHODQoCASAMCwAHDDbMIAAdPAZIbzyvCEhcHHwCl8CgAgEgDw4AASAA1T++wFkZWNvZGVfYWRkciD6QDL6QiBvECByuiFzurHy4H0hbxFu8uB9yHTPCwIibxLPCgcibxMicrqWI28TIs4ynyGBAQAi10mhz0AyICLOMuL+/AFkZWNvZ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Bwgggbd0DtRNAg9AQyNCCBAIDXRY4UINI/MjMg0j8yMiBx10WUgHvy8N7eyCQB9AAjzws/Is8LP3HPQSHPFiDJ7VT+/QFjb25zdHJfcHJvdF8xXwX4ADDwIf78AXB1c2hwZGM3dG9jNO1E0PQByCEARO1HbxIB9AAhzxYgye1U/v0BcHVzaHBkYzd0b2M0MF8C2zAB4tz+/QFtYWluX2ludGVybmFsIY5Z/vwBZ2V0X3NyY19hZGRyINAg0wAycL2OGv79AWdldF9zcmNfYWRkcjBwyMnQVRFfAtsw4CBy1yExINMAMiH6QDP+/QFnZXRfc3JjX2FkZHIxISFVMV8E2zDYJCFwIwHqjjj++QFzdG9yZV9zaWdvACFvjCJvjCNvjO1HIW+M7UTQ9AVvjCDtV/79AXN0b3JlX3NpZ19lbmRfBdgixwCOHCFwuo4SIoIQXH7iB1VRXwbxQAFfBtsw4F8G2zDg/v4BbWFpbl9pbnRlcm5hbDEi0x80InG6JAA2niCAI1VhXwfxQAFfB9sw4CMhVWFfB/FAAV8H" -class GiverV1(_base.IGiver): +class GiverV1(IGiver): @staticmethod def compute_address(workchain: int = 0) -> _nt.Address: return _nt.Address.from_parts( @@ -36,7 +36,7 @@ def compute_address(workchain: int = 0) -> _nt.Address: async def deploy( transport: _nt.Transport, workchain: int = 0, - other_giver: _base.IGiver | None = None, + other_giver: IGiver | None = None, ) -> GiverV1: # Compute giver address state_init_cell = _nt.Cell.decode(_giver_v1_tvc)