-
Notifications
You must be signed in to change notification settings - Fork 609
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
chore: adding basic Msg service and SubmitTx rpc boilerplate #2086
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d20f2d2
add protos/rpcs, boilerplate
charleenfei 48e44b6
typo
charleenfei 3cacc48
typo
charleenfei ab10570
Merge branch 'main' into charly/2052_sendtx_rpc_msgs
charleenfei 5eb8eb2
update re comments
charleenfei 1748c3a
update msg
charleenfei c0a5259
Merge branch 'main' into charly/2052_sendtx_rpc_msgs
charleenfei aa6ce16
merge main
charleenfei a4a7708
initial commit, adding all types
damiannolan 81d74fd
finish up correcting compile errors
charleenfei bd25b55
goformat
charleenfei 6e6fe62
Merge branch 'refactor_genesis_types' into charly/2052_sendtx_rpc_msgs
charleenfei fee8080
update to new proto
charleenfei a605ba6
update proto
charleenfei a0a21ff
register interfaces update
charleenfei 6c508cb
Merge branch 'main' into ics27/refactor-genesis-types
charleenfei a9e44a1
format
charleenfei a8bb9ca
Merge branch 'main' into charly/2052_sendtx_rpc_msgs
charleenfei c897d0b
update changelog
charleenfei ab6a796
Merge branch 'ics27/refactor-genesis-types' of github.com:cosmos/ibc-…
charleenfei 656ca38
update changelog
charleenfei 7f4274e
Merge branch 'ics27/refactor-genesis-types' into charly/2052_sendtx_r…
charleenfei 4eec1dc
update msgSubmitTxResp
charleenfei e26f181
Merge branch 'main' into charly/2052_sendtx_rpc_msgs
charleenfei 864cbfb
merge
charleenfei 1f0828a
update proto
charleenfei 679d47c
update proto
charleenfei 26b6d6f
update ordering
charleenfei 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
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 | ||||
---|---|---|---|---|---|---|
|
@@ -6,6 +6,8 @@ import ( | |||||
sdk "github.com/cosmos/cosmos-sdk/types" | ||||||
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" | ||||||
|
||||||
icatypes "github.com/cosmos/ibc-go/v5/modules/apps/27-interchain-accounts/types" | ||||||
clienttypes "github.com/cosmos/ibc-go/v5/modules/core/02-client/types" | ||||||
host "github.com/cosmos/ibc-go/v5/modules/core/24-host" | ||||||
) | ||||||
|
||||||
|
@@ -46,3 +48,24 @@ func (msg MsgRegisterAccount) GetSigners() []sdk.AccAddress { | |||||
|
||||||
return []sdk.AccAddress{accAddr} | ||||||
} | ||||||
|
||||||
// NewMsgSubmitTx creates a new instance of MsgSubmitTx | ||||||
func NewMsgSubmitTx(owner, connectionID string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, packetData icatypes.InterchainAccountPacketData) *MsgSubmitTx { | ||||||
return &MsgSubmitTx{ | ||||||
ConnectionId: connectionID, | ||||||
Owner: owner, | ||||||
TimeoutHeight: timeoutHeight, | ||||||
TimeoutTimestamp: timeoutTimestamp, | ||||||
PacketData: packetData, | ||||||
} | ||||||
} | ||||||
|
||||||
// ValidateBasic implements sdk.Msg | ||||||
func (msg MsgSubmitTx) ValidateBasic() error { | ||||||
return nil | ||||||
} | ||||||
|
||||||
// GetSigners implements sdk.Msg | ||||||
func (msg MsgSubmitTx) GetSigners() []sdk.AccAddress { | ||||||
return []sdk.AccAddress{} | ||||||
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.
Suggested change
This needs to be authenticated by owner signature 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. yea i would fill out this function in the next PR along with validate basic :) |
||||||
} |
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.
This should be an AccAddress I believe because it is on the controller chain, we know it should be a valid address
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.
is it better to cast it in the proto or check if its a valid addr in ValidateBasic?