@@ -59,8 +59,8 @@ interface DockerComposeConfig {
59
59
blockchainId : string ;
60
60
networkName : string ;
61
61
networkShortName : string ;
62
- currencyName : string ;
63
- currencySymbol : string ;
62
+ tokenName : string ;
63
+ tokenSymbol : string ;
64
64
}
65
65
66
66
const genDockerCompose = ( config : DockerComposeConfig ) => `
@@ -150,8 +150,8 @@ services:
150
150
NEXT_PUBLIC_NETWORK_SHORT_NAME: ${ config . networkShortName }
151
151
NEXT_PUBLIC_NETWORK_ID: 66666 # TODO: change to dynamic
152
152
NEXT_PUBLIC_NETWORK_RPC_URL: https://${ config . domain } /ext/bc/${ config . blockchainId } /rpc
153
- NEXT_PUBLIC_NETWORK_CURRENCY_NAME: ${ config . currencyName }
154
- NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL: ${ config . currencySymbol }
153
+ NEXT_PUBLIC_NETWORK_CURRENCY_NAME: ${ config . tokenName }
154
+ NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL: ${ config . tokenSymbol }
155
155
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS: 18
156
156
NEXT_PUBLIC_APP_HOST: ${ config . domain }
157
157
NEXT_PUBLIC_APP_PROTOCOL: https
@@ -212,8 +212,8 @@ export default function BlockScout() {
212
212
const [ domain , setDomain ] = useState ( "" ) ;
213
213
const [ networkName , setNetworkName ] = useState ( "" ) ;
214
214
const [ networkShortName , setNetworkShortName ] = useState ( "" ) ;
215
- const [ currencyName , setCurrencyName ] = useState ( "" ) ;
216
- const [ currencySymbol , setCurrencySymbol ] = useState ( "" ) ;
215
+ const [ tokenName , setTokenName ] = useState ( "" ) ;
216
+ const [ tokenSymbol , setTokenSymbol ] = useState ( "" ) ;
217
217
const [ subnetIdError , setSubnetIdError ] = useState < string | null > ( null ) ;
218
218
const [ composeYaml , setComposeYaml ] = useState ( "" ) ;
219
219
const [ caddyfile , setCaddyfile ] = useState ( "" ) ;
@@ -230,8 +230,8 @@ export default function BlockScout() {
230
230
if ( l1Info ) {
231
231
setNetworkName ( l1Info . name ) ;
232
232
setNetworkShortName ( l1Info . name . split ( " " ) [ 0 ] ) ; // First word as short name
233
- setCurrencyName ( l1Info . coinName ) ;
234
- setCurrencySymbol ( l1Info . coinName ) ;
233
+ setTokenName ( l1Info . coinName ) ;
234
+ setTokenSymbol ( l1Info . coinName ) ;
235
235
}
236
236
237
237
getBlockchainInfo ( chainId ) . then ( ( chainInfo ) => {
@@ -250,7 +250,7 @@ export default function BlockScout() {
250
250
} , [ domain ] ) ;
251
251
252
252
useEffect ( ( ) => {
253
- let ready = ! ! domain && ! ! subnetId && ! ! networkName && ! ! networkShortName && ! ! currencyName && ! ! currencySymbol && ! domainError && ! subnetIdError
253
+ let ready = ! ! domain && ! ! subnetId && ! ! networkName && ! ! networkShortName && ! ! tokenName && ! ! tokenSymbol && ! domainError && ! subnetIdError
254
254
255
255
if ( ready ) {
256
256
setCaddyfile ( genCaddyfile ( domain ) ) ;
@@ -260,25 +260,25 @@ export default function BlockScout() {
260
260
blockchainId : chainId ,
261
261
networkName,
262
262
networkShortName,
263
- currencyName ,
264
- currencySymbol
263
+ tokenName ,
264
+ tokenSymbol
265
265
} ) ) ;
266
266
} else {
267
267
setCaddyfile ( "" ) ;
268
268
setComposeYaml ( "" ) ;
269
269
}
270
- } , [ domain , subnetId , chainId , networkName , networkShortName , currencyName , currencySymbol , domainError , subnetIdError ] ) ;
270
+ } , [ domain , subnetId , chainId , networkName , networkShortName , tokenName , tokenSymbol , domainError , subnetIdError ] ) ;
271
271
272
272
return (
273
273
< >
274
274
< Container
275
- title = "Node Setup with Docker "
276
- description = "This will start a Docker container running an RPC or validator node that tracks your L1 ."
275
+ title = "Self-hosted Explorer Setup "
276
+ description = "This will set up a self-hosted explorer with its own RPC Node leveraging Docker Compose ."
277
277
>
278
278
< Steps >
279
279
< Step >
280
280
< h3 className = "text-xl font-bold mb-4" > Set up Instance</ h3 >
281
- < p > Set up a linux server with any cloud provider, like AWS, GCP, Azure, or Digital Ocean. 4 vCPUs, 8GB RAM, 40GB storage is enough to get you started.</ p >
281
+ < p > Set up a linux server with any cloud provider, like AWS, GCP, Azure, or Digital Ocean. 4 vCPUs, 8GB RAM, 40GB storage is enough to get you started. Choose more storage if the the Explorer is for a long-running testnet or mainnet L1. </ p >
282
282
</ Step >
283
283
< Step >
284
284
< h3 className = "text-xl font-bold mb-4" > Docker Installation</ h3 >
@@ -348,17 +348,17 @@ export default function BlockScout() {
348
348
/>
349
349
350
350
< Input
351
- label = "Currency Name"
352
- value = { currencyName }
353
- onChange = { setCurrencyName }
354
- helperText = "Name of your native currency (e.g. MyToken)"
351
+ label = "Token Name"
352
+ value = { tokenName }
353
+ onChange = { setTokenName }
354
+ helperText = "Name of your native token (e.g. MyToken)"
355
355
/>
356
356
357
357
< Input
358
- label = "Currency Symbol"
359
- value = { currencySymbol }
360
- onChange = { setCurrencySymbol }
361
- helperText = "Symbol of your native currency (e.g. MTK)"
358
+ label = "Token Symbol"
359
+ value = { tokenSymbol }
360
+ onChange = { setTokenSymbol }
361
+ helperText = "Symbol of your native token (e.g. MTK)"
362
362
/>
363
363
</ div >
364
364
</ Step >
@@ -367,17 +367,17 @@ export default function BlockScout() {
367
367
{ composeYaml && ( < >
368
368
< Step >
369
369
< h3 className = "text-xl font-bold mb-4" > Caddyfile</ h3 >
370
- < p > Put this in a file called < code > Caddyfile</ code > in the working directory. < code > compose.yml </ code > will be created in the same directory. </ p >
370
+ < p > Create a file named < code > Caddyfile</ code > and paste the following code: </ p >
371
371
< DynamicCodeBlock lang = "yaml" code = { caddyfile } />
372
372
</ Step >
373
373
< Step >
374
374
< h3 className = "text-xl font-bold mb-4" > Docker Compose</ h3 >
375
- < p > Put this in a file called < code > compose.yml</ code > in the same directory as your < code > Caddyfile</ code > . </ p >
375
+ < p > Create a file named < code > compose.yml</ code > in the same directory as your < code > Caddyfile</ code > and paste the following code: </ p >
376
376
< DynamicCodeBlock lang = "yaml" code = { composeYaml } />
377
377
</ Step >
378
378
379
379
< Step >
380
- < h3 className = "text-xl font-bold mb-4" > Start Your Node </ h3 >
380
+ < h3 className = "text-xl font-bold mb-4" > Start Your Explorer </ h3 >
381
381
< p > Navigate to the directory containing your < code > Caddyfile</ code > and < code > compose.yml</ code > files and run these commands:</ p >
382
382
383
383
< div className = "space-y-4" >
0 commit comments