cfxdb.xbr.api

Classes

Api

XBRNetwork.Api database object.

Apis

Apis table, mapping from oid|UUID to cfxdb.xbr.Api

IndexApiByCatalog

Api-by-FbsRepository, index with (catalog_oid|bytes[16], created|int) -> api_oid|UUID mapping.

_ApiGen

Module Contents

class Api(from_fbs=None)[source]

Bases: object

XBRNetwork.Api database object.

__str__()[source]
_catalog_oid = None[source]
_from_fbs = None[source]
_meta = None[source]
_oid = None[source]
_published = None[source]
_schema = None[source]
_signature = None[source]
_tid = None[source]
_timestamp = None[source]
build(builder)[source]
static cast(buf)[source]
property catalog_oid: uuid.UUID[source]

The unique ID of the catalog.

marshal() dict[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 oid: uuid.UUID[source]

The unique ID of the api.

property published: int[source]

Global market sequence number.

property schema: str[source]

The XBR market terms set by the market owner. IPFS Multihash pointing to a ZIP archive file with market documents.

property signature: bytes[source]

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

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 Apis(slot=None, compress=None, build=None, cast=None)[source]

Bases: zlmdb.MapUuidFlatBuffers

Apis table, mapping from oid|UUID to cfxdb.xbr.Api

class IndexApiByCatalog(slot=None, compress=None)[source]

Bases: zlmdb.MapBytes16TimestampUuid

Api-by-FbsRepository, index with (catalog_oid|bytes[16], created|int) -> api_oid|UUID mapping.

class _ApiGen[source]

Bases: cfxdb.gen.xbr.Api.Api

CatalogOidAsBytes()[source]
classmethod GetRootAsApi(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.

OidAsBytes()[source]
PublishedAsBytes()[source]
SignatureAsBytes()[source]
TidAsBytes()[source]