载入中...
搜索中...
未找到
RTSEconomy.cpp
浏览该文件的文档.
12 const eve::resource::CostSpec& cost, eve::transaction::ITransactionParticipant& effect, std::string transactionId) {
RTS composition adapter over the canonical EconomyLedger account.
eve::Result< eve::resource::Receipt > credit(const eve::resource::CostSpec &cost) override
Atomically credit all items immediately.
Definition EconomyLedgerResourceAccount.cpp:276
Provider-neutral resource account contract.
Definition ResourceAccount.h:316
eve::Result< eve::resource::Receipt > credit(const eve::resource::CostSpec &cost)
Credit the ledger through the common account protocol.
Definition RTSEconomy.cpp:18
eve::resource::IResourceAccount & account() noexcept
Return the account view for direct reservation/credit operations.
Definition RTSEconomy.cpp:9
eve::Result< eve::transaction::TransactionReceipt > pay(const eve::resource::CostSpec &cost, eve::transaction::ITransactionParticipant &effect, std::string transactionId={})
Atomically pay an RTS cost and publish its domain effect.
Definition RTSEconomy.cpp:11
RTSEconomyAdapter(eve::economy::EconomyLedger &ledger)
Bind this adapter to a caller-owned RTS economy ledger.
Definition RTSEconomy.cpp:7
static eve::Result< TransactionReceipt > execute(const TransactionContext &context, std::span< ITransactionParticipant * > participants)
Execute already prepared domain participants as one transaction.
Definition AtomicResourcePayment.cpp:13
Synchronous participant contract for one coordinator transaction.
Definition Transaction.h:128
Immutable context shared by every participant of one transaction.
Definition Transaction.h:30
Definition RTS.cpp:24