Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
cfxdb 25.12.2
Logo
cfxdb 25.12.2
  • Introduction
  • Installation
  • Getting Started
  • Programming Guide
    • Router Database
      • Realm Store
      • Cookie Store
    • Management Realms
      • Application Realms
      • Router Clusters
      • Web Clusters
      • Run-time Logs
    • Management Domain
      • Users and Organizations
      • Management Realms
    • Management Network
      • Network
      • Key Exchange
  • Release Notes
  • Changelog
  • Contributing
  • WAMP Projects Overview
  • AI Policy
    • AI Contributors Policy
    • AI Assistants Policy
    • Disclosure of Use of AI Assistance
    • AI-Assisted Work Audit Log
    • AI Disclosure Process
    • AI Audit Process Review
  • API Reference
    • cfxdb
      • cfxdb._exception
      • cfxdb.common
      • cfxdb.cookiestore
        • cfxdb.cookiestore._cookie
        • cfxdb.cookiestore._schema
      • cfxdb.exporter
      • cfxdb.gen
        • cfxdb.gen.KeyValue
        • cfxdb.gen.ObjRef
        • cfxdb.gen.arealm
          • cfxdb.gen.arealm.ApplicationRealm
          • cfxdb.gen.arealm.ApplicationRealmRole
          • cfxdb.gen.arealm.ApplicationRealmStatus
          • cfxdb.gen.arealm.AuthenticationMethod
          • cfxdb.gen.arealm.Credential
          • cfxdb.gen.arealm.MatchType
          • cfxdb.gen.arealm.Permission
          • cfxdb.gen.arealm.Principal
          • cfxdb.gen.arealm.Role
          • cfxdb.gen.arealm.UriCheckLevel
        • cfxdb.gen.cookiestore
          • cfxdb.gen.cookiestore.Cookie
        • cfxdb.gen.log
          • cfxdb.gen.log.IpVersion
          • cfxdb.gen.log.MNodeLog
          • cfxdb.gen.log.MNodeSession
          • cfxdb.gen.log.MNodeState
          • cfxdb.gen.log.MRealmRun
          • cfxdb.gen.log.MRealmState
          • cfxdb.gen.log.MWorkerLog
          • cfxdb.gen.log.MWorkerState
          • cfxdb.gen.log.MWorkerType
          • cfxdb.gen.log.MasterNodeUsage
          • cfxdb.gen.log.MasterNodeUsageStatus
          • cfxdb.gen.log.MasterRun
          • cfxdb.gen.log.MasterState
        • cfxdb.gen.meta
          • cfxdb.gen.meta.Attribute
          • cfxdb.gen.meta.Comment
          • cfxdb.gen.meta.Doc
          • cfxdb.gen.meta.DocFormat
          • cfxdb.gen.meta.Reaction
          • cfxdb.gen.meta.Tag
          • cfxdb.gen.meta.TagDefinition
        • cfxdb.gen.mrealm
          • cfxdb.gen.mrealm.ClusterNodeMembership
          • cfxdb.gen.mrealm.ClusterStatus
          • cfxdb.gen.mrealm.ManagementRealm
          • cfxdb.gen.mrealm.Node
          • cfxdb.gen.mrealm.RouterCluster
          • cfxdb.gen.mrealm.RouterWorkerGroup
          • cfxdb.gen.mrealm.RouterWorkerGroupClusterPlacement
          • cfxdb.gen.mrealm.WebCluster
          • cfxdb.gen.mrealm.WorkerGroupStatus
        • cfxdb.gen.oid_t
        • cfxdb.gen.realmstore
          • cfxdb.gen.realmstore.EncAlgo
          • cfxdb.gen.realmstore.EncSerializer
          • cfxdb.gen.realmstore.Event
          • cfxdb.gen.realmstore.Publication
          • cfxdb.gen.realmstore.Session
        • cfxdb.gen.reflection
          • cfxdb.gen.reflection.BaseType
          • cfxdb.gen.reflection.Enum
          • cfxdb.gen.reflection.EnumVal
          • cfxdb.gen.reflection.Field
          • cfxdb.gen.reflection.KeyValue
          • cfxdb.gen.reflection.Object
          • cfxdb.gen.reflection.RPCCall
          • cfxdb.gen.reflection.Schema
          • cfxdb.gen.reflection.Service
          • cfxdb.gen.reflection.Type
        • cfxdb.gen.user
          • cfxdb.gen.user.ActivationStatus
          • cfxdb.gen.user.ActivationToken
          • cfxdb.gen.user.ActivationType
          • cfxdb.gen.user.Organization
          • cfxdb.gen.user.OrganizationType
          • cfxdb.gen.user.User
          • cfxdb.gen.user.UserMrealmRoles
          • cfxdb.gen.user.UserOrganizationRoles
          • cfxdb.gen.user.UserRole
        • cfxdb.gen.xbr
          • cfxdb.gen.xbr.Actor
          • cfxdb.gen.xbr.ActorType
          • cfxdb.gen.xbr.Api
          • cfxdb.gen.xbr.Block
          • cfxdb.gen.xbr.Catalog
          • cfxdb.gen.xbr.Consent
          • cfxdb.gen.xbr.Market
          • cfxdb.gen.xbr.Member
          • cfxdb.gen.xbr.MemberLevel
          • cfxdb.gen.xbr.TokenApproval
          • cfxdb.gen.xbr.TokenBalance
          • cfxdb.gen.xbr.TokenTransfer
        • cfxdb.gen.xbrmm
          • cfxdb.gen.xbrmm.Channel
          • cfxdb.gen.xbrmm.ChannelBalance
          • cfxdb.gen.xbrmm.ChannelState
          • cfxdb.gen.xbrmm.ChannelType
          • cfxdb.gen.xbrmm.IPFSFile
          • cfxdb.gen.xbrmm.Offer
          • cfxdb.gen.xbrmm.Transaction
          • cfxdb.gen.xbrmm.TransactionState
          • cfxdb.gen.xbrmm.UserKey
        • cfxdb.gen.xbrnetwork
          • cfxdb.gen.xbrnetwork.Account
          • cfxdb.gen.xbrnetwork.AccountLevel
          • cfxdb.gen.xbrnetwork.UserKey
          • cfxdb.gen.xbrnetwork.VerificationStatus
          • cfxdb.gen.xbrnetwork.VerificationType
          • cfxdb.gen.xbrnetwork.VerifiedAction
          • cfxdb.gen.xbrnetwork.WalletType
      • cfxdb.globalschema
      • cfxdb.log
        • cfxdb.log.mnode_log
        • cfxdb.log.mnode_logs
        • cfxdb.log.mworker_log
        • cfxdb.log.mworker_logs
        • cfxdb.log.schema
      • cfxdb.meta
        • cfxdb.meta.attribute
        • cfxdb.meta.schema
      • cfxdb.mrealm
        • cfxdb.mrealm.application_realm
        • cfxdb.mrealm.arealm_role_association
        • cfxdb.mrealm.cluster
        • cfxdb.mrealm.cluster_node_membership
        • cfxdb.mrealm.credential
        • cfxdb.mrealm.management_realm
        • cfxdb.mrealm.node
        • cfxdb.mrealm.permission
        • cfxdb.mrealm.principal
        • cfxdb.mrealm.role
        • cfxdb.mrealm.router_cluster
        • cfxdb.mrealm.router_cluster_node_membership
        • cfxdb.mrealm.router_workergroup
        • cfxdb.mrealm.router_workergroup_cluster_placement
        • cfxdb.mrealm.types
        • cfxdb.mrealm.web_cluster
        • cfxdb.mrealm.web_cluster_node_membership
        • cfxdb.mrealm.web_service
      • cfxdb.mrealmschema
      • cfxdb.realmstore
        • cfxdb.realmstore._event
        • cfxdb.realmstore._publication
        • cfxdb.realmstore._schema
        • cfxdb.realmstore._session
      • cfxdb.tests
        • cfxdb.tests._util
        • cfxdb.tests.cookiestore
        • cfxdb.tests.realmstore
        • cfxdb.tests.user
        • cfxdb.tests.xbr
        • cfxdb.tests.xbrmm
      • cfxdb.tracing
      • cfxdb.usage
      • cfxdb.user
        • cfxdb.user.activation_token
        • cfxdb.user.activation_token_fbs
        • cfxdb.user.organization
        • cfxdb.user.organization_fbs
        • cfxdb.user.schema
        • cfxdb.user.user
        • cfxdb.user.user_fbs
        • cfxdb.user.user_mrealm_role
        • cfxdb.user.user_mrealm_role_fbs
      • cfxdb.xbr
        • cfxdb.xbr.actor
        • cfxdb.xbr.api
        • cfxdb.xbr.block
        • cfxdb.xbr.catalog
        • cfxdb.xbr.consent
        • cfxdb.xbr.market
        • cfxdb.xbr.member
        • cfxdb.xbr.schema
        • cfxdb.xbr.token
      • cfxdb.xbrmm
        • cfxdb.xbrmm.channel
        • cfxdb.xbrmm.ipfs_file
        • cfxdb.xbrmm.offer
        • cfxdb.xbrmm.schema
        • cfxdb.xbrmm.transaction
        • cfxdb.xbrmm.userkey
      • cfxdb.xbrnetwork
        • cfxdb.xbrnetwork.account
        • cfxdb.xbrnetwork.schema
        • cfxdb.xbrnetwork.userkey
        • cfxdb.xbrnetwork.vaction
Back to top
View this page
Edit this page

cfxdb.xbr.consent¶

Classes¶

Consent

XBRNetwork.Consent database object.

Consents

Consents table

IndexConsentByMemberAddress

Consent-by-member-address index with (member_adr|bytes[20], timestamp|int) -> consent_oid|UUID mapping.

_ConsentGen

Module Contents¶

class Consent(from_fbs=None)[source]¶

Bases: object

XBRNetwork.Consent database object.

__str__()[source]¶
_catalog_oid = None[source]¶
_consent = None[source]¶
_delegate = None[source]¶
_delegate_type = None[source]¶
_from_fbs = None[source]¶
_market_oid = None[source]¶
_member = None[source]¶
_service_prefix = None[source]¶
_signature = None[source]¶
_synced = None[source]¶
_tid = None[source]¶
_timestamp = None[source]¶
_updated = None[source]¶
build(builder)[source]¶
static cast(buf)[source]¶
property catalog_oid: uuid.UUID[source]¶

The unique ID of the catalog.

property consent: bool[source]¶

Whether we have the consent

property delegate: bytes[source]¶

The unique ID of the market.

property delegate_type: int[source]¶

The unique ID of the market.

property market_oid: uuid.UUID[source]¶

The unique ID of the market.

marshal() → dict[source]¶
property member: bytes[source]¶

The unique ID of the market.

property service_prefix: str[source]¶
property signature: bytes[source]¶

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

property synced: bool[source]¶

Whether the consent is synced with blockchain

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.

property updated: int[source]¶

The amount of XBR tokens a XBR provider joining the market must deposit.

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

Bases: zlmdb.MapUuidBytes20Bytes20Uint8UuidFlatBuffers

Consents table

class IndexConsentByMemberAddress(slot=None, compress=None)[source]¶

Bases: zlmdb.MapBytes20TimestampUuid

Consent-by-member-address index with (member_adr|bytes[20], timestamp|int) -> consent_oid|UUID mapping.

class _ConsentGen[source]¶

Bases: cfxdb.gen.xbr.Consent.Consent

CatalogOidAsBytes()[source]¶
DelegateAsBytes()[source]¶
classmethod GetRootAsConsent(buf, offset)[source]¶

This method is deprecated. Please switch to GetRootAs.

MarketOidAsBytes()[source]¶
MemberAsBytes()[source]¶
SignatureAsBytes()[source]¶
TidAsBytes()[source]¶
UpdatedAsBytes()[source]¶
_as_bytes(offet)[source]¶
Next
cfxdb.xbr.market
Previous
cfxdb.xbr.catalog
Copyright © 2020-2025, typedef int GmbH (Germany)
Made with Sphinx and @pradyunsg's Furo
On this page
  • cfxdb.xbr.consent
    • Classes
    • Module Contents
      • Consent
        • Consent.__str__()
        • Consent._catalog_oid
        • Consent._consent
        • Consent._delegate
        • Consent._delegate_type
        • Consent._from_fbs
        • Consent._market_oid
        • Consent._member
        • Consent._service_prefix
        • Consent._signature
        • Consent._synced
        • Consent._tid
        • Consent._timestamp
        • Consent._updated
        • Consent.build()
        • Consent.cast()
        • Consent.catalog_oid
        • Consent.consent
        • Consent.delegate
        • Consent.delegate_type
        • Consent.market_oid
        • Consent.marshal()
        • Consent.member
        • Consent.service_prefix
        • Consent.signature
        • Consent.synced
        • Consent.tid
        • Consent.timestamp
        • Consent.updated
      • Consents
      • IndexConsentByMemberAddress
      • _ConsentGen
        • _ConsentGen.CatalogOidAsBytes()
        • _ConsentGen.DelegateAsBytes()
        • _ConsentGen.GetRootAsConsent()
        • _ConsentGen.MarketOidAsBytes()
        • _ConsentGen.MemberAsBytes()
        • _ConsentGen.SignatureAsBytes()
        • _ConsentGen.TidAsBytes()
        • _ConsentGen.UpdatedAsBytes()
        • _ConsentGen._as_bytes()