Skip to content

Commit

Permalink
Merge pull request #3 from ComposableFi/client_state
Browse files Browse the repository at this point in the history
implement client state methods
  • Loading branch information
seunlanlege authored Feb 9, 2022
2 parents a0e4fb9 + c724493 commit a2cd863
Show file tree
Hide file tree
Showing 11 changed files with 750 additions and 341 deletions.
2 changes: 1 addition & 1 deletion docs/ibc/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3289,6 +3289,7 @@ and a possible frozen height.
| ----- | ---- | ----- | ----------- |
| `mmr_root_hash` | [bytes](#bytes) | | Latest mmr root hash |
| `latest_beefy_height` | [uint32](#uint32) | | block number for the latest mmr_root_hash |
| `frozen_height` | [uint64](#uint64) | | Block height when the client was frozen due to a misbehaviour |
| `beefy_activation_block` | [uint32](#uint32) | | block number that the beefy protocol was activated on the relay chain. This shoould be the first block in the merkle-mountain-range tree. |
| `authority` | [BeefyAuthoritySet](#ibc.lightclients.beefy.v1.BeefyAuthoritySet) | | authorities for the current round |
| `next_authority_set` | [BeefyAuthoritySet](#ibc.lightclients.beefy.v1.BeefyAuthoritySet) | | authorities for the next round |
Expand Down Expand Up @@ -3463,7 +3464,6 @@ Timestamp extrinsic data

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `extrinsic_index` | [uint32](#uint32) | | index of timestamp extrinsic in merkle tree |
| `extrinsic_proof` | [bytes](#bytes) | repeated | merkle proof of inclusion in header.extrinsic_root |
| `extrinsic` | [bytes](#bytes) | | actual scale encoded timestamp extrinsic. |

Expand Down
2 changes: 1 addition & 1 deletion modules/light-clients/07-tendermint/types/client_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ func verifyDelayPeriodPassed(ctx sdk.Context, store sdk.KVStore, proofHeight exp
return nil
}

// produceVerificationArgs perfoms the basic checks on the arguments that are
// produceVerificationArgs performs the basic checks on the arguments that are
// shared between the verification functions and returns the unmarshalled
// merkle proof, the consensus state and an error if one occurred.
func produceVerificationArgs(
Expand Down
185 changes: 90 additions & 95 deletions modules/light-clients/11-beefy/types/beefy.pb.go

Large diffs are not rendered by default.

Loading

0 comments on commit a2cd863

Please sign in to comment.