2022-03-22 21:13:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.savings.v1beta1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
2022-03-23 14:34:23 +00:00
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
2022-03-22 21:13:27 +00:00
|
|
|
|
2022-03-25 15:15:02 +00:00
|
|
|
option go_package = "github.com/kava-labs/kava/x/savings/types";
|
2022-03-22 21:13:27 +00:00
|
|
|
|
|
|
|
// Msg defines the savings Msg service.
|
2022-03-23 14:34:23 +00:00
|
|
|
service Msg {
|
2022-03-28 11:53:42 +00:00
|
|
|
|
2022-03-30 11:51:06 +00:00
|
|
|
// Deposit defines a method for depositing funds to the savings module account
|
|
|
|
rpc Deposit(MsgDeposit) returns (MsgDepositResponse);
|
2022-03-28 11:53:42 +00:00
|
|
|
|
2022-03-30 11:51:06 +00:00
|
|
|
// Withdraw defines a method for withdrawing funds to the savings module account
|
|
|
|
rpc Withdraw(MsgWithdraw) returns (MsgWithdrawResponse);
|
2022-03-23 14:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MsgDeposit defines the Msg/Deposit request type.
|
|
|
|
message MsgDeposit {
|
|
|
|
string depositor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 2
|
|
|
|
[(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgDepositResponse defines the Msg/Deposit response type.
|
|
|
|
message MsgDepositResponse {}
|
2022-03-28 11:53:42 +00:00
|
|
|
|
|
|
|
// MsgWithdraw defines the Msg/Withdraw request type.
|
|
|
|
message MsgWithdraw {
|
2022-03-30 11:51:06 +00:00
|
|
|
string depositor = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 2
|
|
|
|
[(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins", (gogoproto.nullable) = false];
|
|
|
|
}
|
2022-03-28 11:53:42 +00:00
|
|
|
|
2022-03-30 11:51:06 +00:00
|
|
|
// MsgWithdrawResponse defines the Msg/Withdraw response type.
|
|
|
|
message MsgWithdrawResponse {}
|