pirapira / bamboo

Bamboo see https://github.com/cornellblockchain/bamboo
Apache License 2.0
324 stars 39 forks source link

Create an option to print out how states are saved in the storage #275

Open pirapira opened 6 years ago

pirapira commented 6 years ago

What is the good format for doing that?

pirapira commented 6 years ago

Maybe something like this:

$ ./bamboo --storage < source.bbo
{
   "storage" : {
      "0" : {
         "type" : "dispatcher",
         "values" : {
            "0" : "running",
            "23" : "auction"
         }
      }
   },
   "contracts" : {
      "auction" : {
         "storage" : {
            "1" : {
               "type" : "address",
               "name" : "_beneficiary"
            },
            "2" : {
               "type" : "address => bool",
               "name" : "_bids"
            }
         }
      }
   }
}