Skip to content
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

add service annotations #963

Merged
merged 7 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions proto/publicawesome/stargaze/alloc/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ option go_package = "github.com/public-awesome/stargaze/v13/x/alloc/types";

// Msg defines the alloc Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;

// CreateVestingAccount defines a method that enables creating a vesting
// account.
rpc CreateVestingAccount(MsgCreateVestingAccount)
Expand Down
6 changes: 6 additions & 0 deletions proto/publicawesome/stargaze/cron/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ option go_package = "github.com/public-awesome/stargaze/v13/x/cron/types";

// Msg defines the alloc Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;

// PromoteToPrivilegedContract promotes a contract to privileged status.
rpc PromoteToPrivilegedContract(MsgPromoteToPrivilegedContract)
returns (MsgPromoteToPrivilegedContractResponse);

// DemoteFromPrivilegedContract demotes a contract from privileged status.
rpc DemoteFromPrivilegedContract(MsgDemoteFromPrivilegedContract)
returns (MsgDemoteFromPrivilegedContractResponse);

// UpdateParams updates the cron module's parameters.
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}

// MsgPromoteToPrivilegedContract defines the Msg/PromoteToPrivilegedContract
message MsgPromoteToPrivilegedContract {
option (cosmos.msg.v1.signer) = "authority";
// Authority is the address of the governance account or any whitelisted
Expand Down
2 changes: 2 additions & 0 deletions proto/publicawesome/stargaze/globalfee/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ option go_package = "github.com/public-awesome/stargaze/v13/x/globalfee/types";

// Msg defines the alloc Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;

rpc SetCodeAuthorization(MsgSetCodeAuthorization)
returns (MsgSetCodeAuthorizationResponse);

Expand Down
6 changes: 5 additions & 1 deletion proto/publicawesome/stargaze/mint/v1beta1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
syntax = "proto3";
package publicawesome.stargaze.mint.v1beta1;

import "cosmos/msg/v1/msg.proto";

option go_package = "github.com/public-awesome/stargaze/v13/x/mint/types";

// Msg defines the mint Msg service.
service Msg {}
service Msg {
option (cosmos.msg.v1.service) = true;
}
6 changes: 0 additions & 6 deletions x/alloc/keeper/msg_server_create_vesting_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,5 @@ func (k msgServer) CreateVestingAccount(goCtx context.Context, msg *types.MsgCre
return nil, err
}

ctx.EventManager().EmitEvent(
sdk.NewEvent(
sdk.EventTypeMessage,
),
)

return &types.MsgCreateVestingAccountResponse{}, nil
}
3 changes: 0 additions & 3 deletions x/alloc/keeper/msg_server_fund_fee_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ func (k msgServer) FundFairburnPool(goCtx context.Context, msg *types.MsgFundFai
return nil, err
}
ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
sdk.EventTypeMessage,
),
sdk.NewEvent(
types.EventTypeFundFairburnPool,
sdk.NewAttribute(sdk.AttributeKeyAmount, msg.Amount.String()),
Expand Down
74 changes: 37 additions & 37 deletions x/alloc/types/tx.pb.go

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

63 changes: 35 additions & 28 deletions x/cron/types/tx.pb.go

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

Loading
Loading