Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Sep 14, 2024
1 parent bbe648c commit 004ec68
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions moccasin/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion moccasin/meta_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 004ec68

Please sign in to comment.