Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove adpr env #2282

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .env.adpr

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
VITE_TAG: ${{ needs.prepare.outputs.image_tag }}
CURRENT_BRANCH: ${{ needs.prepare.outputs.current_branch }}
NODE_OPTIONS: '--max_old_space_size=4096'
run: yarn build-adpr
run: yarn build-dev

- name: Install cypress
run: yarn cypress install --force
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"scripts": {
"postinstall": "patch-package",
"preview": "vite preview",
"build": "yarn i18n && tsc && vite build",
"build-adpr": "yarn i18n && tsc && vite build --mode adpr",
"build": "yarn build-prod",
"build-dev": "yarn i18n && tsc && vite build --mode dev",
"build-stg": "yarn i18n && tsc && vite build --mode stg",
"build-prod": "yarn i18n && tsc && vite build",
Expand All @@ -22,8 +21,7 @@
"i18n:compile": "lingui compile",
"i18n:extract": "lingui extract",
"lint": "eslint --ext ts,tsx src",
"start": "vite --mode production --host",
"start-adpr": "vite --mode adpr --host",
"start": "yarn start-prod",
"start-dev": "vite --mode dev --host",
"start-stg": "vite --mode stg --host",
"start-prod": "vite --mode production --host",
Expand Down Expand Up @@ -208,4 +206,4 @@
"@lingui/core": "3.14.0",
"@lingui/conf": "3.16.0"
}
}
}
3 changes: 0 additions & 3 deletions src/assets/svg/trending_icon.svg

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/Icons/TrendingIcon.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions src/components/Icons/ZkSync.tsx

This file was deleted.

6 changes: 3 additions & 3 deletions src/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export const FIREBASE: { [key in EnvKeys]: { DEFAULT: FirebaseConfig; LIMIT_ORDE
},
}

type Config = { [type in PrivateAnnouncementType]: string } & { EXCLUDE: string }
const ANNOUNCEMENT_TEMPLATE_IDS: { [key in EnvKeys]: Config } = {
type TemplateConfig = { [type in PrivateAnnouncementType]: string } & { EXCLUDE: string }
const ANNOUNCEMENT_TEMPLATE_IDS: { [key in EnvKeys]: TemplateConfig } = {
development: {
[PrivateAnnouncementType.PRICE_ALERT]: '53',
[PrivateAnnouncementType.LIMIT_ORDER]: '8,9,10,11,33,34,35,36',
Expand Down Expand Up @@ -157,7 +157,7 @@ export enum EnvKeys {
}
export const ENV_KEY: EnvKeys = import.meta.env.VITE_ENV

export const getAnnouncementsTemplateIds = (type: PrivateAnnouncementType | 'EXCLUDE') => {
export const getAnnouncementsTemplateIds = (type: keyof TemplateConfig) => {
return ANNOUNCEMENT_TEMPLATE_IDS[ENV_KEY]?.[type]
}

Expand Down
11 changes: 0 additions & 11 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ export const BLACKLIST_WALLETS: string[] = [
'0xCa0840578f57fE71599D29375e16783424023357',
]

export const NetworkContextName = 'NETWORK'

// default allowed slippage, in bips
export const INITIAL_ALLOWED_SLIPPAGE = 50
// 20 minutes, denominated in seconds
Expand All @@ -144,7 +142,6 @@ export const DEFAULT_DEADLINE_FROM_NOW = 60 * 20
export const TIME_TO_REFRESH_SWAP_RATE = 10

export const BIG_INT_ONE = JSBI.BigInt(1)
export const BIG_INT_MINUS_ONE = JSBI.BigInt(-1)
export const BIG_INT_ZERO = JSBI.BigInt(0)

// one basis point
Expand All @@ -163,8 +160,6 @@ export const BUNDLE_ID = '1'
export const COINGECKO_BFF_API_URL = `${ENV.BFF_API}/v1/coingecko/api/v3`
export const COINGECKO_API_URL = 'https://api.coingecko.com/api/v3'

export const KNC_COINGECKO_ID = 'kyber-network-crystal'

export const ETHER_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
export const ETHER_ADDRESS_SOLANA = 'So11111111111111111111111111111111111111111'

Expand All @@ -185,9 +180,6 @@ export const CREATE_POOL_AMP_HINT = t`Stands for amplification factor. Pools wit

export const sentryRequestId = uuid()

export const TRENDING_SOON_ITEM_PER_PAGE = 10
export const TRENDING_SOON_MAX_ITEMS = 50
export const TRENDING_ITEM_PER_PAGE = 25
export const CAMPAIGN_LEADERBOARD_ITEM_PER_PAGE = 10
export const CAMPAIGN_YOUR_TRANSACTIONS_ITEM_PER_PAGE = 10000

Expand All @@ -206,9 +198,6 @@ export const SWR_KEYS = {
`${CAMPAIGN_BASE_URL}/${campaignId}/proofs?limit=${limit}&offset=${offset}&userAddress=${account}`,
}

// Epsilon 0 is absolute permittivity of free space whose value is 8.854×10^-12 and unit is C^2N^-1m–2.
export const EPSILON = 0.000000000008854

// https://www.nasdaq.com/glossary/b/bip
export const MAX_NORMAL_SLIPPAGE_IN_BIPS = 1999
export const MAX_DEGEN_SLIPPAGE_IN_BIPS = 5000
Expand Down
Loading