Skip to content

Commit eb42a88

Browse files
authored
Merge pull request #737 from ethereum/dev
Deploy `dev` into `master`
2 parents 6752c8c + fa1fa6a commit eb42a88

File tree

106 files changed

+9322
-3981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+9322
-3981
lines changed

Diff for: .env.goerli

-7
This file was deleted.

Diff for: .env.holesky

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ export REACT_APP_ETH_REQUIREMENT=524288
44
export REACT_APP_ETH_DEPOSIT_OFFSET=0
55
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
66
export REACT_APP_GENESIS_FORK_VERSION=0x01017000
7-
export REACT_APP_MIN_DEPOSIT_CLI_VERSION=2.7.0
87
export REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
98
export REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
109
export REACT_APP_EL_EXPLORER_URL=https://holesky.beaconcha.in
1110
export REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
12-
export REACT_APP_FAUCET_URL=https://holesky.faucet.net
11+
export REACT_APP_FAUCET_URL=https://www.holeskyfaucet.io/
12+
export REACT_APP_MIN_GENESIS_TIME=1695902400000

Diff for: .env.mainnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export REACT_APP_IS_MAINNET=true
22
export REACT_APP_CONTRACT_ADDRESS=0x00000000219ab540356cBB839Cbe05303d7705Fa
33
export REACT_APP_ETH_REQUIREMENT=524288
4-
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Goerli
4+
export REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
55
export REACT_APP_GENESIS_FORK_VERSION=0x00000000
66
export REACT_APP_IS_MERGE=false

Diff for: .env.template

+28-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Private
33
#
4-
REACT_APP_PORTIS_DAPP_ID=006cdb48-470e-466c-aa20-c4de6ebd10e7
54
REACT_APP_INFURA_PROJECT_ID=464bfe80298f4d0782f61h4b91de2dcb
65

76
#
@@ -13,15 +12,19 @@ REACT_APP_IS_MAINNET=true
1312
REACT_APP_FORTMATIC_KEY=pk_test_D113D979E0D3508F
1413
# string
1514
REACT_APP_CONTRACT_ADDRESS=0x00000000219ab540356cBB839Cbe05303d7705Fa
15+
# string
16+
REACT_APP_COMPOUNDING_CONTRACT_ADDRESS=0x0000BBdDc7CE488642fb579F8B00f3a590007251
17+
# string
18+
REACT_APP_WITHDRAWAL_CONTRACT_ADDRESS=0x00000961Ef480Eb55e80D19ad83579A64c007002
1619
# number
1720
REACT_APP_ETH_REQUIREMENT=524288
1821
# number
19-
REACT_APP_PRICE_PER_VALIDATOR=32
22+
REACT_APP_MIN_ACTIVATION_BALANCE=32
23+
# number
24+
REACT_APP_MAX_EFFECTIVE_BALANCE=2048
2025
# Uint8Array such as "0x00000000"
2126
REACT_APP_GENESIS_FORK_VERSION=0x00000000
2227
# string
23-
REACT_APP_MIN_DEPOSIT_CLI_VERSION=1.0.0
24-
# string
2528
REACT_APP_LIGHTHOUSE_INSTALLATION_URL=https://lighthouse-book.sigmaprime.io/
2629
# string
2730
REACT_APP_NIMBUS_INSTALLATION_URL=https://nimbus.guide/intro.html
@@ -33,17 +36,31 @@ REACT_APP_TEKU_INSTALLATION_URL=https://docs.teku.consensys.io/get-started/insta
3336
#
3437
# Testnet only
3538
#
39+
# true, false
40+
REACT_APP_IS_MAINNET=false
41+
# string (if `REACT_APP_IS_MAINNET=true`, it's the active public testnet name; otherwise, it's the testnet name of this website)
42+
REACT_APP_TESTNET_LAUNCHPAD_NAME=Holesky
3643
# string
37-
REACT_APP_RPC_URL=https://rpc.kintsugi.themerge.dev
44+
REACT_APP_CONTRACT_ADDRESS=0x4242424242424242424242424242424242424242
3845
# string
39-
REACT_APP_BEACONCHAIN_URL=https://beaconchain.kintsugi.themerge.dev
46+
REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
4047
# string
41-
REACT_APP_EL_EXPLORER_URL=https://explorer.kintsugi.themerge.dev
48+
REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
4249
# string
43-
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/mainnet
44-
# string (if `REACT_APP_IS_MAINNET=true`, it's the active public testnet name; otherwise, it's the testnet name of this website)
45-
REACT_APP_TESTNET_LAUNCHPAD_NAME=Goerli
50+
REACT_APP_EL_EXPLORER_URL=https://holesky.beaconcha.in
51+
# string
52+
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
4653
# number
4754
REACT_APP_ETH_DEPOSIT_OFFSET=0
4855
# string
49-
REACT_APP_FAUCET_URL=https://faucetlink.to/goerli
56+
REACT_APP_FAUCET_URL=https://www.holeskyfaucet.io/
57+
# string
58+
REACT_APP_RPC_URL=https://rpc.holesky.ethpandaops.io
59+
# string
60+
REACT_APP_BEACONCHAIN_URL=https://holesky.beaconcha.in
61+
# string
62+
REACT_APP_TUTORIAL_URL=https://notes.ethereum.org/@launchpad/holesky
63+
# number
64+
REACT_APP_ETH_DEPOSIT_OFFSET=0
65+
# number
66+
REACT_APP_MIN_GENESIS_TIME=1695902400000

Diff for: .nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.19.2

Diff for: .prettierrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
22
"singleQuote": true,
3-
"trailingComma": "es5"
3+
"trailingComma": "es5",
4+
"tabWidth": 2,
5+
"semi": true
46
}

Diff for: README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ The Infura Project ID will enable the network status progress bar showing the ba
2626
REACT_APP_INFURA_PROJECT_ID=your-infura-project-id-here
2727
```
2828

29-
Note: The Portis wallet option is not available when running locally
30-
3129
## Installation
3230

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

5250
## Launchpad deployment
5351

54-
- 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/ )
52+
- 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/ )
5553
- 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/)
5654

5755
## Launchpad translation

Diff for: netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
NODE_VERSION = "14.19.2"
55
[context.deploy-preview.environment]
66
NODE_VERSION = "14.19.2"
7+
REACT_APP_IS_MERGE = "true"
8+
REACT_APP_COMPOUNDING_CONTRACT_ADDRESS = "0x0000BBdDc7CE488642fb579F8B00f3a590007251"
9+
REACT_APP_WITHDRAWAL_CONTRACT_ADDRESS = "0x00000961Ef480Eb55e80D19ad83579A64c007002"
710
[context.branch-deploy.environment]
811
NODE_VERSION = "14.19.2"
912
[context.dev.environment]

Diff for: package.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,17 @@
1515
"@types/react-helmet": "^6.1.0",
1616
"@types/react-scroll": "^1.5.4",
1717
"@types/react-tooltip": "^3.11.0",
18-
"@web3-react/abstract-connector": "latest",
18+
"@web3-react/abstract-connector": "6.0.7",
1919
"@web3-react/core": "^6.0.7",
2020
"@web3-react/fortmatic-connector": "^6.0.7",
21-
"@web3-react/injected-connector": "latest",
22-
"@web3-react/portis-connector": "latest",
21+
"@web3-react/injected-connector": "6.0.7",
2322
"@web3-react/types": "^6.0.7",
2423
"animate.css": "^3.7.2",
2524
"animate.css-react": "^1.0.0",
2625
"axios": "^0.21.2",
2726
"babel-plugin-formatjs": "^9.0.4",
2827
"babel-plugin-react-require": "^3.1.3",
2928
"bignumber.js": "^9.0.0",
30-
"compare-versions": "^3.6.0",
3129
"d3": "^5.16.0",
3230
"eslint-plugin-formatjs": "^2.12.0",
3331
"ethereumjs-util": "^7.1.5",
@@ -113,7 +111,15 @@
113111
"compile": "formatjs compile src/intl/en.json --format crowdin --out-file src/intl/compiled/en.json --ast"
114112
},
115113
"eslintConfig": {
116-
"extends": "react-app"
114+
"extends": [
115+
"react-app",
116+
"plugin:@typescript-eslint/recommended",
117+
"plugin:prettier/recommended"
118+
],
119+
"plugins": [
120+
"@typescript-eslint",
121+
"prettier"
122+
]
117123
},
118124
"browserslist": {
119125
"production": [

Diff for: src/Routes.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useIntl } from 'react-intl';
55
import { supportedLanguages } from './intl';
66
import {
77
AcknowledgementPage,
8+
ActionsPage,
89
CongratulationsPage,
910
ConnectWalletPage,
1011
SelectClientPage,
@@ -70,6 +71,7 @@ export enum routesEnum {
7071
languagesPage = '/languages',
7172
withdrawals = '/withdrawals',
7273
btecGuide = '/btec',
74+
actionsPage = '/validator-actions',
7375
}
7476
const routes: RouteType[] = [
7577
{
@@ -126,6 +128,7 @@ const routes: RouteType[] = [
126128
{ path: routesEnum.topUpPage, exact: true, component: TopUpPage },
127129
{ path: routesEnum.withdrawals, exact: true, component: Withdrawals },
128130
{ path: routesEnum.btecGuide, exact: true, component: BtecGuide },
131+
{ path: routesEnum.actionsPage, exact: true, component: ActionsPage },
129132
{ path: routesEnum.landingPage, exact: true, component: LandingPage },
130133
// NOTE: this wildcard route must be the last index of the routes array
131134
{ path: routesEnum.notFoundPage, component: NotFoundPage },

Diff for: src/components/Alert.tsx

+31-26
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import styled from 'styled-components';
33
import { Box, BoxProps } from 'grommet';
44

5-
const variantStyles = {
5+
const variantStyles: Record<string, React.CSSProperties> = {
66
primary: {
77
backgroundColor: '#cce5ff',
88
borderColor: '#b8daff',
@@ -39,28 +39,33 @@ const HighlightStyles = styled.div`
3939
}
4040
`;
4141

42-
export const Alert = (
43-
props: {
44-
children: React.ReactNode;
45-
className?: string;
46-
error?: boolean;
47-
style?: any;
48-
variant?: string;
49-
} & BoxProps
50-
): JSX.Element => {
51-
const { variant = 'primary', className, children, pad } = props;
52-
return (
53-
<Box
54-
border
55-
className={className}
56-
pad={pad || 'medium'}
57-
round="xsmall"
58-
variant={variant}
59-
{...props}
60-
// @ts-ignore
61-
style={variantStyles[variant]}
62-
>
63-
<HighlightStyles>{children}</HighlightStyles>
64-
</Box>
65-
);
66-
};
42+
type AlertProps = {
43+
children: React.ReactNode;
44+
className?: string;
45+
error?: boolean;
46+
style?: any;
47+
variant?: string;
48+
} & BoxProps;
49+
50+
export const Alert = ({
51+
variant = 'primary',
52+
className,
53+
children,
54+
style,
55+
pad,
56+
...props
57+
}: AlertProps) => (
58+
<Box
59+
border
60+
className={className}
61+
pad={pad || 'medium'}
62+
round="xsmall"
63+
style={{
64+
...variantStyles[variant],
65+
...style,
66+
}}
67+
{...props}
68+
>
69+
<HighlightStyles>{children}</HighlightStyles>
70+
</Box>
71+
);

0 commit comments

Comments
 (0)