mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-15 04:25:27 +00:00
42 lines
1.3 KiB
Protocol Buffer
42 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
package kava.savings.v1beta1;
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/savings/types";
|
|
|
|
// Msg defines the savings Msg service.
|
|
service Msg {
|
|
// Deposit defines a method for depositing funds to the savings module account
|
|
rpc Deposit(MsgDeposit) returns (MsgDepositResponse);
|
|
|
|
// Withdraw defines a method for withdrawing funds to the savings module account
|
|
rpc Withdraw(MsgWithdraw) returns (MsgWithdrawResponse);
|
|
}
|
|
|
|
// 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 {}
|
|
|
|
// MsgWithdraw defines the Msg/Withdraw request type.
|
|
message MsgWithdraw {
|
|
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
|
|
];
|
|
}
|
|
|
|
// MsgWithdrawResponse defines the Msg/Withdraw response type.
|
|
message MsgWithdrawResponse {}
|