parent
c25e5daad2
commit
e4c406822c
@ -0,0 +1,31 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
|
import protobuf as p
|
||||||
|
|
||||||
|
from .CardanoTokenType import CardanoTokenType
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
try:
|
||||||
|
from typing import Dict, List # noqa: F401
|
||||||
|
from typing_extensions import Literal # noqa: F401
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CardanoAssetGroupType(p.MessageType):
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
policy_id: bytes,
|
||||||
|
tokens: List[CardanoTokenType] = None,
|
||||||
|
) -> None:
|
||||||
|
self.tokens = tokens if tokens is not None else []
|
||||||
|
self.policy_id = policy_id
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_fields(cls) -> Dict:
|
||||||
|
return {
|
||||||
|
1: ('policy_id', p.BytesType, p.FLAG_REQUIRED),
|
||||||
|
2: ('tokens', CardanoTokenType, p.FLAG_REPEATED),
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
|
import protobuf as p
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
try:
|
||||||
|
from typing import Dict, List # noqa: F401
|
||||||
|
from typing_extensions import Literal # noqa: F401
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CardanoTokenType(p.MessageType):
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
asset_name_bytes: bytes,
|
||||||
|
amount: int,
|
||||||
|
) -> None:
|
||||||
|
self.asset_name_bytes = asset_name_bytes
|
||||||
|
self.amount = amount
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_fields(cls) -> Dict:
|
||||||
|
return {
|
||||||
|
1: ('asset_name_bytes', p.BytesType, p.FLAG_REQUIRED),
|
||||||
|
2: ('amount', p.UVarintType, p.FLAG_REQUIRED),
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
from .CardanoTokenType import CardanoTokenType
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
try:
|
||||||
|
from typing import Dict, List # noqa: F401
|
||||||
|
from typing_extensions import Literal # noqa: F401
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CardanoAssetGroupType(p.MessageType):
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
policy_id: bytes,
|
||||||
|
tokens: List[CardanoTokenType] = None,
|
||||||
|
) -> None:
|
||||||
|
self.tokens = tokens if tokens is not None else []
|
||||||
|
self.policy_id = policy_id
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_fields(cls) -> Dict:
|
||||||
|
return {
|
||||||
|
1: ('policy_id', p.BytesType, p.FLAG_REQUIRED),
|
||||||
|
2: ('tokens', CardanoTokenType, p.FLAG_REPEATED),
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
# Automatically generated by pb2py
|
||||||
|
# fmt: off
|
||||||
|
from .. import protobuf as p
|
||||||
|
|
||||||
|
if __debug__:
|
||||||
|
try:
|
||||||
|
from typing import Dict, List # noqa: F401
|
||||||
|
from typing_extensions import Literal # noqa: F401
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class CardanoTokenType(p.MessageType):
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
*,
|
||||||
|
asset_name_bytes: bytes,
|
||||||
|
amount: int,
|
||||||
|
) -> None:
|
||||||
|
self.asset_name_bytes = asset_name_bytes
|
||||||
|
self.amount = amount
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_fields(cls) -> Dict:
|
||||||
|
return {
|
||||||
|
1: ('asset_name_bytes', p.BytesType, p.FLAG_REQUIRED),
|
||||||
|
2: ('amount', p.UVarintType, p.FLAG_REQUIRED),
|
||||||
|
}
|
Loading…
Reference in new issue