-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
R4R Client Generalization (+ associated module refactor) #4451
Merged
Merged
Changes from 14 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
c5b89c3
porting changes from first branch
rigelrozanski f4e2f93
fix import cycles
rigelrozanski ca8f4cd
circle dep cont.
rigelrozanski 8206f89
working on compile errors
rigelrozanski 32e14a5
simapp addition
rigelrozanski 93d6e60
...
rigelrozanski bf09851
working through compile errors
rigelrozanski f6decfb
resolve all compile errors
rigelrozanski abfbe47
fix bugs
rigelrozanski 0ed158d
Merge remote-tracking branch 'origin/master' into rigel/client-genera…
rigelrozanski 5c62e49
gov proposal handler type
rigelrozanski d010ed7
client routes
rigelrozanski f7246b6
cl
rigelrozanski 27a52d4
@jleni comments
rigelrozanski 71bf692
@fedekunze pr comments
rigelrozanski 9013c97
Merge remote-tracking branch 'origin/master' into rigel/client-genera…
rigelrozanski 8cc66cc
@jackzampolin comments
rigelrozanski e5d0b71
Update x/auth/keeper.go
alexanderbez 3b82dc5
Update x/auth/keeper.go
alexanderbez 0e650ae
add auth and bank tx/query subcommands
rigelrozanski f2ee34c
Merge branch 'rigel/client-generalization2' of https://github.com/cos…
rigelrozanski bc64c7e
resolve cli issues, global cdc for commands
rigelrozanski ac9fdc7
Merge remote-tracking branch 'origin/master' into rigel/client-genera…
rigelrozanski b646cfa
update alias
rigelrozanski 9d81db8
@fedekunze PR comments (round 2)
rigelrozanski 394ecd3
@alexanderbez PR comments (and marko comment on queryRoute)
rigelrozanski 4740a8c
Merge remote-tracking branch 'origin/master' into rigel/client-genera…
rigelrozanski 02ab8f6
Fix pending file
alexanderbez 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#4451 RegisterRoutes and ModuleClient to BasicModule pattern |
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
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,14 @@ | ||
package client | ||
|
||
import ( | ||
"github.com/gorilla/mux" | ||
|
||
"github.com/cosmos/cosmos-sdk/client/context" | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
) | ||
|
||
// Register routes | ||
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec) { | ||
RegisterRPCRoutes(cliCtx, r) | ||
RegisterTxRoutes(cliCtx, r, cdc) | ||
} |
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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
package keys | ||
|
||
import ( | ||
amino "github.com/tendermint/go-amino" | ||
cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino" | ||
|
||
"github.com/cosmos/cosmos-sdk/codec" | ||
"github.com/cosmos/cosmos-sdk/crypto/keys/hd" | ||
) | ||
|
||
var cdc = amino.NewCodec() | ||
var cdc *codec.Codec | ||
|
||
func init() { | ||
alexanderbez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cdc = codec.New() | ||
cryptoAmino.RegisterAmino(cdc) | ||
cdc.RegisterInterface((*Info)(nil), nil) | ||
cdc.RegisterConcrete(hd.BIP44Params{}, "crypto/keys/hd/BIP44Params", nil) | ||
cdc.RegisterConcrete(localInfo{}, "crypto/keys/localInfo", nil) | ||
cdc.RegisterConcrete(ledgerInfo{}, "crypto/keys/ledgerInfo", nil) | ||
cdc.RegisterConcrete(offlineInfo{}, "crypto/keys/offlineInfo", nil) | ||
cdc.RegisterConcrete(multiInfo{}, "crypto/keys/multiInfo", nil) | ||
cdc.Seal() | ||
} |
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
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
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
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
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.
Once we remove the need for a codec as an argument, this should really only be
RegisterRoutes
👍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.
I'm not sure that will be possible given that client doesn't define it's own "client" level cdc