Files
lightning/contrib/pyln-proto/pyln/proto/message/__init__.py
Rusty Russell fd3ea91b44 pyln.proto.message: expose array types, add set_field for Message class.
Exposing the array types is required for our dummyrunner in the lnprototest suite, since
it wants to be able to generate fake fields.

The set_field is similarly useful.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-06-12 15:35:35 +02:00

34 lines
651 B
Python

from .array_types import SizedArrayType, DynamicArrayType, EllipsisArrayType
from .message import MessageNamespace, MessageType, Message, SubtypeType
from .fundamental_types import split_field, FieldType
__version__ = '0.0.1'
__all__ = [
"MessageNamespace",
"MessageType",
"Message",
"SubtypeType",
"FieldType",
"split_field",
"SizedArrayType",
"DynamicArrayType",
"EllipsisArrayType",
# fundamental_types
'byte',
'u16',
'u32',
'u64',
'tu16',
'tu32',
'tu64',
'chain_hash',
'channel_id',
'sha256',
'point',
'short_channel_id',
'signature',
'bigsize',
]