2022-03-22 21:13:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.savings.v1beta1;
|
|
|
|
|
2022-03-23 14:34:23 +00:00
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
2022-11-22 23:22:07 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
2022-03-22 21:13:27 +00:00
|
|
|
|
2024-08-03 09:51:56 +00:00
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/savings/types";
|
2022-03-23 14:34:23 +00:00
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
2022-03-22 21:13:27 +00:00
|
|
|
|
|
|
|
// Params defines the parameters for the savings module.
|
2022-03-23 13:27:54 +00:00
|
|
|
message Params {
|
2022-03-25 15:15:02 +00:00
|
|
|
repeated string supported_denoms = 1;
|
2022-03-23 13:27:54 +00:00
|
|
|
}
|
2022-03-23 14:34:23 +00:00
|
|
|
|
|
|
|
// Deposit defines an amount of coins deposited into a savings module account.
|
|
|
|
message Deposit {
|
2022-03-25 15:15:02 +00:00
|
|
|
string depositor = 1 [
|
|
|
|
(cosmos_proto.scalar) = "cosmos.AddressBytes",
|
2022-11-22 23:22:07 +00:00
|
|
|
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"
|
2022-03-25 15:15:02 +00:00
|
|
|
];
|
2022-03-23 14:34:23 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 2 [
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins",
|
|
|
|
(gogoproto.nullable) = false
|
|
|
|
];
|
2022-03-25 15:15:02 +00:00
|
|
|
}
|