From a6f30994df05a3be9247639ece112fc075e46e66 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Wed, 18 Oct 2023 22:34:24 +0300 Subject: [PATCH] Update env variables --- .env.example | 5 +++++ components/badges/queries/query.ts | 2 +- env.d.ts | 4 ++++ utils/constants.ts | 6 ++++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index daa65b6..ab98aa4 100644 --- a/.env.example +++ b/.env.example @@ -26,6 +26,11 @@ NEXT_PUBLIC_VENDING_FACTORY_UPDATABLE_FLEX_ADDRESS= # NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_FLEX_ADDRESS= # NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_FLEX_ADDRESS= +# NEXT_PUBLIC_VENDING_IBC_USK_FACTORY_ADDRESS= +# NEXT_PUBLIC_VENDING_IBC_USK_UPDATABLE_FACTORY_ADDRESS= +# NEXT_PUBLIC_VENDING_IBC_USK_FACTORY_FLEX_ADDRESS= +# NEXT_PUBLIC_VENDING_IBC_USK_UPDATABLE_FACTORY_FLEX_ADDRESS= + NEXT_PUBLIC_VENDING_NATIVE_STARDUST_FACTORY_ADDRESS="stars1mxwf2hjcjvqnlw0v3j7m0u34975qesp325wzrgz0ht7vr8ys2zmsenjutf" NEXT_PUBLIC_VENDING_NATIVE_STARDUST_UPDATABLE_FACTORY_ADDRESS="stars18gjczf88jd4z3a3megwj9g5c9famu654csxfnnq59mkqeszuzy4ssdgr46" NEXT_PUBLIC_VENDING_NATIVE_STRDST_FLEX_FACTORY_ADDRESS="stars1eluqmr6x78ehl4plrln6khxc0qrspfhc7rt3whmr59escpve0r4swcacjh" diff --git a/components/badges/queries/query.ts b/components/badges/queries/query.ts index 82c4e50..c3a345e 100644 --- a/components/badges/queries/query.ts +++ b/components/badges/queries/query.ts @@ -51,7 +51,7 @@ export type DispatchQueryArgs = { export const dispatchQuery = async (args: DispatchQueryArgs) => { const { badgeHubMessages } = args if (!badgeHubMessages) { - throw new Error('Cannot perform a query') + throw new Error('Cannot perform a query. Please connect your wallet first.') } switch (args.type) { case 'config': { diff --git a/env.d.ts b/env.d.ts index f221606..4bc4008 100644 --- a/env.d.ts +++ b/env.d.ts @@ -31,10 +31,14 @@ declare namespace NodeJS { readonly NEXT_PUBLIC_VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_USK_FACTORY_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_USK_UPDATABLE_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_VENDING_IBC_ATOM_FACTORY_FLEX_ADDRESS: string readonly NEXT_PUBLIC_VENDING_IBC_ATOM_UPDATABLE_FACTORY_FLEX_ADDRESS: string readonly NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_FLEX_ADDRESS: string readonly NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_FLEX_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_USK_FACTORY_FLEX_ADDRESS: string + readonly NEXT_PUBLIC_VENDING_IBC_USK_UPDATABLE_FACTORY_FLEX_ADDRESS: string readonly NEXT_PUBLIC_VENDING_NATIVE_STARDUST_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_VENDING_NATIVE_STARDUST_UPDATABLE_FACTORY_ADDRESS: string readonly NEXT_PUBLIC_VENDING_NATIVE_STRDST_FLEX_FACTORY_ADDRESS: string diff --git a/utils/constants.ts b/utils/constants.ts index aeeef6f..ad6105e 100644 --- a/utils/constants.ts +++ b/utils/constants.ts @@ -20,12 +20,18 @@ export const VENDING_IBC_ATOM_UPDATABLE_FACTORY_ADDRESS = export const VENDING_IBC_USDC_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_ADDRESS export const VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_ADDRESS +export const VENDING_IBC_USK_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USK_FACTORY_ADDRESS +export const VENDING_IBC_USK_UPDATABLE_FACTORY_ADDRESS = + process.env.NEXT_PUBLIC_VENDING_IBC_USK_UPDATABLE_FACTORY_ADDRESS export const VENDING_IBC_ATOM_FACTORY_FLEX_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_ATOM_FACTORY_FLEX_ADDRESS export const VENDING_IBC_ATOM_UPDATABLE_FACTORY_FLEX_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_ATOM_UPDATABLE_FACTORY_FLEX_ADDRESS export const VENDING_IBC_USDC_FACTORY_FLEX_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USDC_FACTORY_FLEX_ADDRESS export const VENDING_IBC_USDC_UPDATABLE_FACTORY_FLEX_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USDC_UPDATABLE_FACTORY_FLEX_ADDRESS +export const VENDING_IBC_USK_FACTORY_FLEX_ADDRESS = process.env.NEXT_PUBLIC_VENDING_IBC_USK_FACTORY_FLEX_ADDRESS +export const VENDING_IBC_USK_UPDATABLE_FACTORY_FLEX_ADDRESS = + process.env.NEXT_PUBLIC_VENDING_IBC_USK_UPDATABLE_FACTORY_FLEX_ADDRESS export const VENDING_NATIVE_STARDUST_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_NATIVE_STARDUST_FACTORY_ADDRESS export const VENDING_NATIVE_STARDUST_UPDATABLE_FACTORY_ADDRESS = process.env.NEXT_PUBLIC_VENDING_NATIVE_STARDUST_UPDATABLE_FACTORY_ADDRESS