Skip to content

Commit 80a3d1f

Browse files
committed
[bug]: fix bugs in new the schema generation process
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
1 parent 6a10f05 commit 80a3d1f

21 files changed

+2680
-2094
lines changed

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configs/peer/genesis.json

+1-1
Large diffs are not rendered by default.

data_model/src/evaluate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ mod tests {
630630
.with_value(
631631
Name::from_str("test_value").expect("Can't fail."),
632632
EvaluatesTo::new_evaluates_to_value(Add::new(2_u32, 3_u32).into())
633-
);
633+
)
634634
.evaluate(&TestContext::new())?,
635635
5_u32.to_value()
636636
);

docs/source/references/api_spec.md

+5-21
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
**Method**: `POST`
1414

15-
**Expects**: Body: [`VersionedSignedTransaction`](#iroha-structures)
15+
**Expects**: Body: `VersionedSignedTransaction`
1616

1717
**Responses**:
1818

@@ -34,7 +34,7 @@
3434

3535
**Expects**:
3636

37-
- Body: [`VersionedSignedQuery`](#iroha-structures)
37+
- Body: `VersionedSignedQuery`
3838
- Query parameters:
3939
- `start`: Optional parameter in queries where results can be indexed. Use to return results from specified point.
4040
Results are ordered where can be by id which uses
@@ -45,7 +45,7 @@
4545

4646
**Responses**:
4747

48-
| Response | Status | [Body](#iroha-structures) |
48+
| Response | Status | Body |
4949
|-----------------|--------|-----------------------------------------------|
5050
| Signature err. | 401 | `QueryExecutionFailure::Signature(String)` |
5151
| Permission err. | 403 | `QueryExecutionFailure::Permission(String)` |
@@ -86,8 +86,7 @@ Whether each prerequisite object was found and `FindError`:
8686

8787
**Communication**:
8888

89-
After handshake, client should send [`VersionedEventSubscriptionRequest`](#iroha-structures). Then server
90-
sends [`VersionedEventMessage`](#iroha-structures).
89+
After handshake, client should send `VersionedEventSubscriptionRequest`. Then server sends `VersionedEventMessage`.
9190

9291
**Notes**:
9392

@@ -130,8 +129,7 @@ _Internal use only._ Returns the transactions pending at the moment.
130129

131130
**Communication**:
132131

133-
Client should send [`VersionedBlockSubscriptionRequest`](#iroha-structures) to initiate communication after WebSocket
134-
handshake. Then server sends [`VersionedBlockMessage`](#iroha-structures).
132+
Client should send `VersionedBlockSubscriptionRequest` to initiate communication after WebSocket handshake. Then server sends `VersionedBlockMessage`.
135133

136134
**Notes**:
137135

@@ -381,17 +379,3 @@ codec's [GitHub repository](https://github.com/paritytech/parity-scale-codec).
381379
## Reference Iroha Client Implementation
382380

383381
[Iroha client in Rust.](../../../client)
384-
385-
## Iroha Structures
386-
387-
| Object name | Fully qualified object name |
388-
|-------------------------------------|----------------------------------------------------------------|
389-
| `VersionedSignedTransaction` | `iroha_data_model::transaction::VersionedSignedTransaction` |
390-
| `VersionedSignedQuery` | `iroha_data_model::query::VersionedSignedQuery` |
391-
| `VersionedPaginatedQueryResult` | `iroha_data_model::query::VersionedPaginatedQueryResult` |
392-
| `QueryExecutionFailure` | `iroha_core::smartcontracts::isi::query::Error` |
393-
| `FindError` | `iroha_core::smartcontracts::isi::error::FindError` |
394-
| `VersionedBlockSubscriptionRequest` | `iroha_core::block::stream::VersionedBlockSubscriptionRequest` |
395-
| `VersionedBlockMessage` | `iroha_core::block::stream::VersionedBlockMessage` |
396-
| `VersionedEventSubscriptionRequest` | `iroha_data_model::events::VersionedEventSubscriptionRequest` |
397-
| `VersionedEventMessage` | `iroha_data_model::events::VersionedEventMessage` |

0 commit comments

Comments
 (0)