Skip to content

Commit

Permalink
Merge branch 'main' into 108-upgrade-pydantic-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonyjin authored Nov 26, 2024
2 parents 8e7435e + bc90d8f commit 73379e4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aleph_message/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .models import MessagesResponse, parse_message

__all__ = ["parse_message", "MessagesResponse"]
__version__ = "0.4.9"
__version__ = "0.5.0"
14 changes: 14 additions & 0 deletions aleph_message/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,31 @@
class Chain(str, Enum):
"""Supported chains"""

ARBITRUM = "ARB"
AVAX = "AVAX"
BASE = "BASE"
BLAST = "BLAST"
BOB = "BOB"
BSC = "BSC"
CSDK = "CSDK"
CYBER = "CYBER"
DOT = "DOT"
ETH = "ETH"
FRAXTAL = "FRAX"
INK = "INK"
LINEA = "LINEA"
LISK = "LISK"
METIS = "METIS"
MODE = "MODE"
NEO = "NEO"
NULS = "NULS"
NULS2 = "NULS2"
OPTIMISM = "OP"
POL = "POL"
SOL = "SOL"
TEZOS = "TEZOS"
WORLDCHAIN = "WLD"
ZORA = "ZORA"


class HashType(str, Enum):
Expand Down
6 changes: 6 additions & 0 deletions aleph_message/models/execution/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ class VolumePersistence(str, Enum):
store = "store"


class PersistentVolumeSizeMib(ConstrainedInt):
gt = 0
le = gigabyte_to_mebibyte(Gigabytes(512))
strict = True # Limit to 100 GiB


class PersistentVolume(AbstractVolume):
parent: Optional[ParentVolume] = None
persistence: Optional[VolumePersistence] = None
Expand Down

0 comments on commit 73379e4

Please sign in to comment.