Package com.patelheet.capitalengine.api
Interface TransactionBuilder
public interface TransactionBuilder
Builds a multi-leg transaction that applies completely or not at all.
-
Method Summary
Modifier and TypeMethodDescriptionThe player who caused this, for audits.commit()Validates and applies in memory now; the future completes once the transaction is in the database.Destroys coins (from→ Mint).Creates coins (Mint →to).Moves coins between two accounts.Idempotency key, unique per plugin.Pays from the server: Treasury first, newly created coins for any shortfall, within the caller's limits.
-
Method Details
-
move
Moves coins between two accounts. Moving out of the Treasury is not allowed here; useserverPay(com.patelheet.capitalengine.api.Account, long). -
issue
Creates coins (Mint →to). Counts against the caller's issue limit. -
destroy
Destroys coins (from→ Mint). -
serverPay
Pays from the server: Treasury first, newly created coins for any shortfall, within the caller's limits. -
reference
Idempotency key, unique per plugin. A repeat commit fails withFailure.DUPLICATE_REFERENCE. -
actor
The player who caused this, for audits. Optional. -
commit
CompletableFuture<TxResult> commit()Validates and applies in memory now; the future completes once the transaction is in the database.
-