2022-01-08 00:39:27 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.kavadist.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
2022-11-22 23:22:07 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2024-05-01 03:17:24 +00:00
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/kavadist/types";
|
2022-01-08 00:39:27 +00:00
|
|
|
|
|
|
|
// CommunityPoolMultiSpendProposal spends from the community pool by sending to one or more
|
|
|
|
// addresses
|
|
|
|
message CommunityPoolMultiSpendProposal {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
string title = 1;
|
|
|
|
string description = 2;
|
2022-11-03 18:49:53 +00:00
|
|
|
repeated MultiSpendRecipient recipient_list = 3 [(gogoproto.nullable) = false];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CommunityPoolMultiSpendProposalJSON defines a CommunityPoolMultiSpendProposal with a deposit
|
|
|
|
message CommunityPoolMultiSpendProposalJSON {
|
|
|
|
option (gogoproto.goproto_stringer) = true;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
string title = 1;
|
|
|
|
string description = 2;
|
2022-11-03 18:49:53 +00:00
|
|
|
repeated MultiSpendRecipient recipient_list = 3 [(gogoproto.nullable) = false];
|
2022-11-22 23:22:07 +00:00
|
|
|
repeated cosmos.base.v1beta1.Coin deposit = 4 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MultiSpendRecipient defines a recipient and the amount of coins they are receiving
|
|
|
|
message MultiSpendRecipient {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
2022-01-08 00:39:27 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
string address = 1;
|
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 2 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
|
|
];
|
2022-01-08 00:39:27 +00:00
|
|
|
}
|