@@ -58,7 +58,7 @@ async def _verify_status_processed_and_ownership(
5858 )
5959 return message , status
6060
61- async def get_ports (
61+ async def get_address_ports (
6262 self , address : Optional [str ] = None
6363 ) -> AggregateConfig [AllForwarders ]:
6464 """
@@ -76,9 +76,9 @@ async def get_ports(
7676 raise ValueError ("No account provided and client is not authenticated" )
7777 address = self ._client .account .get_address ()
7878
79- return await super ().get_ports (address = address )
79+ return await super ().get_address_ports (address = address )
8080
81- async def get_port (
81+ async def get_ports (
8282 self , item_hash : ItemHash = None , address : Optional [str ] = None
8383 ) -> Optional [Ports ]:
8484 """
@@ -100,9 +100,9 @@ async def get_port(
100100 if item_hash is None :
101101 raise ValueError ("item_hash must be provided" )
102102
103- return await super ().get_port (address = address , item_hash = item_hash )
103+ return await super ().get_ports (address = address , item_hash = item_hash )
104104
105- async def create_port (
105+ async def create_ports (
106106 self , item_hash : ItemHash , ports : Ports
107107 ) -> Tuple [AggregateMessage , MessageStatus ]:
108108 """
@@ -128,7 +128,7 @@ async def create_port(
128128 key = self .aggregate_key , content = content
129129 )
130130
131- async def update_port (
131+ async def update_ports (
132132 self , item_hash : ItemHash , ports : Ports
133133 ) -> Tuple [AggregateMessage , MessageStatus ]:
134134 """
@@ -176,7 +176,7 @@ async def delete_ports(
176176 # _, _ = await self._verify_status_processed_and_ownership(item_hash=item_hash)
177177
178178 # Get the Port Config of the item_hash
179- port : Optional [Ports ] = await self .get_port (item_hash = item_hash )
179+ port : Optional [Ports ] = await self .get_ports (item_hash = item_hash )
180180 if not port :
181181 raise
182182
0 commit comments