2023-10-10 15:58:46 +00:00
|
|
|
// App
|
|
|
|
export const apiKey = '1730eff0-9d50-4382-a3fe-89f0d34a2070'
|
|
|
|
const INFURA_KEY = 'f25e905e25a545dcaad2c939530b91db'
|
|
|
|
const rpcUrl = `https://mainnet.infura.io/v3/${INFURA_KEY}`
|
|
|
|
export const wcV2InitOptions = {
|
2023-10-10 20:09:06 +00:00
|
|
|
projectId: '4f6c353926c22973029147b9d85c4485',
|
2023-10-10 15:58:46 +00:00
|
|
|
requiredChains: [1, 56],
|
2023-10-10 20:09:06 +00:00
|
|
|
dappUrl: 'http://localhost:5173/',
|
2023-10-10 15:58:46 +00:00
|
|
|
}
|
|
|
|
export const ethereumRopsten = {
|
|
|
|
id: '0x3',
|
|
|
|
token: 'rETH',
|
|
|
|
label: 'Ethereum Ropsten',
|
|
|
|
rpcUrl,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Device Health Check
|
2023-08-09 07:26:00 +00:00
|
|
|
export const GOOD_STORAGE_TEXT =
|
|
|
|
'You have plenty of storage available for additional node services.'
|
2023-08-09 08:26:50 +00:00
|
|
|
export const GOOD_CPU_CLOCK_RATE_TEXT = '2.4GHz is recommended for CPU.'
|
2024-01-29 08:24:57 +00:00
|
|
|
export const GOOD_RAM_MEMORY_TEXT =
|
|
|
|
'There is sufficient RAM required for selected services.'
|
2023-08-09 07:26:00 +00:00
|
|
|
export const GOOD_NETWORK_TEXT = 'Network Latency is low.'
|
2023-08-09 07:20:39 +00:00
|
|
|
export const BAD_STORAGE_TEXT =
|
|
|
|
'Your storage is running low as required for additional node services.'
|
2024-01-29 08:24:57 +00:00
|
|
|
export const BAD_CPU_CLOCK_RATE_TEXT =
|
|
|
|
'Your CPU clock rate is below the recommended 2.4GHz.'
|
|
|
|
export const BAD_RAM_MEMORY_TEXT =
|
|
|
|
'There is insufficient RAM required for selected services.'
|
2023-08-09 07:26:00 +00:00
|
|
|
export const BAD_NETWORK_TEXT = 'Network Latency is high.'
|
2023-08-29 06:26:24 +00:00
|
|
|
|
2023-10-10 15:58:46 +00:00
|
|
|
// Validator Onboarding
|
2023-08-30 07:10:53 +00:00
|
|
|
export const KEYSTORE_FILES = 'KeystoreFiles'
|
2023-08-29 06:26:24 +00:00
|
|
|
export const RECOVERY_PHRASE = 'Recovery Phrase'
|
2023-08-30 07:10:53 +00:00
|
|
|
export const BOTH_KEY_AND_RECOVERY = 'Both KeystoreFiles & Recovery Phrase'
|
2023-09-26 18:41:14 +00:00
|
|
|
export const ETH_PER_VALIDATOR = 32
|
2024-01-18 16:24:36 +00:00
|
|
|
export const FORM_STEPS = [
|
|
|
|
{ label: 'Overview', subtitle: 'Get Started' },
|
|
|
|
{ label: 'Advisories', subtitle: 'Understand your Duties' },
|
|
|
|
{ label: 'Client Setup', subtitle: 'Execution & Consensus' },
|
|
|
|
{ label: 'Validator Setup', subtitle: 'Validators & Withdrawal' },
|
|
|
|
{ label: 'Key Generation', subtitle: 'Secure your Keypairs' },
|
|
|
|
{ label: 'Deposit', subtitle: 'Stake your ETH' },
|
|
|
|
{ label: 'Activation', subtitle: 'Complete Setup' },
|
|
|
|
]
|
2024-01-18 21:46:48 +00:00
|
|
|
export const ADVISORY_TOPICS: {
|
|
|
|
[key: string]: string[]
|
|
|
|
} = {
|
|
|
|
'Proof of Stake': [
|
|
|
|
'Proof of Stake systems require validators to hold and lock up a certain amount of cryptocurrency to participate.',
|
|
|
|
'In Proof of Stake, the chances of creating a block is proportional to the amount of cryptocurrency held.',
|
|
|
|
'Unlike Proof of Work, Proof of Stake aims to achieve consensus without intensive computational work.',
|
|
|
|
],
|
|
|
|
Deposit: [
|
|
|
|
'Deposits are often irreversible, so ensure to double-check transaction details before confirming.',
|
|
|
|
'Delay in deposit acknowledgment might be due to network congestion or node synchronization.',
|
|
|
|
'Always keep transaction IDs or hashes for records and future references in case of disputes.',
|
|
|
|
],
|
|
|
|
'Key Management': [
|
|
|
|
'Storing your private keys on a device connected to the internet is susceptible to hacks and malware.',
|
|
|
|
'Hardware wallets provide an added layer of security by keeping private keys isolated from online systems.',
|
|
|
|
'Regularly back up and encrypt your key management solutions to prevent potential losses.',
|
|
|
|
],
|
|
|
|
'Bad Behaviour': [
|
|
|
|
'If you try to cheat the system, or act contrary to the specification, you will be liable to incur a penalty known as slashing.',
|
|
|
|
'Running your validator keys simultaneously on two or more machines will result in slashing.*',
|
|
|
|
'Simply being offline with an otherwise healthy network does not result in slashing, but will result in small inactivity penalties.',
|
|
|
|
],
|
|
|
|
Requirements: [
|
|
|
|
'Ensure your system meets the minimum software and hardware requirements before initiating any operations.',
|
|
|
|
'Staying updated with the latest versions is vital to maintain system integrity and performance.',
|
|
|
|
'Failure to meet requirements might result in operational inefficiencies or security vulnerabilities.',
|
|
|
|
],
|
|
|
|
Risks: [
|
|
|
|
'Cryptocurrency investments are subject to high volatility and can result in both significant gains and losses.',
|
|
|
|
'Always do thorough research before making investment decisions or engaging in transactions.',
|
|
|
|
'Be wary of phishing scams, malicious software, and too-good-to-be-true offers.',
|
|
|
|
],
|
|
|
|
}
|
2023-10-23 17:35:01 +00:00
|
|
|
|
2023-10-23 17:37:59 +00:00
|
|
|
export const MAC = 'MacOS'
|
2023-10-23 16:04:22 +00:00
|
|
|
export const WINDOWS = 'Windows'
|
|
|
|
export const LINUX = 'Linux'
|
2023-09-26 18:41:14 +00:00
|
|
|
|
|
|
|
// for now, this will be constant values
|
2023-09-27 16:55:24 +00:00
|
|
|
export const CURRENCIES = {
|
|
|
|
USD: 1583.42,
|
|
|
|
EUR: 1323.61,
|
|
|
|
}
|
2024-01-29 08:24:57 +00:00
|
|
|
export const DEPOSIT_SUBTITLE =
|
|
|
|
'Connect you Wallet to stake required ETH for new validators'
|
|
|
|
export const CLIENT_SETUP_SUBTITLE =
|
|
|
|
'How many Validators would you like to run?'
|
2023-10-24 03:59:22 +00:00
|
|
|
|
|
|
|
// Dashboard
|
2023-09-15 17:48:36 +00:00
|
|
|
export const years = [
|
|
|
|
'JAN',
|
|
|
|
'FEB',
|
|
|
|
'MAR',
|
|
|
|
'APR',
|
|
|
|
'MAY',
|
|
|
|
'JUN',
|
|
|
|
'JUL',
|
|
|
|
'AUG',
|
|
|
|
'SEPT',
|
|
|
|
'OCT',
|
|
|
|
'NOV',
|
|
|
|
'DEC',
|
|
|
|
]
|
2023-11-20 15:58:47 +00:00
|
|
|
export const VALIDATOR_TABS_RIGHT_SIDEBAR = ['Active', 'Pending', 'Inactive']
|
2023-11-13 22:56:41 +00:00
|
|
|
|
|
|
|
// Validator Management
|
2023-11-20 15:58:47 +00:00
|
|
|
export const VALIDATOR_TABS_MANAGEMENT = [
|
|
|
|
'Active',
|
|
|
|
'Pending',
|
|
|
|
'Inactive',
|
|
|
|
'Exited',
|
|
|
|
'Withdraw',
|
|
|
|
'All',
|
|
|
|
]
|
2023-11-15 20:42:30 +00:00
|
|
|
|
|
|
|
export const VALIDATORS_DATA = [
|
|
|
|
{
|
2024-01-18 09:41:43 +00:00
|
|
|
name: '1',
|
2023-11-15 20:42:30 +00:00
|
|
|
address: 'zQ3asdf9d4Gs0',
|
2023-11-15 20:50:08 +00:00
|
|
|
balance: 32.0786,
|
|
|
|
income: 0.0786,
|
|
|
|
proposals: '1/102',
|
|
|
|
attestations: '1/102',
|
|
|
|
effectiveness: 98,
|
2023-11-15 20:42:30 +00:00
|
|
|
status: 'Active',
|
|
|
|
},
|
|
|
|
{
|
2024-01-18 09:41:43 +00:00
|
|
|
name: '1',
|
2023-11-15 20:42:30 +00:00
|
|
|
address: 'zQ3asdf9d4Gs0',
|
2023-11-15 20:50:08 +00:00
|
|
|
balance: 32.0786,
|
|
|
|
income: 0.0786,
|
|
|
|
proposals: '1/102',
|
|
|
|
attestations: '1/102',
|
|
|
|
effectiveness: 98,
|
2023-11-15 20:42:30 +00:00
|
|
|
status: 'Active',
|
|
|
|
},
|
|
|
|
{
|
2024-01-18 09:41:43 +00:00
|
|
|
name: '1',
|
2023-11-15 20:42:30 +00:00
|
|
|
address: 'zQ3asdf9d4Gs0',
|
2023-11-15 20:50:08 +00:00
|
|
|
balance: 32.0786,
|
|
|
|
income: 0.0786,
|
|
|
|
proposals: '1/102',
|
|
|
|
attestations: '1/102',
|
|
|
|
effectiveness: 98,
|
2023-11-15 20:42:30 +00:00
|
|
|
status: 'Active',
|
|
|
|
},
|
|
|
|
{
|
2024-01-18 09:41:43 +00:00
|
|
|
name: '1',
|
2023-11-15 20:42:30 +00:00
|
|
|
address: 'zQ3asdf9d4Gs0',
|
2023-11-15 20:50:08 +00:00
|
|
|
balance: 32.0786,
|
|
|
|
income: 0.0786,
|
|
|
|
proposals: '1/102',
|
|
|
|
attestations: '1/102',
|
|
|
|
effectiveness: 98,
|
2023-11-15 20:42:30 +00:00
|
|
|
status: 'Active',
|
|
|
|
},
|
|
|
|
]
|
2024-01-06 19:10:57 +00:00
|
|
|
|
|
|
|
// Pair Device
|
|
|
|
export const VC = 'VC'
|
|
|
|
export const VALIDATOR_CLIENT = 'Validator Client'
|
|
|
|
export const BEACON = 'Beacon'
|
|
|
|
export const NODE = 'Node'
|
2024-01-06 19:13:22 +00:00
|
|
|
export const VC_PORT = '9000'
|
|
|
|
export const BEACON_PORT = '5052'
|
2024-01-06 19:15:22 +00:00
|
|
|
export const DEFAULT_ADDRESS = 'http://124.0.0.1'
|