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

Modify for forkonomic token instead of just ETH bridging #1

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
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
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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be removed before merging. Just for testing I used continous deployment


jobs:
build:
Expand All @@ -28,4 +29,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: hermeznetwork/zkevm-bridge-ui:latest
tags: backstoptechnology/zkevm-bridge-ui:latest
2 changes: 1 addition & 1 deletion .github/workflows/push-docker-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: hermeznetwork/zkevm-bridge-ui:stable
tags: backstoptechnology/zkevm-bridge-ui:stable
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Simple user interface to bridge ETH and your favorite ERC-20 tokens from Ethereum to the Polygon zkEVM and back"
content="Simple user interface to bridge Backstop tokens and your favorite ERC-20 tokens from Ethereum to Backstop L2 and back"
/>
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/logo192.png" />
<link rel="manifest" href="/manifest.json" />
<title>Polygon zkEVM Bridge</title>
<title>Backstop L2 Testnet Bridge</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
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.
Loading
Loading