cfxdb.xbr.schema

Classes

Schema

CFC edge database schema for ZLMDB.

Module Contents

class Schema(db)[source]

Bases: object

CFC edge database schema for ZLMDB.

actors: cfxdb.xbr.actor.Actors[source]

XBR market actors.

apis: cfxdb.xbr.api.Apis[source]

XBR network apis.

static attach(db)[source]

Factory to create a schema from attaching to a database. The schema tables will be automatically mapped as persistant maps and attached to the database slots.

Parameters:

db – zlmdb.Database

Returns:

object of Schema

blocks: cfxdb.xbr.block.Blocks[source]

Ethereum blocks basic information.

catalogs: cfxdb.xbr.catalog.Catalogs[source]

XBR network catalogs.

consents: cfxdb.xbr.consent.Consents[source]

XBR data consents.

db[source]
idx_apis_by_catalog: cfxdb.xbr.api.IndexApiByCatalog[source]

Index catalog_oid -> api_oid.

idx_catalogs_by_owner: cfxdb.xbr.catalog.IndexCatalogsByOwner[source]

Index (member_oid, created) -> catalog_oid.

Consents-by-members-address index with (member_adr|bytes[20], joined|int) -> member_adr|UUID mapping.

idx_markets_by_actor: cfxdb.xbr.market.IndexMarketsByActor[source]

Index (actor_adr, joined) -> market_oid.

idx_markets_by_maker: cfxdb.xbr.market.IndexMarketsByMaker[source]

Index maker_adr -> market_oid.

idx_markets_by_owner: cfxdb.xbr.market.IndexMarketsByOwner[source]

Index (owner_adr, created) -> market_oid.

idx_offer_by_key: cfxdb.xbrmm.offer.IndexOfferByKey[source]

Index of key offers by key ID (rather than offer ID, as the object table is indexed by).

idx_paying_channel_by_delegate: cfxdb.xbrmm.channel.IndexPayingChannelByDelegate[source]

Maps from XBR provider delegate address to the currently active paying channel address for the given provider delegate.

idx_paying_channel_by_recipient: cfxdb.xbrmm.channel.IndexPayingChannelByRecipient[source]

Maps from XBR seller actor address to the currently active paying channel address for the given actor.

idx_payment_channel_by_actor: cfxdb.xbrmm.channel.IndexPaymentChannelByActor[source]

Maps from XBR (buyer) actor address to the currently active payment channel address for the given actor.

idx_payment_channel_by_delegate: cfxdb.xbrmm.channel.IndexPaymentChannelByDelegate[source]

Maps from XBR consumer delegate address to the currently active payment channel address for the given consumer delegate.

markets: cfxdb.xbr.market.Markets[source]

XBR markets.

members: cfxdb.xbr.member.Members[source]

XBR network members.

offers: cfxdb.xbrmm.offer.Offers[source]

Data encryption key offers.

paying_balances: cfxdb.xbrmm.channel.PayingChannelBalances[source]

Current off-chain balances within paying channels.

paying_channels: cfxdb.xbrmm.channel.PayingChannels[source]

Paying channels for XBR provider delegates.

payment_balances: cfxdb.xbrmm.channel.PaymentChannelBalances[source]

Current off-chain balances within payment channels.

payment_channels: cfxdb.xbrmm.channel.PaymentChannels[source]

Payment channels for XBR consumer delegates.

token_approvals: cfxdb.xbr.token.TokenApprovals[source]

Token approvals archive.

token_transfers: cfxdb.xbr.token.TokenTransfers[source]

Token transfers archive.

transactions: cfxdb.xbrmm.transaction.Transactions[source]