@kba-tools/genesis-tool
Version:
A forked repo from ConsenSys which helps to generate genesis block for Besu Network with xemptyBlockPeriod field.
118 lines (96 loc) • 3.45 kB
text/typescript
import { QuestionTree } from "../types/questions";
export const outputPathQuestion: QuestionTree = {
name: "outputPath",
prompt: "Set your output path for the artifacts: (default ./output)",
};
export const quickstartDevAccountsQuestion: QuestionTree = {
name: "quickstartDevAccounts",
prompt: "Include quorum-dev-quickstart test accounts: [y/N]",
};
export const genesisNodeAllocationQuestion: QuestionTree = {
name: "genesisNodeAllocation",
prompt:
"Balance allocated to each nodes: (default 1000000000000000000000000000)",
};
export const prefundedAccountsQuestion: QuestionTree = {
name: "prefundedAccounts",
prompt:
"Include JSON format of the prefunded account {'address': { 'balance': '100000'}}: (default {})",
};
export const accountPasswordQuestion: QuestionTree = {
name: "accountPassword",
prompt: "Set your account password: (empty for none)",
};
export const tesseraPasswordQuestion: QuestionTree = {
name: "tesseraPassword",
prompt: "Set your tessera password: (empty for none)",
};
export const tesseraEnabled: QuestionTree = {
name: "tesseraEnabled",
prompt: "Use Tessera for private transactions?: [y/N]",
};
export const curveQuestion: QuestionTree = {
name: "curve",
prompt: "Choose your encryption curve: Default: [1]",
};
export const bootnodesQuestion: QuestionTree = {
name: "bootnodes",
prompt:
"Choose number of bootnode node keys to generate: (integer) Default: 2",
};
export const membersQuestion: QuestionTree = {
name: "members",
prompt: "Choose number of member node keys to generate: (integer) Default: 1",
};
export const validatorsQuestion: QuestionTree = {
name: "validators",
prompt:
"Choose number of validator node keys to generate: (integer) Default: 4",
};
export const txnSizeLimitQuestion: QuestionTree = {
name: "txnSizeLimit",
prompt: "Set your transaction size limit value: (integer) Default: 64",
};
export const maxCodeSizeQuestion: QuestionTree = {
name: "maxCodeSize",
prompt: "Set your max code size value: (integer) Default: 64",
};
export const coinbaseQuestion: QuestionTree = {
name: "coinbase",
prompt:
"Set your coinbase address for rewards: (string) Default: 0x0000000000000000000000000000000000000000",
};
export const gasLimitQuestion: QuestionTree = {
name: "gasLimit",
prompt: "Set your gas limit value: (string) Default: 0xFFFF",
};
export const difficultyQuestion: QuestionTree = {
name: "difficulty",
prompt: "Set your difficulty: (integer) Default: 1",
};
export const epochQuestion: QuestionTree = {
name: "epochLength",
prompt: "Set your epoch length value: (integer) Default: 30000",
};
export const requestTimeoutQuestion: QuestionTree = {
name: "requestTimeout",
prompt: "Set your requestTimeoutSeconds value: (integer) Default: 10",
};
export const emptyBlockPeriodQuestion: QuestionTree = {
name: "emptyBlockPeriod",
prompt:
"Set your emptyblockperiodseconds value: (integer) Default: 60",
};
export const xemptyBlockPeriodQuestion: QuestionTree = {
name: "xemptyBlockPeriod",
prompt:
"(Besu only) Do you need xemptyBlockPeriod field in genesis block: [y/n] Default: N",
};
export const blockPeriodQuestion: QuestionTree = {
name: "blockperiod",
prompt: "Set your blockperiodseconds value: (integer) Default: 5",
};
export const chainIDQuestion: QuestionTree = {
name: "chainID",
prompt: "Set your chainID value: (integer) Default: 1337",
};