From 2f7bec4def445dc2b00b3d05a61451b49d0be7e3 Mon Sep 17 00:00:00 2001 From: Yaroslav Grishajev Date: Wed, 30 Oct 2024 09:01:50 +0100 Subject: [PATCH] chore(wallet): add top up master wallets to env files refs #412 --- apps/deploy-web/env/.env.production | 3 ++- apps/deploy-web/env/.env.staging | 2 ++ apps/deploy-web/src/config/browser-env.config.ts | 4 ++++ apps/deploy-web/src/config/env-config.schema.ts | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/deploy-web/env/.env.production b/apps/deploy-web/env/.env.production index 26746eff9..c24e93177 100644 --- a/apps/deploy-web/env/.env.production +++ b/apps/deploy-web/env/.env.production @@ -5,8 +5,9 @@ NEXT_PUBLIC_DEFAULT_NETWORK_ID=mainnet NEXT_PUBLIC_BILLING_ENABLED=true NEXT_PUBLIC_MANAGED_WALLET_NETWORK_ID=mainnet NEXT_PUBLIC_MANAGED_WALLET_DENOM=usdc -# TODO: replace with a fresh master wallet before release NEXT_PUBLIC_MASTER_WALLET_ADDRESS=akash1p4k0jer30g25mf62h5yc42agtjeumw4gxk8z37 +NEXT_PUBLIC_UAKT_TOP_UP_MASTER_WALLET_ADDRESS=akash19rlpd2spv5ngl8zkdzrgw7h37hz3egumz8nmj2 +NEXT_PUBLIC_USDC_TOP_UP_MASTER_WALLET_ADDRESS=akash1xh3zxza7jkd6scfa9hea3cmmzumjshlaa4pl6l NEXT_PUBLIC_STATS_APP_URL=https://stats.akash.network NEXT_PUBLIC_PROVIDER_PROXY_URL=https://console-provider-proxy.akash.network diff --git a/apps/deploy-web/env/.env.staging b/apps/deploy-web/env/.env.staging index b083050f4..2ee094083 100644 --- a/apps/deploy-web/env/.env.staging +++ b/apps/deploy-web/env/.env.staging @@ -6,6 +6,8 @@ NEXT_PUBLIC_BILLING_ENABLED=true NEXT_PUBLIC_MANAGED_WALLET_NETWORK_ID=mainnet NEXT_PUBLIC_MANAGED_WALLET_DENOM=usdc NEXT_PUBLIC_MASTER_WALLET_ADDRESS=akash1ss0d2yw38r6e7ew8ndye9h7kg62sem36zak4d5 +NEXT_PUBLIC_UAKT_TOP_UP_MASTER_WALLET_ADDRESS=akash1zs54jqz52rezh4c27rzugh8ad5l8dhg7ge75n7 +NEXT_PUBLIC_USDC_TOP_UP_MASTER_WALLET_ADDRESS=akash1gsh33yyyqlvrrqxu6vd77tp7wuhwkpydwg6evq NEXT_PUBLIC_STATS_APP_URL=https://stats.akash.network NEXT_PUBLIC_PROVIDER_PROXY_URL=https://console-provider-proxy.akash.network diff --git a/apps/deploy-web/src/config/browser-env.config.ts b/apps/deploy-web/src/config/browser-env.config.ts index b3efd136e..abe5143ba 100644 --- a/apps/deploy-web/src/config/browser-env.config.ts +++ b/apps/deploy-web/src/config/browser-env.config.ts @@ -1,3 +1,5 @@ +import { z } from "zod"; + import { validateStaticEnvVars } from "./env-config.schema"; export const browserEnvConfig = validateStaticEnvVars({ @@ -7,6 +9,8 @@ export const browserEnvConfig = validateStaticEnvVars({ NEXT_PUBLIC_PROVIDER_PROXY_URL_WS: process.env.NEXT_PUBLIC_PROVIDER_PROXY_URL_WS, NEXT_PUBLIC_DEFAULT_NETWORK_ID: process.env.NEXT_PUBLIC_DEFAULT_NETWORK_ID, NEXT_PUBLIC_MASTER_WALLET_ADDRESS: process.env.NEXT_PUBLIC_MASTER_WALLET_ADDRESS, + NEXT_PUBLIC_UAKT_TOP_UP_MASTER_WALLET_ADDRESS: process.env.NEXT_PUBLIC_UAKT_TOP_UP_MASTER_WALLET_ADDRESS, + NEXT_PUBLIC_USDC_TOP_UP_MASTER_WALLET_ADDRESS: process.env.NEXT_PUBLIC_USDC_TOP_UP_MASTER_WALLET_ADDRESS, NEXT_PUBLIC_BILLING_ENABLED: process.env.NEXT_PUBLIC_BILLING_ENABLED, NEXT_PUBLIC_MANAGED_WALLET_NETWORK_ID: process.env.NEXT_PUBLIC_MANAGED_WALLET_NETWORK_ID, NEXT_PUBLIC_MANAGED_WALLET_DENOM: process.env.NEXT_PUBLIC_MANAGED_WALLET_DENOM, diff --git a/apps/deploy-web/src/config/env-config.schema.ts b/apps/deploy-web/src/config/env-config.schema.ts index a7338a3c2..b7a751d3d 100644 --- a/apps/deploy-web/src/config/env-config.schema.ts +++ b/apps/deploy-web/src/config/env-config.schema.ts @@ -5,6 +5,8 @@ const coercedBoolean = () => z.enum(["true", "false"]).transform(val => val === export const browserEnvSchema = z.object({ NEXT_PUBLIC_MASTER_WALLET_ADDRESS: z.string(), + NEXT_PUBLIC_UAKT_TOP_UP_MASTER_WALLET_ADDRESS: z.string(), + NEXT_PUBLIC_USDC_TOP_UP_MASTER_WALLET_ADDRESS: z.string(), NEXT_PUBLIC_BILLING_ENABLED: coercedBoolean().optional().default("false"), NEXT_PUBLIC_MANAGED_WALLET_NETWORK_ID: networkId.optional().default("mainnet"), NEXT_PUBLIC_DEFAULT_NETWORK_ID: networkId.optional().default("mainnet"),