mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
27 lines
772 B
Swift
27 lines
772 B
Swift
//
|
|
//
|
|
// Constants.swift
|
|
// WidgetsCore
|
|
//
|
|
// Created by Eric Huang on 8/9/23.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct WidgetConstants {
|
|
public static let ethereumChain = "ETHEREUM"
|
|
public static let WETHAddress = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
|
|
public static let ethereumSymbol = "ETH"
|
|
public static let currencyUsd = "USD"
|
|
}
|
|
|
|
// Needed to handle different bundle ids, cannot map directly but handles arbitrary bundle ids that conform to the existing convention
|
|
func getBuildVariantString(bundleId: String) -> String {
|
|
let bundleComponents = bundleId.components(separatedBy: ".")
|
|
if (bundleComponents.count > 3 && (bundleComponents[3] == "dev" || bundleComponents[3] == "beta")) {
|
|
return bundleComponents[3]
|
|
} else {
|
|
return "prod"
|
|
}
|
|
}
|