Network¶
Blockchain¶
cfxdb.meta.Blockcfxdb.meta.Blockscfxdb.meta.TokenApprovalcfxdb.meta.TokenApprovalscfxdb.meta.TokenTransfercfxdb.meta.TokenTransfers
- class Attribute(from_fbs=None)[source]¶
Bases:
objectGeneric meta-data attributes that can be stored on objects in tables.
- property modified: datetime64¶
Timestamp when the attribute was last modified (or first created).
- property value¶
Arbitrary attribute value, stored CBOR-serialized.
- class Attributes(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapUuidUuidStringFlatBuffersGeneric meta-data attributes that can be stored on objects in tables. Primary key of this table is
(table_oid, object_oid, attribute).Map
zlmdb.MapUuidUuidStringFlatBuffersfrom(table_oid, object_oid, attribute)tocfxdb.meta.Attribute
- class Block(from_fbs=None)[source]¶
Bases:
objectBlockchain blocks. This table stores information about the series of Ethereum blocks that make up the blockchain.
- property timestamp: datetime64¶
Timestamp when record was inserted (Unix epoch time in ns).
- class Blocks(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapBytes32FlatBuffersBlockchain blocks processed.
Map
zlmdb.MapBytes32FlatBuffersfromblock_numbertocfxdb.xbr.Block
- class TokenApproval(from_fbs=None)[source]¶
Bases:
objectIERC20.TokenApprovalevent database object.
- class TokenApprovals(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapBytes32FlatBuffersPersisted token approvals archive.
Map
zlmdb.MapBytes32FlatBuffersfromtransaction_hashtocfxdb.xbr.TokenApproval
- class TokenTransfer(from_fbs=None)[source]¶
Bases:
objectIERC20.TokenTransferevent database object.
- class TokenTransfers(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapBytes32FlatBuffersPersisted token transfers archive.
Map
zlmdb.MapBytes32FlatBuffersfromtransaction_hashtocfxdb.xbr.TokenTransfer
Network¶
- class Member(from_fbs=None)[source]¶
Bases:
objectXBR Network member database object.
- property tid: bytes¶
Transaction hash of the transaction this change was committed to the blockchain under.
- property timestamp: datetime64¶
Database transaction time (epoch time in ns) of insert or last update.
- class Members(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapBytes20FlatBuffersXBR members by
member_adr.Map
zlmdb.MapBytes20FlatBuffersfrommember_adrtocfxdb.xbr.Member
- class Market(from_fbs=None)[source]¶
Bases:
objectXBRNetwork.Marketdatabase object.- property consumer_security: int¶
The amount of XBR tokens a XBR consumer joining the market must deposit.
- property created: int¶
Block number (on the blockchain) when the actor (originally) joined the market.
- property maker: bytes¶
The address of the XBR market maker that will run this market. The delegate of the market owner.
- property market_fee: int¶
The fee taken by the market (beneficiary is the market owner). The fee is a percentage of the revenue of the XBR Provider that receives XBR Token paid for transactions. The fee must be between 0% (inclusive) and 99% (inclusive), and is expressed as a fraction of the total supply of XBR tokens.
- property meta: str¶
The XBR market metadata published by the market owner. IPFS Multihash pointing to a RDF/Turtle file with market metadata.
- property provider_security: int¶
The amount of XBR tokens a XBR provider joining the market must deposit.
- property terms: str¶
The XBR market terms set by the market owner. IPFS Multihash pointing to a ZIP archive file with market documents.
- property tid: bytes¶
Transaction hash of the transaction this change was committed to the blockchain under.
- property timestamp: datetime64¶
Database transaction time (epoch time in ns) of insert or last update.
- class Markets(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapUuidFlatBuffersMarkets table, mapping from
market_id|UUIDtocfxdb.xbr.Market
- class IndexMarketsByOwner(slot=None, compress=None)[source]¶
Bases:
MapBytes20TimestampUuidMarkets-by-owner index with
(owner_adr|bytes[20], created|int) -> market_id|UUIDmapping.
- class IndexMarketsByActor(slot=None, compress=None)[source]¶
Bases:
MapBytes20TimestampUuidMarkets-by-actor index with
(actor_adr|bytes[20], joined|int) -> market_id|UUIDmapping.
- class Actor(from_fbs=None)[source]¶
Bases:
objectXBR Market Actors.
- property joined: int¶
Block number (on the blockchain) when the actor (originally) joined the market.
- property meta: str¶
The XBR market metadata published by the market owner. IPFS Multihash pointing to a RDF/Turtle file with market metadata.
- property tid: bytes¶
Transaction hash of the transaction this change was committed to the blockchain under.
- property timestamp: datetime64¶
Database transaction time (epoch time in ns) of insert or last update.
- class Actors(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapUuidBytes20Uint8FlatBuffersMarket actors table, mapping from
(market_id|UUID, actor_adr|bytes[20], actor_type|int)tocfxdb.xbr.Actor.
Account¶
- class Account(from_fbs=None)[source]¶
Bases:
objectXBR Network members.
- ACCOUNT_LEVEL = [0, 1, 2, 3, 4, 5]¶
Valid account levels.
- ACCOUNT_LEVEL_ACTIVE = 1¶
Account is active.
- ACCOUNT_LEVEL_BLOCKED = 5¶
Account is currently blocked and cannot current actively participate in the market.
- ACCOUNT_LEVEL_NONE = 0¶
Unset.
- ACCOUNT_LEVEL_PENALTY = 4¶
Account is subject to a temporary penalty.
- ACCOUNT_LEVEL_RETIRED = 3¶
Account is retired.
- ACCOUNT_LEVEL_VERIFIED = 2¶
Account is active and verified.
- WALLET_TYPE = [0, 1, 2, 3]¶
Valid account wallet types.
- WALLET_TYPE_FROM_STRING = {'hosted': 3, 'imported': 1, 'metamask': 2, 'none': 0}¶
Map of
wallet-type-nametowallet-type-code.
- WALLET_TYPE_HOSTED = 3¶
Account wallet in hosted (in this database).
- WALLET_TYPE_IMPORTED = 1¶
Account (primary) wallet was imported (the user provided the wallet public address).
- WALLET_TYPE_METAMASK = 2¶
Account (primary) wallet was imported (the user provided the wallet public address).
- WALLET_TYPE_NONE = 0¶
Wallet type unset (“null”).
- WALLET_TYPE_TO_STRING = {0: 'none', 1: 'imported', 2: 'metamask', 3: 'hosted'}¶
Map of
wallet-type-codetowallet-type-name.
- property created: datetime64¶
Timestamp (epoch time in ns) of initial creation of this record.
- property email_verified: datetime64¶
Timestamp (epoch time in ns) when the user email was (last) verified or 0 if unverified.
- property recovery_algo: datetime64¶
Timestamp (epoch time in ns) of initial creation of this record.
- class Accounts(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapUuidFlatBuffersDatabase table for XBR member accounts.
- class IndexAccountsByUsername(slot=None, compress=None)[source]¶
Bases:
MapStringUuidDatabase (index) table for username-to-account mapping.
- class IndexAccountsByEmail(slot=None, compress=None)[source]¶
Bases:
MapStringUuidDatabase (index) table for (user-)email-to-account mapping.
- class IndexAccountsByWallet(slot=None, compress=None)[source]¶
Bases:
MapBytes20UuidDatabase (index) table for (user-)wallet-to-account mapping.
VerifiedAction¶
- class VerifiedAction(from_fbs=None)[source]¶
Bases:
objectUser actions (such as “on-board new user”) yet to be verified. Actions to be verified are identified using their “Verification Action ID”. A verificatin email is sent to the (primary) email address of the user, and to verify, the user must click the verification link contained in the email. The verification link contains the verification action ID and code.
- VERIFICATION_STATUS = [0, 1, 2, 3, 4]¶
All valid verification status codes.
- VERIFICATION_STATUS_EXPIRED = 4¶
Action cannot be verified any longer since it has expired.
- VERIFICATION_STATUS_FAILED = 3¶
Verification has failed.
- VERIFICATION_STATUS_NONE = 0¶
Unset verification action status (“null”).
- VERIFICATION_STATUS_PENDING = 1¶
Verification is still pending.
- VERIFICATION_STATUS_VERIFIED = 2¶
Verification has been successfully completed.
- VERIFICATION_TYPE = [0, 1, 2, 3, 4, 5, 6]¶
All valid verification action types.
- VERIFICATION_TYPE_CREATE_CATALOG = 5¶
Verification action type for creation of a catalog via email verification.
- VERIFICATION_TYPE_CREATE_MARKET = 3¶
Verification action type for creation of new data market via email verification.
- VERIFICATION_TYPE_JOIN_MARKET = 4¶
Verification action type for joining an existing market via email verification.
- VERIFICATION_TYPE_LOGIN_MEMBER = 2¶
Verification action type for login of member (client) via email verification.
- VERIFICATION_TYPE_NONE = 0¶
Unset verification action type (“null”).
- VERIFICATION_TYPE_ONBOARD_MEMBER = 1¶
Verification action type for on-boarding new members via email verification.
- VERIFICATION_TYPE_PUBLISH_API = 5¶
Verification action type for publishing on API via email verification.
- property created: datetime64¶
Timestamp (epoch time in ns) of initial creation of this record.
- class VerifiedActions(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapUuidFlatBuffersDatabase table for verification/verified actions, eg on-boarding new XBR members.
UserKey¶
- class UserKey(from_fbs=None)[source]¶
Bases:
objectUser client (public) keys.
- property created: datetime64¶
Timestamp (epoch time in ns) of initial creation of this record.
- class UserKeys(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
MapBytes32FlatBuffersDatabase table for user client keys.
- class IndexUserKeyByAccount(slot=None, compress=None)[source]¶
Bases:
MapUuidTimestampBytes32Database (index) table for (member_oid, created) -> userkey mapping.