cfxdb.xbrmm.channel¶
Attributes¶
Classes¶
XBR off-chain payment or paying channel. |
|
XBR payment channel current (off-chain) balance. The sum of |
|
Index: |
|
Index: |
|
Index: |
|
Index: |
|
XBR paying channels current balances by |
|
XBR paying channels by |
|
XBR payment channels current balances by |
|
XBR payment channels by |
|
Expand methods on the class code generated by flatc. |
|
Expand methods on the class code generated by flatc. |
Module Contents¶
- class Channel(from_fbs=None)[source]¶
Bases:
objectXBR off-chain payment or paying channel.
- property channel_type: int[source]¶
payment channel (from XBR consumer to XBR market maker) or paying channel (from XBR market maker to XBR provider).
- Type:
Channel type
- property close_channel_seq: int[source]¶
channel transaction sequence number.
- Type:
Last off-chain, closing transaction
- property close_is_final: bool[source]¶
Flag indication if close is final (happens immediately without a channel timeout).
- property closed_at: int[source]¶
Block number (on the blockchain) when the payment channel was finally closed.
- property closed_tx: bytes[source]¶
When channel was finally closed on-chain, the Ethereum transaction ID.
- property closing_at: int[source]¶
Block number (on the blockchain) when the payment channel will close (at the latest).
- property delegate: bytes[source]¶
Ethereum address of the sender delegate (either XBR Consumer delegate or XBR Market delegate == market maker)
- property open_at: int[source]¶
Block number (on the blockchain) when the actor (originally) joined the market.
- property recipient: bytes[source]¶
Ethereum address of the recipient (either XBR Market or XBR Provider)
- property timeout: int[source]¶
Payment channel (non-cooperative) closed timeout in blocks (on the blockchain).
- property timestamp: numpy.datetime64[source]¶
Database transaction time (epoch time in ns) of insert or last update.
- class ChannelBalance(from_fbs=None)[source]¶
Bases:
objectXBR payment channel current (off-chain) balance. The sum of
Balance.remainingandBalance.inflightequalsChannel.amount.
- class IndexPayingChannelByDelegate(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20TimestampUuidIndex:
(delegate_adr, created_timestamp) -> channel_oid
- class IndexPayingChannelByRecipient(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20TimestampUuidIndex:
(recipient_adr, created_timestamp) -> channel_oid
- class IndexPaymentChannelByActor(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20TimestampUuidIndex:
(actor_adr, created_timestamp) -> channel_oid
- class IndexPaymentChannelByDelegate(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20TimestampUuidIndex:
(delegate_adr, created_timestamp) -> channel_oid
- class PayingChannelBalances(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersXBR paying channels current balances by
channel_oid.Map
zlmdb.MapBytes20FlatBuffersfromchannel_oidtocfxdb.xbr.Balance
- class PayingChannels(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersXBR paying channels by
channel_oid.Map
zlmdb.MapUuidFlatBuffersfromchannel_oidtocfxdb.xbr.Channel
- class PaymentChannelBalances(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersXBR payment channels current balances by
channel_oid.Map
zlmdb.MapBytes20FlatBuffersfromchannel_oidtocfxdb.xbr.Balance
- class PaymentChannels(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersXBR payment channels by
channel_oid.Map
zlmdb.MapUuidFlatBuffersfromchannel_oidtocfxdb.xbr.Channel
- class _ChannelBalanceGen[source]¶
Bases:
cfxdb.gen.xbrmm.ChannelBalance.ChannelBalanceExpand methods on the class code generated by flatc.
FIXME: come up with a PR for flatc to generated this stuff automatically.
- class _ChannelGen[source]¶
Bases:
cfxdb.gen.xbrmm.Channel.ChannelExpand methods on the class code generated by flatc.
FIXME: come up with a PR for flatc to generated this stuff automatically.