-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
ICS 02 Implementation #4516
Merged
Merged
ICS 02 Implementation #4516
Changes from 163 commits
Commits
Show all changes
228 commits
Select commit
Hold shift + click to select a range
9375649
add mapping
mossid 16eea68
rm unused mapping/*, rm interfaces
mossid f73215e
rm unused code
mossid cf0b8f2
mv mapping -> state, rm x/ibc
mossid e25f652
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid 2b17a39
rm GetIfExists
mossid dc84e1e
add key
mossid 19d7155
rm custom encoding/decoding in enum/bool
mossid 6764bc4
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid 8affaa7
fix lint
mossid a7898b4
rm tests
mossid afcca90
add commitment
mossid d29b601
newtyped remote values
mossid dd86fa9
newtyped context
mossid 6aad15f
revert context newtype
mossid 088836d
add README, keypath
mossid cd6f1f2
reflect downstream ics
mossid d0777cd
add merkle
mossid df8c05e
add test for proving
mossid 47c33f0
soft coded root keypath
mossid 12ef402
add update
mossid 03d5d17
remove RootUpdate
mossid 0b79b1d
separate keypath and keuprefix
mossid 7046953
add codec
mossid 3939bd4
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid db93a8a
separate root/path
mossid 37387bf
add path to codec
mossid 5266fc9
add client
mossid 06257bd
add counterpartymanager
mossid 5b089e7
fix manager
mossid d0f61b0
add Is() to counterobject
mossid a7b866f
add readme, reflect ICS02 revision
mossid 392e3ab
reflect downstream ics
mossid 5d46c96
test in progress
mossid b934d57
add test
mossid 2ac7d8c
in progres
mossid a5d86b7
fin rebase
mossid acd44f3
in progress
mossid 582fd6d
fin rebase
mossid cb3081d
add CLIObject in progress
mossid e48fd1c
cli in progress
mossid a372f56
add CLIObject
mossid 67b1d73
separate testing from tendermint
mossid ee95a83
add key to node
mossid b6865aa
add root and storekey to tests/node, add codec
mossid 631b72d
rm cli/query.go
mossid b9d8929
fix test
mossid dbd6b83
fix lint
mossid f6e5f90
fix lint
mossid 892a120
add handler/msgs/client
mossid dce1148
rm relay
mossid 26e8038
finalize rebase on 23 root/path sep
mossid 812bea4
fix lint, fix syntax
mossid dbd47aa
rm freebase, reformat query
mossid f609249
add docs in progre
mossid 7da69c1
add comments
mossid 600445a
add comments
mossid 98720bb
Apply suggestions from code review
mossid cdee396
add comments in progress
mossid ce588a4
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 39dca11
Merge branch 'joon/ics-23-implementation' of github.com:cosmos/cosmos…
mossid 94e2cdc
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid 8d9e779
add comments
mossid 92d0fb4
fix comment
mossid d896152
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid f70d3bd
add comments in progress
mossid 5d913b7
recover IntEncoding scheme for integer
mossid 699b0ba
add uint tests, don't use codec in custom types
mossid 323818f
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 9a077eb
finalize merge
mossid a4a20d6
add godoc
mossid 02a9ba5
add godoc in progress
mossid a9adb58
reformat test
mossid abb2f51
rm XXX
mossid 361aa42
add godoc
mossid 97edd89
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid 23debb9
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid b0ca51a
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid 54a67b0
modify store
mossid 24e621a
add query
mossid 64c0381
update query.go
mossid 971a642
update query.go
mossid 2968dd3
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 6be03df
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid e7f6708
cli refactor in progress
mossid 0d134d5
cli refactor in progress
mossid fcad487
add Query to boolean.go
mossid 3142d4b
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 6de0ed5
fix key
mossid 05d39a1
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 811b384
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid 62b7d75
fix cli / merkle test
mossid 6dc912f
godoc cleanup
alexanderbez 63c6f3c
godoc cleanup
alexanderbez b6441c0
godoc cleanup
alexanderbez 4d723ae
godoc cleanup
alexanderbez 244d2c2
godoc cleanup
alexanderbez 7bf4d57
merge from ics04 branch
mossid 7471bdf
Merge branch 'joon/store-mapping' of github.com:cosmos/cosmos-sdk int…
mossid 3c86363
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 32cb0ca
merge from ics04 branch
mossid af260c8
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid 17f18d7
merge from ics04 branch
mossid 71d2620
fix lint
mossid 073a67a
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid 04543f8
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid 59d2b3e
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 6d1088f
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid 10d1c46
Apply suggestions from code review
mossid 09e6600
applying review in progress
mossid 6f5f633
Merge branch 'joon/store-mapping' of github.com:cosmos/cosmos-sdk int…
mossid 4116bb7
apply review - make querier interface
mossid 8040c81
Merge branch 'master' of github.com:cosmos/cosmos-sdk into joon/store…
mossid 48bb32d
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid 9b63a6b
fix dependency
mossid a7df43c
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid acaaaf2
fix dependency
mossid 828badd
revise querier interface to work both on cli & store
mossid 1e64e92
revise querier interface to work both on cli & store
mossid b4d7491
reflect downstream change
mossid a59d1e7
Merge branch 'joon/store-mapping' into joon/ics-23-implementation
mossid bb09ad9
Merge branch 'joon/ics-23-implementation' into joon/ics-02-implementa…
mossid de1a045
fix cli
mossid 9f63629
rm commented lines
mossid b4e71e1
address review in progress
mossid 6b966a3
rename Path -> Prefix
mossid 21bd8d0
Store accessor upstream changes (#5119)
fedekunze af2564b
Merge branch 'joon/store-mapping' of https://github.com/cosmos/cosmos…
fedekunze 303ebf3
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 9b3b120
Merge branch 'master' into joon/store-mapping
fedekunze 18f8d70
Merge branch 'joon/store-mapping' of https://github.com/cosmos/cosmos…
fedekunze df5b21a
add comments, reformat merkle querier
mossid 7afe221
Merge branch 'joon/ics-23-implementation' of github.com:cosmos/cosmos…
mossid 1ac982c
rm merkle/utils
mossid fa04419
ICS 23 upstream changes (#5120)
fedekunze 0d5a317
downstream changes
fedekunze db8d382
update Value
fedekunze 02b31a5
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 4d518f2
update test
fedekunze 8a3e5ea
fix
fedekunze 9975a1d
ICS 02 upstream changes (#5122)
fedekunze cc404a0
cleanup types and submodule
fedekunze d93a0ae
more cleanup and godocs
fedekunze 9b6afe9
remove counterPartyManager/State and cleanup
fedekunze c8a0ab4
implement SubmitMisbehaviour and refactor
fedekunze 4483182
errors
fedekunze 23fbb5d
events
fedekunze ebecbce
fix test
fedekunze 0e85ed0
refactors
fedekunze a7d2d98
remove Mapping
fedekunze 1b7e466
remove store accessors
fedekunze c09a84c
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 99c586b
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 02bd6f7
proposed refactor
fedekunze 0e37d75
remove store accessors from ICS02
fedekunze 8dec96f
refactor queriers, handler and clean keeper
fedekunze 83f4c1b
logger and tx long description
fedekunze 178912f
ineffassign
fedekunze 9a225e9
Apply suggestions from code review
fedekunze fe7da5f
Apply suggestions from code review
fedekunze 21f7d2c
add verification functions
fedekunze cf347bf
ICS02 module.go
fedekunze 5514e9e
top level x/ibc structure
fedekunze a1c22e9
Merge branch 'master' into joon/ics-23-implementation
fedekunze a8ceb45
Update x/ibc/02-client/client/cli/query.go
fedekunze 956eb5c
Update x/ibc/02-client/types/tendermint/consensus_state.go
fedekunze 2cc23b2
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 2e1e894
Merge branch 'joon/ics-02-implementation' of https://github.com/cosmo…
fedekunze c573d57
address some of the review comments
fedekunze 6af2ce7
minor UX improvements
fedekunze 8be3af7
rename pkg
fedekunze 53ab47d
fixes
fedekunze d3a533a
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 7ba777e
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 499abb4
refactor ICS23
fedekunze a925d88
cleanup types
fedekunze 53f5fad
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze c12c298
implement batch verification
fedekunze a34b741
gosimple suggestion
fedekunze bf4f096
Merge branch 'master' into joon/ics-23-implementation
fedekunze 386489b
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 383ba49
merge ICS23
fedekunze 9b77275
various fixes; remove legacy tests; remove commitment path query
fedekunze 40fca1a
alias
fedekunze 1eaf55e
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze deceeb8
minor updates from ICS23
fedekunze 2a1a144
renaming
fedekunze 714e6e2
update verification and rename root funcs
fedekunze de13f5a
move querier to x/ibc
fedekunze aae117f
update query.go to use 'custom/...' query path
fedekunze f8fd580
add tests
AdityaSripal cbc1106
ICS 24 Implementation (#5229)
AdityaSripal f8d99ca
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 23ae994
flatten ICS23 structure
fedekunze e1fa5f8
fix ApplyPrefix
fedekunze 7222642
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 4f89602
updates from ICS23 and ICS24
fedekunze 22f874a
msg.ValidateBasic and ADR09 evidence interface
fedekunze 2edb03f
complete types testing
AdityaSripal 5783b03
merge
AdityaSripal 696db2e
delete empty test file
AdityaSripal 69db1f2
remove ibc errors from core error package
AdityaSripal 102ab3d
custom JSON marshaling
fedekunze 33312c2
start batch-verify tests
AdityaSripal 49d08e3
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 5239720
minor changes on commitment types
fedekunze e048a6c
R4R - Store consensus state correctly (#5242)
chengwenxi 093c004
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 3965928
Merge branch 'joon/ics-02-implementation' of https://github.com/cosmo…
fedekunze 0c187bf
update alias
fedekunze d1f71dd
Merge branch 'master' into joon/ics-23-implementation
fedekunze 0a461b5
use testsuite
AdityaSripal dac68df
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
AdityaSripal 7f9c166
Integrate Evidence Implementation into ICS-02 (#5258)
AdityaSripal a74ebf3
Merge branch 'master' into joon/ics-23-implementation
fedekunze 6d580aa
finish tendermint tests
AdityaSripal 0dd779e
Merge branch 'joon/ics-02-implementation' of https://github.com/cosmo…
AdityaSripal e875ca7
complete merge
AdityaSripal cd0aa22
Add tests for msgs
AdityaSripal 0c8b759
upstream changes
fedekunze c6fa07b
fix
fedekunze 17abbda
Merge branch 'master' of https://github.com/cosmos/cosmos-sdk into jo…
fedekunze 820482f
upstream changes
fedekunze 962979d
ICS23 changes
fedekunze b5442d3
fix cons state
fedekunze 7c67236
context changes
fedekunze 4866753
Merge branch 'joon/ics-23-implementation' of https://github.com/cosmo…
fedekunze 928b1de
conflicts
fedekunze File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// nolint | ||
// autogenerated code using github.com/rigelrozanski/multitool | ||
// aliases generated for the following subdirectories: | ||
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/ibc/02-client/keeper | ||
// ALIASGEN: github.com/cosmos/cosmos-sdk/x/ibc/02-client/types | ||
package ics02 | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/x/ibc/02-client/keeper" | ||
"github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" | ||
) | ||
|
||
const ( | ||
DefaultCodespace = types.DefaultCodespace | ||
CodeClientExists = types.CodeClientExists | ||
CodeClientNotFound = types.CodeClientNotFound | ||
CodeClientFrozen = types.CodeClientFrozen | ||
CodeConsensusStateNotFound = types.CodeConsensusStateNotFound | ||
CodeInvalidConsensusState = types.CodeInvalidConsensusState | ||
CodeClientTypeNotFound = types.CodeClientTypeNotFound | ||
CodeInvalidClientType = types.CodeInvalidClientType | ||
CodeRootNotFound = types.CodeRootNotFound | ||
EventTypeCreateClient = types.EventTypeCreateClient | ||
EventTypeUpdateClient = types.EventTypeUpdateClient | ||
EventTypeSubmitMisbehaviour = types.EventTypeSubmitMisbehaviour | ||
AttributeKeyClientID = types.AttributeKeyClientID | ||
SubModuleName = types.SubModuleName | ||
StoreKey = types.StoreKey | ||
RouterKey = types.RouterKey | ||
QuerierRoute = types.QuerierRoute | ||
QueryClientState = types.QueryClientState | ||
QueryConsensusState = types.QueryConsensusState | ||
QueryCommitmentPath = types.QueryCommitmentPath | ||
QueryCommitmentRoot = types.QueryCommitmentRoot | ||
) | ||
|
||
var ( | ||
// functions aliases | ||
NewKeeper = keeper.NewKeeper | ||
NewQuerier = keeper.NewQuerier | ||
RegisterCodec = types.RegisterCodec | ||
ErrClientExists = types.ErrClientExists | ||
ErrClientNotFound = types.ErrClientNotFound | ||
ErrClientFrozen = types.ErrClientFrozen | ||
ErrConsensusStateNotFound = types.ErrConsensusStateNotFound | ||
ErrInvalidConsensus = types.ErrInvalidConsensus | ||
ErrClientTypeNotFound = types.ErrClientTypeNotFound | ||
ErrInvalidClientType = types.ErrInvalidClientType | ||
ErrRootNotFound = types.ErrRootNotFound | ||
ClientStatePath = types.ClientStatePath | ||
ClientTypePath = types.ClientTypePath | ||
ConsensusStatePath = types.ConsensusStatePath | ||
RootPath = types.RootPath | ||
KeyClientState = types.KeyClientState | ||
KeyClientType = types.KeyClientType | ||
KeyConsensusState = types.KeyConsensusState | ||
KeyRoot = types.KeyRoot | ||
NewMsgCreateClient = types.NewMsgCreateClient | ||
NewMsgUpdateClient = types.NewMsgUpdateClient | ||
NewMsgSubmitMisbehaviour = types.NewMsgSubmitMisbehaviour | ||
NewQueryClientStateParams = types.NewQueryClientStateParams | ||
NewQueryCommitmentRootParams = types.NewQueryCommitmentRootParams | ||
NewClientState = types.NewClientState | ||
|
||
// variable aliases | ||
SubModuleCdc = types.SubModuleCdc | ||
AttributeValueCategory = types.AttributeValueCategory | ||
) | ||
|
||
type ( | ||
Keeper = keeper.Keeper | ||
MsgCreateClient = types.MsgCreateClient | ||
MsgUpdateClient = types.MsgUpdateClient | ||
MsgSubmitMisbehaviour = types.MsgSubmitMisbehaviour | ||
QueryClientStateParams = types.QueryClientStateParams | ||
QueryCommitmentRootParams = types.QueryCommitmentRootParams | ||
ClientState = types.ClientState | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. type name will be used as client.ClientState by other packages, and that stutters; consider calling this State (from
fedekunze marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type name will be used as client.ClientState by other packages, and that stutters; consider calling this State (from
golint
)