aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/index.js')
-rw-r--r--src/features/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/features/index.js b/src/features/index.js
index 583334f..e34de3d 100644
--- a/src/features/index.js
+++ b/src/features/index.js
@@ -6,6 +6,7 @@
import { giftsFeature } from './gifts.js';
import { arkFeature } from './ark.js';
+import { namesFeature } from './names.js';
import { zapsFeature } from './zaps.js';
import { syncFeature } from './sync.js';
import { nwcFeature } from './nwc.js';
@@ -15,6 +16,8 @@ import { nwcFeature } from './nwc.js';
// after ark so an npub prefers an instant Ark zap and only falls through to a
// Lightning zap when Ark can't serve it. nwc sits after ark because it
// drives ark's headless pay/balance seam.
+// names sits between ark and zaps: a pasted user@domain resolves over DNS
+// (BIP-353) before the zaps feature treats it as a plain Lightning address.
export function buildFeatures(ctx) {
- return [giftsFeature(ctx), arkFeature(ctx), zapsFeature(ctx), nwcFeature(ctx), syncFeature(ctx)];
+ return [giftsFeature(ctx), arkFeature(ctx), namesFeature(ctx), zapsFeature(ctx), nwcFeature(ctx), syncFeature(ctx)];
}