Every anchor must define a stellar.toml file to describe the anchors's supported assets, any validators that are run, and other meta data.
Simply add the SEP to your POLARIS_ACTIVE_SEPS
list in settings.py: :
POLARIS_ACTIVE_SEPS = ["sep-1", "sep-10", ...]
Static files should be served by a professional-grade static file server in production. Specifically, anchors' static file server should be configured to serve the SEP-1 TOML file at the .well-known/stellar.toml path. However, if the web server is not configured to serve the TOML file, Polaris provides two approaches for defining a stellar.toml file.
If defined, Polaris locates an anchor's stellar.toml file under the app's static/polaris directory. For example, the SDF's reference server takes this approach.
Anchors can also add a local-stellar.toml file for Polaris to use when LOCAL_MODE
is True
.
If no static stellar.toml file is defined, Polaris uses the registered TOML function. Polaris provides default attributes, but anchors must augment or replace them in order to fully support the SEP services activated on the Polaris server.
polaris.integrations.get_stellar_toml