Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8be422e

Browse files
committedOct 4, 2023
rename Aleph to aleph.im
1 parent c445c01 commit 8be422e

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed
 

‎src/aleph/sdk/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ async def create_post(
318318
sync: bool = False,
319319
) -> Tuple[AlephMessage, MessageStatus]:
320320
"""
321-
Create a POST message on the Aleph network. It is associated with a channel and owned by an account.
321+
Create a POST message on the aleph.im network. It is associated with a channel and owned by an account.
322322
323323
:param post_content: The content of the message
324324
:param post_type: An arbitrary content type that helps to describe the post_content
@@ -368,7 +368,7 @@ async def create_store(
368368
sync: bool = False,
369369
) -> Tuple[AlephMessage, MessageStatus]:
370370
"""
371-
Create a STORE message to store a file on the Aleph network.
371+
Create a STORE message to store a file on the aleph.im network.
372372
373373
Can be passed either a file path, an IPFS hash or the file's content as raw bytes.
374374
@@ -422,7 +422,7 @@ async def create_program(
422422
:param persistent: Whether the program should be persistent or not (Default: False)
423423
:param encoding: Encoding to use (Default: Encoding.zip)
424424
:param volumes: Volumes to mount
425-
:param subscriptions: Patterns of Aleph messages to forward to the program's event receiver
425+
:param subscriptions: Patterns of aleph.im messages to forward to the program's event receiver
426426
:param metadata: Metadata to attach to the message
427427
"""
428428
pass

‎src/aleph/sdk/chains/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
def get_verification_buffer(message: Dict) -> bytes:
1616
"""
17-
Returns the verification buffer that Aleph nodes use to verify the signature of a message.
17+
Returns the verification buffer that aleph.im nodes use to verify the signature of a message.
1818
Note:
1919
The verification buffer is a string of the following format:
2020
b"{chain}\\n{sender}\\n{type}\\n{item_hash}"
@@ -64,7 +64,7 @@ def _setup_sender(self, message: Dict) -> Dict:
6464

6565
async def sign_message(self, message: Dict) -> Dict:
6666
"""
67-
Returns a signed message from an Aleph message.
67+
Returns a signed message from an aleph.im message.
6868
Args:
6969
message: Message to sign
7070
Returns:

‎src/aleph/sdk/chains/nuls2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, private_key=None, chain_id=1, prefix=None):
3939

4040
async def sign_message(self, message: Dict) -> Dict:
4141
"""
42-
Returns a signed message from an Aleph message.
42+
Returns a signed message from an aleph.im message.
4343
Args:
4444
message: Message to sign
4545
Returns:

‎src/aleph/sdk/client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ async def _handle_broadcast_deprecated_response(
10591059

10601060
async def _broadcast_deprecated(self, message_dict: Mapping[str, Any]) -> None:
10611061
"""
1062-
Broadcast a message on the Aleph network using the deprecated
1062+
Broadcast a message on the aleph.im network using the deprecated
10631063
/ipfs/pubsub/pub/ endpoint.
10641064
"""
10651065

@@ -1097,7 +1097,7 @@ async def _broadcast(
10971097
sync: bool,
10981098
) -> MessageStatus:
10991099
"""
1100-
Broadcast a message on the Aleph network.
1100+
Broadcast a message on the aleph.im network.
11011101
11021102
Uses the POST /messages/ endpoint or the deprecated /ipfs/pubsub/pub/ endpoint
11031103
if the first method is not available.
@@ -1273,7 +1273,7 @@ async def create_program(
12731273

12741274
# Register the different ways to trigger a VM
12751275
if subscriptions:
1276-
# Trigger on HTTP calls and on Aleph message subscriptions.
1276+
# Trigger on HTTP calls and on aleph.im message subscriptions.
12771277
triggers = {
12781278
"http": True,
12791279
"persistent": persistent,
@@ -1309,7 +1309,7 @@ async def create_program(
13091309
"runtime": {
13101310
"ref": runtime,
13111311
"use_latest": True,
1312-
"comment": "Official Aleph runtime"
1312+
"comment": "Official aleph.im runtime"
13131313
if runtime == settings.DEFAULT_RUNTIME_ID
13141314
else "",
13151315
},

‎src/aleph/sdk/exceptions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class MultipleMessagesError(QueryError):
2121

2222
class BroadcastError(Exception):
2323
"""
24-
Data could not be broadcast to the Aleph network.
24+
Data could not be broadcast to the aleph.im network.
2525
"""
2626

2727
pass
2828

2929

3030
class InvalidMessageError(BroadcastError):
3131
"""
32-
The message could not be broadcast because it does not follow the Aleph
32+
The message could not be broadcast because it does not follow the aleph.im
3333
message specification.
3434
"""
3535

‎src/aleph/sdk/models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class PaginationResponse(BaseModel):
1212

1313

1414
class MessagesResponse(PaginationResponse):
15-
"""Response from an Aleph node API on the path /api/v0/messages.json"""
15+
"""Response from an aleph.im node API on the path /api/v0/messages.json"""
1616

1717
messages: List[AlephMessage]
1818
pagination_item = "messages"
@@ -44,7 +44,7 @@ class Post(BaseModel):
4444

4545

4646
class PostsResponse(PaginationResponse):
47-
"""Response from an Aleph node API on the path /api/v0/posts.json"""
47+
"""Response from an aleph.im node API on the path /api/v0/posts.json"""
4848

4949
posts: List[Post]
5050
pagination_item = "posts"

‎src/aleph/sdk/vm/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""
2-
Aleph helpers for apps running inside Aleph Virtual Machines.
2+
Aleph.im helpers for apps running inside aleph.im Virtual Machines.
33
"""

‎src/aleph/sdk/vm/app.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def matches(self, scope: Mapping[str, Any]) -> bool:
3030

3131

3232
class AlephApp:
33-
"""ASGI compatible wrapper for apps running inside Aleph Virtual Machines.
33+
"""ASGI compatible wrapper for apps running inside aleph.im Virtual Machines.
3434
The wrapper adds support to register functions to react to non-HTTP events.
3535
"""
3636

@@ -93,7 +93,7 @@ def __getattr__(self, name):
9393
def vm_hash(self) -> Optional[str]:
9494
"""
9595
Returns the hash of the VM that is running this app. If the VM is not
96-
running in Aleph, this will return None.
96+
running in aleph.im, this will return None.
9797
"""
9898
# Get hostname from environment
9999
hostname = socket.gethostname()

0 commit comments

Comments
 (0)
Please sign in to comment.