cfxdb.xbr.market¶
Classes¶
Markets-by-actor index with |
|
Markets-by-maker index with |
|
Markets-by-owner index with |
|
|
|
Markets table, mapping from |
|
Expand methods on the class code generated by flatc. |
Module Contents¶
- class IndexMarketsByActor(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20TimestampUuidMarkets-by-actor index with
(actor_adr|bytes[20], joined|int) -> market_id|UUIDmapping.
- class IndexMarketsByMaker(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20UuidMarkets-by-maker index with
maker_adr|bytes[20] -> market_id|UUIDmapping.
- class IndexMarketsByOwner(slot=None, compress=None)[source]¶
Bases:
zlmdb.MapBytes20TimestampUuidMarkets-by-owner index with
(owner_adr|bytes[20], created|int) -> market_id|UUIDmapping.
- class Market(from_fbs=None)[source]¶
Bases:
objectXBRNetwork.Marketdatabase object.- property consumer_security: int[source]¶
The amount of XBR tokens a XBR consumer joining the market must deposit.
- property created: int[source]¶
Block number (on the blockchain) when the actor (originally) joined the market.
- property maker: bytes[source]¶
The address of the XBR market maker that will run this market. The delegate of the market owner.
- property market_fee: int[source]¶
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[source]¶
The XBR market metadata published by the market owner. IPFS Multihash pointing to a RDF/Turtle file with market metadata.
- property provider_security: int[source]¶
The amount of XBR tokens a XBR provider joining the market must deposit.
- property signature: bytes[source]¶
When signed off-chain and submitted via
XBRMarket.createMarketFor.
- property terms: str[source]¶
The XBR market terms set by the market owner. IPFS Multihash pointing to a ZIP archive file with market documents.
- 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.
- class Markets(slot=None, compress=None, build=None, cast=None)[source]¶
Bases:
zlmdb.MapUuidFlatBuffersMarkets table, mapping from
market_id|UUIDtocfxdb.xbr.Market
- class _MarketGen[source]¶
Bases:
cfxdb.gen.xbr.Market.MarketExpand methods on the class code generated by flatc.
FIXME: come up with a PR for flatc to generated this stuff automatically.