From ccf6ed4a9d775caaae14a64b96a540085e29574e Mon Sep 17 00:00:00 2001 From: Vincent Bernardoff Date: Mon, 24 Oct 2016 19:14:56 +0200 Subject: [PATCH] TEZOS_PROTOCOL: use json syntax --- src/proto/bootstrap/TEZOS_PROTOCOL | 99 +++++++++++++++--------------- src/proto/demo/TEZOS_PROTOCOL | 10 ++- 2 files changed, 53 insertions(+), 56 deletions(-) diff --git a/src/proto/bootstrap/TEZOS_PROTOCOL b/src/proto/bootstrap/TEZOS_PROTOCOL index 00f61d8d1..50b9fca67 100644 --- a/src/proto/bootstrap/TEZOS_PROTOCOL +++ b/src/proto/bootstrap/TEZOS_PROTOCOL @@ -1,57 +1,56 @@ -hash = "TnrnfGHMCPAcxtMAHXdpfebbnn2XvPAxq7DHbpeJbKTkJQPgcgRGr" -modules = [ +{ + "hash": "TnrnfGHMCPAcxtMAHXdpfebbnn2XvPAxq7DHbpeJbKTkJQPgcgRGr", + "modules": [ + "Misc", + "Tezos_hash", + "Qty_repr", + "Tez_repr", + "Period_repr", + "Time_repr", + "Constants_repr", + "Fitness_repr", + "Raw_level_repr", + "Voting_period_repr", + "Cycle_repr", + "Level_repr", + "Seed_repr", + "Script_int_repr", + "Script_repr", + "Contract_repr", + "Roll_repr", + "Asset_repr", + "Vote_repr", + "Operation_repr", + "Block_repr", - Misc ; - Tezos_hash ; + "Storage_sigs", + "Storage_functors", + "Storage", - Qty_repr ; - Tez_repr ; - Period_repr ; - Time_repr ; - Constants_repr ; - Fitness_repr ; - Raw_level_repr ; - Voting_period_repr ; - Cycle_repr ; - Level_repr ; - Seed_repr ; - Script_int_repr ; - Script_repr ; - Contract_repr ; - Roll_repr ; - Asset_repr ; - Vote_repr ; - Operation_repr ; - Block_repr ; + "Level_storage", + "Nonce_storage", + "Seed_storage", + "Roll_storage", + "Contract_storage", + "Reward_storage", + "Bootstrap_storage", + "Fitness_storage", + "Vote_storage", + "Init_storage", - Storage_sigs ; - Storage_functors ; - Storage ; + "Tezos_context", - Level_storage ; - Nonce_storage ; - Seed_storage ; - Roll_storage ; - Contract_storage ; - Reward_storage ; - Bootstrap_storage ; - Fitness_storage ; - Vote_storage ; - Init_storage ; + "Script_typed_ir", + "Script_ir_translator", + "Script_interpreter", - Tezos_context ; + "Mining", + "Amendment", + "Apply", - Script_typed_ir ; - Script_ir_translator ; - Script_interpreter ; + "Services", + "Services_registration", - Mining ; - Amendment ; - Apply ; - - Services ; - Services_registration ; - - Main ; - -] + "Main" + ] +} diff --git a/src/proto/demo/TEZOS_PROTOCOL b/src/proto/demo/TEZOS_PROTOCOL index 49898d3d5..ab9f2dec6 100644 --- a/src/proto/demo/TEZOS_PROTOCOL +++ b/src/proto/demo/TEZOS_PROTOCOL @@ -1,6 +1,4 @@ -hash = "JF7Fxgeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" -modules = [ - Error ; - Services ; - Main ; -] +{ + "hash": "JF7Fxgeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", + "modules": ["Error", "Services", "Main"] +}