|
1 | 1 | from abc import ABC
|
2 | 2 | from typing import TYPE_CHECKING, ClassVar, Dict, List, cast
|
3 | 3 |
|
4 |
| -from ethpm_types import ContractType |
5 | 4 | from pydantic import BaseModel
|
6 | 5 |
|
7 | 6 | from ape.exceptions import ProviderNotConnectedError
|
8 |
| -from ape.types import AddressType |
9 | 7 | from ape.utils.misc import cached_property, singledispatchmethod
|
10 | 8 |
|
11 | 9 | if TYPE_CHECKING:
|
12 | 10 | from ape.api.providers import ProviderAPI
|
13 |
| - from ape.contracts.base import ContractContainer, ContractInstance |
14 | 11 | from ape.managers.accounts import AccountManager
|
15 | 12 | from ape.managers.chain import ChainManager
|
16 | 13 | from ape.managers.compilers import CompilerManager
|
@@ -75,37 +72,6 @@ def provider(self) -> "ProviderAPI":
|
75 | 72 | raise ProviderNotConnectedError()
|
76 | 73 | return self.network_manager.active_provider
|
77 | 74 |
|
78 |
| - def create_contract_container(self, contract_type: ContractType) -> "ContractContainer": |
79 |
| - """ |
80 |
| - Helper method for creating a ``ContractContainer``. |
81 |
| -
|
82 |
| - Args: |
83 |
| - contract_type (``ContractType``): Type of contract for the container |
84 |
| -
|
85 |
| - Returns: |
86 |
| - :class:`~ape.contracts.ContractContainer` |
87 |
| - """ |
88 |
| - from ape.contracts.base import ContractContainer |
89 |
| - |
90 |
| - return ContractContainer(contract_type=contract_type) |
91 |
| - |
92 |
| - def get_contract_instance( |
93 |
| - self, address: "AddressType", contract_type: "ContractType" |
94 |
| - ) -> "ContractInstance": |
95 |
| - """ |
96 |
| - Helper method for creating a ``ContractInstance``. |
97 |
| -
|
98 |
| - Args: |
99 |
| - address (``AddressType``): Address of contract |
100 |
| - contract_type (``ContractType``): Type of contract |
101 |
| -
|
102 |
| - Returns: |
103 |
| - :class:`~ape.contracts.ContractInstance` |
104 |
| - """ |
105 |
| - from ape.contracts.base import ContractInstance |
106 |
| - |
107 |
| - return ContractInstance(address=address, contract_type=contract_type) |
108 |
| - |
109 | 75 |
|
110 | 76 | class BaseInterface(ManagerAccessMixin, ABC):
|
111 | 77 | """
|
|
0 commit comments