ligo/src/lib_shell
Grégoire Henry 33c3d1fcbd Alpha/RPC: add a low-level but typed RPC for context introspection
Example:

```
> tezos-client rpc get /chains/main/blocks/head/context/raw/json/\?depth\=1 | jq
{
  "commitments": [],
  "contracts": {
    "global_counter": 0,
    "index": []
  },
  "cycle": [
    4,
    3,
    2,
    1,
    0
  ],
  "delegates": [
    "tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN",
    "tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU",
    "tz1ddb9NMYHZi5UzPdzTZMYQQZoMub195zgv",
    "tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv",
    "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx"
  ],
  "last_block_priority": 0,
  "rolls": {
    "index": [],
    "next": 2000,
    "owner": {}
  },
  "votes": {
    "ballots": [],
    "current_period_kind": "proposal",
    "current_quorum": 8000,
    "listings": [],
    "proposals": []
  }
}
> tezos-client rpc get /chains/main/blocks/head/context/raw/json/cycle/4\?depth\=2 | jq
{
  "last_roll": [
    [
      0,
      2000
    ]
  ],
  "nonces": [],
  "random_seed": "97d50852c159ada8e9f107e98f693b059ba28336c723e6cd0f6353eb3c0cb415",
  "roll_snapshot": 0
}
> tezos-client rpc get /chains/main/blocks/head/context/raw/json/cycle/5\?depth\=2 | jq
{
  "last_roll": [
    [
      1,
      2000
    ],
    [
      0,
      2000
    ]
  ],
  "nonces": [],
  "roll_snapshot": 2
}
```
2018-06-06 10:54:33 +02:00
..
test Shell: store metadata for block header and operations 2018-06-01 16:20:10 +02:00
block_directory.ml Alpha/RPC: add a low-level but typed RPC for context introspection 2018-06-06 10:54:33 +02:00
block_directory.mli Docs/RPC: fix doc generation 2018-06-06 10:54:33 +02:00
block_validator.ml Shell: store metadata for block header and operations 2018-06-01 16:20:10 +02:00
block_validator.mli Shell: reduce default logging a little bit 2018-05-03 11:51:29 +02:00
bootstrap_pipeline.ml Shell/Bootstrap: improve network paralellism 2018-05-03 11:51:29 +02:00
bootstrap_pipeline.mli Shell: move shell errors into shell services 2018-02-26 15:52:36 +01:00
chain_directory.ml Resto: lift the lwt monad into Resto. 2018-06-06 10:54:33 +02:00
chain_directory.mli Resto: lift the lwt monad into Resto. 2018-06-06 10:54:33 +02:00
chain_traversal.ml Shell: Rename net_id into chain_id 2018-02-16 02:57:25 +01:00
chain_traversal.mli Shell: Rename net_id into chain_id 2018-02-16 02:57:25 +01:00
chain_validator.ml Shell: disable prevalidator if disable-mempool is used 2018-06-04 15:39:42 +02:00
chain_validator.mli Shell: disable prevalidator if disable-mempool is used 2018-06-04 15:39:42 +02:00
chain.ml move module-specific logging to the modules that use it 2018-05-31 17:05:00 -04:00
chain.mli Shell: store mainchain and testchain in State 2018-04-22 13:41:26 +02:00
distributed_db_functors.ml Shell/Distributed_db: tune requests delay 2018-05-03 11:51:29 +02:00
distributed_db_functors.mli Shell: delete duplicated functor 2018-02-15 17:38:19 +01:00
distributed_db_message.ml Reset the chain 2018-04-17 13:46:23 +02:00
distributed_db_message.mli Shell: Rename net_id into chain_id 2018-02-16 02:57:25 +01:00
distributed_db.ml P2p: store connection_local_metadata in P2p_connection.Info.t 2018-06-05 13:51:25 +02:00
distributed_db.mli P2p: store connection_local_metadata in P2p_connection.Info.t 2018-06-05 13:51:25 +02:00
injection_directory.ml Shell/RPC: use query parameters in /injection 2018-06-06 10:54:33 +02:00
injection_directory.mli Shell/RPC: use query parameters in /injection 2018-06-06 10:54:33 +02:00
jbuild Jbuilder: fix the target @runtest_indent 2018-05-26 20:08:03 +02:00
monitor_directory.ml Shell/RPC: use query parameters in /injection 2018-06-06 10:54:33 +02:00
monitor_directory.mli Shell/RPC: use query parameters in /injection 2018-06-06 10:54:33 +02:00
node.ml Docs/RPC: fix doc generation 2018-06-06 10:54:33 +02:00
node.mli Docs/RPC: fix doc generation 2018-06-06 10:54:33 +02:00
peer_validator.ml [P2P] ACLs: cosmetics, renamings, comments 2018-05-03 16:03:01 +02:00
peer_validator.mli Shell: Rename net_id into chain_id 2018-02-16 02:57:25 +01:00
prevalidation.ml Shell/RPC: rework /blocks 2018-06-06 10:54:33 +02:00
prevalidation.mli Shell/RPC: rework /blocks 2018-06-06 10:54:33 +02:00
prevalidator.ml Shell: remove outdated operation on new blocks 2018-03-20 06:49:52 +01:00
prevalidator.mli Merge `tezos-protocol-environment-{sigs,client} 2018-02-18 17:11:16 +00:00
protocol_directory.ml Shell/RPC: also list embedded protocols 2018-06-06 10:54:33 +02:00
protocol_directory.mli Shell/RPC: use query parameters in /protocols 2018-06-06 10:54:33 +02:00
protocol_validator.ml More renaming registred -> registered 2018-03-16 18:38:41 +01:00
protocol_validator.mli More renaming registred -> registered 2018-03-16 18:38:41 +01:00
state_logging.ml move module-specific logging to the modules that use it 2018-05-31 17:05:00 -04:00
state_logging.mli move module-specific logging to the modules that use it 2018-05-31 17:05:00 -04:00
state.ml Shell/RPC: use query parameters in /protocols 2018-06-06 10:54:33 +02:00
state.mli Shell/RPC: use query parameters in /protocols 2018-06-06 10:54:33 +02:00
store.ml Shell: store metadata for block header and operations 2018-06-01 16:20:10 +02:00
store.mli Shell: store metadata for block header and operations 2018-06-01 16:20:10 +02:00
tezos-shell.opam Jbuilder: update to beta.19.1 2018-04-06 11:47:22 +02:00
validator.ml Shell/RPC: split out Monitor_services 2018-06-06 10:54:33 +02:00
validator.mli Shell/RPC: split out Monitor_services 2018-06-06 10:54:33 +02:00
worker_directory.ml Shell/RPC: use GET request for /workers 2018-06-06 10:54:33 +02:00
worker_directory.mli Shell/RPC: use GET request for /workers 2018-06-06 10:54:33 +02:00
worker_logging.ml move module-specific logging to the modules that use it 2018-05-31 17:05:00 -04:00
worker_logging.mli move module-specific logging to the modules that use it 2018-05-31 17:05:00 -04:00
worker.ml Node: cleanup logging of shell workers 2018-02-26 16:08:04 +01:00
worker.mli Update copyright notice (2018) 2018-02-05 23:34:05 +01:00