Skip to content

Commit

Permalink
export compiled proto stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Bohuslavskyi committed Jan 9, 2019
1 parent b9da2e7 commit 8c8c004
Show file tree
Hide file tree
Showing 6 changed files with 861 additions and 414 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.16.5 (Jan 9, 2019)

* Export compiled protobuf stubs as `protocol`. ([#151][pr-151])

## 0.16.4 (Dec 13, 2018)

* Re-build [package-lock.json](package-lock.json) file. ([#146][pr-146])
Expand Down Expand Up @@ -185,6 +189,7 @@ matching [release 0.1][release-0.1] of the Exonum core repository.
[release-0.7]: https://github.com/exonum/exonum/blob/master/CHANGELOG.md#07---2018-04-11
[release-0.5]: https://github.com/exonum/exonum/blob/master/CHANGELOG.md#05---2018-01-30
[release-0.1]: https://github.com/exonum/exonum/releases/tag/v0.1
[pr-151]: https://github.com/exonum/exonum-client/pull/151
[pr-146]: https://github.com/exonum/exonum-client/pull/146
[pr-145]: https://github.com/exonum/exonum-client/pull/145
[pr-143]: https://github.com/exonum/exonum-client/pull/143
Expand Down
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Library compatibility with Exonum core:

| JavaScript light client | Exonum core |
|---|---|
| 0.16.4 | 0.10.* |
| 0.16.5 | 0.10.* |
| 0.13.0 | 0.9.* |
| 0.10.2 | 0.8.* |
| 0.9.0 | 0.7.* |
Expand Down Expand Up @@ -53,6 +53,7 @@ Library compatibility with Exonum core:
* [Integrity checks](#integrity-checks)
* [Verify block](#verify-block)
* [Verify table](#verify-table)
* [Built-in structures](#built-in-structures)
* [Helpers](#helpers)
* [Generate key pair](#generate-key-pair)
* [Get random number](#get-random-number)
Expand Down Expand Up @@ -529,6 +530,42 @@ Returns root hash for the table as hexadecimal `String`.
| **serviceId** | [Service ID][docs:architecture:serialization:service-id]. | `Number` |
| **tableIndex** | Table index. | `Number` |

### Built-in structures

List of built-in Exonum [blockchain](proto/blockchain.proto) structures:

| Structure | Use as |
|---|---|---|
| **Block** | `Exonum.protocol.exonum.Block` |
| **ConfigReference** | `Exonum.protocol.exonum.ConfigReference` |
| **TxLocation** | `Exonum.protocol.exonum.TxLocation` |
| **TransactionResult** | `Exonum.protocol.exonum.TransactionResult` |

List of built-in Exonum [consensus](proto/protocol.proto) structures:

| Structure | Use as |
|---|---|---|
| **Connect** | `Exonum.protocol.exonum.consensus.Connect` |
| **Status** | `Exonum.protocol.exonum.consensus.Status` |
| **Propose** | `Exonum.protocol.exonum.consensus.Propose` |
| **Prevote** | `Exonum.protocol.exonum.consensus.Prevote` |
| **Precommit** | `Exonum.protocol.exonum.consensus.Precommit` |
| **BlockResponse** | `Exonum.protocol.exonum.consensus.BlockResponse` |
| **TransactionsResponse** | `Exonum.protocol.exonum.consensus.TransactionsResponse` |
| **ProposeRequest** | `Exonum.protocol.exonum.consensus.ProposeRequest` |
| **TransactionsRequest** | `Exonum.protocol.exonum.consensus.TransactionsRequest` |
| **PrevotesRequest** | `Exonum.protocol.exonum.consensus.PrevotesRequest` |
| **PeersRequest** | `Exonum.protocol.exonum.consensus.PeersRequest` |
| **BlockRequest** | `Exonum.protocol.exonum.consensus.BlockRequest` |

List of built-in Exonum [helpers](proto/helpers.proto) structures:

| Structure | Use as |
|---|---|---|
| **Hash** | `Exonum.protocol.exonum.Hash` |
| **PublicKey** | `Exonum.protocol.exonum.PublicKey` |
| **BitVec** | `Exonum.protocol.exonum.BitVec` |

## Helpers

### Generate key pair
Expand Down
Loading

0 comments on commit 8c8c004

Please sign in to comment.