EconomyVendorShop.V2 is the currency-aware shop layer for V2 economy systems.
It composes existing inventory containers with PriceTable.V2,
CurrencyLedger.V2, and ServerCurrencyAuthority.V2 instead of replacing the
legacy single-currency VendorShop.V2 contract.
Runtime Surface#
FV2EconomyVendorShopConfigstores vendor id, price table id, region, reputation currency, server authority id, currency source id, buy/sell toggles, limited-stock settings, reputation pricing settings, and stock refresh cadence.FV2EconomyVendorShopListingmaps listing ids to item/currency pairs and tracks limited stock, max stock, buy/sell permissions, and refresh timers.FV2EconomyVendorShopStateowns the vendor inventory container and listing state.FV2EconomyVendorShopQuotewraps aPriceTable.V2quote and applies reputation-based buy discounts or sell bonuses.FV2EconomyVendorShopTransactionResultreturns the updated shop, player inventory, player currency ledger, transferred instance ids, quote, and server currency authority result.
Transaction Rules#
- Vendor inventory uses
EV2InventoryContainerType::VendorStockand item instances move through the existing inventory container helpers. - Buy and sell quotes resolve through
PriceTable.V2, using the vendor region for regional prices. - Reputation pricing is opt-in and requires a reputation currency from
CurrencyDefinition.V2. - Currency changes are server-authoritative mutations applied through
ServerCurrencyAuthority.V2and logged intoCurrencyLedger.V2. - Buy/sell operations work on copies of shop, player inventory, and player ledger until price, inventory, and server authority checks pass.
- Limited stock decrements on buy, increments on accepted sell, and restocks on refresh timers.
Validation Commands#
Run these checks when touching economy vendor shop behavior:
bash
python3 V2/ue/Tools/check-v2-economy-vendor-shop.py
python3 V2/ue/Tools/check-v2-price-table.py
python3 V2/ue/Tools/check-v2-server-currency-authority.py
python3 V2/ue/Tools/check-v2-currency-ledger.py
python3 V2/ue/Tools/check-v2-currency-definition.py
python3 V2/ue/Tools/check-v2-vendor-shop.py
python3 V2/ue/Tools/check-v2-ci-workflow.py
python3 -m json.tool V2/ue/Content/V2/Gameplay/Economy/EconomyVendorShop_V2_Contract.json
python3 -m json.tool V2/ue/Build/Horde/v2-buildgraph-job.json
python3 V2/tools/validate-v2-docs.py