From e7c7071860577394cc55d506f1545450f53d9b91 Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 12:53:01 -0300
Subject: [PATCH 1/7] chore: added polygon variant
---
dapps/pos-app/.env.example | 3 +-
dapps/pos-app/app/_layout.tsx | 1 +
dapps/pos-app/app/amount.tsx | 10 ++++--
dapps/pos-app/app/index.tsx | 2 ++
dapps/pos-app/app/payment-success.tsx | 12 ++++++-
dapps/pos-app/assets/images/polygon_logo.png | Bin 0 -> 4132 bytes
dapps/pos-app/components/secondary-logo.tsx | 33 +++++++++++++++++++
dapps/pos-app/constants/theme.ts | 6 ++++
dapps/pos-app/package.json | 2 ++
dapps/pos-app/utils/navigation.ts | 7 +++-
10 files changed, 70 insertions(+), 6 deletions(-)
create mode 100644 dapps/pos-app/assets/images/polygon_logo.png
create mode 100644 dapps/pos-app/components/secondary-logo.tsx
diff --git a/dapps/pos-app/.env.example b/dapps/pos-app/.env.example
index 3d0380f2..deac4661 100644
--- a/dapps/pos-app/.env.example
+++ b/dapps/pos-app/.env.example
@@ -1,3 +1,4 @@
EXPO_PUBLIC_PROJECT_ID=""
EXPO_PUBLIC_SENTRY_DSN=""
-SENTRY_AUTH_TOKEN=""
\ No newline at end of file
+SENTRY_AUTH_TOKEN=""
+EXPO_PUBLIC_VARIANT="default" # or "polygon"
\ No newline at end of file
diff --git a/dapps/pos-app/app/_layout.tsx b/dapps/pos-app/app/_layout.tsx
index 653084fc..19279d89 100644
--- a/dapps/pos-app/app/_layout.tsx
+++ b/dapps/pos-app/app/_layout.tsx
@@ -37,6 +37,7 @@ import { WagmiProvider } from "wagmi";
Sentry.init({
dsn: process.env.EXPO_PUBLIC_SENTRY_DSN,
sendDefaultPii: false,
+ environment: process.env.EXPO_PUBLIC_VARIANT ?? "default",
// Enable Logs
enableLogs: __DEV__ ? true : false,
diff --git a/dapps/pos-app/app/amount.tsx b/dapps/pos-app/app/amount.tsx
index 0f1b212f..4b1f3e01 100644
--- a/dapps/pos-app/app/amount.tsx
+++ b/dapps/pos-app/app/amount.tsx
@@ -1,5 +1,6 @@
import { Button } from "@/components/button";
import { NumericKeyboard } from "@/components/numeric-keyboard";
+import { SecondaryLogo } from "@/components/secondary-logo";
import { ThemedText } from "@/components/themed-text";
import { BorderRadius, Spacing } from "@/constants/spacing";
import { useTheme } from "@/hooks/use-theme-color";
@@ -125,11 +126,14 @@ export default function AmountScreen() {
]}
>
{isValid ? `Charge $${watchAmount}` : "Enter amount"}
+
);
}
@@ -163,7 +167,7 @@ const styles = StyleSheet.create({
alignItems: "center",
borderRadius: BorderRadius["5"],
},
- buttonText: {
- fontSize: 18,
+ secondaryLogo: {
+ marginTop: Spacing["spacing-5"],
},
});
diff --git a/dapps/pos-app/app/index.tsx b/dapps/pos-app/app/index.tsx
index 1f10c383..aaee605f 100644
--- a/dapps/pos-app/app/index.tsx
+++ b/dapps/pos-app/app/index.tsx
@@ -1,4 +1,5 @@
import { Button } from "@/components/button";
+import { SecondaryLogo } from "@/components/secondary-logo";
import { ThemedText } from "@/components/themed-text";
import { BorderRadius, Spacing } from "@/constants/spacing";
import { useTheme } from "@/hooks/use-theme-color";
@@ -55,6 +56,7 @@ export default function HomeScreen() {
/>
Settings
+
);
}
diff --git a/dapps/pos-app/app/payment-success.tsx b/dapps/pos-app/app/payment-success.tsx
index 0c0352b1..9b91fa07 100644
--- a/dapps/pos-app/app/payment-success.tsx
+++ b/dapps/pos-app/app/payment-success.tsx
@@ -10,6 +10,7 @@ import Animated, {
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { Button } from "@/components/button";
+import { SecondaryLogo } from "@/components/secondary-logo";
import { ThemedText } from "@/components/themed-text";
import { BorderRadius, Spacing } from "@/constants/spacing";
import { useDisableBackButton } from "@/hooks/use-disable-back-button";
@@ -31,6 +32,10 @@ export default function PaymentSuccessScreen() {
const params = useLocalSearchParams();
const insets = useSafeAreaInsets();
const { amount } = params;
+ const backgroundColor =
+ process.env.EXPO_PUBLIC_VARIANT === "polygon"
+ ? Theme["polygon-accent"]
+ : Theme["text-success"];
const circleScale = useSharedValue(1);
const contentOpacity = useSharedValue(0);
@@ -62,7 +67,7 @@ export default function PaymentSuccessScreen() {
style={[
styles.circle,
{
- backgroundColor: Theme["text-success"],
+ backgroundColor,
width: initialCircleSize,
height: initialCircleSize,
borderRadius: initialCircleSize / 2,
@@ -122,6 +127,7 @@ export default function PaymentSuccessScreen() {
+
);
@@ -172,4 +178,8 @@ const styles = StyleSheet.create({
fontSize: 18,
lineHeight: 20,
},
+ secondaryLogo: {
+ marginTop: Spacing["spacing-5"],
+ alignSelf: "center",
+ },
});
diff --git a/dapps/pos-app/assets/images/polygon_logo.png b/dapps/pos-app/assets/images/polygon_logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..a51d411e37ed26c94c03e04a7beb947fc599e7e9
GIT binary patch
literal 4132
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
+}
+
+export function SecondaryLogo({ tintColor, style }: SecondaryLogoProps) {
+ const Theme = useTheme();
+ const [assets] = useAssets([require("@/assets/images/polygon_logo.png")]);
+ const showLogo = process.env.EXPO_PUBLIC_VARIANT === "polygon";
+ const _tintColor = tintColor ?? Theme["text-secondary"];
+
+ return showLogo ? (
+
+ ) : null;
+}
+
+const styles = StyleSheet.create({
+ logo: {
+ marginTop: Spacing["spacing-2"],
+ width: 92,
+ height: 18,
+ },
+});
diff --git a/dapps/pos-app/constants/theme.ts b/dapps/pos-app/constants/theme.ts
index ed6ccd18..62df4486 100644
--- a/dapps/pos-app/constants/theme.ts
+++ b/dapps/pos-app/constants/theme.ts
@@ -52,6 +52,9 @@ export const Colors = {
"border-success": "#30A46B",
"border-error": "#DF4A34",
"border-warning": "#F3A13F",
+
+ // Custom colors
+ "polygon-accent": "#6C00F6",
},
dark: {
// Foreground colors
@@ -104,6 +107,9 @@ export const Colors = {
"border-success": "#30A46B",
"border-error": "#DF4A34",
"border-warning": "#F3A13F",
+
+ // Custom colors
+ "polygon-accent": "#6C00F6",
},
};
diff --git a/dapps/pos-app/package.json b/dapps/pos-app/package.json
index a892b5ea..5f63fcfc 100644
--- a/dapps/pos-app/package.json
+++ b/dapps/pos-app/package.json
@@ -7,6 +7,8 @@
"android": "expo run:android",
"android:pos": "expo run:android --port 8082",
"android:build": "cd android && ./gradlew assembleRelease",
+ "android:build:default": "cp .env.default .env && npm run android:build",
+ "android:build:polygon": "cp .env.polygon .env && npm run android:build",
"prebuild": "expo prebuild",
"postprebuild": "node scripts/setup-secrets.js",
"postinstall": "patch-package",
diff --git a/dapps/pos-app/utils/navigation.ts b/dapps/pos-app/utils/navigation.ts
index a14f6155..50a57fa2 100644
--- a/dapps/pos-app/utils/navigation.ts
+++ b/dapps/pos-app/utils/navigation.ts
@@ -8,7 +8,12 @@ export const shouldCenterHeaderTitle = (routeName: string) => {
export const getHeaderBackgroundColor = (
routeName: string,
): keyof typeof Colors.light | keyof typeof Colors.dark => {
- return routeName === "payment-success" ? "text-success" : "bg-primary";
+ if (routeName === "payment-success") {
+ return process.env.EXPO_PUBLIC_VARIANT === "polygon"
+ ? "polygon-accent"
+ : "text-success";
+ }
+ return "bg-primary";
};
export const getHeaderTintColor = (
From e51cc492077583d51d7b0eccde0e332eb28ac736 Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 12:57:30 -0300
Subject: [PATCH 2/7] chore: changed secondary logo color on success screen
---
dapps/pos-app/app/payment-success.tsx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dapps/pos-app/app/payment-success.tsx b/dapps/pos-app/app/payment-success.tsx
index 9b91fa07..492d7d16 100644
--- a/dapps/pos-app/app/payment-success.tsx
+++ b/dapps/pos-app/app/payment-success.tsx
@@ -127,7 +127,10 @@ export default function PaymentSuccessScreen() {
-
+
);
From 1df2362899bc0755990649f6a3aa0cf004626d94 Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 13:49:38 -0300
Subject: [PATCH 3/7] chore: use light theme on variant payment success,
changed wc deps
---
dapps/pos-app/app/payment-success.tsx | 10 +-
dapps/pos-app/constants/theme.ts | 8 +-
dapps/pos-app/package-lock.json | 358 ++++++--------------------
dapps/pos-app/package.json | 20 +-
dapps/pos-app/utils/navigation.ts | 10 +-
5 files changed, 112 insertions(+), 294 deletions(-)
diff --git a/dapps/pos-app/app/payment-success.tsx b/dapps/pos-app/app/payment-success.tsx
index 492d7d16..74caba88 100644
--- a/dapps/pos-app/app/payment-success.tsx
+++ b/dapps/pos-app/app/payment-success.tsx
@@ -28,14 +28,14 @@ const finalScale = Math.ceil(diagonalLength / initialCircleSize) + 2;
export default function PaymentSuccessScreen() {
useDisableBackButton();
- const Theme = useTheme();
+ const isVariant = process.env.EXPO_PUBLIC_VARIANT === "polygon";
+ const Theme = useTheme(isVariant ? "light" : undefined);
const params = useLocalSearchParams();
const insets = useSafeAreaInsets();
const { amount } = params;
- const backgroundColor =
- process.env.EXPO_PUBLIC_VARIANT === "polygon"
- ? Theme["polygon-accent"]
- : Theme["text-success"];
+ const backgroundColor = isVariant
+ ? Theme["polygon-payment-success"]
+ : Theme["bg-payment-success"];
const circleScale = useSharedValue(1);
const contentOpacity = useSharedValue(0);
diff --git a/dapps/pos-app/constants/theme.ts b/dapps/pos-app/constants/theme.ts
index 62df4486..e6889880 100644
--- a/dapps/pos-app/constants/theme.ts
+++ b/dapps/pos-app/constants/theme.ts
@@ -32,6 +32,7 @@ export const Colors = {
"bg-success": "rgba(48, 164, 107, 0.2)",
"bg-error": "rgba(223, 74, 52, 0.2)",
"bg-warning": "rgba(243, 161, 63, 0.2)",
+ "bg-payment-success": "#30A46B",
// Text colors
"text-primary": "#202020",
@@ -54,7 +55,8 @@ export const Colors = {
"border-warning": "#F3A13F",
// Custom colors
- "polygon-accent": "#6C00F6",
+ "polygon-payment-success": "#6C00F6",
+ "polygon-payment-success-header": "#FFFFFF",
},
dark: {
// Foreground colors
@@ -87,6 +89,7 @@ export const Colors = {
"bg-success": "rgba(48, 164, 107, 0.2)",
"bg-error": "rgba(223, 74, 52, 0.2)",
"bg-warning": "rgba(243, 161, 63, 0.2)",
+ "bg-payment-success": "#30A46B",
// Text colors
"text-primary": "#FFFFFF",
@@ -109,7 +112,8 @@ export const Colors = {
"border-warning": "#F3A13F",
// Custom colors
- "polygon-accent": "#6C00F6",
+ "polygon-payment-success": "#6C00F6",
+ "polygon-payment-success-header": "#FFFFFF",
},
};
diff --git a/dapps/pos-app/package-lock.json b/dapps/pos-app/package-lock.json
index 8b21fc1a..95d66e2a 100644
--- a/dapps/pos-app/package-lock.json
+++ b/dapps/pos-app/package-lock.json
@@ -19,10 +19,10 @@
"@sentry/react-native": "~7.2.0",
"@shopify/react-native-skia": "2.2.12",
"@tanstack/react-query": "5.90.5",
- "@walletconnect/core": "2.23.0",
- "@walletconnect/pos-client": "0.0.0-canary.6",
- "@walletconnect/react-native-compat": "2.23.0",
- "@walletconnect/sign-client": "2.23.0",
+ "@walletconnect/core": "2.23.1-canary-init.6",
+ "@walletconnect/pos-client": "2.23.1-canary-init.6",
+ "@walletconnect/react-native-compat": "2.23.1-canary-init.6",
+ "@walletconnect/sign-client": "2.23.1-canary-init.6",
"expo": "^54.0.23",
"expo-application": "~7.0.7",
"expo-asset": "~12.0.9",
@@ -4339,40 +4339,6 @@
"viem": ">=2.37.9"
}
},
- "node_modules/@reown/appkit-controllers/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@reown/appkit-controllers/node_modules/@walletconnect/universal-provider": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.0.tgz",
- "integrity": "sha512-3ZEqAsbtCbk+CV0ZLpy7Qzc04KXEnrW4zCboZ+gkkC0ey4H62x9h23kBOIrU9qew6orjA7D5gg0ikRC2Up1lbw==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/jsonrpc-http-connection": "1.0.8",
- "@walletconnect/jsonrpc-provider": "1.0.14",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/jsonrpc-utils": "1.0.8",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "es-toolkit": "1.39.3",
- "events": "3.3.0"
- }
- },
"node_modules/@reown/appkit-pay": {
"version": "1.8.11",
"resolved": "https://registry.npmjs.org/@reown/appkit-pay/-/appkit-pay-1.8.11.tgz",
@@ -4458,40 +4424,6 @@
"react-native": ">=0.72"
}
},
- "node_modules/@reown/appkit-react-native/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@reown/appkit-react-native/node_modules/@walletconnect/universal-provider": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.0.tgz",
- "integrity": "sha512-3ZEqAsbtCbk+CV0ZLpy7Qzc04KXEnrW4zCboZ+gkkC0ey4H62x9h23kBOIrU9qew6orjA7D5gg0ikRC2Up1lbw==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/jsonrpc-http-connection": "1.0.8",
- "@walletconnect/jsonrpc-provider": "1.0.14",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/jsonrpc-utils": "1.0.8",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "es-toolkit": "1.39.3",
- "events": "3.3.0"
- }
- },
"node_modules/@reown/appkit-scaffold-ui": {
"version": "1.8.11",
"resolved": "https://registry.npmjs.org/@reown/appkit-scaffold-ui/-/appkit-scaffold-ui-1.8.11.tgz",
@@ -4946,40 +4878,6 @@
"valtio": "2.1.7"
}
},
- "node_modules/@reown/appkit-utils/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@reown/appkit-utils/node_modules/@walletconnect/universal-provider": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.0.tgz",
- "integrity": "sha512-3ZEqAsbtCbk+CV0ZLpy7Qzc04KXEnrW4zCboZ+gkkC0ey4H62x9h23kBOIrU9qew6orjA7D5gg0ikRC2Up1lbw==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/jsonrpc-http-connection": "1.0.8",
- "@walletconnect/jsonrpc-provider": "1.0.14",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/jsonrpc-utils": "1.0.8",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "es-toolkit": "1.39.3",
- "events": "3.3.0"
- }
- },
"node_modules/@reown/appkit-wagmi-react-native": {
"version": "0.0.0-chore-use-theme-hook-20251105193739",
"resolved": "https://registry.npmjs.org/@reown/appkit-wagmi-react-native/-/appkit-wagmi-react-native-0.0.0-chore-use-theme-hook-20251105193739.tgz",
@@ -5020,40 +4918,6 @@
"url": "https://github.com/sponsors/colinhacks"
}
},
- "node_modules/@reown/appkit/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@reown/appkit/node_modules/@walletconnect/universal-provider": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.0.tgz",
- "integrity": "sha512-3ZEqAsbtCbk+CV0ZLpy7Qzc04KXEnrW4zCboZ+gkkC0ey4H62x9h23kBOIrU9qew6orjA7D5gg0ikRC2Up1lbw==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/jsonrpc-http-connection": "1.0.8",
- "@walletconnect/jsonrpc-provider": "1.0.14",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/jsonrpc-utils": "1.0.8",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "es-toolkit": "1.39.3",
- "events": "3.3.0"
- }
- },
"node_modules/@reown/appkit/node_modules/semver": {
"version": "7.7.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
@@ -6802,60 +6666,6 @@
}
}
},
- "node_modules/@wagmi/connectors/node_modules/@walletconnect/ethereum-provider": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.23.0.tgz",
- "integrity": "sha512-jDuFarWWTbET2UhwUBBDfr1ZcPnrKBmqQtIc5EG6+ftzD+GcCz+cEJH7YJ5O77IdT8Uds9ETuIngvRokyWRSUw==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@reown/appkit": "1.8.11",
- "@walletconnect/jsonrpc-http-connection": "1.0.8",
- "@walletconnect/jsonrpc-provider": "1.0.14",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/jsonrpc-utils": "1.0.8",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/universal-provider": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@wagmi/connectors/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@wagmi/connectors/node_modules/@walletconnect/universal-provider": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.0.tgz",
- "integrity": "sha512-3ZEqAsbtCbk+CV0ZLpy7Qzc04KXEnrW4zCboZ+gkkC0ey4H62x9h23kBOIrU9qew6orjA7D5gg0ikRC2Up1lbw==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/jsonrpc-http-connection": "1.0.8",
- "@walletconnect/jsonrpc-provider": "1.0.14",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/jsonrpc-utils": "1.0.8",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "es-toolkit": "1.39.3",
- "events": "3.3.0"
- }
- },
"node_modules/@wagmi/core": {
"version": "2.22.1",
"resolved": "https://registry.npmjs.org/@wagmi/core/-/core-2.22.1.tgz",
@@ -6934,9 +6744,9 @@
}
},
"node_modules/@walletconnect/core": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.23.0.tgz",
- "integrity": "sha512-W++xuXf+AsMPrBWn1It8GheIbCTp1ynTQP+aoFB86eUwyCtSiK7UQsn/+vJZdwElrn+Ptp2A0RqQx2onTMVHjQ==",
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-Ld4Cu6kgvnI5XuE16wvZsCNMTEp6fdRQbCzoU2LW1RHgqHhXGQDrqmPeKFbKSg9sxNmniz0RdpWAboZnixc0ZA==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@walletconnect/heartbeat": "1.2.2",
@@ -6950,8 +6760,8 @@
"@walletconnect/relay-auth": "1.1.0",
"@walletconnect/safe-json": "1.0.2",
"@walletconnect/time": "1.0.2",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
+ "@walletconnect/types": "2.23.1-canary-init.6",
+ "@walletconnect/utils": "2.23.1-canary-init.6",
"@walletconnect/window-getters": "1.0.1",
"es-toolkit": "1.39.3",
"events": "3.3.0",
@@ -6961,20 +6771,6 @@
"node": ">=18.20.8"
}
},
- "node_modules/@walletconnect/core/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
"node_modules/@walletconnect/environment": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@walletconnect/environment/-/environment-1.0.1.tgz",
@@ -6990,6 +6786,26 @@
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"license": "0BSD"
},
+ "node_modules/@walletconnect/ethereum-provider": {
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-eBelvAP5TwjXvFF3BcTKEpo08rqfbQ1ZPfJN8+pDkoU8mizpyZDunfgE+iBtHocNhCGBpNeomTncF4lvctkoug==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@reown/appkit": "1.8.11",
+ "@walletconnect/jsonrpc-http-connection": "1.0.8",
+ "@walletconnect/jsonrpc-provider": "1.0.14",
+ "@walletconnect/jsonrpc-types": "1.0.4",
+ "@walletconnect/jsonrpc-utils": "1.0.8",
+ "@walletconnect/keyvaluestorage": "1.1.1",
+ "@walletconnect/logger": "3.0.0",
+ "@walletconnect/sign-client": "2.23.1-canary-init.6",
+ "@walletconnect/types": "2.23.1-canary-init.6",
+ "@walletconnect/universal-provider": "2.23.1-canary-init.6",
+ "@walletconnect/utils": "2.23.1-canary-init.6",
+ "events": "3.3.0"
+ }
+ },
"node_modules/@walletconnect/events": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@walletconnect/events/-/events-1.0.1.tgz",
@@ -7109,38 +6925,24 @@
}
},
"node_modules/@walletconnect/pos-client": {
- "version": "0.0.0-canary.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/pos-client/-/pos-client-0.0.0-canary.6.tgz",
- "integrity": "sha512-H2leK6tMCEU1QPyg6R2Nvzr8wE6sv6oaHjYHXDRfGTBQ8F1QwNmZwMaeLqJ6qTamUMw/BnYzyWlMH1FsGBSrOQ==",
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/pos-client/-/pos-client-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-lsc4iZA8Ll8UtASgpsKZIZMotubmxlhVHrRvkpfT2VvHkfYBaUzS6Iw8z1msFjaZBaxeVXzBKJHnTJVZWoRxjQ==",
"license": "Apache-2.0",
"dependencies": {
- "@walletconnect/core": "2.23.0",
+ "@walletconnect/core": "2.23.1-canary-init.6",
"@walletconnect/jsonrpc-provider": "1.0.14",
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0"
- }
- },
- "node_modules/@walletconnect/pos-client/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
+ "@walletconnect/sign-client": "2.23.1-canary-init.6",
+ "@walletconnect/types": "2.23.1-canary-init.6",
+ "@walletconnect/utils": "2.23.1-canary-init.6"
}
},
"node_modules/@walletconnect/react-native-compat": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/react-native-compat/-/react-native-compat-2.23.0.tgz",
- "integrity": "sha512-FwYrhoD/JGiVNOcj4OIFntRBs35fbLcGgZBUCiwNcWBZH0XfIfZL9BcAn9TCqsCb5d7j/W3prdQt0f3P8qTsKw==",
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/react-native-compat/-/react-native-compat-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-80D+JVRvvUuGTIo0Grd/ZlDHQt+oNbr4IBgG65m9CtqA7Fg5c2/DZC3rWxSm4siTvjhD+lcfG/cBKLnmYvWhzA==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"events": "3.3.0",
@@ -7198,33 +7000,19 @@
"license": "0BSD"
},
"node_modules/@walletconnect/sign-client": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.23.0.tgz",
- "integrity": "sha512-Nzf5x/LnQgC0Yjk0NmkT8kdrIMcScpALiFm9gP0n3CulL+dkf3HumqWzdoTmQSqGPxwHu/TNhGOaRKZLGQXSqw==",
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-t3NLByU0xlEm8U49hqtSALj3+fGeuxKSypLQOnWE3LawLiJ/SfC0D02JcNskFAF0u2pHhMXan9GKPHYHuiJUdQ==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
- "@walletconnect/core": "2.23.0",
+ "@walletconnect/core": "2.23.1-canary-init.6",
"@walletconnect/events": "1.0.1",
"@walletconnect/heartbeat": "1.2.2",
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/logger": "3.0.0",
"@walletconnect/time": "1.0.2",
- "@walletconnect/types": "2.23.0",
- "@walletconnect/utils": "2.23.0",
- "events": "3.3.0"
- }
- },
- "node_modules/@walletconnect/sign-client/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
+ "@walletconnect/types": "2.23.1-canary-init.6",
+ "@walletconnect/utils": "2.23.1-canary-init.6",
"events": "3.3.0"
}
},
@@ -7243,10 +7031,44 @@
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"license": "0BSD"
},
+ "node_modules/@walletconnect/types": {
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-iWLGQK+/AUWuZCzpnuO9GU/loluDqlHDvNMjo/O1YMqhUSDczwbgyhMDT2/W+m7oQ8yKkd7wnh8AKVHb4EWU2A==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@walletconnect/events": "1.0.1",
+ "@walletconnect/heartbeat": "1.2.2",
+ "@walletconnect/jsonrpc-types": "1.0.4",
+ "@walletconnect/keyvaluestorage": "1.1.1",
+ "@walletconnect/logger": "3.0.0",
+ "events": "3.3.0"
+ }
+ },
+ "node_modules/@walletconnect/universal-provider": {
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-B4ERBpzkFavy+sznbtSxF1ayZEIDHKFj1XxwIg/9xAvYeUZWbhiGSGZfh4WqsQwCJCIZEX9G1IX8sn9IPvCfbQ==",
+ "license": "SEE LICENSE IN LICENSE.md",
+ "dependencies": {
+ "@walletconnect/events": "1.0.1",
+ "@walletconnect/jsonrpc-http-connection": "1.0.8",
+ "@walletconnect/jsonrpc-provider": "1.0.14",
+ "@walletconnect/jsonrpc-types": "1.0.4",
+ "@walletconnect/jsonrpc-utils": "1.0.8",
+ "@walletconnect/keyvaluestorage": "1.1.1",
+ "@walletconnect/logger": "3.0.0",
+ "@walletconnect/sign-client": "2.23.1-canary-init.6",
+ "@walletconnect/types": "2.23.1-canary-init.6",
+ "@walletconnect/utils": "2.23.1-canary-init.6",
+ "es-toolkit": "1.39.3",
+ "events": "3.3.0"
+ }
+ },
"node_modules/@walletconnect/utils": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.23.0.tgz",
- "integrity": "sha512-bVyv4Hl+/wVGueZ6rEO0eYgDy5deSBA4JjpJHAMOdaNoYs05NTE1HymV2lfPQQHuqc7suYexo9jwuW7i3JLuAA==",
+ "version": "2.23.1-canary-init.6",
+ "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.23.1-canary-init.6.tgz",
+ "integrity": "sha512-kozDLsNtutVfP8FAXnOCWg40eYPijawD/Mepes9e9Kszi9EPWsKyyQoPfDC1DOsvoThi04Mrtj/EEfMmDzs0Kg==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@msgpack/msgpack": "3.1.2",
@@ -7261,7 +7083,7 @@
"@walletconnect/relay-auth": "1.1.0",
"@walletconnect/safe-json": "1.0.2",
"@walletconnect/time": "1.0.2",
- "@walletconnect/types": "2.23.0",
+ "@walletconnect/types": "2.23.1-canary-init.6",
"@walletconnect/window-getters": "1.0.1",
"@walletconnect/window-metadata": "1.0.1",
"blakejs": "1.2.1",
@@ -7298,20 +7120,6 @@
"url": "https://paulmillr.com/funding/"
}
},
- "node_modules/@walletconnect/utils/node_modules/@walletconnect/types": {
- "version": "2.23.0",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.0.tgz",
- "integrity": "sha512-9ZEOJyx/kNVCRncDHh3Qr9eH7Ih1dXBFB4k1J8iEudkv3t4GhYpXhqIt2kNdQWluPb1BBB4wEuckAT96yKuA8g==",
- "license": "SEE LICENSE IN LICENSE.md",
- "dependencies": {
- "@walletconnect/events": "1.0.1",
- "@walletconnect/heartbeat": "1.2.2",
- "@walletconnect/jsonrpc-types": "1.0.4",
- "@walletconnect/keyvaluestorage": "1.1.1",
- "@walletconnect/logger": "3.0.0",
- "events": "3.3.0"
- }
- },
"node_modules/@walletconnect/utils/node_modules/ox": {
"version": "0.9.3",
"resolved": "https://registry.npmjs.org/ox/-/ox-0.9.3.tgz",
diff --git a/dapps/pos-app/package.json b/dapps/pos-app/package.json
index 5f63fcfc..39226da4 100644
--- a/dapps/pos-app/package.json
+++ b/dapps/pos-app/package.json
@@ -29,10 +29,10 @@
"@sentry/react-native": "~7.2.0",
"@shopify/react-native-skia": "2.2.12",
"@tanstack/react-query": "5.90.5",
- "@walletconnect/core": "2.23.0",
- "@walletconnect/pos-client": "0.0.0-canary.6",
- "@walletconnect/react-native-compat": "2.23.0",
- "@walletconnect/sign-client": "2.23.0",
+ "@walletconnect/core": "2.23.1-canary-init.6",
+ "@walletconnect/pos-client": "2.23.1-canary-init.6",
+ "@walletconnect/react-native-compat": "2.23.1-canary-init.6",
+ "@walletconnect/sign-client": "2.23.1-canary-init.6",
"expo": "^54.0.23",
"expo-application": "~7.0.7",
"expo-asset": "~12.0.9",
@@ -86,12 +86,12 @@
"hono": "4.10.2",
"tar": "7.5.2",
"valtio": "2.1.8",
- "@walletconnect/core": "2.23.0",
- "@walletconnect/sign-client": "2.23.0",
- "@walletconnect/universal-provider": "2.23.0",
- "@walletconnect/ethereum-provider": "2.23.0",
- "@walletconnect/react-native-compat": "2.23.0",
- "@walletconnect/utils": "2.23.0"
+"@walletconnect/core": "2.23.1-canary-init.6",
+ "@walletconnect/sign-client": "2.23.1-canary-init.6",
+ "@walletconnect/universal-provider": "2.23.1-canary-init.6",
+ "@walletconnect/ethereum-provider": "2.23.1-canary-init.6",
+ "@walletconnect/react-native-compat": "2.23.1-canary-init.6",
+ "@walletconnect/utils": "2.23.1-canary-init.6"
},
"private": true
}
diff --git a/dapps/pos-app/utils/navigation.ts b/dapps/pos-app/utils/navigation.ts
index 50a57fa2..955070e1 100644
--- a/dapps/pos-app/utils/navigation.ts
+++ b/dapps/pos-app/utils/navigation.ts
@@ -10,7 +10,7 @@ export const getHeaderBackgroundColor = (
): keyof typeof Colors.light | keyof typeof Colors.dark => {
if (routeName === "payment-success") {
return process.env.EXPO_PUBLIC_VARIANT === "polygon"
- ? "polygon-accent"
+ ? "polygon-payment-success"
: "text-success";
}
return "bg-primary";
@@ -19,7 +19,13 @@ export const getHeaderBackgroundColor = (
export const getHeaderTintColor = (
routeName: string,
): keyof typeof Colors.light | keyof typeof Colors.dark => {
- return routeName === "payment-success" ? "text-invert" : "text-primary";
+ if (routeName === "payment-success") {
+ return process.env.EXPO_PUBLIC_VARIANT === "polygon"
+ ? "polygon-payment-success-header"
+ : "text-invert";
+ }
+
+ return "text-primary";
};
export const resetNavigation = (href?: Href) => {
From 3e06a9e4c6c58577b65337d0e78be51f27c4732b Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 14:04:03 -0300
Subject: [PATCH 4/7] chore: changed wc deps, added gradient to lists
---
dapps/pos-app/app/payment-network.tsx | 21 +++++-
dapps/pos-app/app/payment-token.tsx | 21 ++++++
dapps/pos-app/app/settings-networks.tsx | 2 +-
dapps/pos-app/package-lock.json | 90 ++++++++++++-------------
dapps/pos-app/package.json | 20 +++---
5 files changed, 97 insertions(+), 57 deletions(-)
diff --git a/dapps/pos-app/app/payment-network.tsx b/dapps/pos-app/app/payment-network.tsx
index 2dc289ee..76e2d7b6 100644
--- a/dapps/pos-app/app/payment-network.tsx
+++ b/dapps/pos-app/app/payment-network.tsx
@@ -14,6 +14,7 @@ import {
import { showErrorToast, showInfoToast } from "@/utils/toast";
import { Namespace } from "@/utils/types";
import { Image } from "expo-image";
+import { LinearGradient } from "expo-linear-gradient";
import { router, UnknownOutputParams, useLocalSearchParams } from "expo-router";
import { FlatList, ImageBackground, StyleSheet, View } from "react-native";
@@ -105,6 +106,17 @@ export default function PaymentNetworkScreen() {
)}
/>
+
);
@@ -118,7 +130,7 @@ const styles = StyleSheet.create({
listContainer: {
gap: Spacing["spacing-3"],
paddingHorizontal: Spacing["spacing-5"],
- paddingBottom: Spacing["extra-spacing-1"],
+ paddingBottom: Spacing["extra-spacing-2"],
},
item: {
flexDirection: "row",
@@ -144,4 +156,11 @@ const styles = StyleSheet.create({
position: "absolute",
alignSelf: "center",
},
+ gradient: {
+ position: "absolute",
+ bottom: 0,
+ left: 0,
+ right: 0,
+ height: 200,
+ },
});
diff --git a/dapps/pos-app/app/payment-token.tsx b/dapps/pos-app/app/payment-token.tsx
index fe9c2a06..e7f49809 100644
--- a/dapps/pos-app/app/payment-token.tsx
+++ b/dapps/pos-app/app/payment-token.tsx
@@ -2,9 +2,11 @@ import { Card } from "@/components/card";
import { CloseButton } from "@/components/close-button";
import { ThemedText } from "@/components/themed-text";
import { BorderRadius, Spacing } from "@/constants/spacing";
+import { useTheme } from "@/hooks/use-theme-color";
import { resetNavigation } from "@/utils/navigation";
import { TOKEN_LIST, TokenKey } from "@/utils/networks";
import { Image } from "expo-image";
+import { LinearGradient } from "expo-linear-gradient";
import { router, UnknownOutputParams, useLocalSearchParams } from "expo-router";
import { FlatList, StyleSheet, View } from "react-native";
@@ -13,6 +15,7 @@ interface ScreenParams extends UnknownOutputParams {
}
export default function PaymentTokenScreen() {
+ const Theme = useTheme();
const { amount } = useLocalSearchParams();
const handleTokenPress = (token: TokenKey) => {
@@ -46,6 +49,17 @@ export default function PaymentTokenScreen() {
)}
/>
+
);
@@ -80,4 +94,11 @@ const styles = StyleSheet.create({
height: 40,
borderRadius: BorderRadius["5"],
},
+ gradient: {
+ position: "absolute",
+ bottom: 0,
+ left: 0,
+ right: 0,
+ height: 200,
+ },
});
diff --git a/dapps/pos-app/app/settings-networks.tsx b/dapps/pos-app/app/settings-networks.tsx
index e21e09a3..9bb26e65 100644
--- a/dapps/pos-app/app/settings-networks.tsx
+++ b/dapps/pos-app/app/settings-networks.tsx
@@ -102,7 +102,7 @@ const styles = StyleSheet.create({
bottom: 0,
left: 0,
right: 0,
- height: 200, // Adjust height as needed
+ height: 200,
},
closeButton: {
position: "absolute",
diff --git a/dapps/pos-app/package-lock.json b/dapps/pos-app/package-lock.json
index 95d66e2a..1059da5d 100644
--- a/dapps/pos-app/package-lock.json
+++ b/dapps/pos-app/package-lock.json
@@ -19,10 +19,10 @@
"@sentry/react-native": "~7.2.0",
"@shopify/react-native-skia": "2.2.12",
"@tanstack/react-query": "5.90.5",
- "@walletconnect/core": "2.23.1-canary-init.6",
- "@walletconnect/pos-client": "2.23.1-canary-init.6",
- "@walletconnect/react-native-compat": "2.23.1-canary-init.6",
- "@walletconnect/sign-client": "2.23.1-canary-init.6",
+ "@walletconnect/core": "2.23.1-canary-init.7",
+ "@walletconnect/pos-client": "2.23.1-canary-init.7",
+ "@walletconnect/react-native-compat": "2.23.1-canary-init.7",
+ "@walletconnect/sign-client": "2.23.1-canary-init.7",
"expo": "^54.0.23",
"expo-application": "~7.0.7",
"expo-asset": "~12.0.9",
@@ -6744,9 +6744,9 @@
}
},
"node_modules/@walletconnect/core": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-Ld4Cu6kgvnI5XuE16wvZsCNMTEp6fdRQbCzoU2LW1RHgqHhXGQDrqmPeKFbKSg9sxNmniz0RdpWAboZnixc0ZA==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/core/-/core-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-RzbPYunCwfwgRDTfdVnQLGD1hC+BT0GC4ySQxO4w+Qv4y0xrvim9+iTTYIWOvIEFokr2X7KTc5otRrBl9i+vyQ==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@walletconnect/heartbeat": "1.2.2",
@@ -6760,8 +6760,8 @@
"@walletconnect/relay-auth": "1.1.0",
"@walletconnect/safe-json": "1.0.2",
"@walletconnect/time": "1.0.2",
- "@walletconnect/types": "2.23.1-canary-init.6",
- "@walletconnect/utils": "2.23.1-canary-init.6",
+ "@walletconnect/types": "2.23.1-canary-init.7",
+ "@walletconnect/utils": "2.23.1-canary-init.7",
"@walletconnect/window-getters": "1.0.1",
"es-toolkit": "1.39.3",
"events": "3.3.0",
@@ -6787,9 +6787,9 @@
"license": "0BSD"
},
"node_modules/@walletconnect/ethereum-provider": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-eBelvAP5TwjXvFF3BcTKEpo08rqfbQ1ZPfJN8+pDkoU8mizpyZDunfgE+iBtHocNhCGBpNeomTncF4lvctkoug==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/ethereum-provider/-/ethereum-provider-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-U3/ZbJC8ARQPUYX3pgBZmpe+m5iiHq6bT7gaBxvwjUzP0Xi4mYHiZORv1BskkWbdhmwwjAdBRM8BUjFb0jGZdQ==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@reown/appkit": "1.8.11",
@@ -6799,10 +6799,10 @@
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/keyvaluestorage": "1.1.1",
"@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.1-canary-init.6",
- "@walletconnect/types": "2.23.1-canary-init.6",
- "@walletconnect/universal-provider": "2.23.1-canary-init.6",
- "@walletconnect/utils": "2.23.1-canary-init.6",
+ "@walletconnect/sign-client": "2.23.1-canary-init.7",
+ "@walletconnect/types": "2.23.1-canary-init.7",
+ "@walletconnect/universal-provider": "2.23.1-canary-init.7",
+ "@walletconnect/utils": "2.23.1-canary-init.7",
"events": "3.3.0"
}
},
@@ -6925,24 +6925,24 @@
}
},
"node_modules/@walletconnect/pos-client": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/pos-client/-/pos-client-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-lsc4iZA8Ll8UtASgpsKZIZMotubmxlhVHrRvkpfT2VvHkfYBaUzS6Iw8z1msFjaZBaxeVXzBKJHnTJVZWoRxjQ==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/pos-client/-/pos-client-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-aFxPgUDiqX9JhORJbDwGrUXFIpVBjvK35lRxS7hzO89oUPrND2OC8h6WL0XAgeh2DHRoRx6HX5WMDYmgxU+DuA==",
"license": "Apache-2.0",
"dependencies": {
- "@walletconnect/core": "2.23.1-canary-init.6",
+ "@walletconnect/core": "2.23.1-canary-init.7",
"@walletconnect/jsonrpc-provider": "1.0.14",
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.1-canary-init.6",
- "@walletconnect/types": "2.23.1-canary-init.6",
- "@walletconnect/utils": "2.23.1-canary-init.6"
+ "@walletconnect/sign-client": "2.23.1-canary-init.7",
+ "@walletconnect/types": "2.23.1-canary-init.7",
+ "@walletconnect/utils": "2.23.1-canary-init.7"
}
},
"node_modules/@walletconnect/react-native-compat": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/react-native-compat/-/react-native-compat-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-80D+JVRvvUuGTIo0Grd/ZlDHQt+oNbr4IBgG65m9CtqA7Fg5c2/DZC3rWxSm4siTvjhD+lcfG/cBKLnmYvWhzA==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/react-native-compat/-/react-native-compat-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-VvDR+CA5f39kbOL/m6zWsTuqsTTSierlv0UmliAqKv4tdS+gB2KWRsa34VgzE/idxaEIpJjwLk0TIha6uWkViw==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"events": "3.3.0",
@@ -7000,19 +7000,19 @@
"license": "0BSD"
},
"node_modules/@walletconnect/sign-client": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-t3NLByU0xlEm8U49hqtSALj3+fGeuxKSypLQOnWE3LawLiJ/SfC0D02JcNskFAF0u2pHhMXan9GKPHYHuiJUdQ==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/sign-client/-/sign-client-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-LlD+Hk4qKlxUtoOix4528kZuUWYjESUeZj9gldLD5X6nCo8hJEy+Qa53u+Yg28TtCILHKTtTEYVpc7GdP7U/HQ==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
- "@walletconnect/core": "2.23.1-canary-init.6",
+ "@walletconnect/core": "2.23.1-canary-init.7",
"@walletconnect/events": "1.0.1",
"@walletconnect/heartbeat": "1.2.2",
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/logger": "3.0.0",
"@walletconnect/time": "1.0.2",
- "@walletconnect/types": "2.23.1-canary-init.6",
- "@walletconnect/utils": "2.23.1-canary-init.6",
+ "@walletconnect/types": "2.23.1-canary-init.7",
+ "@walletconnect/utils": "2.23.1-canary-init.7",
"events": "3.3.0"
}
},
@@ -7032,9 +7032,9 @@
"license": "0BSD"
},
"node_modules/@walletconnect/types": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-iWLGQK+/AUWuZCzpnuO9GU/loluDqlHDvNMjo/O1YMqhUSDczwbgyhMDT2/W+m7oQ8yKkd7wnh8AKVHb4EWU2A==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-lW39CzEXVEO8xjPFglA/WGt0ZtrM/guSLkKNU4HzrI8j7cygKyphBLb3JY5QaPdbtEqQNYwWwo7ptolaNEEKJA==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@walletconnect/events": "1.0.1",
@@ -7046,9 +7046,9 @@
}
},
"node_modules/@walletconnect/universal-provider": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-B4ERBpzkFavy+sznbtSxF1ayZEIDHKFj1XxwIg/9xAvYeUZWbhiGSGZfh4WqsQwCJCIZEX9G1IX8sn9IPvCfbQ==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/universal-provider/-/universal-provider-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-+zB2G7jv2WP35rzJ8mCH0eYEX1T/2XtMdnudkYJQiNbfPwOLZZPzWQCgSs5Oo9XZBR7CM+RRNSoefpdBaQbEbA==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@walletconnect/events": "1.0.1",
@@ -7058,17 +7058,17 @@
"@walletconnect/jsonrpc-utils": "1.0.8",
"@walletconnect/keyvaluestorage": "1.1.1",
"@walletconnect/logger": "3.0.0",
- "@walletconnect/sign-client": "2.23.1-canary-init.6",
- "@walletconnect/types": "2.23.1-canary-init.6",
- "@walletconnect/utils": "2.23.1-canary-init.6",
+ "@walletconnect/sign-client": "2.23.1-canary-init.7",
+ "@walletconnect/types": "2.23.1-canary-init.7",
+ "@walletconnect/utils": "2.23.1-canary-init.7",
"es-toolkit": "1.39.3",
"events": "3.3.0"
}
},
"node_modules/@walletconnect/utils": {
- "version": "2.23.1-canary-init.6",
- "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.23.1-canary-init.6.tgz",
- "integrity": "sha512-kozDLsNtutVfP8FAXnOCWg40eYPijawD/Mepes9e9Kszi9EPWsKyyQoPfDC1DOsvoThi04Mrtj/EEfMmDzs0Kg==",
+ "version": "2.23.1-canary-init.7",
+ "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.23.1-canary-init.7.tgz",
+ "integrity": "sha512-kYFhJb0UVWEEbIwcRfw2DWcdC+wNeDVq/lORPi9BxhUAqViO3eDgVjCPQyVpxFOJGQ58rN01a9reJH3HHJiyHQ==",
"license": "SEE LICENSE IN LICENSE.md",
"dependencies": {
"@msgpack/msgpack": "3.1.2",
@@ -7083,7 +7083,7 @@
"@walletconnect/relay-auth": "1.1.0",
"@walletconnect/safe-json": "1.0.2",
"@walletconnect/time": "1.0.2",
- "@walletconnect/types": "2.23.1-canary-init.6",
+ "@walletconnect/types": "2.23.1-canary-init.7",
"@walletconnect/window-getters": "1.0.1",
"@walletconnect/window-metadata": "1.0.1",
"blakejs": "1.2.1",
diff --git a/dapps/pos-app/package.json b/dapps/pos-app/package.json
index 39226da4..0d153692 100644
--- a/dapps/pos-app/package.json
+++ b/dapps/pos-app/package.json
@@ -29,10 +29,10 @@
"@sentry/react-native": "~7.2.0",
"@shopify/react-native-skia": "2.2.12",
"@tanstack/react-query": "5.90.5",
- "@walletconnect/core": "2.23.1-canary-init.6",
- "@walletconnect/pos-client": "2.23.1-canary-init.6",
- "@walletconnect/react-native-compat": "2.23.1-canary-init.6",
- "@walletconnect/sign-client": "2.23.1-canary-init.6",
+ "@walletconnect/core": "2.23.1-canary-init.7",
+ "@walletconnect/pos-client": "2.23.1-canary-init.7",
+ "@walletconnect/react-native-compat": "2.23.1-canary-init.7",
+ "@walletconnect/sign-client": "2.23.1-canary-init.7",
"expo": "^54.0.23",
"expo-application": "~7.0.7",
"expo-asset": "~12.0.9",
@@ -86,12 +86,12 @@
"hono": "4.10.2",
"tar": "7.5.2",
"valtio": "2.1.8",
-"@walletconnect/core": "2.23.1-canary-init.6",
- "@walletconnect/sign-client": "2.23.1-canary-init.6",
- "@walletconnect/universal-provider": "2.23.1-canary-init.6",
- "@walletconnect/ethereum-provider": "2.23.1-canary-init.6",
- "@walletconnect/react-native-compat": "2.23.1-canary-init.6",
- "@walletconnect/utils": "2.23.1-canary-init.6"
+ "@walletconnect/core": "2.23.1-canary-init.7",
+ "@walletconnect/sign-client": "2.23.1-canary-init.7",
+ "@walletconnect/universal-provider": "2.23.1-canary-init.7",
+ "@walletconnect/ethereum-provider": "2.23.1-canary-init.7",
+ "@walletconnect/react-native-compat": "2.23.1-canary-init.7",
+ "@walletconnect/utils": "2.23.1-canary-init.7"
},
"private": true
}
From c526db003b4710d06b8f3c700da0057380f97858 Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 14:23:37 -0300
Subject: [PATCH 5/7] chore: naming changes
---
dapps/pos-app/app/payment-success.tsx | 6 +++---
dapps/pos-app/components/secondary-logo.tsx | 3 ++-
dapps/pos-app/utils/misc.ts | 4 ++++
dapps/pos-app/utils/navigation.ts | 9 +++------
4 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/dapps/pos-app/app/payment-success.tsx b/dapps/pos-app/app/payment-success.tsx
index 74caba88..71240dbb 100644
--- a/dapps/pos-app/app/payment-success.tsx
+++ b/dapps/pos-app/app/payment-success.tsx
@@ -15,6 +15,7 @@ import { ThemedText } from "@/components/themed-text";
import { BorderRadius, Spacing } from "@/constants/spacing";
import { useDisableBackButton } from "@/hooks/use-disable-back-button";
import { useTheme } from "@/hooks/use-theme-color";
+import { isVariant } from "@/utils/misc";
import { resetNavigation } from "@/utils/navigation";
interface SuccessParams extends UnknownOutputParams {
@@ -28,12 +29,11 @@ const finalScale = Math.ceil(diagonalLength / initialCircleSize) + 2;
export default function PaymentSuccessScreen() {
useDisableBackButton();
- const isVariant = process.env.EXPO_PUBLIC_VARIANT === "polygon";
- const Theme = useTheme(isVariant ? "light" : undefined);
+ const Theme = useTheme(isVariant() ? "light" : undefined);
const params = useLocalSearchParams();
const insets = useSafeAreaInsets();
const { amount } = params;
- const backgroundColor = isVariant
+ const backgroundColor = isVariant()
? Theme["polygon-payment-success"]
: Theme["bg-payment-success"];
diff --git a/dapps/pos-app/components/secondary-logo.tsx b/dapps/pos-app/components/secondary-logo.tsx
index 11e93318..36aed9d6 100644
--- a/dapps/pos-app/components/secondary-logo.tsx
+++ b/dapps/pos-app/components/secondary-logo.tsx
@@ -1,5 +1,6 @@
import { Spacing } from "@/constants/spacing";
import { useTheme } from "@/hooks/use-theme-color";
+import { isVariant } from "@/utils/misc";
import { useAssets } from "expo-asset";
import { Image } from "expo-image";
import { ImageStyle, StyleProp, StyleSheet } from "react-native";
@@ -12,7 +13,7 @@ interface SecondaryLogoProps {
export function SecondaryLogo({ tintColor, style }: SecondaryLogoProps) {
const Theme = useTheme();
const [assets] = useAssets([require("@/assets/images/polygon_logo.png")]);
- const showLogo = process.env.EXPO_PUBLIC_VARIANT === "polygon";
+ const showLogo = isVariant();
const _tintColor = tintColor ?? Theme["text-secondary"];
return showLogo ? (
diff --git a/dapps/pos-app/utils/misc.ts b/dapps/pos-app/utils/misc.ts
index 98e51798..2c33c752 100644
--- a/dapps/pos-app/utils/misc.ts
+++ b/dapps/pos-app/utils/misc.ts
@@ -8,3 +8,7 @@ export const getDeviceIdentifier = async () => {
return "unknown";
}
};
+
+export const isVariant = () => {
+ return process.env.EXPO_PUBLIC_VARIANT === "polygon" || false;
+};
diff --git a/dapps/pos-app/utils/navigation.ts b/dapps/pos-app/utils/navigation.ts
index 955070e1..99515dc8 100644
--- a/dapps/pos-app/utils/navigation.ts
+++ b/dapps/pos-app/utils/navigation.ts
@@ -1,5 +1,6 @@
import { Colors } from "@/constants/theme";
import { Href, router } from "expo-router";
+import { isVariant } from "./misc";
export const shouldCenterHeaderTitle = (routeName: string) => {
return routeName === "index" || routeName === "payment-success";
@@ -9,9 +10,7 @@ export const getHeaderBackgroundColor = (
routeName: string,
): keyof typeof Colors.light | keyof typeof Colors.dark => {
if (routeName === "payment-success") {
- return process.env.EXPO_PUBLIC_VARIANT === "polygon"
- ? "polygon-payment-success"
- : "text-success";
+ return isVariant() ? "polygon-payment-success" : "text-success";
}
return "bg-primary";
};
@@ -20,9 +19,7 @@ export const getHeaderTintColor = (
routeName: string,
): keyof typeof Colors.light | keyof typeof Colors.dark => {
if (routeName === "payment-success") {
- return process.env.EXPO_PUBLIC_VARIANT === "polygon"
- ? "polygon-payment-success-header"
- : "text-invert";
+ return isVariant() ? "polygon-payment-success-header" : "text-invert";
}
return "text-primary";
From b2cdea1ad0d6177cbc45bed250b2d8480d752c00 Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 14:29:16 -0300
Subject: [PATCH 6/7] chore: added variant info in readme
---
dapps/pos-app/README.md | 36 ++++++++++++++++++++++++++++++++++++
dapps/pos-app/package.json | 4 ++--
2 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/dapps/pos-app/README.md b/dapps/pos-app/README.md
index fdfec630..ba007c40 100644
--- a/dapps/pos-app/README.md
+++ b/dapps/pos-app/README.md
@@ -36,6 +36,42 @@
npm run ios
```
+## App Variants
+
+This app supports building different variants using environment configuration files. This is useful for maintaining multiple versions of the app (e.g., production, staging, or different client configurations).
+
+### Available Variants
+
+- **Default**: Uses `.env.default` configuration
+- **Variant**: Uses `.env.variant` configuration
+
+### Setting Up Variants
+
+1. Create your variant environment files:
+
+ ```bash
+ cp .env .env.default
+ cp .env .env.variant
+ ```
+
+2. Update each environment file with the appropriate configuration values for that variant.
+
+### Building Variants
+
+To build a specific variant for Android:
+
+**Default variant:**
+```bash
+npm run android:build:default
+```
+
+**Variant build:**
+```bash
+npm run android:build:variant
+```
+
+> **Note**: Each build command will temporarily copy the corresponding `.env.*` file to `.env` before building.
+
## Production Releases
For production Android releases, you'll need the actual `secrets.properties` file and keystore. Get these from the mobile team or 1Password.
diff --git a/dapps/pos-app/package.json b/dapps/pos-app/package.json
index 0d153692..08d24d04 100644
--- a/dapps/pos-app/package.json
+++ b/dapps/pos-app/package.json
@@ -7,8 +7,8 @@
"android": "expo run:android",
"android:pos": "expo run:android --port 8082",
"android:build": "cd android && ./gradlew assembleRelease",
- "android:build:default": "cp .env.default .env && npm run android:build",
- "android:build:polygon": "cp .env.polygon .env && npm run android:build",
+ "android:build:default": "[ -f .env.default ] && cp .env.default .env && npm run android:build || (echo '.env.default not found. Please create it before running this script.' && exit 1)",
+ "android:build:variant": "[ -f .env.variant ] && cp .env.variant .env && npm run android:build || (echo '.env.variant not found. Please create it before running this script.' && exit 1)",
"prebuild": "expo prebuild",
"postprebuild": "node scripts/setup-secrets.js",
"postinstall": "patch-package",
From 115d59edd65699de57789ef3bf6f0edf4c3059c3 Mon Sep 17 00:00:00 2001
From: nacho <25931366+ignaciosantise@users.noreply.github.com>
Date: Thu, 13 Nov 2025 15:59:51 -0300
Subject: [PATCH 7/7] chore: removed duplicated style
---
dapps/pos-app/app/payment-network.tsx | 7 -------
1 file changed, 7 deletions(-)
diff --git a/dapps/pos-app/app/payment-network.tsx b/dapps/pos-app/app/payment-network.tsx
index fbecd029..e344714c 100644
--- a/dapps/pos-app/app/payment-network.tsx
+++ b/dapps/pos-app/app/payment-network.tsx
@@ -163,11 +163,4 @@ const styles = StyleSheet.create({
position: "absolute",
alignSelf: "center",
},
- gradient: {
- position: "absolute",
- bottom: 0,
- left: 0,
- right: 0,
- height: 200,
- },
});