Skip to content
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

Move solomachine docs to the docs directory #2908

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 76 additions & 42 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,52 +322,86 @@ module.exports = {
],
},
{
title: "IBC Light Client Developer Guide",
title: "IBC Light Clients",
children: [
{
title: "Overview",
directory: false,
path: "/light-clients/overview.html",
},
{
title: "ClientState",
directory: false,
path: "light-clients/client-state.html",
},
{
title: "ConsensusState",
directory: false,
path: "/light-clients/consensus-state.html",
},
{
title: "Existence/Non-Existence Proofs",
directory: false,
path: "/light-clients/proofs.html",
},
{
title: "Updates Handling",
directory: false,
path: "/light-clients/update.html",
},
{
title: "Misbehaviour Handling",
directory: false,
path: "/light-clients/misbehaviour.html",
},
{
title: "Upgrades Handling",
directory: false,
path: "/light-clients/upgrade.html",
},
{
title: "Proposal Handling",
directory: false,
path: "/light-clients/proposal.html",
title: "Developer Guide",
directory: true,
path: "/ibc/light-clients",
children: [
{
title: "Overview",
directory: false,
path: "/ibc/light-clients/overview.html",
},
{
title: "ClientState",
directory: false,
path: "/ibc/light-clients/client-state.html",
},
{
title: "ConsensusState",
directory: false,
path: "/ibc/light-clients/consensus-state.html",
},
{
title: "Existence/Non-Existence Proofs",
directory: false,
path: "/ibc/light-clients/proofs.html",
},
{
title: "Updates Handling",
directory: false,
path: "/ibc/light-clients/update.html",
},
{
title: "Misbehaviour Handling",
directory: false,
path: "/ibc/light-clients/misbehaviour.html",
},
{
title: "Upgrades Handling",
directory: false,
path: "/ibc/light-clients/upgrade.html",
},
{
title: "Proposal Handling",
directory: false,
path: "/ibc/light-clients/proposal.html",
},
{
title: "Genesis Handling",
directory: false,
path: "/ibc/light-clients/genesis.html",
},
]
},
{
title: "Genesis Handling",
directory: false,
path: "/light-clients/genesis.html",
title: "Solomachine",
directory: true,
path: "/ibc/light-clients/solomachine",
children: [
{
title: "Solomachine",
directory: false,
path: "/ibc/light-clients/solomachine/solomachine.html",
},
{
title: "Concepts",
directory: false,
path: "/ibc/light-clients/solomachine/concepts.html",
},
{
title: "State",
directory: false,
path: "/ibc/light-clients/solomachine/state.html",
},
{
title: "State Transitions",
directory: false,
path: "/ibc/light-clients/solomachine/state_transitions.html",
},
],
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ data := &ClientStateData{
dataBz, err := cdc.Marshal(data)
```

The helper functions `...DataBytes()` in [proof.go](../proof.go) handle this
The helper functions `...DataBytes()` in [proof.go](../../../../modules/light-clients/06-solomachine/proof.go) handle this
functionality.

2. Construct the `SignBytes` and marshal it.
Expand All @@ -75,7 +75,7 @@ signBytes := &SignBytes{
signBz, err := cdc.Marshal(signBytes)
```

The helper functions `...SignBytes()` in [proof.go](../proof.go) handle this functionality.
The helper functions `...SignBytes()` in [proof.go](../../../../modules/light-clients/06-solomachine/proof.go) handle this functionality.
The `DataType` field is used to disambiguate what type of data was signed to prevent potential
proto encoding overlap.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ order: 2

The solo machine light client will only store consensus states for each update by a header
or a governance proposal. The latest client state is also maintained in the store.