mirror of
https://github.com/luxfi/wallet.git
synced 2026-07-27 03:37:41 +00:00
@luxfi/wallet-analytics mirrors the abstraction the parallel exchange Blue
landed at ~/work/lux/exchange/pkgs/utilities/src/telemetry/analytics/backend.ts.
No third-party SDK is imported by this module — delivery is owned by an
AnalyticsDriver registered via setAnalyticsDriver(...). Hanzo Insights is
the intended default driver; white-labels swap drivers at boot.
Public surface (init/track/identify/Identify/getUserId/setDeviceId/flush)
matches what wallet call sites already expect, so swapping providers does
not require diff-ing 200+ sendAnalyticsEvent(...) sites.
Stripped from package.json (zero direct provider deps now in our shipped
manifests):
apps/extension: @datadog/browser-rum
apps/mobile: @amplitude/analytics-react-native
@datadog/mobile-react-native
@datadog/mobile-react-navigation
@datadog/datadog-ci
Both apps now declare workspace deps on @luxfi/wallet-analytics and
@luxfi/wallet-brand. The 6 source files that still call datadogRum / DdSdk
directly are upstream-shaped and broken on other axes (`@universe/*`,
`wallet/*` referenced as bare specifiers); they will be replaced with
@luxfi/wallet-analytics calls during the apps refactor.
12 lines
234 B
JSON
12 lines
234 B
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"include": ["src/**/*.ts"],
|
|
"exclude": ["node_modules"],
|
|
"compilerOptions": {
|
|
"moduleResolution": "Bundler",
|
|
"lib": ["dom", "esnext"],
|
|
"noEmit": true,
|
|
"types": []
|
|
}
|
|
}
|