File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
aleph_message/models/execution Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,13 @@ class PaymentType(str, Enum):
2828
2929 hold = "hold"
3030 superfluid = "superfluid"
31+ credit = "credit"
3132
3233
3334class Payment (HashableModel ):
3435 """Payment information for a program execution."""
3536
36- chain : Chain
37+ chain : Optional [ Chain ] = None
3738 """Which chain to check for funds"""
3839 receiver : Optional [str ] = None
3940 """Optional alternative address to send tokens to"""
@@ -42,7 +43,11 @@ class Payment(HashableModel):
4243
4344 @property
4445 def is_stream (self ):
45- return self .type != PaymentType .hold
46+ return self .type == PaymentType .superfluid
47+
48+ @property
49+ def is_credit (self ):
50+ return self .type == PaymentType .credit
4651
4752
4853class Interface (str , Enum ):
You can’t perform that action at this time.
0 commit comments