Skip to content

Commit

Permalink
fix: rename env to eliminate collision with sdk vars
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Feb 14, 2024
1 parent ac34ec9 commit 9d3bf9b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env.master
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ APP_CARD_TO_MINTER_HOST=https://minter.trade
APP_STAKING_API_URL=https://msp-api.minter.network/v1/
APP_REFERRAL_API_URL=https://mrs-api.minter.network/v1/
APP_PORTFOLIO_API_URL=https://portfolio-api.honee.app/v1/
APP_METAGARDEN_API_URL=https://metagarden-claim-api.honee.app/v1/
APP_METAGARDEN_CLAIM_API_URL=https://metagarden-claim-api.honee.app/v1/
APP_HUB_API_URL=https://hub-api.minter.network/
APP_ETHEREUM_API_URL=https://rpc.ankr.com/eth
#APP_BSC_API_URL=https://bsc-dataseed.binance.org/
Expand Down
2 changes: 1 addition & 1 deletion .env.megachain
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ APP_CARD_TO_MINTER_HOST=https://minter.trade
APP_STAKING_API_URL=https://msp-api.minter.network/v1/
APP_REFERRAL_API_URL=https://mrs-api.minter.network/v1/
APP_PORTFOLIO_API_URL=https://portfolio-api.honee.app/v1/
APP_METAGARDEN_API_URL=https://metagarden-claim-api.honee.app/v1/
APP_METAGARDEN_CLAIM_API_URL=https://metagarden-claim-api.honee.app/v1/
APP_HUB_API_URL=https://hub-api.minter.network/
APP_ETHEREUM_API_URL=https://rpc.ankr.com/eth
#APP_BSC_API_URL=https://bsc-dataseed.binance.org/
Expand Down
2 changes: 1 addition & 1 deletion .env.megagamer
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ APP_CARD_TO_MINTER_HOST=https://minter.trade
APP_STAKING_API_URL=https://msp-api.minter.network/v1/
APP_REFERRAL_API_URL=https://mrs-api.minter.network/v1/
APP_PORTFOLIO_API_URL=https://portfolio-api.honee.app/v1/
APP_METAGARDEN_API_URL=https://metagarden-claim-api.honee.app/v1/
APP_METAGARDEN_CLAIM_API_URL=https://metagarden-claim-api.honee.app/v1/
APP_HUB_API_URL=https://hub-api.minter.network/
APP_ETHEREUM_API_URL=https://rpc.ankr.com/eth
#APP_BSC_API_URL=https://bsc-dataseed.binance.org/
Expand Down
4 changes: 2 additions & 2 deletions api/metagarden.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import axios from 'axios';
import {cacheAdapterEnhancer, Cache} from 'axios-extensions';
import {METAGARDEN_API_URL, METAGARDEN_ADMIN_API_KEY, NETWORK, MAINNET} from "~/assets/variables.js";
import {METAGARDEN_CLAIM_API_URL, METAGARDEN_ADMIN_API_KEY, NETWORK, MAINNET} from "~/assets/variables.js";
import {getDefaultAdapter} from '~/assets/axios-default-adapter.js';
import addToCamelInterceptor from '~/assets/axios-to-camel.js';
import addEcdsaAuthInterceptor, {authHeaderKeyGenerator} from '~/assets/axios-ecdsa-auth.js';

const instance = axios.create({
baseURL: METAGARDEN_API_URL,
baseURL: METAGARDEN_CLAIM_API_URL,
// adapter: cacheAdapterEnhancer(getDefaultAdapter(), {
// enabledByDefault: false,
// cacheKeyGenerator: authHeaderKeyGenerator,
Expand Down
2 changes: 1 addition & 1 deletion assets/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const TELEGRAM_LEGACY_AUTH_API_URL = IS_SUBAPP_MEGAGAMER ? TELEGRAM_AUTH_
export const STAKING_API_URL = process.env.APP_STAKING_API_URL;
export const REFERRAL_API_URL = process.env.APP_REFERRAL_API_URL;
export const PORTFOLIO_API_URL = process.env.APP_PORTFOLIO_API_URL;
export const METAGARDEN_API_URL = process.env.APP_METAGARDEN_API_URL;
export const METAGARDEN_CLAIM_API_URL = process.env.APP_METAGARDEN_CLAIM_API_URL;
export const METAGARDEN_ADMIN_API_KEY = process.env.APP_METAGARDEN_ADMIN_API_KEY;
export const HUB_ETHEREUM_CONTRACT_ADDRESS = process.env.APP_HUB_ETHEREUM_CONTRACT_ADDRESS;
export const HUB_BSC_CONTRACT_ADDRESS = process.env.APP_HUB_BSC_CONTRACT_ADDRESS;
Expand Down

0 comments on commit 9d3bf9b

Please sign in to comment.