Centralized Bank

Contents

Centralized Bank#

Economy services leverages a concept of a central bank that provides a way to track resources as they enter the economy and are traded out to players and npcs. The central bank is represented as a Persona in the system that will have it’s own inventory. The bank leverages configuration bank:name to retrieve or create a Persona.

Populating#

The central bank is populated by leveraging a one sided transactions, with the bank uid as the to. This transactions is only allowed from roles configured in trusted_roles. The central bank is also auto populated on resource creation if the following configuration is set bank:autoPopulate, turned on by default.