Skip to content

Latest commit

 

History

History
130 lines (86 loc) · 7.44 KB

custom_network-config-doc.md

File metadata and controls

130 lines (86 loc) · 7.44 KB

Schema Docs

Type: : object Description: GenesisFromJSON is the config file for network_custom

Property Pattern Type Deprecated Definition Title/Description
- root No string No - L1: root hash of the genesis block
- rollupCreationBlockNumber No integer No - L1: block number in which the rollup was created
- rollupManagerCreationBlockNumber No integer No - L1: block number in which the rollup manager was created
- genesis No array of object No - L2: List of states contracts used to populate merkle tree at initial state
- L1Config No object No - L1: configuration of the network

1. root

Type: : string Description: L1: root hash of the genesis block

2. rollupCreationBlockNumber

Type: : integer Description: L1: block number in which the rollup was created

3. rollupManagerCreationBlockNumber

Type: : integer Description: L1: block number in which the rollup manager was created

4. genesis

Type: : array of object Description: L2: List of states contracts used to populate merkle tree at initial state

Array restrictions
Min items N/A
Max items N/A
Items unicity False
Additional items False
Tuple validation See below
Each item of this array must be Description
genesis items -

4.1. [genesis.genesis items]

Type: : object

Property Pattern Type Deprecated Definition Title/Description
- balance No string No - -
- nonce No string No - -
- address No string No - -
- bytecode No string No - -
- storage No object No - -
- contractName No string No - -

4.1.1. genesis.genesis items.balance

Type: : string

4.1.2. genesis.genesis items.nonce

Type: : string

4.1.3. genesis.genesis items.address

Type: : string

4.1.4. genesis.genesis items.bytecode

Type: : string

4.1.5. [genesis.genesis items.storage]

Type: : object

Property Pattern Type Deprecated Definition Title/Description
- No string No - -
4.1.5.1. genesis.genesis items.storage.additionalProperties

Type: : string

4.1.6. genesis.genesis items.contractName

Type: : string

5. [L1Config]

Type: : object Description: L1: configuration of the network

Property Pattern Type Deprecated Definition Title/Description
- chainId No integer No - Chain ID of the L1 network
- polygonZkEVMAddress No array of integer No - ZkEVMAddr Address of the L1 contract polygonZkEVMAddress
- polygonRollupManagerAddress No array of integer No - RollupManagerAddr Address of the L1 contract
- polTokenAddress No array of integer No - PolAddr Address of the L1 Pol token Contract
- polygonZkEVMGlobalExitRootAddress No array of integer No - GlobalExitRootManagerAddr Address of the L1 GlobalExitRootManager contract

5.1. L1Config.chainId

Type: : integer Description: Chain ID of the L1 network

5.2. L1Config.polygonZkEVMAddress

Type: : array of integer Description: ZkEVMAddr Address of the L1 contract polygonZkEVMAddress

5.3. L1Config.polygonRollupManagerAddress

Type: : array of integer Description: RollupManagerAddr Address of the L1 contract

5.4. L1Config.polTokenAddress

Type: : array of integer Description: PolAddr Address of the L1 Pol token Contract

5.5. L1Config.polygonZkEVMGlobalExitRootAddress

Type: : array of integer Description: GlobalExitRootManagerAddr Address of the L1 GlobalExitRootManager contract


Generated using json-schema-for-humans