mktplace.transactions.market_place module

mktplace.transactions.market_place.register_transaction_types(journal)[source]
class mktplace.transactions.market_place.MarketPlaceGlobalStore(prevstore=None, storeinfo=None, readonly=False)[source]

Bases: journal.object_store.ObjectStore

clone_store(storeinfo=None, readonly=False)[source]

Create a new checkpoint that can be modified

Returns:a new checkpoint that extends the current store
Return type:KeyValueStore
i2n(objectid, objinfo=None)[source]

Convert an objectid into a canonical name representation

n2i(name, obj_type)[source]

Find an object by name

Parameters:obj_type – The object-type, Asset, Participant...
class mktplace.transactions.market_place.MarketPlaceTransactionMessage(minfo=None)[source]

Bases: journal.messages.transaction_message.TransactionMessage

MessageType = '/mktplace.transactions.MarketPlace/Transaction'
class mktplace.transactions.market_place.MarketPlaceTransaction(minfo=None)[source]

Bases: journal.transaction.UpdatesTransaction

A Transaction is a set of updates to be applied atomically to a journal. It has a unique identifier and a signature to validate the source.

TransactionTypeName = '/MarketPlaceTransaction'
TransactionStoreType

alias of MarketPlaceGlobalStore

MessageType

alias of MarketPlaceTransactionMessage

UpdateRegistry = {'UpdateAssetName': <class 'mktplace.transactions.asset_update.UpdateName'>, 'UnregisterExchangeOffer': <class 'mktplace.transactions.exchange_offer_update.Unregister'>, 'RegisterAccount': <class 'mktplace.transactions.account_update.Register'>, 'UpdateParticipantDescription': <class 'mktplace.transactions.participant_update.UpdateDescription'>, 'UnregisterAsset': <class 'mktplace.transactions.asset_update.Unregister'>, 'UpdateHoldingDescription': <class 'mktplace.transactions.holding_update.UpdateDescription'>, 'UpdateExchangeOfferName': <class 'mktplace.transactions.exchange_offer_update.UpdateName'>, 'UpdateAssetTypeName': <class 'mktplace.transactions.asset_type_update.UpdateName'>, 'UnregisterAccount': <class 'mktplace.transactions.account_update.Unregister'>, 'UpdateAssetTypeDescription': <class 'mktplace.transactions.asset_type_update.UpdateDescription'>, 'UpdateAccountDescription': <class 'mktplace.transactions.account_update.UpdateDescription'>, 'UpdateExchangeOfferDescription': <class 'mktplace.transactions.exchange_offer_update.UpdateDescription'>, 'UpdateHoldingName': <class 'mktplace.transactions.holding_update.UpdateName'>, 'RegisterParticipant': <class 'mktplace.transactions.participant_update.Register'>, 'RegisterAsset': <class 'mktplace.transactions.asset_update.Register'>, 'IncentiveUpdate': <class 'mktplace.transactions.incentive_update.IncentiveUpdate'>, 'RegisterExchangeOffer': <class 'mktplace.transactions.exchange_offer_update.Register'>, 'RegisterAssetType': <class 'mktplace.transactions.asset_type_update.Register'>, 'UnregisterAssetType': <class 'mktplace.transactions.asset_type_update.Unregister'>, 'RegisterHolding': <class 'mktplace.transactions.holding_update.Register'>, 'Exchange': <class 'mktplace.transactions.exchange_update.Exchange'>, 'UpdateAssetDescription': <class 'mktplace.transactions.asset_update.UpdateDescription'>, 'UpdateLiabilityName': <class 'mktplace.transactions.liability_update.UpdateName'>, 'UpdateAccountName': <class 'mktplace.transactions.account_update.UpdateName'>, 'UpdateLiabilityDescription': <class 'mktplace.transactions.liability_update.UpdateDescription'>, 'UpdateParticipantName': <class 'mktplace.transactions.participant_update.UpdateName'>, 'UpdateSellOfferName': <class 'mktplace.transactions.sell_offer_update.UpdateName'>, 'UnregisterLiability': <class 'mktplace.transactions.liability_update.Unregister'>, 'RegisterLiability': <class 'mktplace.transactions.liability_update.Register'>, 'UnregisterHolding': <class 'mktplace.transactions.holding_update.Unregister'>, 'UnregisterParticipant': <class 'mktplace.transactions.participant_update.Unregister'>, 'RegisterSellOffer': <class 'mktplace.transactions.sell_offer_update.Register'>, 'UnregisterSellOffer': <class 'mktplace.transactions.sell_offer_update.Unregister'>, 'UpdateSellOfferDescription': <class 'mktplace.transactions.sell_offer_update.UpdateDescription'>}
PaymentRegistry = {'/mktplace.transactions.Payment/PayFromHolding': <class 'mktplace.transactions.payment.PayFromHolding'>}
check_valid(store)[source]
add_to_pending()[source]

Predicate to note that a transaction should be added to pending transactions. In general incentive transactions should not be including in the pending transaction list.

get_updates()[source]
get_first_update()[source]
register_updates(registry)[source]
dump()[source]