Skip to content

Commit

Permalink
Added more examples to avail-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
markopoloparadox committed Nov 26, 2024
1 parent e82424a commit 2f23cef
Show file tree
Hide file tree
Showing 34 changed files with 516 additions and 485 deletions.
10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/become_validator/Cargo.toml

This file was deleted.

48 changes: 0 additions & 48 deletions avail-rust/docs/advanced-examples/become_validator/src/main.rs

This file was deleted.

10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/extrinsic_params_raw/Cargo.toml

This file was deleted.

41 changes: 0 additions & 41 deletions avail-rust/docs/advanced-examples/extrinsic_params_raw/src/main.rs

This file was deleted.

10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/extrinsic_params_sdk/Cargo.toml

This file was deleted.

48 changes: 0 additions & 48 deletions avail-rust/docs/advanced-examples/extrinsic_params_sdk/src/main.rs

This file was deleted.

10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/fetch_events_raw/Cargo.toml

This file was deleted.

43 changes: 0 additions & 43 deletions avail-rust/docs/advanced-examples/fetch_events_raw/src/main.rs

This file was deleted.

10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/fetch_events_sdk/Cargo.toml

This file was deleted.

33 changes: 0 additions & 33 deletions avail-rust/docs/advanced-examples/fetch_events_sdk/src/main.rs

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions avail-rust/docs/advanced-examples/insecure_connection/Cargo.toml

This file was deleted.

This file was deleted.

8 changes: 7 additions & 1 deletion avail-rust/docs/book/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Summary

- [Chapter 1](./chapter_1.md)
- [RPC](./rpc/index.md)
- [Storage](./storage/index.md)
- [Examples](./examples/index.md)
- [Data Submission](./examples/data_submission.md)
- [Events](./examples/events.md)
- [Transactions](./examples/transactions.md)
- [Validator](./examples/validator.md)
- [Insecure Connection](./examples/insecure_connection.md)

1 change: 0 additions & 1 deletion avail-rust/docs/book/src/chapter_1.md

This file was deleted.

14 changes: 14 additions & 0 deletions avail-rust/docs/book/src/examples/data_submission.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Data Submission

```rs
{{#include ./data_submission.rs}}
```
```rs
Block Hash: 0x3ac87e95a75558510e0fe97530e9905438071e97803fdf1f797f837839f00ab5, Block Number: 4, Tx Hash: 0x616e0db91aada331ff0d8e3715eae12498bc864c404c52a57d5ec6f1c8086f67, Tx Index: 1
Call data: BoundedVec([77, 121, 32, 68, 97, 116, 97])
Tx Hash: 0x616e0db91aada331ff0d8e3715eae12498bc864c404c52a57d5ec6f1c8086f67, Tx Index: 1, Data [77, 121, 32, 68, 97, 116, 97], Tx Signer: [1, 76, 49, 233, 247, 107, 175, 178, 67, 177, 86, 243, 89, 171, 207, 135, 49, 157, 73, 105, 5, 136, 199, 183, 130, 70, 194, 78, 148, 86, 73, 198, 104, 253, 46, 12, 41, 87, 53, 106, 144, 116, 91, 199, 71, 177, 23, 100, 187, 38, 11, 239, 58, 241, 206, 34, 154, 246, 185, 217, 145, 237, 148, 152, 143], App Id: 10
Ascii data: My Data
Call data: BoundedVec([77, 121, 32, 68, 97, 116, 97])
Tx Hash: 0x616e0db91aada331ff0d8e3715eae12498bc864c404c52a57d5ec6f1c8086f67, Tx Index: 1, Data [77, 121, 32, 68, 97, 116, 97], Tx Signer: [1, 76, 49, 233, 247, 107, 175, 178, 67, 177, 86, 243, 89, 171, 207, 135, 49, 157, 73, 105, 5, 136, 199, 183, 130, 70, 194, 78, 148, 86, 73, 198, 104, 253, 46, 12, 41, 87, 53, 106, 144, 116, 91, 199, 71, 177, 23, 100, 187, 38, 11, 239, 58, 241, 206, 34, 154, 246, 185, 217, 145, 237, 148, 152, 143], App Id: 10
Ascii data: My Data
```
Loading

0 comments on commit 2f23cef

Please sign in to comment.