-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
payment
field to BaseExecutableContent
with specifics for pay…
…ment type (#82) * Add Payment field to BaseExecutableContent with specifics for payment type * Rename `PaymentType.stream` to `superfluid` to also support other streaming services * Revert black reformatting * import execution-related types * shorten `Payment` property names * add `is_stream()` property
- Loading branch information
1 parent
ee5343e
commit 1f5e910
Showing
4 changed files
with
63 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from enum import Enum | ||
|
||
|
||
class Chain(str, Enum): | ||
"""Supported chains""" | ||
|
||
AVAX = "AVAX" | ||
BSC = "BSC" | ||
CSDK = "CSDK" | ||
DOT = "DOT" | ||
ETH = "ETH" | ||
NEO = "NEO" | ||
NULS = "NULS" | ||
NULS2 = "NULS2" | ||
SOL = "SOL" | ||
TEZOS = "TEZOS" | ||
|
||
|
||
class HashType(str, Enum): | ||
"""Supported hash functions""" | ||
|
||
sha256 = "sha256" | ||
|
||
|
||
class MessageType(str, Enum): | ||
"""Message types supported by Aleph""" | ||
|
||
post = "POST" | ||
aggregate = "AGGREGATE" | ||
store = "STORE" | ||
program = "PROGRAM" | ||
instance = "INSTANCE" | ||
forget = "FORGET" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters