@ -1,43 +1,32 @@
import {
import { Code , Link , ListItem , Stack , Text , UnorderedList } from '@chakra-ui/react' ;
Code ,
Link ,
ListItem ,
Stack ,
Text ,
UnorderedList ,
} from '@chakra-ui/react' ;
import type { NextPage } from 'next' ;
import type { NextPage } from 'next' ;
import { useState } from 'react'
import { useState } from 'react' ;
import {
import { DownloadsHero , DownloadsSection , DownloadsTable } from '../components/UI/downloads' ;
DownloadsHero ,
import { DataTable } from '../components/UI' ;
DownloadsSection ,
DownloadsTable ,
} from '../components/UI/downloads' ;
import { DataTable } from '../components/UI/DataTable' ;
import {
import {
DEFAULT_BUILD_AMOUNT_TO_SHOW ,
DEFAULT_BUILD_AMOUNT_TO_SHOW ,
DOWNLOAD_OPENPGP_BUILD_HEADERS ,
DOWNLOAD_OPENPGP_BUILD_HEADERS ,
DOWNLOAD_OPENPGP_DEVELOPER_HEADERS ,
DOWNLOAD_OPENPGP_DEVELOPER_HEADERS ,
GETH_REPO_URL
GETH_REPO_URL
} from '../constants'
} from '../constants' ;
import { testDownloadData } from '../data/test/download-testdata'
import { testDownloadData } from '../data/test/download-testdata' ;
import { pgpBuildTestData } from '../data/test/pgpbuild-testdata' ;
import { pgpBuildTestData } from '../data/test/pgpbuild-testdata' ;
import { pgpDeveloperTestData } from '../data/test/pgpdeveloper-testdata' ;
import { pgpDeveloperTestData } from '../data/test/pgpdeveloper-testdata' ;
const DownloadsPage : NextPage = ( ) = > {
const DownloadsPage : NextPage = ( ) = > {
const [ amountStableReleases , updateAmountStables ] = useState ( DEFAULT_BUILD_AMOUNT_TO_SHOW )
const [ amountStableReleases , updateAmountStables ] = useState ( DEFAULT_BUILD_AMOUNT_TO_SHOW ) ;
const [ amountDevelopBuilds , updateAmountDevelopBuilds ] = useState ( DEFAULT_BUILD_AMOUNT_TO_SHOW )
const [ amountDevelopBuilds , updateAmountDevelopBuilds ] = useState ( DEFAULT_BUILD_AMOUNT_TO_SHOW ) ;
const showMoreStableReleases = ( ) = > {
const showMoreStableReleases = ( ) = > {
updateAmountStables ( amountStableReleases + 10 )
updateAmountStables ( amountStableReleases + 10 ) ;
}
} ;
const showMoreDevelopBuilds = ( ) = > {
const showMoreDevelopBuilds = ( ) = > {
updateAmountDevelopBuilds ( amountDevelopBuilds + 10 )
updateAmountDevelopBuilds ( amountDevelopBuilds + 10 ) ;
}
} ;
return (
return (
< >
< >
@ -49,11 +38,17 @@ const DownloadsPage: NextPage = () => {
< DownloadsHero
< DownloadsHero
currentBuildName = { 'Sentry Omega' }
currentBuildName = { 'Sentry Omega' }
currentBuildVersion = { 'v1.10.23' }
currentBuildVersion = { 'v1.10.23' }
linuxBuildURL = { 'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.25-69568c55.tar.gz' }
linuxBuildURL = {
macOSBuildURL = { 'https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.10.25-69568c55.tar.gz' }
'https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.10.25-69568c55.tar.gz'
}
macOSBuildURL = {
'https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.10.25-69568c55.tar.gz'
}
releaseNotesURL = { '' }
releaseNotesURL = { '' }
sourceCodeURL = { 'https://github.com/ethereum/go-ethereum/archive/v1.10.25.tar.gz' }
sourceCodeURL = { 'https://github.com/ethereum/go-ethereum/archive/v1.10.25.tar.gz' }
windowsBuildURL = { 'https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.10.25-69568c55.exe' }
windowsBuildURL = {
'https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.10.25-69568c55.exe'
}
/ >
/ >
< DownloadsSection
< DownloadsSection
@ -64,7 +59,8 @@ const DownloadsPage: NextPage = () => {
>
>
< Stack p = { 4 } >
< Stack p = { 4 } >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
If you & apos ; re looking for a specific release , operating system or architecture , below you will find :
If you & apos ; re looking for a specific release , operating system or architecture ,
below you will find :
< / Text >
< / Text >
< UnorderedList px = { 4 } >
< UnorderedList px = { 4 } >
@ -86,11 +82,11 @@ const DownloadsPage: NextPage = () => {
< / UnorderedList >
< / UnorderedList >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
Please select your desired platform from the lists below and download your bundle of choice . Please be aware that the MD5 checksums are provided by our binary hosting platform ( Azure Blobstore ) to help check for download errors . For security guarantees please verify any downloads via the attached PGP signature files ( see { ' ' }
Please select your desired platform from the lists below and download your bundle of
< Link
choice . Please be aware that the MD5 checksums are provided by our binary hosting
href = { '#pgpsignatures' }
platform ( Azure Blobstore ) to help check for download errors . For security
variant = 'light'
guarantees please verify any downloads via the attached PGP signature files ( see { ' ' }
>
< Link href = { '#pgpsignatures' } variant = 'light' >
OpenPGP
OpenPGP
< / Link > { ' ' }
< / Link > { ' ' }
Signatures for details ) .
Signatures for details ) .
@ -101,19 +97,16 @@ const DownloadsPage: NextPage = () => {
< DownloadsSection sectionTitle = 'Stable releases' id = 'stablereleases' >
< DownloadsSection sectionTitle = 'Stable releases' id = 'stablereleases' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
These are the current and previous stable releases of go - ethereum , updated automatically when a new version is tagged in our { ' ' }
These are the current and previous stable releases of go - ethereum , updated
< Link
automatically when a new version is tagged in our { ' ' }
href = { GETH_REPO_URL }
< Link href = { GETH_REPO_URL } isExternal variant = 'light' >
isExternal
variant = 'light'
>
GitHub repository .
GitHub repository .
< / Link >
< / Link >
< / Text >
< / Text >
< / Stack >
< / Stack >
{ /* TODO: swap test data for real data */ }
{ /* TODO: swap test data for real data */ }
< DownloadsTable data = { testDownloadData . slice ( 0 , amountStableReleases ) } / >
< DownloadsTable data = { testDownloadData . slice ( 0 , amountStableReleases ) } / >
< Stack sx = { { mt : '0 !important' } } >
< Stack sx = { { mt : '0 !important' } } >
< Link as = 'button' variant = 'button-link-secondary' onClick = { showMoreStableReleases } >
< Link as = 'button' variant = 'button-link-secondary' onClick = { showMoreStableReleases } >
@ -133,12 +126,9 @@ const DownloadsPage: NextPage = () => {
< DownloadsSection sectionTitle = 'Develop builds' id = 'developbuilds' >
< DownloadsSection sectionTitle = 'Develop builds' id = 'developbuilds' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
These are the develop snapshots of go - ethereum , updated automatically when a new commit is pushed into our { ' ' }
These are the develop snapshots of go - ethereum , updated automatically when a new
< Link
commit is pushed into our { ' ' }
href = { GETH_REPO_URL }
< Link href = { GETH_REPO_URL } isExternal variant = 'light' >
isExternal
variant = 'light'
>
GitHub repository .
GitHub repository .
< / Link >
< / Link >
< / Text >
< / Text >
@ -171,10 +161,7 @@ const DownloadsPage: NextPage = () => {
{ /* TODO: swap for real data */ }
{ /* TODO: swap for real data */ }
< Stack borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Stack borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< DataTable
< DataTable columnHeaders = { DOWNLOAD_OPENPGP_BUILD_HEADERS } data = { pgpBuildTestData } / >
columnHeaders = { DOWNLOAD_OPENPGP_BUILD_HEADERS }
data = { pgpBuildTestData }
/ >
< / Stack >
< / Stack >
{ /* TODO: swap for real data */ }
{ /* TODO: swap for real data */ }
@ -189,41 +176,39 @@ const DownloadsPage: NextPage = () => {
< DownloadsSection sectionTitle = 'Importing keys and verifying builds' id = 'importingkeys' >
< DownloadsSection sectionTitle = 'Importing keys and verifying builds' id = 'importingkeys' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
You can import the build server public keys by grabbing the individual keys directly from the keyserver network :
You can import the build server public keys by grabbing the individual keys directly
from the keyserver network :
< / Text >
< / Text >
{ /* TODO: These keys depends on the binary */ }
{ /* TODO: These keys depends on the binary */ }
< Code p = { 4 } >
< Code p = { 4 } > gpg -- recv - keys F9585DE6 C2FF8BBF 9 BA28146 7 B9E2481 D2A67EAC < / Code >
gpg -- recv - keys F9585DE6 C2FF8BBF 9 BA28146 7 B9E2481 D2A67EAC
< / Code >
< / Stack >
< / Stack >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Stack p = { 4 } borderBottom = '2px solid' borderColor = 'brand.light.primary' >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
Similarly you can import all the developer public keys by grabbing them directly from the keyserver network :
Similarly you can import all the developer public keys by grabbing them directly
from the keyserver network :
< / Text >
< / Text >
{ /* TODO: These are developer keys, do we need to change? */ }
{ /* TODO: These are developer keys, do we need to change? */ }
< Code p = { 4 } >
< Code p = { 4 } > gpg -- recv - keys E058A81C 05 A5DDF0 1 CCB7DD2 < / Code >
gpg -- recv - keys E058A81C 05 A5DDF0 1 CCB7DD2
< / Code >
< / Stack >
< / Stack >
< Stack p = { 4 } >
< Stack p = { 4 } >
< Text textStyle = 'quick-link-text' >
< Text textStyle = 'quick-link-text' >
From the download listings above you should see a link both to the downloadable archives as well as detached signature files . To verify the authenticity of any downloaded data , grab both files and then run :
From the download listings above you should see a link both to the downloadable
archives as well as detached signature files . To verify the authenticity of any
downloaded data , grab both files and then run :
< / Text >
< / Text >
{ /* TODO: These keys depends on the binary */ }
{ /* TODO: These keys depends on the binary */ }
< Code p = { 4 } >
< Code p = { 4 } > gpg -- verify geth - linux - amd64 - 1.5 . 0 - d0c820ac . tar . gz . asc < / Code >
gpg -- verify geth - linux - amd64 - 1.5 . 0 - d0c820ac . tar . gz . asc
< / Code >
< / Stack >
< / Stack >
< / DownloadsSection >
< / DownloadsSection >
< / Stack >
< / Stack >
< / main >
< / main >
< / >
< / >
)
) ;
}
} ;
export default DownloadsPage
export default DownloadsPage ;