Skip to content

Relayer documentation #589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 153 commits into from
Feb 4, 2021
Merged

Relayer documentation #589

merged 153 commits into from
Feb 4, 2021

Conversation

romac
Copy link
Contributor

@romac romac commented Jan 29, 2021

Closes: #542
Closes: #577

TODOs:


For contributor use:

  • Updated the Unreleased section of CHANGELOG.md with the issue.
  • If applicable: Unit tests written, added test to CI.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments.
  • Re-reviewed Files changed in the Github PR explorer.

@romac romac added the I: documentation Internal: improvements or additions to documentation label Jan 29, 2021
@romac romac added this to the v0.1.0 milestone Jan 29, 2021
@codecov-io
Copy link

codecov-io commented Jan 31, 2021

Codecov Report

Merging #589 (cf961c3) into master (b1b37f5) will increase coverage by 30.9%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #589      +/-   ##
=========================================
+ Coverage    13.6%   44.6%   +30.9%     
=========================================
  Files          69     144      +75     
  Lines        3752    9532    +5780     
  Branches     1374       0    -1374     
=========================================
+ Hits          513    4255    +3742     
- Misses       2618    5277    +2659     
+ Partials      621       0     -621     
Impacted Files Coverage Δ
modules/src/address.rs 100.0% <ø> (ø)
...application/ics20_fungible_token_transfer/error.rs 0.0% <ø> (ø)
...pplication/ics20_fungible_token_transfer/events.rs 0.0% <ø> (ø)
...ion/ics20_fungible_token_transfer/msgs/transfer.rs 0.0% <ø> (ø)
modules/src/events.rs 0.0% <ø> (ø)
modules/src/handler.rs 100.0% <ø> (ø)
modules/src/ics02_client/client_def.rs 48.3% <ø> (ø)
modules/src/ics02_client/client_type.rs 79.1% <ø> (+31.5%) ⬆️
modules/src/ics02_client/context.rs 100.0% <ø> (ø)
modules/src/ics02_client/error.rs 100.0% <ø> (ø)
... and 246 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 605b755...cc299aa. Read the comment docs.

@ebuchman
Copy link
Member

ebuchman commented Jan 31, 2021

Some rough notes from working through this as a group on Friday, some can probably be fixed here and some followed up in new issues:

local_chains.md:

  • create the loop_config.toml file for me
  • ./dev-env is in ./scripts ...

relay_packets.md

  • output JSON should be pretty printed!
  • 07-tendermint-1 is wrong

query client consensus

  • params are confusing (0 1393)
  • root shows [1,2,3] bytes not hex

query connection end

  • prefix is bytes - should be asccii ...

chan-open-init

  • dont need dst channel and src channel

  • all the commands are wrong because of the xxx-1

3.5 formatting is broken

packet relaying:

  • packet data is bytes, should be at least hex, better if JSON ...

packet send:

  • what address are we sending to ?
  • src and dest are swapped here compared to others ...
    (documented)

query packet commitment

  • result is bytes should be hex
  • how to query actual packet data from event system?

tx raw packet-recv

  • all bytes again. should be hex or actual data

@romac
Copy link
Contributor Author

romac commented Feb 1, 2021

@ebuchman

packet relaying:

  • packet data is bytes, should be at least hex, better if JSON ...

Given that the data field is defined in the .proto file as an opaque byte array, I am not sure how we would proceed to display it a JSON. Is this field typically JSON or Protobuf-encoded? If so, then we could perhaps try to optimistically decode it as either and fall back to hex if that didn't work.

https://github.com/informalsystems/ibc-rs/blob/97f27e3475d159660ba0af6724732f071fd2616d/proto/src/prost/ibc.core.channel.v1.rs#L80-L82

Copy link
Contributor

@ancazamfir ancazamfir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work everyone!! This has been an ironman race, let's merge this!

@adizere adizere removed this from the v0.1.0 milestone Feb 4, 2021
@romac romac merged commit 1f2e72d into master Feb 4, 2021
@romac romac deleted the andy/docs branch February 4, 2021 15:18
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
* Initial documentation using mdbook (informalsystems#542)

* Added README page to the guide with instructions. Fix index page (informalsystems#542)

* Added more content mostly in the configuration section (informalsystems#542)

* Some cleaning up and adding some placeholder content to a few pages (informalsystems#542)

* Added information to the index page (informalsystems#542)

* Added more content, new sections (most under in transactions), added glossary (informalsystems#542)

* Added info to light client page, additional theme change and some structure refactor (informalsystems#542)

* Added content for keys. Updated some commands references. (informalsystems#542)

* Added tutorial section. Breakdown tutorial (informalsystems#542)

* More content to tutorial (informalsystems#542)

* Adding more content to tutorial (informalsystems#542)

* Update relay_packets.md

* Adding more content, fixing content mostly in local chains file (informalsystems#542)

* Fixing some content to show hermes (informalsystems#542)

* Added content to the create-client section (informalsystems#452)

* Review sections 1-3

* Revew 3.1, remove loop_config, add config_example.toml

* Small layout change

* fix CLI examples

* fixed and clarified ID parameters

* Format bytearrays as hex-encoded strings in various commands

* Formatting

* Added 4.3.1 and 4.5.1

* fix query client doc

* fix query client connections doc

* Add the relayer_loop doc

* Add documentation for tx raw connection commands and change from positional arguments to flags

* Avoid duplicate tag name for ConnectionEnd, ChannelEnd, AnyConsensusState and AnyClientState

* Fix JSON output in `tx raw` connection guide

* Update guide following 1ed6147

* Remove tags on ChannelEnd and ConnectionEnd

* Add documentation for query connection commands

* json for client commands, fix in relayer loop doc

* Add documentation for query channel(s) commands

* Improve output of Python script a bit

* Adding guide build CI workflow (informalsystems#542)

* tx packet section, changed packet-send to ft-transfer

* Some css changes to better show few things (informalsystems#542)

* formatting

* Work around gumdrop limitation which cuts off flags help text if too long

* Add documentation for tx raw chan-* commands

* Fix typo in e2e Python script

* Adapt e2e script to new flags of tx conn commands

* Add stub doc for tx raw chan-close-* commands

* Fix typo

* Improve tx raw conn-* doc

* Improve tx raw chan-open-* doc

* Only return a single result from Output type, to avoid unnecessary brackets in JSON output

* Add diagrams to tx channel and tx connection pages

* packet query docs

* starting on feature summary

* Fix typo

* Adapt mermaid theme to mdbook theme

* Add chan-close results to doc and to e2e script (disabled for now)

* Rename events to listen mode and add listen command

* File to support custom domain (informalsystems#542)

* Fix mermaid theme detection

* Improve conn and chan diagrams

* Adding step to install mdbook-mermaid (informalsystems#542)

* Adding step to install mdbook-mermaid on CI (informalsystems#542)

* Removing full path from config example (informalsystems#542)

* Remove log statement

* Fixing type in guide.yml (informalsystems#542)

* renamed troubleshoot [test]

* Look for default config in ~/.hermes/config.toml and update guide

* Minor stylistic change

* Added Help

* Split dev-env script into setup-chains and init-clients

* Breakdown of the relay packets into separate sections (informalsystems#542)

* Fixed links in help.md

* Formatting

* Fixing color for navigation buttons in mobile display (informalsystems#542)

* Fix gaia version (informalsystems#542)

* Added pre-requisite (Golang) needed for gaia (informalsystems#542)

* Adding more content to the local_chains page (informalsystems#542)

* remove order flag from tx chan clis

* Add high level content in transactions

* add clarification on identifiers and start cleaning 4.1.3 subsections

* restructure tutorial

* add relay path tutorial

* Finish the channel close handshake commands referrence

* remove forgotten wip

* Move chan-close commands to their own section

* Remove duplicate content

* Moved miscellaneous into help. Consolidated the help section.

* review 1-3

* Add section to install hermes via cargo install

* Rename Setup page to Installation

* Patching gaia

* features and matrix

* Add [[connections]] section to config.toml

* Whitespace

* Touch up feature matrix a bit

* small nits

* Uppercase feature descriptions

* typo fix and added link

* merge features in a new column in matrix, fix a few entries

* cleanup

* formatting

* Index nits

* Getting started, prereq

* Fixed hyperlinks to installation.md

* remove the operation instructions

* Fixed tutorial URLS

* Fixed URLS in commands and local_chains.md

* Queries overview

* Relayer CLI readme stripped down to essentials

* changelog

* review up to 5.2

* review  5.3

* review  5.4

* finish 5 review

* Add instructions for running two relayers for bidirectional relaying

* Fix broken links found with mdbook-linkcheck

* Check for broken links on CI

* Revert "Check for broken links on CI"

This reverts commit c4f8509.

* Main readme. Some fixes

* Fix typo

* Hermes <> IBC Relayer CLI

* Fix a couple more typos

* Unify Transactions and Queries index pages

* Remove $ prefix in front of commands for easier copy-paste

* fix concurrent packet relay section

* Update title of two paths page

* Disambiguation Hermes<>CLI

* More explanation re: CLI

* Nit in readme

* Casing and descriptions

* More casing

* Formatting

* Consistent casing in sidebar

* nits

* Unify notes

* Nitpick

* Minor stuff

Co-authored-by: Andy Nogueira <me@andynogueira.dev>
Co-authored-by: Ethan Buchman <ethan@coinculture.info>
Co-authored-by: Anca Zamfir <zamfiranca@gmail.com>
Co-authored-by: Adi Seredinschi <adi@informal.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: documentation Internal: improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split the dev-env script in setup_chains and init_clients Relayer documentation
6 participants