[Gateway] Scaffold the unstake gateway message #67
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.
Summary
Ran
Summary generated by Reviewpad on 16 Oct 23 18:06 UTC
This pull request includes various changes to multiple files:
A new file named
tx_unstake_gateway.go
is added in thex/gateway/client/cli
directory. It defines a commandCmdUnstakeGateway
for unstaking a gateway and includes transaction flags.In the
x/gateway/types
package, a new file namedmessage_unstake_gateway.go
is added. It defines the message typeMsgUnstakeGateway
for unstaking a gateway, along with necessary methods and helper functions.A new test file for the
MsgUnstakeGateway
type in thetypes
package is added. It tests theValidateBasic
function for different scenarios.The file
module_simulation.go
includes changes related to simulating theMsgUnstakeGateway
message.The file
gateway/types/codec.go
includes changes in the registration ofMsgUnstakeGateway
message type.The file
tx.proto
in thepocket/gateway
directory includes changes related to adding a new RPC method for unstaking a gateway.The
go.mod
file includes changes in the dependencies of the project.A new file named
msg_server_unstake_gateway.go
in thex/gateway/keeper
package includes the initial structure for handling unstaking of a gateway.In the
x/gateway/simulation
package, a new file namedunstake_gateway.go
includes the initial structure for simulating the unstaking of a gateway.The file
tx.go
includes changes related to the variableDefaultRelativePacketTimeoutTimestamp
and the addition of theCmdUnstakeGateway()
command.The file
docs/static/openapi.yml
includes changes in the definitions ofMsgUnstakeGatewayResponse
,MsgStakeGatewayResponse
, andParams
.These changes add new functionality and improve the existing codebase. Let me know if you need further assistance!
Issue
Fixes (in part) 19
Type of change
Select one or more:
Testing
make test_all_unit
Sanity Checklist