cfxdb.xbrmm.transaction

Classes

Transaction

Data encryption key buy-sell transactions.

Transactions

Data encryption key (off-chain) market transactions.

_TransactionGen

Expand methods on the class code generated by flatc.

Module Contents

class Transaction(from_fbs=None)[source]

Bases: object

Data encryption key buy-sell transactions.

STATUS_FAILED = 2[source]

The transaction has completed with error (it failed)

STATUS_INFLIGHT = 1[source]

The transaction is currently in-flight

STATUS_NONE = 0[source]

Unset

STATUS_SUCCESS = 3[source]

The transaction has completed with success

__str__()[source]
_amount = None[source]
_buyer_pubkey = None[source]
_completed = None[source]
_completed_paying_channel_seq = None[source]
_completed_payment_channel_seq = None[source]
_created = None[source]
_created_paying_channel_seq = None[source]
_created_payment_channel_seq = None[source]
_from_fbs = None[source]
_key = None[source]
_offer = None[source]
_paying_channel = None[source]
_paying_channel_after = None[source]
_paying_del_sig = None[source]
_paying_mm_sig = None[source]
_payment_channel = None[source]
_payment_channel_after = None[source]
_payment_del_sig = None[source]
_payment_mm_sig = None[source]
_state = None[source]
_tid = None[source]
property amount: int[source]

Transaction amount in XBR.

build(builder)[source]
property buyer_pubkey: bytes[source]

Buyer public key (Ed25519).

static cast(buf)[source]
property completed: numpy.datetime64[source]

Completion time of the transaction (epoch time in ns)

property completed_paying_channel_seq: int[source]

Sequence number of the completed-state transaction within the paying channel.

property completed_payment_channel_seq: int[source]

Sequence number of the completed-state transaction within the payment channel.

property created: numpy.datetime64[source]

Creation time of the transaction (epoch time in ns).

property created_paying_channel_seq: int[source]

Sequence number of the created-state transaction within the paying channel.

property created_payment_channel_seq: int[source]

Sequence number of the created-state transaction within the payment channel.

property key: uuid.UUID[source]

ID of the data encryption key sold under the transaction.

marshal()[source]
property offer: uuid.UUID[source]

ID of the data encryption key offer this transaction is for.

property paying_channel: uuid.UUID[source]

Address of the paying channel (of the seller) this transaction is transacting on.

property paying_channel_after: int[source]

Payment channel balance after transaction.

property paying_del_sig: bytes[source]

Paying channel (seller) delegate transaction signature.

property paying_mm_sig: bytes[source]

Paying channel market maker transaction signature.

property payment_channel: uuid.UUID[source]

Address of the payment channel (of the buyer) this transaction is transacting on.

property payment_channel_after: int[source]

Payment channel balance after transaction.

property payment_del_sig: bytes[source]

Payment channel (buyer) delegate transaction signature.

property payment_mm_sig: bytes[source]

Payment channel market maker transaction signature.

property state: int[source]

TransactionState.INFLIGHT when created, and then either TransactionState.SUCCESS or TransactionState.FAILED.

Type:

State of the transaction

property tid: uuid.UUID[source]

ID of the transaction.

class Transactions(slot=None, compress=None, build=None, cast=None)[source]

Bases: zlmdb.MapUuidFlatBuffers

Data encryption key (off-chain) market transactions.

class _TransactionGen[source]

Bases: cfxdb.gen.xbrmm.Transaction.Transaction

Expand methods on the class code generated by flatc.

FIXME: come up with a PR for flatc to generated this stuff automatically.

AmountAsBytes()[source]
BuyerPubkeyAsBytes()[source]
classmethod GetRootAsTransaction(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.

KeyAsBytes()[source]
OfferAsBytes()[source]
PayingChannelAfterAsBytes()[source]
PayingChannelAsBytes()[source]
PayingDelSigAsBytes()[source]
PayingMmSigAsBytes()[source]
PaymentChannelAfterAsBytes()[source]
PaymentChannelAsBytes()[source]
PaymentDelSigAsBytes()[source]
PaymentMmSigAsBytes()[source]
TidAsBytes()[source]