-
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
IBC SDK Integration #5124
IBC SDK Integration #5124
Conversation
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.2 to 2.2.3. - [Release notes](https://github.com/go-yaml/yaml/releases) - [Commits](go-yaml/yaml@v2.2.2...v2.2.3) Signed-off-by: dependabot-preview[bot] <[email protected]>
…thub.com/cosmos/cosmos-sdk into fedekunze/ibc-sdk-interface
…s/cosmos-sdk into fedekunze/ibc-sdk-interface
x/ibc/ante.go
Outdated
|
||
return ctx, res, false | ||
} | ||
} |
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.
File is not goimports
-ed (from goimports
)
} | |
} |
x/ibc/keeper.go
Outdated
|
||
func (k Keeper) Port(id string) channel.Port { | ||
return k.channel.Port(id) | ||
} |
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.
File is not goimports
-ed (from goimports
)
} | |
} |
x/ibc/module.go
Outdated
|
||
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate { | ||
return []abci.ValidatorUpdate{} | ||
} |
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.
File is not goimports
-ed (from goimports
)
} | |
} |
Codecov Report
@@ Coverage Diff @@
## joon/ics-04-implementation #5124 +/- ##
==============================================================
- Coverage 55.84% 55.77% -0.08%
==============================================================
Files 313 314 +1
Lines 18980 19029 +49
==============================================================
+ Hits 10600 10613 +13
- Misses 7625 7660 +35
- Partials 755 756 +1 |
* Cherry pick from bez/5116-multi-ctx-verifier * fix test
chainID := viper.GetString(flags.FlagChainID) | ||
home := viper.GetString(flags.FlagHome) | ||
nodeURI := viper.GetString(flags.FlagNode) | ||
// NewCLIContextIBC takes additional arguements |
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.
arguements
is a misspelling of arguments
(from misspell
)
// NewCLIContextIBC takes additional arguements |
@@ -15,6 +15,16 @@ type MsgOpenInit struct { | |||
Signer sdk.AccAddress `json:"signer"` | |||
} | |||
|
|||
func NewMsgOpenInit(connectionID string, connection Connection, counterpartyClient string, nextTimeout uint64, signer sdk.AccAddress) MsgOpenInit { | |||
return MsgOpenInit{ | |||
ConnectionID: connectionID, |
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.
File is not goimports
-ed (from goimports
)
fmt.Fprintf(os.Stderr, "failed to unmarshall input into struct, checking for file...") | ||
contents, err := ioutil.ReadFile(args[1]) | ||
if err != nil { | ||
return fmt.Errorf("error opening state file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
return fmt.Errorf("error opening state file: %v\n", err) | ||
} | ||
if err := cdc.UnmarshalJSON(contents, &state); err != nil { | ||
return fmt.Errorf("error unmarshalling state file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
fmt.Fprintf(os.Stderr, "failed to unmarshall input into struct, checking for file...") | ||
contents, err := ioutil.ReadFile(args[1]) | ||
if err != nil { | ||
return fmt.Errorf("error opening header file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
Co-Authored-By: Bot from GolangCI <[email protected]>
Co-Authored-By: Bot from GolangCI <[email protected]>
return MsgCreateClient{ | ||
ClientID: clientID, | ||
ConsensusState: consState, | ||
Signer: signer, |
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.
File is not goimports
-ed (from goimports
)
Signer: signer, | |
Signer: signer, |
fmt.Fprintf(os.Stderr, "failed to unmarshall input into struct, checking for file...") | ||
contents, err := ioutil.ReadFile(args[1]) | ||
if err != nil { | ||
return fmt.Errorf("error opening state file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
return fmt.Errorf("error opening state file: %v\n", err) | ||
} | ||
if err := cdc.UnmarshalJSON(contents, &state); err != nil { | ||
return fmt.Errorf("error unmarshalling state file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
fmt.Fprintf(os.Stderr, "failed to unmarshall input into struct, checking for file...") | ||
contents, err := ioutil.ReadFile(args[1]) | ||
if err != nil { | ||
return fmt.Errorf("error opening header file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
@@ -14,6 +14,14 @@ type Connection struct { | |||
Path commitment.Prefix `json:"path"` | |||
} | |||
|
|||
func NewConnection(client string, counterParty string, path commitment.Prefix) Connection { | |||
return Connection{ | |||
Client: client, |
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.
File is not goimports
-ed (from goimports
)
Client: client, | |
Client: client, |
fmt.Fprintf(os.Stderr, "failed to unmarshall input into struct, checking for file...") | ||
contents, err := ioutil.ReadFile(arg) | ||
if err != nil { | ||
return path, fmt.Errorf("error opening path file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
return path, fmt.Errorf("error opening path file: %v\n", err) | ||
} | ||
if err := cdc.UnmarshalJSON(contents, &path); err != nil { | ||
return path, fmt.Errorf("error unmarshalling path file: %v\n", err) |
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.
error strings should not be capitalized or end with punctuation or a newline (from golint
)
@@ -2,22 +2,20 @@ package cli | |||
|
|||
import ( | |||
"io/ioutil" | |||
// "os" | |||
"fmt" | |||
"io/ioutil" |
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.
ioutil
redeclared in this block (from typecheck
)
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.
There seems to be some duplication between this PR and various ICS PRs.
Either ICS implementations should exist in internal modules and all exports be pulled in at the top level (e.g. message handling, querying) or they should be split up, but here there is duplication, which we should avoid.
My preference would be the former, but it's up to the SDK team.
replaced by #5277 |
Replaces: #5057
Depends on: #4515 #4516 #4517 #4548
IMPORTANT: Please do not merge in the downstream PRs until they have been merged and this PR has been rebased to
master
.Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry to the
Unreleased
section inCHANGELOG.md
Re-reviewed
Files changed
in the github PR explorerFor Admin Use: