mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
Add package-level constants for repeated string literals across the codebase: - LuxEVMName in deploy.go for VM naming - MainnetSubnetBlockchainID in start_with_state.go - PChainID in chain/config.go - pqSuffix, schemeLSAG, schemeLattice, schemeLatticeFull, schemeLatticePQ in keycmd - rentalPlan* and validatorMgmtHybrid in l1cmd/migrate.go - vmType* constants in l3cmd/create.go - networkTypeCustom, networkTypeLocal in networkcmd - vmNameEVM, orgLuxfi in vmcmd - WalletConnectName in key package - platformDarwin in backend_test.go - strTrue in e2e tests This addresses all goconst linter warnings requiring string literals with 3+ occurrences to be defined as constants.
25 lines
478 B
Go
25 lines
478 B
Go
// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package vm
|
|
|
|
import (
|
|
"math/big"
|
|
|
|
"github.com/luxfi/sdk/fees"
|
|
)
|
|
|
|
const (
|
|
defaultEvmAirdropAmount = "1000000000000000000000000"
|
|
goBackMsg = "Go back to previous step"
|
|
)
|
|
|
|
var (
|
|
Difficulty = big.NewInt(0)
|
|
|
|
// This is the current c-chain gas config
|
|
StarterFeeConfig = fees.DefaultFeeConfig
|
|
|
|
oneLux = new(big.Int).SetUint64(1000000000000000000)
|
|
)
|