Skip to content

Commit

Permalink
feat: Support multiple environment (#366)
Browse files Browse the repository at this point in the history
* feat: Support multi environment

* refactor: Clean env variables
  • Loading branch information
jinoosss authored May 29, 2024
1 parent 2b7f522 commit 4220423
Show file tree
Hide file tree
Showing 29 changed files with 318 additions and 295 deletions.
36 changes: 21 additions & 15 deletions packages/web/.env
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
NEXT_PUBLIC_DEFAULT_CHAIN_ID="dev.gnoswap"
NEXT_PUBLIC_API_URL="https://dev.api.gnoswap.io/v1"
NEXT_PUBLIC_PACKAGE_ROUTER_PATH="gno.land/r/demo/router"
NEXT_PUBLIC_PACKAGE_POOL_PATH="gno.land/r/demo/pool"
NEXT_PUBLIC_PACKAGE_POSITION_PATH="gno.land/r/demo/position"
NEXT_PUBLIC_PACKAGE_STAKER_PATH="gno.land/r/demo/staker"
NEXT_PUBLIC_PACKAGE_NFT_PATH="gno.land/r/demo/gnft"
NEXT_PUBLIC_GOVERNANCE_PATH="gno.land/r/demo/gov"
NEXT_PUBLIC_WRAPPED_GNOT_PATH="gno.land/r/demo/wugnot"
NEXT_PUBLIC_GNOS_PATH="gno.land/r/demo/gns"
NEXT_PUBLIC_PACKAGE_ROUTER_ADDRESS="g1pjtpgjpsn4hjfv2n4mpz8cczdn32jkpsqwxuav"
NEXT_PUBLIC_PACKAGE_POOL_ADDRESS="g15z32w7txv6lw259xzhzzmwtwmcjjc0m6dqzh6f"
NEXT_PUBLIC_PACKAGE_POSITION_ADDRESS="g10wwa53xgu4397kvzz7akxar9370zjdpwux5th9"
NEXT_PUBLIC_PACKAGE_STAKER_ADDRESS="g1puv9dz470prjshjm9qyg25dyfvrgph2kvjph68"
NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS="g1kmat25auuqf0h5qvd4q7s707r8let5sky4tr76"
NEXT_PUBLIC_CHAINS=""
NEXT_PUBLIC_DEFAULT_CHAIN_ID=""
NEXT_PUBLIC_API_URL=""
NEXT_PUBLIC_ROUTER_API_URL=""
NEXT_PUBLIC_DEV_CHAIN_ID=""
NEXT_PUBLIC_DEV_API_URL=""
NEXT_PUBLIC_DEV_ROUTER_API_URL=""
NEXT_PUBLIC_PACKAGE_GNOSWAP_CONST_PATH=""
NEXT_PUBLIC_PACKAGE_ROUTER_PATH=""
NEXT_PUBLIC_PACKAGE_POOL_PATH=""
NEXT_PUBLIC_PACKAGE_POSITION_PATH=""
NEXT_PUBLIC_PACKAGE_STAKER_PATH=""
NEXT_PUBLIC_PACKAGE_NFT_PATH=""
NEXT_PUBLIC_GOVERNANCE_PATH=""
NEXT_PUBLIC_WRAPPED_GNOT_PATH=""
NEXT_PUBLIC_GNS_TOKEN_PATH=""
NEXT_PUBLIC_PACKAGE_ROUTER_ADDRESS=""
NEXT_PUBLIC_PACKAGE_POOL_ADDRESS=""
NEXT_PUBLIC_PACKAGE_POSITION_ADDRESS=""
NEXT_PUBLIC_PACKAGE_STAKER_ADDRESS=""
NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS=""
11 changes: 8 additions & 3 deletions packages/web/.env.example
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
NEXT_PUBLIC_CHAINS="dev.gnoswap"
NEXT_PUBLIC_DEFAULT_CHAIN_ID="dev.gnoswap"
NEXT_PUBLIC_API_URL="https://dev.api.gnoswap.io/v1"
NEXT_PUBLIC_ROUTER_API_URL="https://dev.route.gnoswap.io"
NEXT_PUBLIC_DEV_CHAIN_ID="dev.gnoswap"
NEXT_PUBLIC_DEV_API_URL="https://dev.api.gnoswap.io/v1"
NEXT_PUBLIC_DEV_ROUTER_API_URL="https://dev.route.gnoswap.io"
NEXT_PUBLIC_PACKAGE_GNOSWAP_CONST_PATH="gno.land/r/demo/gnoswap/consts"
NEXT_PUBLIC_PACKAGE_ROUTER_PATH="gno.land/r/demo/router"
NEXT_PUBLIC_PACKAGE_POOL_PATH="gno.land/r/demo/pool"
NEXT_PUBLIC_PACKAGE_POSITION_PATH="gno.land/r/demo/position"
NEXT_PUBLIC_PACKAGE_STAKER_PATH="gno.land/r/demo/staker"
NEXT_PUBLIC_PACKAGE_NFT_PATH="gno.land/r/demo/gnft"
NEXT_PUBLIC_GOVERNANCE_PATH="gno.land/r/demo/gov"
NEXT_PUBLIC_WRAPPED_GNOT_PATH="gno.land/r/demo/wugnot"
NEXT_PUBLIC_GNS_TOKEN_PATH="gno.land/r/demo/gns"
NEXT_PUBLIC_PACKAGE_ROUTER_ADDRESS="g1pjtpgjpsn4hjfv2n4mpz8cczdn32jkpsqwxuav"
NEXT_PUBLIC_PACKAGE_POOL_ADDRESS="g15z32w7txv6lw259xzhzzmwtwmcjjc0m6dqzh6f"
NEXT_PUBLIC_PACKAGE_POSITION_ADDRESS="g10wwa53xgu4397kvzz7akxar9370zjdpwux5th9"
NEXT_PUBLIC_PACKAGE_STAKER_ADDRESS="g1puv9dz470prjshjm9qyg25dyfvrgph2kvjph68"
NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS="g1kmat25auuqf0h5qvd4q7s707r8let5sky4tr76"
NEXT_PUBLIC_WRAPPED_GNOT_PATH="gno.land/r/demo/wugnot"
NEXT_PUBLIC_GNS_TOKEN_PATH="gno.land/r/demo/gns"
NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS="g1kmat25auuqf0h5qvd4q7s707r8let5sky4tr76"
Original file line number Diff line number Diff line change
@@ -1,77 +1,5 @@
import BigNumber from "bignumber.js";

export const ENVIRONMENT = process.env.NEXT_PUBLIC_ENVIRONMENT || "preview";

const isPreview = ENVIRONMENT === "preview";

const PREVIEW_ENV_VARIABLES = {
DEFAULT_CHAIN_ID: "dev.gnoswap",
API_URL: "https://dev.api.gnoswap.io/v1",
ROUTER_API_URL: "https://gnoswap-route-api.in.onbloc.xyz",
PACKAGE_GNOSWAP_CONST_PATH: "gno.land/r/demo/gnoswap/consts",
PACKAGE_ROUTER_PATH: "gno.land/r/demo/router",
PACKAGE_POOL_PATH: "gno.land/r/demo/pool",
PACKAGE_POSITION_PATH: "gno.land/r/demo/position",
PACKAGE_STAKER_PATH: "gno.land/r/demo/staker",
PACKAGE_NFT_PATH: "gno.land/r/demo/gnft",
GOVERNANCE_PATH: "gno.land/r/demo/gov",
PACKAGE_ROUTER_ADDRESS: "g1pjtpgjpsn4hjfv2n4mpz8cczdn32jkpsqwxuav",
PACKAGE_POOL_ADDRESS: "g15z32w7txv6lw259xzhzzmwtwmcjjc0m6dqzh6f",
PACKAGE_POSITION_ADDRESS: "g10wwa53xgu4397kvzz7akxar9370zjdpwux5th9",
PACKAGE_STAKER_ADDRESS: "g1puv9dz470prjshjm9qyg25dyfvrgph2kvjph68",
PACKAGE_GOVERNANCE_ADDRESS: "g1kmat25auuqf0h5qvd4q7s707r8let5sky4tr76",
WRAPPED_GNOT_PATH: "gno.land/r/demo/wugnot",
GNS_TOKEN_PATH: "gno.land/r/demo/gns",
};

const ENV_VARIABLES = {
DEFAULT_CHAIN_ID: process.env.NEXT_PUBLIC_DEFAULT_CHAIN_ID || "",
API_URL: process.env.NEXT_PUBLIC_API_URL || "",
ROUTER_API_URL: process.env.NEXT_PUBLIC_ROUTER_API_URL || "",
PACKAGE_GNOSWAP_CONST_PATH:
process.env.NEXT_PUBLIC_PACKAGE_GNOSWAP_CONST_PATH || "",
PACKAGE_ROUTER_PATH: process.env.NEXT_PUBLIC_PACKAGE_ROUTER_PATH || "",
PACKAGE_POOL_PATH: process.env.NEXT_PUBLIC_PACKAGE_POOL_PATH || "",
PACKAGE_POSITION_PATH: process.env.NEXT_PUBLIC_PACKAGE_POSITION_PATH || "",
PACKAGE_STAKER_PATH: process.env.NEXT_PUBLIC_PACKAGE_STAKER_PATH || "",
PACKAGE_NFT_PATH: process.env.NEXT_PUBLIC_PACKAGE_NFT_PATH || "",
GOVERNANCE_PATH: process.env.NEXT_PUBLIC_GOVERNANCE_PATH || "",
WRAPPED_GNOT_PATH: process.env.NEXT_PUBLIC_WRAPPED_GNOT_PATH || "",
PACKAGE_ROUTER_ADDRESS: process.env.NEXT_PUBLIC_PACKAGE_ROUTER_ADDRESS || "",
PACKAGE_POOL_ADDRESS: process.env.NEXT_PUBLIC_PACKAGE_POOL_ADDRESS || "",
PACKAGE_POSITION_ADDRESS:
process.env.NEXT_PUBLIC_PACKAGE_POSITION_ADDRESS || "",
PACKAGE_STAKER_ADDRESS: process.env.NEXT_PUBLIC_PACKAGE_STAKER_ADDRESS || "",
PACKAGE_GOVERNANCE_ADDRESS:
process.env.NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS || "",
GNS_TOKEN_PATH: process.env.NEXT_PUBLIC_GNS_TOKEN_PATH || "",
};

const currentEnvVariables = isPreview ? PREVIEW_ENV_VARIABLES : ENV_VARIABLES;

export const DEFAULT_CHAIN_ID = currentEnvVariables.DEFAULT_CHAIN_ID;
export const API_URL = currentEnvVariables.API_URL;
export const ROUTER_API_URL = currentEnvVariables.ROUTER_API_URL;
export const PACKAGE_GNOSWAP_CONST_PATH =
currentEnvVariables.PACKAGE_GNOSWAP_CONST_PATH;
export const PACKAGE_ROUTER_PATH = currentEnvVariables.PACKAGE_ROUTER_PATH;
export const PACKAGE_POOL_PATH = currentEnvVariables.PACKAGE_POOL_PATH;
export const PACKAGE_POSITION_PATH = currentEnvVariables.PACKAGE_POSITION_PATH;
export const PACKAGE_STAKER_PATH = currentEnvVariables.PACKAGE_STAKER_PATH;
export const PACKAGE_NFT_PATH = currentEnvVariables.PACKAGE_NFT_PATH;
export const GOVERNANCE_PATH = currentEnvVariables.GOVERNANCE_PATH;
export const WRAPPED_GNOT_PATH = currentEnvVariables.WRAPPED_GNOT_PATH;
export const PACKAGE_ROUTER_ADDRESS =
currentEnvVariables.PACKAGE_ROUTER_ADDRESS;
export const PACKAGE_POOL_ADDRESS = currentEnvVariables.PACKAGE_POOL_ADDRESS;
export const PACKAGE_POSITION_ADDRESS =
currentEnvVariables.PACKAGE_POSITION_ADDRESS;
export const PACKAGE_STAKER_ADDRESS =
currentEnvVariables.PACKAGE_STAKER_ADDRESS;
export const PACKAGE_GOVERNANCE_ADDRESS =
currentEnvVariables.PACKAGE_GOVERNANCE_ADDRESS;
export const GNS_TOKEN_PATH = currentEnvVariables.GNS_TOKEN_PATH;

export interface TransactionBankMessage {
from_address: string;
to_address: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { toNativePath } from "@utils/common";
import {
makeApproveMessage,
makeGNOTSendAmount,
makeTransactionMessage,
PACKAGE_POOL_ADDRESS,
PACKAGE_ROUTER_ADDRESS,
PACKAGE_STAKER_ADDRESS,
PACKAGE_STAKER_PATH,
} from "@constants/environment.constant";
import { toNativePath } from "@utils/common";
import {
makeApproveMessage,
makeGNOTSendAmount,
makeTransactionMessage,
} from "./common";

export function makePoolTokenApproveMessage(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import {
makeGNOTSendAmount,
makeTransactionMessage,
PACKAGE_POSITION_PATH,
PACKAGE_STAKER_PATH,
} from "./common";
import { makeGNOTSendAmount, makeTransactionMessage } from "./common";
import {
SwapFeeTierInfoMap,
SwapFeeTierType,
} from "@constants/option.constant";
import { DEFAULT_TRANSACTION_DEADLINE } from "@common/values";
import BigNumber from "bignumber.js";
import {
PACKAGE_POSITION_PATH,
PACKAGE_STAKER_PATH,
} from "@constants/environment.constant";

export function makePositionMintMessage(
tokenAPath: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {
makeApproveMessage,
makeTransactionMessage,
PACKAGE_NFT_PATH,
PACKAGE_STAKER_ADDRESS,
PACKAGE_STAKER_PATH,
} from "./common";
} from "@constants/environment.constant";
import { makeApproveMessage, makeTransactionMessage } from "./common";

export function makeApporveStakeTokenMessage(
lpTokenId: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WRAPPED_GNOT_PATH } from "@common/clients/wallet-client/transaction-messages";
import IconNoPosition from "@components/common/icons/IconNoPosition";
import { WRAPPED_GNOT_PATH } from "@constants/environment.constant";
import { useTokenData } from "@hooks/token/use-token-data";
import { AccountModel } from "@models/account/account-model";
import { useGetTokenPrices } from "@query/token";
Expand Down
46 changes: 9 additions & 37 deletions packages/web/src/components/wallet/deposit-modal/DepositModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { GNOT_TOKEN } from "@common/values/token-constant";
import Button, { ButtonHierarchy } from "@components/common/button/Button";
import IconClose from "@components/common/icons/IconCancel";
import IconFailed from "@components/common/icons/IconFailed";
Expand All @@ -23,45 +24,12 @@ import {
DepositTooltipContent,
} from "./DepositModal.styles";

export const DEFAULT_DEPOSIT_GNOT = {
type: "native",
chainId: "dev.gnoswap",
createdAt: "0001-01-01T00:00:00Z",
name: "Gnoland",
path: "gnot",
decimals: 6,
symbol: "GNOT",
logoURI:
"https://raw.githubusercontent.com/onbloc/gno-token-resource/main/gno-native/images/gnot.svg",
priceID: "gnot",
priceId: "gnot",
description:
"Gno.land is a platform to write smart contracts in Gnolang (Gno). Using an interpreted version of the general-purpose programming language Golang (Go), developers can write smart contracts and other blockchain apps without having to learn a language that’s exclusive to a single ecosystem. Web2 developers can easily contribute to web3 and start building a more transparent, accountable world.\n\nThe Gno transaction token, GNOT, and the contributor memberships power the platform, which runs on a variation of Proof of Stake. Proof of Contribution rewards contributors from technical and non-technical backgrounds, fairly and for life with GNOT. This consensus mechanism also achieves higher security with fewer validators, optimizing resources for a greener, more sustainable, and enduring blockchain ecosystem.\n\nAny blockchain using Gnolang achieves succinctness, composability, expressivity, and completeness not found in any other smart contract platform. By observing a minimal structure, the design can endure over time and challenge the regime of information censorship we’re living in today.",
websiteURL: "https://gno.land/",
displayPath: "Native",
wrappedPath: "gno.land/r/demo/wugnot",
balance: 9989743.152257,
} as const;
export const DEFAULT_DEPOSIT_GNOT = GNOT_TOKEN;

const DEFAULT_DEPOSIT_GRC20s = {
type: "native",
chainId: "dev.gnoswap",
createdAt: "0001-01-01T00:00:00Z",
name: "Gnoland",
path: "gnot",
decimals: 6,
...GNOT_TOKEN,
symbol: "GRC20s",
logoURI:
"https://raw.githubusercontent.com/onbloc/gno-token-resource/main/gno-native/images/gnot.svg",
priceID: "gnot",
priceId: "gnot",
description:
"Gno.land is a platform to write smart contracts in Gnolang (Gno). Using an interpreted version of the general-purpose programming language Golang (Go), developers can write smart contracts and other blockchain apps without having to learn a language that’s exclusive to a single ecosystem. Web2 developers can easily contribute to web3 and start building a more transparent, accountable world.\n\nThe Gno transaction token, GNOT, and the contributor memberships power the platform, which runs on a variation of Proof of Stake. Proof of Contribution rewards contributors from technical and non-technical backgrounds, fairly and for life with GNOT. This consensus mechanism also achieves higher security with fewer validators, optimizing resources for a greener, more sustainable, and enduring blockchain ecosystem.\n\nAny blockchain using Gnolang achieves succinctness, composability, expressivity, and completeness not found in any other smart contract platform. By observing a minimal structure, the design can endure over time and challenge the regime of information censorship we’re living in today.",
websiteURL: "https://gno.land/",
displayPath: "Native",
wrappedPath: "gno.land/r/demo/wugnot",
balance: 9989743.152257,
} as const;
};

interface Props {
close: () => void;
Expand Down Expand Up @@ -200,7 +168,11 @@ const DepositModal: React.FC<Props> = ({
</li>
</ul>

<a href="https://beta.gnoswap.io/" target="_blank" className="learn-more-box">
<a
href="https://beta.gnoswap.io/"
target="_blank"
className="learn-more-box"
>
<p>Learn More</p>
<IconNewTab color="#788feb" />
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { GNOT_TOKEN } from "@common/values/token-constant";
import Button, { ButtonHierarchy } from "@components/common/button/Button";
import IconClose from "@components/common/icons/IconCancel";
import IconFailed from "@components/common/icons/IconFailed";
Expand All @@ -24,24 +25,7 @@ import {
WithdrawTooltipContent,
} from "./WithDrawModal.styles";

const DEFAULT_WITHDRAW_GNOT = {
type: "native",
chainId: "dev.gnoswap",
createdAt: "0001-01-01T00:00:00Z",
name: "Gnoland",
path: "gnot",
decimals: 6,
symbol: "GNOT",
logoURI:
"https://raw.githubusercontent.com/onbloc/gno-token-resource/main/gno-native/images/gnot.svg",
priceID: "gnot",
description:
"Gno.land is a platform to write smart contracts in Gnolang (Gno). Using an interpreted version of the general-purpose programming language Golang (Go), developers can write smart contracts and other blockchain apps without having to learn a language that’s exclusive to a single ecosystem. Web2 developers can easily contribute to web3 and start building a more transparent, accountable world.\n\nThe Gno transaction token, GNOT, and the contributor memberships power the platform, which runs on a variation of Proof of Stake. Proof of Contribution rewards contributors from technical and non-technical backgrounds, fairly and for life with GNOT. This consensus mechanism also achieves higher security with fewer validators, optimizing resources for a greener, more sustainable, and enduring blockchain ecosystem.\n\nAny blockchain using Gnolang achieves succinctness, composability, expressivity, and completeness not found in any other smart contract platform. By observing a minimal structure, the design can endure over time and challenge the regime of information censorship we’re living in today.",
websiteURL: "https://gno.land/",
displayPath: "Native",
wrappedPath: "gno.land/r/demo/wugnot",
balance: 9989743.152257,
} as const;
const DEFAULT_WITHDRAW_GNOT = GNOT_TOKEN;

interface Props {
close: () => void;
Expand Down
14 changes: 11 additions & 3 deletions packages/web/src/constants/common.constant.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
export const DEFAULT_NETWORK_ID = "dev.gnoswap";
export const DEFAULT_NETWORK_ID = "portal-loop";

export const PATH = ["/earn"];
// 10SECOND/60SECOND is the specific time for data refetching cycles. `useGetPositionsByAddress` will refetch after these specific time
export const PATH_10SECOND = ["/earn/pool/[pool-path]/remove", "/tokens/[token-path]"];
export const PATH_60SECOND = ["/wallet", "/earn/pool/[pool-path]/stake", "/earn/pool/[pool-path]/unstake", "/earn/pool/[pool-path]"];
export const PATH_10SECOND = [
"/earn/pool/[pool-path]/remove",
"/tokens/[token-path]",
];
export const PATH_60SECOND = [
"/wallet",
"/earn/pool/[pool-path]/stake",
"/earn/pool/[pool-path]/unstake",
"/earn/pool/[pool-path]",
];
55 changes: 55 additions & 0 deletions packages/web/src/constants/environment.constant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
const ENV_VARIABLES = {
CHAINS: process.env.NEXT_PUBLIC_CHAINS?.split(",") || [],
DEFAULT_CHAIN_ID: process.env.NEXT_PUBLIC_DEFAULT_CHAIN_ID || "",
API_URL: process.env.NEXT_PUBLIC_API_URL || "",
ROUTER_API_URL: process.env.NEXT_PUBLIC_ROUTER_API_URL || "",
DEV_CHAIN_ID: process.env.NEXT_PUBLIC_DEV_CHAIN_ID || "",
DEV_API_URL: process.env.NEXT_PUBLIC_DEV_API_URL || "",
DEV_ROUTER_API_URL: process.env.NEXT_PUBLIC_DEV_ROUTER_API_URL || "",
PACKAGE_GNOSWAP_CONST_PATH:
process.env.NEXT_PUBLIC_PACKAGE_GNOSWAP_CONST_PATH || "",
PACKAGE_ROUTER_PATH: process.env.NEXT_PUBLIC_PACKAGE_ROUTER_PATH || "",
PACKAGE_POOL_PATH: process.env.NEXT_PUBLIC_PACKAGE_POOL_PATH || "",
PACKAGE_POSITION_PATH: process.env.NEXT_PUBLIC_PACKAGE_POSITION_PATH || "",
PACKAGE_STAKER_PATH: process.env.NEXT_PUBLIC_PACKAGE_STAKER_PATH || "",
PACKAGE_NFT_PATH: process.env.NEXT_PUBLIC_PACKAGE_NFT_PATH || "",
GOVERNANCE_PATH: process.env.NEXT_PUBLIC_GOVERNANCE_PATH || "",
WRAPPED_GNOT_PATH: process.env.NEXT_PUBLIC_WRAPPED_GNOT_PATH || "",
GNS_TOKEN_PATH: process.env.NEXT_PUBLIC_GNS_TOKEN_PATH || "",
PACKAGE_ROUTER_ADDRESS: process.env.NEXT_PUBLIC_PACKAGE_ROUTER_ADDRESS || "",
PACKAGE_POOL_ADDRESS: process.env.NEXT_PUBLIC_PACKAGE_POOL_ADDRESS || "",
PACKAGE_POSITION_ADDRESS:
process.env.NEXT_PUBLIC_PACKAGE_POSITION_ADDRESS || "",
PACKAGE_STAKER_ADDRESS: process.env.NEXT_PUBLIC_PACKAGE_STAKER_ADDRESS || "",
PACKAGE_GOVERNANCE_ADDRESS:
process.env.NEXT_PUBLIC_PACKAGE_GOVERNANCE_ADDRESS || "",
};

const currentEnvVariables = ENV_VARIABLES;

export const CHAINS = currentEnvVariables.CHAINS;
export const DEFAULT_CHAIN_ID = currentEnvVariables.DEFAULT_CHAIN_ID;
export const API_URL = currentEnvVariables.API_URL;
export const ROUTER_API_URL = currentEnvVariables.ROUTER_API_URL;
export const DEV_CHAIN_ID = currentEnvVariables.DEV_CHAIN_ID;
export const DEV_API_URL = currentEnvVariables.DEV_API_URL;
export const DEV_ROUTER_API_URL = currentEnvVariables.DEV_ROUTER_API_URL;
export const PACKAGE_GNOSWAP_CONST_PATH =
currentEnvVariables.PACKAGE_GNOSWAP_CONST_PATH;
export const PACKAGE_ROUTER_PATH = currentEnvVariables.PACKAGE_ROUTER_PATH;
export const PACKAGE_POOL_PATH = currentEnvVariables.PACKAGE_POOL_PATH;
export const PACKAGE_POSITION_PATH = currentEnvVariables.PACKAGE_POSITION_PATH;
export const PACKAGE_STAKER_PATH = currentEnvVariables.PACKAGE_STAKER_PATH;
export const PACKAGE_NFT_PATH = currentEnvVariables.PACKAGE_NFT_PATH;
export const GOVERNANCE_PATH = currentEnvVariables.GOVERNANCE_PATH;
export const WRAPPED_GNOT_PATH = currentEnvVariables.WRAPPED_GNOT_PATH;
export const GNS_TOKEN_PATH = currentEnvVariables.GNS_TOKEN_PATH;
export const PACKAGE_ROUTER_ADDRESS =
currentEnvVariables.PACKAGE_ROUTER_ADDRESS;
export const PACKAGE_POOL_ADDRESS = currentEnvVariables.PACKAGE_POOL_ADDRESS;
export const PACKAGE_POSITION_ADDRESS =
currentEnvVariables.PACKAGE_POSITION_ADDRESS;
export const PACKAGE_STAKER_ADDRESS =
currentEnvVariables.PACKAGE_STAKER_ADDRESS;
export const PACKAGE_GOVERNANCE_ADDRESS =
currentEnvVariables.PACKAGE_GOVERNANCE_ADDRESS;
Loading

0 comments on commit 4220423

Please sign in to comment.