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

[WIP][IBC] Implement ICS-02 Client Semantics #916

Draft
wants to merge 23 commits into
base: ibc/proto-exploration-ics23
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Add error returns
  • Loading branch information
h5law committed Jul 24, 2023
commit 4bd3d41173d0137f950ca11e2a31e92433ca217c
Empty file removed ibc/client/types/proto/client.go
Empty file.
5 changes: 3 additions & 2 deletions shared/modules/ibc_client_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (
ExpiredStatus ClientStatus = "expired"
FrozenStatus ClientStatus = "frozen"
UnauthorizedStatus ClientStatus = "unauthorized"
UnknownStatus ClientStatus = "unknown"
)

type ClientManagerOption func(ClientManager)
Expand Down Expand Up @@ -115,13 +116,13 @@ type ClientState interface {

// UpdateStateOnMisbehaviour should perform appropriate state changes on a
// client state given that misbehaviour has been detected and verified
UpdateStateOnMisbehaviour(clientStore ProvableStore, clientMsg ClientMessage)
UpdateStateOnMisbehaviour(clientStore ProvableStore, clientMsg ClientMessage) error

// UpdateState updates and stores as necessary any associated information
// for an IBC client, such as the ClientState and corresponding ConsensusState.
// Upon successful update, a consensus height is returned.
// It assumes the ClientMessage has already been verified.
UpdateState(clientStore ProvableStore, clientMsg ClientMessage) Height
UpdateState(clientStore ProvableStore, clientMsg ClientMessage) (Height, error)

// Upgrade functions
// NOTE: proof heights are not included as upgrade to a new revision is expected to pass only on the last
Expand Down