Skip to content

Commit

Permalink
changes to use backstop protoocl instead of standard eth
Browse files Browse the repository at this point in the history
  • Loading branch information
josojo committed Dec 5, 2023
1 parent 7c84791 commit 7ed58bd
Show file tree
Hide file tree
Showing 15 changed files with 562 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/push-docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- develop
- removeDependencyOnPOEC

jobs:
build:
Expand All @@ -28,4 +29,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: hermeznetwork/zkevm-bridge-ui:latest
tags: josojo2/zkevm-bridge-ui:latest
1 change: 1 addition & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ echo "VITE_ETHEREUM_RPC_URL=$ETHEREUM_RPC_URL" >> $ENV_FILENAME
echo "VITE_ETHEREUM_EXPLORER_URL=$ETHEREUM_EXPLORER_URL" >> $ENV_FILENAME
echo "VITE_ETHEREUM_BRIDGE_CONTRACT_ADDRESS=$ETHEREUM_BRIDGE_CONTRACT_ADDRESS" >> $ENV_FILENAME
echo "VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT=$ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT" >> $ENV_FILENAME
echo "VITE_ETHEREUM_FORKONOMIC_TOKEN_ADDRESS=$ETHEREUM_FORKONOMIC_TOKEN_ADDRESS" >> $ENV_FILENAME
echo "VITE_ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS=$ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS" >> $ENV_FILENAME

# POLYGON ZK EVM env vars
Expand Down
6 changes: 6 additions & 0 deletions src/adapters/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface Env {
VITE_ETHEREUM_BRIDGE_CONTRACT_ADDRESS: string;
VITE_ETHEREUM_EXPLORER_URL: string;
VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT: string;
VITE_ETHEREUM_FORKONOMIC_TOKEN_ADDRESS: string;
VITE_ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS: string;
VITE_ETHEREUM_RPC_URL: string;
VITE_FIAT_EXCHANGE_RATES_API_KEY?: string;
Expand Down Expand Up @@ -161,6 +162,7 @@ const envToDomain = ({
VITE_ETHEREUM_BRIDGE_CONTRACT_ADDRESS,
VITE_ETHEREUM_EXPLORER_URL,
VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT,
VITE_ETHEREUM_FORKONOMIC_TOKEN_ADDRESS,
VITE_ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS,
VITE_ETHEREUM_RPC_URL,
VITE_FIAT_EXCHANGE_RATES_API_KEY,
Expand All @@ -186,6 +188,8 @@ const envToDomain = ({
const forceUpdateGlobalExitRootForL1 = stringBooleanParser.parse(
VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT
);
const forkonomicTokenAddress = VITE_ETHEREUM_FORKONOMIC_TOKEN_ADDRESS;

const bridgeApiUrl = VITE_BRIDGE_API_URL;
const outdatedNetworkModal: domain.Env["outdatedNetworkModal"] = isOutdatedNetworkModalEnabled
? {
Expand Down Expand Up @@ -231,6 +235,7 @@ const envToDomain = ({
VITE_FIAT_EXCHANGE_RATES_ETHEREUM_USDC_ADDRESS,
}),
forceUpdateGlobalExitRootForL1,
forkonomicTokenAddress,
isDepositWarningEnabled,
outdatedNetworkModal,
reportForm: getReportFormEnv({
Expand All @@ -255,6 +260,7 @@ const envParser = StrictSchema<Env, domain.Env>()(
VITE_ETHEREUM_BRIDGE_CONTRACT_ADDRESS: z.string().length(42),
VITE_ETHEREUM_EXPLORER_URL: z.string().url(),
VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT: z.string(),
VITE_ETHEREUM_FORKONOMIC_TOKEN_ADDRESS: z.string().length(42),
VITE_ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS: z.string().length(42),
VITE_ETHEREUM_RPC_URL: z.string().url(),
VITE_FIAT_EXCHANGE_RATES_API_KEY: z.string().optional(),
Expand Down
Binary file added src/assets/backstop_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 116 additions & 0 deletions src/assets/icons/chains/backstop-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
194 changes: 194 additions & 0 deletions src/assets/icons/chains/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7ed58bd

Please sign in to comment.