cfxdb.xbrnetwork.account¶
Classes¶
XBR Network members. |
|
Database table for XBR member accounts. |
|
Database (index) table for (user-)email-to-account mapping. |
|
Database (index) table for username-to-account mapping. |
|
Database (index) table for (user-)wallet-to-account mapping. |
|
Expand methods on the class code generated by flatc. |
Module Contents¶
- class Account(from_fbs=None)[source]¶
Bases:
objectXBR Network members.
- ACCOUNT_LEVEL_BLOCKED = 5[source]¶
Account is currently blocked and cannot current actively participate in the market.
- WALLET_TYPE_IMPORTED = 1[source]¶
Account (primary) wallet was imported (the user provided the wallet public address).
- WALLET_TYPE_METAMASK = 2[source]¶
Account (primary) wallet was imported (the user provided the wallet public address).
- property created: numpy.datetime64[source]¶
Timestamp (epoch time in ns) of initial creation of this record.
- property email_verified: numpy.datetime64[source]¶
Timestamp (epoch time in ns) when the user email was (last) verified or 0 if unverified.
- property eula: str[source]¶
EULA the member agreed to when joining the market (IPFS Multihash string).
- property recovery_algo: numpy.datetime64[source]¶
Timestamp (epoch time in ns) of initial creation of this record.
- property recovery_data: bytes[source]¶
Recovery backup data (usually encrypted according to the account backup recovery algo in use).
- property registered: int[source]¶
Block number (on the blockchain) when the member (originally) registered.
- class Accounts(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersDatabase table for XBR member accounts.
- class IndexAccountsByEmail(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidDatabase (index) table for (user-)email-to-account mapping.
- class IndexAccountsByUsername(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapStringUuidDatabase (index) table for username-to-account mapping.
- class IndexAccountsByWallet(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20UuidDatabase (index) table for (user-)wallet-to-account mapping.
- class _AccountGen[source]¶
Bases:
cfxdb.gen.xbrnetwork.Account.AccountExpand methods on the class code generated by flatc.
FIXME: come up with a PR for flatc to generated this stuff automatically.