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

Feat/shu frontend #131

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
# run: npm run test

- name: Prepare production build
run: npm run build:milkomeda-c1-testnet
run: npm run build
9 changes: 7 additions & 2 deletions .github/workflows/codepreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Create preview environment

on:
pull_request:
branches: [main, milkomeda-c1-testnet]
branches: [main]
push:
branches: [main, milkomeda-c1-testnet]
branches: [main]

concurrency:
# The preview script can't handle concurrent deploys
Expand Down Expand Up @@ -55,6 +55,11 @@ jobs:
if: ${{ (github.head_ref || github.ref_name) == 'main' }}
run: CI=false npm run build:milkomeda-c1

# CI=false disables reporting warnings as errors
- name: Prepare build (main)
if: ${{ (github.head_ref || github.ref_name) == 'main' }}
run: CI=false npm run build:shu-mordor

- name: Create SSH key
run: |
mkdir -p ~/.ssh/
Expand Down
2 changes: 1 addition & 1 deletion env/milkomeda-testnet.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ REACT_APP_CHAIN_ID=200101
REACT_APP_DJED_ADDRESS=0xc4C0669Ea7BFF70A6cFa5905A0Ba487fC181Dc37
REACT_APP_FEE_UI=0
REACT_APP_UI=0x0232556C83791b8291E9b23BfEa7d67405Bd9839
REACT_APP_MILKOMEDA_C1_EXPLORER=https://explorer-devnet-cardano-evm.c1.milkomeda.com/
REACT_APP_EXPLORER=https://explorer-devnet-cardano-evm.c1.milkomeda.com/
REACT_APP_BC=Milkomeda
REACT_APP_PROTOCOL_CHAIN_DESCRIPTION=Milkomeda is the EVM-compatible chain of the Cardano ecosystem. Its native currency is mADA, a bridged version of Cardano`s ADA
REACT_APP_CHAIN_COIN=mADA
Expand Down
2 changes: 1 addition & 1 deletion env/milkomeda.env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ REACT_APP_CHAIN_ID=2001
REACT_APP_DJED_ADDRESS=0x67A30B399F5Ed499C1a6Bc0358FA6e42Ea4BCe76
REACT_APP_FEE_UI=0.01
REACT_APP_UI=0x6AfD84920971Ba96118a302deaA6d11e7ce18b03
REACT_APP_MILKOMEDA_C1_EXPLORER=https://explorer-mainnet-cardano-evm.c1.milkomeda.com/
REACT_APP_EXPLORER=https://explorer-mainnet-cardano-evm.c1.milkomeda.com/
REACT_APP_BC=Milkomeda
REACT_APP_PROTOCOL_CHAIN_DESCRIPTION=Milkomeda is the EVM-compatible chain of the Cardano ecosystem. Its native currency is mADA, a bridged version of Cardano`s ADA
REACT_APP_CHAIN_COIN=mADA
Expand Down
29 changes: 29 additions & 0 deletions env/shu-mordor.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
###############
# APPLICATION #
###############
REACT_APP_BLOCKCHAIN_URI=https://rpc.mordor.etccooperative.org
REACT_APP_CHAIN_ID=63
REACT_APP_DJED_ADDRESS=0x1F09D7d259073414a81E5663C74a76182B05852D
REACT_APP_DJED_SHU_ADDRESS=0x1F09D7d259073414a81E5663C74a76182B05852D
REACT_APP_FEE_UI=0
REACT_APP_UI=0x0232556C83791b8291E9b23BfEa7d67405Bd9839
REACT_APP_EXPLORER=https://etc-mordor.blockscout.com/
REACT_APP_BC=Ethereum Classic's Mordor
REACT_APP_PROTOCOL_CHAIN_DESCRIPTION=Ethereum Classic is the original Ethereum blockchain, maintaining its history untampered and immutable, and upholding the principle that "code is law". Ethereum Classic's native currency is ETC
REACT_APP_CHAIN_COIN=ETC
REACT_APP_SC_NAME=Ethereum Classic Stable Dollar
REACT_APP_SC_SYMBOL=ECSD
REACT_APP_RC_NAME=Ethereum Classic Reserve Surplus Share
REACT_APP_RC_SYMBOL=ECRS
REACT_APP_LIMIT_PER_TXN=10000
REACT_APP_EVM_RESERVECOIN_ADDRESS=0x851D24a058fED2b0458c875BFb512BAc04dDeE09
REACT_APP_EVM_STABLECOIN_ADDRESS=0x6b7ff59Ddb17610146c2666Dd6eB402b3BC5C59D

# Color Theme
REACT_APP_GRADIENT_THEME='gradient-theme-7'
REACT_APP_COLOR_THEME='green-dark'

REACT_APP_TERMS_OF_USE=terms-of-use-default
REACT_APP_LOGO_PATH=ECSD.svg

REACT_APP_SHU_VERSION=true
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"scripts": {
"start": "craco start",
"build": "craco build",
"build:milkomeda-testnet": "npx -y env-cmd -f ./env/milkomeda-testnet.env npm run build",
"build:milkomeda-c1-testnet": "npx -y env-cmd -f ./env/milkomeda-testnet.env npm run build",
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's get rid of the "c1" here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you mark this as resolved, but the "c1" is still there?

Copy link
Member Author

Choose a reason for hiding this comment

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

My bad, instead of changing the package.json, I changed the names of ci pipeline to fix build issues. I wasn't aware of the fleek naming convention. I will change it in the next commit.

"build:sepolia": "npx -y env-cmd -f ./env/sepolia.env npm run build",
"build:milkomeda": "npx -y env-cmd -f ./env/milkomeda.env npm run build",
"build:milkomeda-c1": "npx -y env-cmd -f ./env/milkomeda.env npm run build",
Copy link
Contributor

Choose a reason for hiding this comment

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

... and here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Here too.

"build:mordor": "npx -y env-cmd -f ./env/mordor.env npm run build",
"build:ethereum-classic": "npx -y env-cmd -f ./env/ethereum-classic.env npm run build",
"build:shu-mordor": "npx -y env-cmd -f ./env/shu-mordor.env npm run build",
"test": "craco test",
"lint": "prettier --check '**/*.{js,jsx}'",
"format": "prettier --write '**/*.{js,jsx}'",
Expand Down
3 changes: 2 additions & 1 deletion src/MainLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export default function MainLayout() {
<Menu.Item key="/docs">
<Link
to={{
pathname: "//docs.stability.nexus/djed-stablecoin-protocols/djed-overview"
pathname:
"//docs.stability.nexus/djed-stablecoin-protocols/djed-overview"
}}
target="_blank"
>
Expand Down
Loading
Loading