cfxdb.xbrnetwork.vaction

Classes

VerificationType

VerifiedAction

User actions (such as "on-board new user") yet to be verified. Actions to be verified are

VerifiedActions

Database table for verification/verified actions, eg on-boarding new XBR members.

_VerifiedActionGen

Expand methods on the class code generated by flatc.

Module Contents

class VerificationType[source]

Bases: object

CREATE_MARKET_EMAIL = 3[source]

Member joined a market, using verification via member primary email.

MEMBER_LOGIN_EMAIL = 2[source]

Member created a market, using verification via member primary email.

MEMBER_ONBOARD_EMAIL = 1[source]

Member onboarded, using verification via member primary email.

NONE = 0[source]

Unset

class VerifiedAction(from_fbs=None)[source]

Bases: object

User 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[source]

All valid verification status codes.

VERIFICATION_STATUS_EXPIRED = 4[source]

Action cannot be verified any longer since it has expired.

VERIFICATION_STATUS_FAILED = 3[source]

Verification has failed.

VERIFICATION_STATUS_NONE = 0[source]

Unset verification action status (“null”).

VERIFICATION_STATUS_PENDING = 1[source]

Verification is still pending.

VERIFICATION_STATUS_VERIFIED = 2[source]

Verification has been successfully completed.

VERIFICATION_TYPE[source]

All valid verification action types.

VERIFICATION_TYPE_CREATE_CATALOG = 5[source]

Verification action type for creation of a catalog via email verification.

VERIFICATION_TYPE_CREATE_MARKET = 3[source]

Verification action type for creation of new data market via email verification.

VERIFICATION_TYPE_JOIN_MARKET = 4[source]

Verification action type for joining an existing market via email verification.

VERIFICATION_TYPE_LOGIN_MEMBER = 2[source]

Verification action type for login of member (client) via email verification.

VERIFICATION_TYPE_NONE = 0[source]

Unset verification action type (“null”).

VERIFICATION_TYPE_ONBOARD_MEMBER = 1[source]

Verification action type for on-boarding new members via email verification.

VERIFICATION_TYPE_PUBLISH_API = 5[source]

Verification action type for publishing on API via email verification.

__str__()[source]
_created = None[source]
_from_fbs = None[source]
_oid = None[source]
_vcode = None[source]
_verified_data = None[source]
_verified_oid = None[source]
_vstatus = None[source]
_vtype = None[source]
build(builder)[source]
static cast(buf)[source]
property created: numpy.datetime64[source]

Timestamp (epoch time in ns) of initial creation of this record.

marshal()[source]
property oid: uuid.UUID[source]

Globally unique and static ID of action.

property vcode: str[source]

Verification code sent.

property verified_data: dict[source]

Action data, serialized in CBOR.

property verified_oid: uuid.UUID[source]

ID of object of verified action.

property vstatus: int[source]

Verification type.

property vtype: int[source]

Verification type.

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

Bases: zlmdb.MapUuidFlatBuffers

Database table for verification/verified actions, eg on-boarding new XBR members.

static parse(data)[source]
Parameters:

data

Returns:

class _VerifiedActionGen[source]

Bases: cfxdb.gen.xbrnetwork.VerifiedAction.VerifiedAction

Expand methods on the class code generated by flatc.

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

classmethod GetRootAsVerifiedAction(buf, offset)[source]

This method is deprecated. Please switch to GetRootAs.

OidAsBytes()[source]
VerifiedDataAsBytes()[source]
VerifiedOidAsBytes()[source]