forked from decred/dcrdex
-
Notifications
You must be signed in to change notification settings - Fork 0
Integrating New Assets
bochinchero edited this page Oct 16, 2024
·
1 revision
Adding support for an asset is accomplished by writing a Go package with types that implement a particular set of interfaces, defined here and here. There are then two ways to import the asset backend into the server software.
- The package is compiled with -
buildmode=plugin
and imported at runtime by specifying the plugin in the server configuration. - The backend is added to the dcrdex repository, and imported directly at compile time.
With the exception of a small handful of assets which will be implemented during initial phases of DEX development, it is expected that development communities will release their own appropriately vetted plugins.
Existing implementations for supported assets are located here.