Skip to content

Deploy dev into master #737

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

Merged
merged 206 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
42bf8fb
Bump ip from 1.1.5 to 1.1.9
dependabot[bot] Feb 21, 2024
981ef9b
Bump es5-ext from 0.10.53 to 0.10.63
dependabot[bot] Feb 27, 2024
800e431
Bump express from 4.18.2 to 4.19.2
dependabot[bot] Mar 28, 2024
03a5a08
chore: update holesky info, deprecate old testnets
wackerow Jul 1, 2024
f7ad8dc
Merge pull request #701 from ethereum/testnet-update
wackerow Jul 3, 2024
0743e6f
compare fork version hex strings
bohendo Oct 8, 2024
40612f9
Removing cli version checker
valefar-on-discord Oct 26, 2024
425e4b3
Update Nethermind docs links
rubo Nov 29, 2024
a616066
Update Nethermind instructions
rubo Nov 29, 2024
44b8579
update lodestar checklist and links
philknows Jan 2, 2025
ace34ff
update: Phishing page for Pectra
wackerow Jan 21, 2025
373c41d
update: Checklist page for Pectra
wackerow Jan 21, 2025
0731454
update: BTEC guide for Pectra
wackerow Jan 21, 2025
64ba176
update: initial /withdrawals updates
wackerow Jan 21, 2025
37cfaa2
feat: use eth-educators/ethstaker-deposit-cli
wackerow Jan 21, 2025
079ab99
feat: update acknowledgments
wackerow Jan 23, 2025
c97b07b
patch: update acknowledgement label
wackerow Jan 23, 2025
a2c4771
debug: yarn remove @web3-react/portis-connector
wackerow Jan 23, 2025
342c222
Merge branch 'rm-portis' into pectra
wackerow Jan 23, 2025
a800220
fix: urls from template, use Lodestar
wackerow Jan 24, 2025
a1c6032
Merge pull request #720 from philknows/dev
wackerow Jan 24, 2025
314ee3b
Merge pull request #688 from ethereum/dependabot/npm_and_yarn/express…
wackerow Jan 24, 2025
7b66351
Merge pull request #683 from ethereum/dependabot/npm_and_yarn/ip-1.1.9
wackerow Jan 24, 2025
b3df00d
Merge pull request #684 from ethereum/dependabot/npm_and_yarn/es5-ext…
wackerow Jan 24, 2025
7d79e64
Merge pull request #711 from bohendo/dev
wackerow Jan 24, 2025
525c538
Merge pull request #716 from rubo/dev
wackerow Jan 24, 2025
4f4b5d9
Merge branch 'dev'
wackerow Jan 24, 2025
328b6dc
Merge branch 'dev' into rm-portis
wackerow Jan 24, 2025
e072491
Merge branch 'rm-portis' into pectra
wackerow Jan 24, 2025
1a1e8db
deprecate: remaining portis mentions
wackerow Jan 24, 2025
81128f5
Merge pull request #722 from ethereum/rm-portis
wackerow Jan 24, 2025
d622613
Merge pull request #714 from valefar-on-discord/remove-version-check
wackerow Jan 24, 2025
fbf9712
init: .nvmrc config, 14.19.2
wackerow Jan 24, 2025
5953744
refactor: requiredBalance calculation
wackerow Jan 24, 2025
05b157a
refactor: use min and max balance values
wackerow Jan 24, 2025
abf61e2
feat: content updates
wackerow Jan 24, 2025
7812d6f
Merge branch 'dev' into pectra
wackerow Jan 24, 2025
f2cdd9a
eslint: establish eslint<>prettier config
wackerow Jan 24, 2025
e3d5ea4
feat: update set withdrawal copy
wackerow Jan 24, 2025
b5a1833
patch: FAQ content
wackerow Jan 24, 2025
2e8729a
fix(a11y): selection boxes to buttons
wackerow Jan 24, 2025
cb5f534
feat: create AccountTypeButtons
wackerow Jan 24, 2025
479f7b6
feat: update key gen flow
wackerow Jan 24, 2025
7b70db0
chore: npx browserslist@latest --update-db
wackerow Jan 24, 2025
a0bc456
feat: update key gen options
wackerow Jan 25, 2025
9ab4c4f
revert: dev bypass
wackerow Jan 25, 2025
0d83975
style: choices; revert: type tags
wackerow Jan 25, 2025
f1c364e
Wallet connect/Query validators/Differentiate/Send TX
valefar-on-discord Jan 25, 2025
a2265d9
feat: use network name for testnet eth symbol
wackerow Jan 25, 2025
0758955
feat: add recommendation, ticker
wackerow Jan 25, 2025
226d0b9
feat: add ui Select component
wackerow Jan 26, 2025
1624bdd
feat: implement ui Select component on Actions
wackerow Jan 26, 2025
697517e
Generalize NumberInput
valefar-on-discord Jan 26, 2025
6d5c43c
Adding validator consolidation flow
valefar-on-discord Jan 26, 2025
645239c
feat: expand Select functionality
wackerow Jan 26, 2025
1b67069
fix: metamask hardware wallet support link
wackerow Jan 27, 2025
57d30b6
fix: low balance unit comparison
wackerow Jan 27, 2025
45f4981
update: cli from source for pectra
wackerow Jan 27, 2025
b9f8661
fix: executionLayerName destructuring
wackerow Jan 28, 2025
26500e4
feat: update summary page
wackerow Jan 28, 2025
c768bfc
fix: client card layout
wackerow Jan 28, 2025
381d49b
feat: update top-up logic for pectra max eb
wackerow Jan 28, 2025
d7273a2
ux: speed up animation
wackerow Jan 28, 2025
cabd37d
update: summary page with pectra adjustments
wackerow Jan 28, 2025
33e555e
feat: update logic for deposit tx amount
wackerow Jan 28, 2025
482eda7
fix: use memo complaint
wackerow Jan 28, 2025
f5756e9
refactor: heading levels, account types to h4's
wackerow Jan 28, 2025
2442c83
Integrating with compounding/withdrawal contract for consolidation an…
valefar-on-discord Jan 29, 2025
2622dc2
Change Actions api to search by withdrawal address
valefar-on-discord Jan 29, 2025
23198b4
update: withdrawals content for pectra
wackerow Jan 29, 2025
23b261c
patch: singular
wackerow Jan 29, 2025
7345b14
fix: deposit data amount validation for pectra
wackerow Jan 29, 2025
cafb0bc
fix: summary and congrats logic for 0x02 amounts
wackerow Jan 29, 2025
e284972
temp: add devnet5 network
wackerow Jan 29, 2025
7341127
test: use devnet5 in env template
wackerow Jan 29, 2025
7ad12b2
test: use devnet5 in netlify toml
wackerow Jan 29, 2025
0f654da
fix: executionLayerName destructuring
wackerow Jan 28, 2025
01d421e
test: use devnet5 in netlify toml
wackerow Jan 29, 2025
feb4bdb
Merge branch 'pectra' into pr/724
wackerow Jan 30, 2025
9998b76
Merge pull request #724 from valefar-on-discord/validator-consolidation
wackerow Jan 30, 2025
89b7d9b
fix: build errors
wackerow Jan 30, 2025
2784e56
fix: useMemo exhaustive deps
wackerow Jan 30, 2025
ae83e00
fix: import order
wackerow Jan 30, 2025
cbeac3b
fix: summary filters out deposits not ready
wackerow Jan 30, 2025
1ccb28f
feat: create useDepositKeyList hook
wackerow Jan 30, 2025
50c9b8d
refactor: impl useDepositKeyList, tsStatus lists
wackerow Jan 30, 2025
0ee21c8
feat: add validators utils
wackerow Jan 30, 2025
9fbb7c1
ui: adjust Button and Select styling
wackerow Jan 30, 2025
155f2d0
refactor: ui Button on Action components
wackerow Jan 30, 2025
2010574
refactor: use latest component updates
wackerow Jan 30, 2025
6b9cefd
refactor: validator fetching; implement fetch more
wackerow Jan 31, 2025
00f553c
feat: style action buttons
wackerow Jan 31, 2025
197cef0
Fixing consolidation to properly handle source/target
valefar-on-discord Jan 31, 2025
9d2303a
Merge pull request #725 from valefar-on-discord/pectra
wackerow Jan 31, 2025
3851556
Merge branch 'pectra' of https://github.com/ethereum/staking-launchpa…
wackerow Jan 31, 2025
4cfa53e
fix: hook dependency array
wackerow Jan 31, 2025
f85c0f3
feat: redesign action button structure
wackerow Jan 31, 2025
05f6083
feat: redesign action button structure
wackerow Jan 31, 2025
de755af
intl: extract strings for intl
wackerow Jan 31, 2025
42eadb9
feat: create reusable ValidatorSelector
wackerow Jan 31, 2025
ce52eff
refactor: use ValidatorSelector
wackerow Jan 31, 2025
dbad81b
fix: target validator logic; rename component
wackerow Jan 31, 2025
dad0dfd
fix: disabled button styling
wackerow Jan 31, 2025
fc1f931
fix: spacing, disabled button boolean
wackerow Jan 31, 2025
a8f3a66
feat: update push/pull consolidation approaches
wackerow Jan 31, 2025
2d0c560
fix: added user partial withdrawal transaction code
remyroy Jan 31, 2025
6c106c9
Merge pull request #727 from remyroy/pectra
wackerow Jan 31, 2025
415a0a9
chore: clean up, intl string patches
wackerow Jan 31, 2025
a1563a1
refactor: BackButton, use inside Paper
wackerow Jan 31, 2025
a015640
feat: update top-up for 0x02
wackerow Jan 31, 2025
0b07541
feat: pass style prop to Button
wackerow Jan 31, 2025
339a874
feat: update exit confirm modal
wackerow Jan 31, 2025
e9af7a7
feat: clean up exit modal
wackerow Feb 1, 2025
7fe15fb
fix: error tx logic and retry
wackerow Feb 1, 2025
ca27a6d
feat: create shared ModalHeader
wackerow Feb 1, 2025
6bbfa4e
fix: exited logic, intl strings
wackerow Feb 1, 2025
b3aeefa
build: update env vars
wackerow Feb 1, 2025
d6ab53b
content: updates for exit conditions
wackerow Feb 1, 2025
b6b2fde
fix: MetaMask casing
wackerow Feb 1, 2025
59ff253
patch: suggestions from code review
wackerow Feb 1, 2025
db5109a
refactor: use subgrid for Select
wackerow Feb 1, 2025
7732bb3
refactor: use ModalHeader
wackerow Feb 1, 2025
ac3ffe8
feat: add status to ValidatorDetails
wackerow Feb 1, 2025
8c60919
ux: add pill styling to rec, shorten stepper delay
wackerow Feb 1, 2025
0ad6f2e
fix: fetch button sizing, potential source filtering
wackerow Feb 1, 2025
cde85af
feat: add status color
wackerow Feb 1, 2025
1a0d52c
feat: update consolidate into modal flow
wackerow Feb 1, 2025
a5f4fa1
fix: import order
wackerow Feb 1, 2025
87fdb00
fix: string type for env var config
wackerow Feb 1, 2025
a3a88e1
theme: reduce x-padding on mobile
wackerow Feb 1, 2025
f35e37c
fix: hide prefix on mobile
wackerow Feb 1, 2025
ae4639b
ui: layout adjustments
wackerow Feb 1, 2025
295bd44
ui: remove checkmark, use highlighting
wackerow Feb 1, 2025
48a7039
ui/ux: dim inactionable validators in select
wackerow Feb 1, 2025
35ad993
refactor: rename and reorder push/pull consolidations
wackerow Feb 1, 2025
460a928
feat: update PushConsolidation modal flow
wackerow Feb 2, 2025
a42988a
chore: code polishes and adjustments
wackerow Feb 2, 2025
df038ee
feat: update UpdateCompounding modal flow
wackerow Feb 2, 2025
1e167a0
feat: update UpgradeCompounding modal flow
wackerow Feb 2, 2025
7b8a3f6
Updating validator credential prefix logic to use enum
valefar-on-discord Feb 2, 2025
9e2412b
Adding top up option to actions
valefar-on-discord Feb 2, 2025
36e937a
refactor: extract HelpCallout
wackerow Feb 2, 2025
fae5fdc
feat: update no results state, add HelpCallout to action footer
wackerow Feb 2, 2025
48eb47a
develop: add devnet6 settings
wackerow Feb 3, 2025
f384628
fix: use genesis fork version
wackerow Feb 3, 2025
7690645
build: use finalized contract addresses
wackerow Feb 4, 2025
241c728
fix: readyForDeposit count logic
wackerow Feb 4, 2025
eec34b2
fix: deposit amount conversion
remyroy Feb 4, 2025
e1e40eb
Merge pull request #730 from remyroy/pectra
wackerow Feb 4, 2025
dc12e01
Merge pull request #728 from valefar-on-discord/pectra
wackerow Feb 4, 2025
dfe2074
Merge pull request #729 from valefar-on-discord/pectra-top-up
wackerow Feb 4, 2025
c7474a4
build: revert back to devnet 5 config
wackerow Feb 5, 2025
bd2ccc1
refactor: rm computed properties, use helper utils
wackerow Feb 5, 2025
7e1aa20
feat: add useExecutionBalance hook
wackerow Feb 5, 2025
ed0fb11
feat: update add funds flow
wackerow Feb 6, 2025
963e885
fix: add funds maxEB logic and support copy
wackerow Feb 6, 2025
9fe0ced
fix: clean up logic and summary styling amongst actions
wackerow Feb 6, 2025
0699e51
fix: withdrawal address check logic
wackerow Feb 6, 2025
d73d915
feat: use subgrid, align action button sizes
wackerow Feb 6, 2025
64a00bf
refactor: extract reusable tx status utils
wackerow Feb 7, 2025
00963e5
feat: consolidate modals; nest tx status
wackerow Feb 7, 2025
c47c46a
fix: comment
wackerow Feb 7, 2025
0d397ff
feat: update PushConsolidation modal handling
wackerow Feb 7, 2025
9a5db0e
feat: update AddFunds with nested tx flow
wackerow Feb 7, 2025
448781d
fix: integer error
wackerow Feb 7, 2025
d1d5a2e
chore: copy adjustments
wackerow Feb 7, 2025
7f86430
feat: add balances grid summary
wackerow Feb 7, 2025
29f5ed6
feat: nest tx status in same modal; exit flow
wackerow Feb 7, 2025
dcd0eb2
feat: update UpgradeConsolidation modal flow
wackerow Feb 7, 2025
8ecd381
feat: add delay alert, and refresh button
wackerow Feb 10, 2025
fbb8690
feat: create useModal hook
wackerow Feb 11, 2025
16a01b9
feat: update PartialWithdrawal modal flow
wackerow Feb 11, 2025
fc11b78
fix: mobile responsiveness for alert
wackerow Feb 11, 2025
ccc7158
refactor: use useModal hook
wackerow Feb 11, 2025
3e3fd42
refactor: ModalFooter styling
wackerow Feb 11, 2025
1a215bd
fix: remove stray characters
wackerow Feb 11, 2025
90de788
feat: animate refresh; automate 30s interval
wackerow Feb 11, 2025
43cf418
fix: withdrawal contract address for devnet 5
wackerow Feb 11, 2025
5f0dc2d
Remove client diversity warnings from individual clients as client us…
CarlBeek Feb 12, 2025
1bbe4f9
Removes ClientDiversityWarning component
CarlBeek Feb 12, 2025
bb952c5
patch: remove stray characters
wackerow Feb 12, 2025
749aa48
refactor: return Queue with length and fee
wackerow Feb 12, 2025
27540b1
build: pin version, rm "latest" tags
wackerow Feb 12, 2025
cae5622
refactor: move MAX_QUERY_LIMIT to envVars, add default contracts
wackerow Feb 12, 2025
7ec89df
feat: trim UI on add/rm funds paths
wackerow Feb 13, 2025
736ea32
ui: adjust component layout
wackerow Feb 13, 2025
25faf34
feat: update UI on add/rm funds paths
wackerow Feb 13, 2025
daf0600
feat: update consolidation and exit flow
wackerow Feb 13, 2025
cfbff91
feat: update actions general alert
wackerow Feb 13, 2025
98972c3
fix: Alert prop passage and typing
wackerow Feb 13, 2025
7d7ffd0
ui: copy/styling adjustments, update for intl
wackerow Feb 13, 2025
314693e
feat: add useWithdrawalQueue and fee warning component
wackerow Feb 13, 2025
a1b6009
refactor: rename DEPOSIT_CONTRACT_ADDRESS
wackerow Feb 13, 2025
5873a24
feat: add useCompoundingQueue hook
wackerow Feb 13, 2025
a29e8b6
refactor: useTxModal; feat: add QueueWarning
wackerow Feb 13, 2025
ca598e7
fix: account for min deposit amount
wackerow Feb 13, 2025
8607d5f
fix: use consistent simple table for both amount inputs
wackerow Feb 13, 2025
dd64504
feat: clean up QueueWarning logic
wackerow Feb 14, 2025
53f7807
fix: PushConsolidation source/target order
wackerow Feb 14, 2025
1054ee8
feat: add "max" button to NumberInput
wackerow Feb 14, 2025
429e6a2
fix: determine maxEB from account type
wackerow Feb 14, 2025
ded8412
Merge pull request #732 from ethereum/remove_diversity_warnings
wackerow Feb 22, 2025
ef70e4f
revert: devnet env vars; prepare for launch
wackerow Feb 22, 2025
fcc85d7
Merge branch 'dev' into pectra
wackerow Feb 22, 2025
5d89d38
revert: devnets in web3Utils
wackerow Feb 24, 2025
fa1fa6a
Merge pull request #721 from ethereum/pectra
wackerow Feb 24, 2025
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
7 changes: 0 additions & 7 deletions .env.goerli

This file was deleted.

4 changes: 2 additions & 2 deletions .env.holesky
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export REACT_APP_ETH_REQUIREMENT=524288
export REACT_APP_ETH_DEPOSIT_OFFSET=0
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
export REACT_APP_GENESIS_FORK_VERSION=0x01017000
export REACT_APP_MIN_DEPOSIT_CLI_VERSION=2.7.0
export REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
export REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
export REACT_APP_EL_EXPLORER_URL=https://holesky.beaconcha.in
export REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
export REACT_APP_FAUCET_URL=https://holesky.faucet.net
export REACT_APP_FAUCET_URL=https://www.holeskyfaucet.io/
export REACT_APP_MIN_GENESIS_TIME=1695902400000
2 changes: 1 addition & 1 deletion .env.mainnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export REACT_APP_IS_MAINNET=true
export REACT_APP_CONTRACT_ADDRESS=0x00000000219ab540356cBB839Cbe05303d7705Fa
export REACT_APP_ETH_REQUIREMENT=524288
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Goerli
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
export REACT_APP_GENESIS_FORK_VERSION=0x00000000
export REACT_APP_IS_MERGE=false
39 changes: 28 additions & 11 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#
# Private
#
REACT_APP_PORTIS_DAPP_ID=006cdb48-470e-466c-aa20-c4de6ebd10e7
REACT_APP_INFURA_PROJECT_ID=464bfe80298f4d0782f61h4b91de2dcb

#
Expand All @@ -13,15 +12,19 @@ REACT_APP_IS_MAINNET=true
REACT_APP_FORTMATIC_KEY=pk_test_D113D979E0D3508F
# string
REACT_APP_CONTRACT_ADDRESS=0x00000000219ab540356cBB839Cbe05303d7705Fa
# string
REACT_APP_COMPOUNDING_CONTRACT_ADDRESS=0x0000BBdDc7CE488642fb579F8B00f3a590007251
# string
REACT_APP_WITHDRAWAL_CONTRACT_ADDRESS=0x00000961Ef480Eb55e80D19ad83579A64c007002
# number
REACT_APP_ETH_REQUIREMENT=524288
# number
REACT_APP_PRICE_PER_VALIDATOR=32
REACT_APP_MIN_ACTIVATION_BALANCE=32
# number
REACT_APP_MAX_EFFECTIVE_BALANCE=2048
# Uint8Array such as "0x00000000"
REACT_APP_GENESIS_FORK_VERSION=0x00000000
# string
REACT_APP_MIN_DEPOSIT_CLI_VERSION=1.0.0
# string
REACT_APP_LIGHTHOUSE_INSTALLATION_URL=https://lighthouse-book.sigmaprime.io/
# string
REACT_APP_NIMBUS_INSTALLATION_URL=https://nimbus.guide/intro.html
Expand All @@ -33,17 +36,31 @@ REACT_APP_TEKU_INSTALLATION_URL=https://docs.teku.consensys.io/get-started/insta
#
# Testnet only
#
# true, false
REACT_APP_IS_MAINNET=false
# string (if `REACT_APP_IS_MAINNET=true`, it's the active public testnet name; otherwise, it's the testnet name of this website)
REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
# string
REACT_APP_RPC_URL=https://rpc.kintsugi.themerge.dev
REACT_APP_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242
# string
REACT_APP_BEACONCHAIN_URL=https://beaconchain.kintsugi.themerge.dev
REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
# string
REACT_APP_EL_EXPLORER_URL=https://explorer.kintsugi.themerge.dev
REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
# string
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/mainnet
# string (if `REACT_APP_IS_MAINNET=true`, it's the active public testnet name; otherwise, it's the testnet name of this website)
REACT_APP_TESTNET_LAUNCHPAD_NAME=Goerli
REACT_APP_EL_EXPLORER_URL=https://holesky.beaconcha.in
# string
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
# number
REACT_APP_ETH_DEPOSIT_OFFSET=0
# string
REACT_APP_FAUCET_URL=https://faucetlink.to/goerli
REACT_APP_FAUCET_URL=https://www.holeskyfaucet.io/
# string
REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
# string
REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
# string
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
# number
REACT_APP_ETH_DEPOSIT_OFFSET=0
# number
REACT_APP_MIN_GENESIS_TIME=1695902400000
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.19.2
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5"
"trailingComma": "es5",
"tabWidth": 2,
"semi": true
}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ The Infura Project ID will enable the network status progress bar showing the ba
REACT_APP_INFURA_PROJECT_ID=your-infura-project-id-here
```

Note: The Portis wallet option is not available when running locally

## Installation

**Available Scripts**
Expand All @@ -51,7 +49,7 @@ By default, `dev` acts as the primary base branch which all PRs should merge int

## Launchpad deployment

- The `master` branch represents the live **testnet** version of the Launchpad. Open a PR to merge `dev` into `master` to deploy a testnet Launchpad (e.g. [#517](https://github.com/ethereum/staking-launchpad/pull/517) for https://goerli.launchpad.ethereum.org/ )
- The `master` branch represents the live **testnet** version of the Launchpad. Open a PR to merge `dev` into `master` to deploy a testnet Launchpad (e.g. [#517](https://github.com/ethereum/staking-launchpad/pull/517) for https://holesky.launchpad.ethereum.org/ )
- The `mainnet` branch represents the live **Mainnet** version of the Launchpad. Open a PR to merge `master` into `mainnet` to deploy the Mainnet Launchpad (e.g. [#518](https://github.com/ethereum/staking-launchpad/pull/518) for https://launchpad.ethereum.org/)

## Launchpad translation
Expand Down
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
NODE_VERSION = "14.19.2"
[context.deploy-preview.environment]
NODE_VERSION = "14.19.2"
REACT_APP_IS_MERGE = "true"
REACT_APP_COMPOUNDING_CONTRACT_ADDRESS = "0x0000BBdDc7CE488642fb579F8B00f3a590007251"
REACT_APP_WITHDRAWAL_CONTRACT_ADDRESS = "0x00000961Ef480Eb55e80D19ad83579A64c007002"
[context.branch-deploy.environment]
NODE_VERSION = "14.19.2"
[context.dev.environment]
Expand Down
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@
"@types/react-helmet": "^6.1.0",
"@types/react-scroll": "^1.5.4",
"@types/react-tooltip": "^3.11.0",
"@web3-react/abstract-connector": "latest",
"@web3-react/abstract-connector": "6.0.7",
"@web3-react/core": "^6.0.7",
"@web3-react/fortmatic-connector": "^6.0.7",
"@web3-react/injected-connector": "latest",
"@web3-react/portis-connector": "latest",
"@web3-react/injected-connector": "6.0.7",
"@web3-react/types": "^6.0.7",
"animate.css": "^3.7.2",
"animate.css-react": "^1.0.0",
"axios": "^0.21.2",
"babel-plugin-formatjs": "^9.0.4",
"babel-plugin-react-require": "^3.1.3",
"bignumber.js": "^9.0.0",
"compare-versions": "^3.6.0",
"d3": "^5.16.0",
"eslint-plugin-formatjs": "^2.12.0",
"ethereumjs-util": "^7.1.5",
Expand Down Expand Up @@ -113,7 +111,15 @@
"compile": "formatjs compile src/intl/en.json --format crowdin --out-file src/intl/compiled/en.json --ast"
},
"eslintConfig": {
"extends": "react-app"
"extends": [
"react-app",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint",
"prettier"
]
},
"browserslist": {
"production": [
Expand Down
3 changes: 3 additions & 0 deletions src/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useIntl } from 'react-intl';
import { supportedLanguages } from './intl';
import {
AcknowledgementPage,
ActionsPage,
CongratulationsPage,
ConnectWalletPage,
SelectClientPage,
Expand Down Expand Up @@ -70,6 +71,7 @@ export enum routesEnum {
languagesPage = '/languages',
withdrawals = '/withdrawals',
btecGuide = '/btec',
actionsPage = '/validator-actions',
}
const routes: RouteType[] = [
{
Expand Down Expand Up @@ -126,6 +128,7 @@ const routes: RouteType[] = [
{ path: routesEnum.topUpPage, exact: true, component: TopUpPage },
{ path: routesEnum.withdrawals, exact: true, component: Withdrawals },
{ path: routesEnum.btecGuide, exact: true, component: BtecGuide },
{ path: routesEnum.actionsPage, exact: true, component: ActionsPage },
{ path: routesEnum.landingPage, exact: true, component: LandingPage },
// NOTE: this wildcard route must be the last index of the routes array
{ path: routesEnum.notFoundPage, component: NotFoundPage },
Expand Down
57 changes: 31 additions & 26 deletions src/components/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import { Box, BoxProps } from 'grommet';

const variantStyles = {
const variantStyles: Record<string, React.CSSProperties> = {
primary: {
backgroundColor: '#cce5ff',
borderColor: '#b8daff',
Expand Down Expand Up @@ -39,28 +39,33 @@ const HighlightStyles = styled.div`
}
`;

export const Alert = (
props: {
children: React.ReactNode;
className?: string;
error?: boolean;
style?: any;
variant?: string;
} & BoxProps
): JSX.Element => {
const { variant = 'primary', className, children, pad } = props;
return (
<Box
border
className={className}
pad={pad || 'medium'}
round="xsmall"
variant={variant}
{...props}
// @ts-ignore
style={variantStyles[variant]}
>
<HighlightStyles>{children}</HighlightStyles>
</Box>
);
};
type AlertProps = {
children: React.ReactNode;
className?: string;
error?: boolean;
style?: any;
variant?: string;
} & BoxProps;

export const Alert = ({
variant = 'primary',
className,
children,
style,
pad,
...props
}: AlertProps) => (
<Box
border
className={className}
pad={pad || 'medium'}
round="xsmall"
style={{
...variantStyles[variant],
...style,
}}
{...props}
>
<HighlightStyles>{children}</HighlightStyles>
</Box>
);
Loading
Loading