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

refactor(campaign): remove msg add shares #837

Merged
merged 6 commits into from
Jun 8, 2022
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
14 changes: 0 additions & 14 deletions proto/campaign/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ service Msg {
rpc UpdateTotalSupply(MsgUpdateTotalSupply) returns (MsgUpdateTotalSupplyResponse);
rpc UpdateSpecialAllocations(MsgUpdateSpecialAllocations) returns (MsgUpdateSpecialAllocationsResponse);
rpc InitializeMainnet(MsgInitializeMainnet) returns (MsgInitializeMainnetResponse);
rpc AddShares(MsgAddShares) returns (MsgAddSharesResponse);
rpc AddVestingOptions(MsgAddVestingOptions) returns (MsgAddVestingOptionsResponse);
rpc MintVouchers(MsgMintVouchers) returns (MsgMintVouchersResponse);
rpc BurnVouchers(MsgBurnVouchers) returns (MsgBurnVouchersResponse);
Expand Down Expand Up @@ -81,19 +80,6 @@ message MsgInitializeMainnetResponse {
uint64 mainnetID = 1;
}

message MsgAddShares {
string coordinator = 1;
uint64 campaignID = 2;
string address = 3;
repeated cosmos.base.v1beta1.Coin shares = 4 [
(gogoproto.nullable) = false,
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.Coin",
(gogoproto.castrepeated) = "Shares"
];
}

message MsgAddSharesResponse {}

message MsgAddVestingOptions {
string coordinator = 1;
uint64 campaignID = 2;
Expand Down
1 change: 0 additions & 1 deletion x/campaign/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ func GetTxCmd() *cobra.Command {
CmdUpdateTotalSupply(),
CmdUpdateSpecialAllocations(),
CmdInitializeMainnet(),
CmdAddShares(),
CmdAddVestingOptions(),
CmdMintVouchers(),
CmdBurnVouchers(),
Expand Down
51 changes: 0 additions & 51 deletions x/campaign/client/cli/tx_add_shares.go

This file was deleted.

9 changes: 0 additions & 9 deletions x/campaign/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ func NewHandler(k keeper.Keeper) sdk.Handler {
case *types.MsgInitializeMainnet:
res, err := msgServer.InitializeMainnet(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err)
case *types.MsgAddShares:
res, err := msgServer.AddShares(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err)
case *types.MsgMintVouchers:
res, err := msgServer.MintVouchers(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err)
Expand All @@ -49,12 +46,6 @@ func NewHandler(k keeper.Keeper) sdk.Handler {
res, err := msgServer.UnredeemVouchers(sdk.WrapSDKContext(ctx), msg)
return sdk.WrapServiceResult(ctx, res, err)
// this line is used by starport scaffolding # 1

// disabled: https://github.com/tendermint/spn/issues/774
// case *types.MsgAddVestingOptions:
// res, err := msgServer.AddVestingOptions(sdk.WrapSDKContext(ctx), msg)
// return sdk.WrapServiceResult(ctx, res, err)

default:
errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg)
return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg)
Expand Down
95 changes: 0 additions & 95 deletions x/campaign/keeper/msg_add_shares.go

This file was deleted.

Loading