cfxdb.xbr.actor

Classes

Actor

XBR Market Actors.

Actors

Market actors table, mapping from (market_id|UUID, actor_adr|bytes[20], actor_type|int) to cfxdb.xbr.Actor.

_ActorGen

Expand methods on the class code generated by flatc.

Module Contents

class Actor(from_fbs=None)[source]

Bases: object

XBR Market Actors.

__str__()[source]
_actor = None[source]
_actor_type = None[source]
_from_fbs = None[source]
_joined = None[source]
_market = None[source]
_meta = None[source]
_security = None[source]
_signature = None[source]
_tid = None[source]
_timestamp = None[source]
property actor: bytes[source]

Ethereum address of the member.

property actor_type: int[source]

Type of the market actor.

build(builder)[source]
static cast(buf)[source]
property joined: int[source]

Block number (on the blockchain) when the actor (originally) joined the market.

property market: uuid.UUID[source]

ID of the market this actor is associated with.

marshal()[source]
property meta: str[source]

The XBR market metadata published by the market owner. IPFS Multihash pointing to a RDF/Turtle file with market metadata.

property security: int[source]

Security (XBR tokens) deposited by the actor in the market.

property signature: bytes[source]

When signed off-chain and submitted via XBRMarket.joinMarketFor.

property tid: bytes[source]

Transaction hash of the transaction this change was committed to the blockchain under.

property timestamp: numpy.datetime64[source]

Database transaction time (epoch time in ns) of insert or last update.

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

Bases: zlmdb.MapUuidBytes20Uint8FlatBuffers

Market actors table, mapping from (market_id|UUID, actor_adr|bytes[20], actor_type|int) to cfxdb.xbr.Actor.

class _ActorGen[source]

Bases: cfxdb.gen.xbr.Actor.Actor

Expand methods on the class code generated by flatc.

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

ActorAsBytes()[source]
classmethod GetRootAsActor(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.

JoinedAsBytes()[source]
MarketAsBytes()[source]
SecurityAsBytes()[source]
SignatureAsBytes()[source]
TidAsBytes()[source]