From 004ec684932a360a7a208abc6a1b02a83e62cb10 Mon Sep 17 00:00:00 2001 From: PatrickAlphaC <54278053+PatrickAlphaC@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:03:57 -0400 Subject: [PATCH] wip --- moccasin/config.py | 5 +++++ moccasin/meta_contract.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/moccasin/config.py b/moccasin/config.py index c749330..af45686 100644 --- a/moccasin/config.py +++ b/moccasin/config.py @@ -85,6 +85,10 @@ def get_or_create_env(self, is_fork: bool) -> _AnyEnv: boa.set_env(new_env) return new_env + # TODO: Potentially rename to instantiate_contract + def instantiate_contract(self, *args, **kwargs) -> VyperContract | ABIContract: + return self.get_or_deploy_contract(*args, **kwargs) + def manifest_contract(self, *args, **kwargs) -> VyperContract | ABIContract: return self.get_or_deploy_contract(*args, **kwargs) @@ -93,6 +97,7 @@ def get_or_deploy_contract( self, contract_name: str, force_deploy: bool = False, + # TODO: Maybe remove this ABI shit abi: str | list | VyperDeployer diff --git a/moccasin/meta_contract.py b/moccasin/meta_contract.py index 0f738cd..b9d9083 100644 --- a/moccasin/meta_contract.py +++ b/moccasin/meta_contract.py @@ -5,7 +5,8 @@ from moccasin.logging import logger -# TODO: Potentially renamed to `NamedContract` +# TODO: Potentially renamed to `NamedContract`, or `ContractConfig` +# TODO: Maybe this has the same interface as VyperDeployer @dataclass class MetaContract: contract_name: str