Skip to content

Commit

Permalink
gasless upgrade params proto build
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsingh33 committed Mar 11, 2024
1 parent 34525d6 commit d570339
Show file tree
Hide file tree
Showing 6 changed files with 489 additions and 61 deletions.
29 changes: 28 additions & 1 deletion proto/comdex/gasless/v1beta1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
syntax = "proto3";
package comdex.gasless.v1beta1;

import "amino/amino.proto";
import "cosmos/msg/v1/msg.proto";
import "gogoproto/gogo.proto";
import "cosmos/base/v1beta1/coin.proto";
import "cosmos_proto/cosmos.proto";
import "comdex/gasless/v1beta1/params.proto";

option go_package = "github.com/comdex-official/comdex/x/gasless/types";

Expand All @@ -28,6 +32,8 @@ service Msg {

// UpdateGasConsumerLimit defines a method for updating consumption limit of gas consumer
rpc UpdateGasConsumerLimit(MsgUpdateGasConsumerLimit) returns (MsgUpdateGasConsumerLimitResponse);

rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}


Expand Down Expand Up @@ -157,4 +163,25 @@ message MsgUpdateGasConsumerLimit {
string total_fee_consumption_allowed = 5 [(gogoproto.customtype) = "cosmossdk.io/math.Int", (gogoproto.nullable) = false];
}

message MsgUpdateGasConsumerLimitResponse {}
message MsgUpdateGasConsumerLimitResponse {}

// MsgUpdateParams is the MsgUpdateParams request type.
//
// Since: 0.47
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";

// authority is the address that controls the module (defaults to x/gov unless overwritten).
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// params defines the x/gasless parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
}

// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
//
// Since: 0.47
message MsgUpdateParamsResponse {}
10 changes: 5 additions & 5 deletions x/gasless/types/gasless.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/gasless/types/genesis.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/gasless/types/gov.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x/gasless/types/params.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d570339

Please sign in to comment.