Skip to content

Commit

Permalink
feat: Add ZkSync Era Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
AsharibAli committed Mar 28, 2024
1 parent d7bd748 commit 3eff264
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions cookbook/specs/spec_add_zksync.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"proposal": {
"title": "Add Specs: zkSync",
"description": "Adding new specification support for relaying data on zkSync",
"specs": [
{
"index": "ZKSYNC",
"name": "zksync era mainnet",
"enabled": true,
"imports": ["ETH1"],
"reliability_threshold": 268435455,
"data_reliability_enabled": true,
"block_distance_for_finalized_data": 1,
"blocks_in_finalization_proof": 3,
"average_block_time": 1200,
"allowed_block_lag_for_qos_sync": 5,
"shares": 1,
"min_stake_provider": {
"denom": "ulava",
"amount": "47500000000"
},
"api_collections": [
{
"enabled": true,
"collection_data": {
"api_interface": "jsonrpc",
"internal_path": "",
"type": "POST",
"add_on": ""
},
"apis": [],
"headers": [],
"inheritance_apis": [],
"parse_directives": [],
"verifications": [
{
"name": "chain-id",
"values": [
{
"expected_value": "0x144"
}
]
},
{
"name": "pruning",
"values": [
{
"latest_distance": 3100000
},
{
"extension": "archive",
"expected_value": "0x0"
}
]
}
],
"extensions": [
{
"name": "archive",
"cu_multiplier": 5,
"rule": {
"block": 3000000
}
}
]
}
]
},
{
"index": "ZKSYNCSP",
"name": "zksync era sepolia testnet",
"enabled": true,
"imports": ["ZKSYNC"],
"reliability_threshold": 268435455,
"data_reliability_enabled": true,
"block_distance_for_finalized_data": 1,
"blocks_in_finalization_proof": 2,
"average_block_time": 1200,
"allowed_block_lag_for_qos_sync": 5,
"shares": 1,
"min_stake_provider": {
"denom": "ulava",
"amount": "47500000000"
},
"api_collections": [
{
"enabled": true,
"collection_data": {
"api_interface": "jsonrpc",
"internal_path": "",
"type": "POST",
"add_on": ""
},
"apis": [],
"headers": [],
"inheritance_apis": [],
"parse_directives": [],
"verifications": [
{
"name": "chain-id",
"values": [
{
"expected_value": "0x12c"
}
]
}
]
}
]
}
]
},
"deposit": "10000000ulava"
}

0 comments on commit 3eff264

Please sign in to comment.