Strip remaining cakewallet.com endpoints + delete Monerocom assets

- Stub dashboard bulletin (was polling service-api.cakewallet.com); returns
  empty ServicesResponse until we stand up our own notice service.
- Repoint changelog 'View more info' link to hash.boats (modal trigger
  remains disabled; this is just for when we re-enable it).
- Replace exchange-helper.cakewallet.com with exchange-helper.such.software
  in moonpay/robinhood/onramper providers. Buy providers are still dormant
  (empty getAvailable*ProviderTypes); URL change is a fail-loudly placeholder
  to ensure we stand up our own proxy before re-enabling any of them.
- Delete Monerocom_Terms_of_Use.txt and Monerocom_Release_Notes.txt — these
  were Cake's Monero.com brand variant, never used by Hash Wallet. Collapse
  the isMoneroOnly branch in disclaimer_page.dart to always load
  Terms_of_Use.txt.
- Add docs/links.md (gitignored) inventorying all public-facing URLs and
  emails shipped in the binary.
This commit is contained in:
jwinterm
2026-05-16 19:55:53 -04:00
parent 9e5593011a
commit 9296e071f5
9 changed files with 17 additions and 232 deletions
@@ -1466,42 +1466,15 @@ abstract class DashboardViewModelBase with Store {
}
Future<ServicesResponse> _getServicesStatus() async {
try {
if (isEnabledBulletinAction) {
final res = await ProxyWrapper().get(
clearnetUri: Uri.https(
"service-api.cakewallet.com",
"/v1/active-notices",
{'key': secrets.fiatApiKey},
),
onionUri: Uri.http(
"jpirgl4lrwzjgdqj2nsv3g7twhp2efzty5d3cnypktyczzqfc5qcwwyd.onion",
"/v1/active-notices",
{'key': secrets.fiatApiKey},
),
);
if (res.statusCode < 200 || res.statusCode >= 300) {
throw res.body;
}
final oldSha = sharedPreferences.getString(PreferencesKey.serviceStatusShaKey);
final hash = await Cryptography.instance.sha256().hash(utf8.encode(res.body));
final currentSha = bytesToHex(hash.bytes);
final hasUpdates = oldSha != currentSha;
return ServicesResponse.fromJson(
json.decode(res.body) as Map<String, dynamic>,
hasUpdates,
currentSha,
);
} else {
return ServicesResponse([], false, '');
}
} catch (e) {
return ServicesResponse([], false, '');
}
// Hash Wallet: bulletin endpoint stubbed. The original implementation
// polled Cake's service-api.cakewallet.com/v1/active-notices (gated by
// the Cake-issued fiatApiKey) to surface push notices to all wallets.
// We don't run our own bulletin service yet. To restore: stand up an
// equivalent endpoint (likely under hash.boats or such.software) that
// returns the same JSON shape as service_status.dart expects, and put
// the network call back in place. Keep the user-facing toggle alive
// for forward-compat with the settings UI.
return ServicesResponse([], false, '');
}
String getTransactionType(TransactionInfo tx) {