chore: Add back CommunityPoolSpendProposalWithDeposit (#17981)
This commit is contained in:
parent
882912c5ad
commit
4ab48ba94f
File diff suppressed because it is too large
Load Diff
@ -123,6 +123,31 @@ message FeePool {
|
||||
];
|
||||
}
|
||||
|
||||
// CommunityPoolSpendProposal details a proposal for use of community funds,
|
||||
// together with how many coins are proposed to be spent, and to which
|
||||
// recipient account.
|
||||
//
|
||||
// Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
||||
// longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
||||
// pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
||||
// module via a v1 governance proposal.
|
||||
message CommunityPoolSpendProposal {
|
||||
option deprecated = true;
|
||||
option (gogoproto.equal) = false;
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
|
||||
|
||||
string title = 1;
|
||||
string description = 2;
|
||||
string recipient = 3;
|
||||
repeated cosmos.base.v1beta1.Coin amount = 4 [
|
||||
(gogoproto.nullable) = false,
|
||||
(amino.dont_omitempty) = true,
|
||||
(amino.encoding) = "legacy_coins",
|
||||
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||||
];
|
||||
}
|
||||
|
||||
// DelegatorStartingInfo represents the starting info for a delegator reward
|
||||
// period. It tracks the previous validator period, the delegation's amount of
|
||||
// staking token, and the creation height (to check later on if any slashes have
|
||||
@ -154,3 +179,19 @@ message DelegationDelegatorReward {
|
||||
(amino.dont_omitempty) = true
|
||||
];
|
||||
}
|
||||
|
||||
// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
||||
// with a deposit
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
message CommunityPoolSpendProposalWithDeposit {
|
||||
option deprecated = true;
|
||||
option (gogoproto.goproto_getters) = false;
|
||||
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
|
||||
|
||||
string title = 1;
|
||||
string description = 2;
|
||||
string recipient = 3;
|
||||
string amount = 4;
|
||||
string deposit = 5;
|
||||
}
|
||||
@ -431,6 +431,56 @@ func (m *FeePool) GetCommunityPool() github_com_cosmos_cosmos_sdk_types.DecCoins
|
||||
return nil
|
||||
}
|
||||
|
||||
// CommunityPoolSpendProposal details a proposal for use of community funds,
|
||||
// together with how many coins are proposed to be spent, and to which
|
||||
// recipient account.
|
||||
//
|
||||
// Deprecated: Do not use. As of the Cosmos SDK release v0.47.x, there is no
|
||||
// longer a need for an explicit CommunityPoolSpendProposal. To spend community
|
||||
// pool funds, a simple MsgCommunityPoolSpend can be invoked from the x/gov
|
||||
// module via a v1 governance proposal.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
type CommunityPoolSpendProposal struct {
|
||||
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
|
||||
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposal) Reset() { *m = CommunityPoolSpendProposal{} }
|
||||
func (m *CommunityPoolSpendProposal) String() string { return proto.CompactTextString(m) }
|
||||
func (*CommunityPoolSpendProposal) ProtoMessage() {}
|
||||
func (*CommunityPoolSpendProposal) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd78a31ea281a992, []int{8}
|
||||
}
|
||||
func (m *CommunityPoolSpendProposal) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *CommunityPoolSpendProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_CommunityPoolSpendProposal.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *CommunityPoolSpendProposal) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CommunityPoolSpendProposal.Merge(m, src)
|
||||
}
|
||||
func (m *CommunityPoolSpendProposal) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *CommunityPoolSpendProposal) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CommunityPoolSpendProposal.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CommunityPoolSpendProposal proto.InternalMessageInfo
|
||||
|
||||
// DelegatorStartingInfo represents the starting info for a delegator reward
|
||||
// period. It tracks the previous validator period, the delegation's amount of
|
||||
// staking token, and the creation height (to check later on if any slashes have
|
||||
@ -447,7 +497,7 @@ func (m *DelegatorStartingInfo) Reset() { *m = DelegatorStartingInfo{} }
|
||||
func (m *DelegatorStartingInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*DelegatorStartingInfo) ProtoMessage() {}
|
||||
func (*DelegatorStartingInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd78a31ea281a992, []int{8}
|
||||
return fileDescriptor_cd78a31ea281a992, []int{9}
|
||||
}
|
||||
func (m *DelegatorStartingInfo) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -501,7 +551,7 @@ func (m *DelegationDelegatorReward) Reset() { *m = DelegationDelegatorRe
|
||||
func (m *DelegationDelegatorReward) String() string { return proto.CompactTextString(m) }
|
||||
func (*DelegationDelegatorReward) ProtoMessage() {}
|
||||
func (*DelegationDelegatorReward) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd78a31ea281a992, []int{9}
|
||||
return fileDescriptor_cd78a31ea281a992, []int{10}
|
||||
}
|
||||
func (m *DelegationDelegatorReward) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
@ -530,6 +580,53 @@ func (m *DelegationDelegatorReward) XXX_DiscardUnknown() {
|
||||
|
||||
var xxx_messageInfo_DelegationDelegatorReward proto.InternalMessageInfo
|
||||
|
||||
// CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal
|
||||
// with a deposit
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
//
|
||||
// Deprecated: Do not use.
|
||||
type CommunityPoolSpendProposalWithDeposit struct {
|
||||
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
|
||||
Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
|
||||
Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty"`
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) Reset() { *m = CommunityPoolSpendProposalWithDeposit{} }
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) String() string { return proto.CompactTextString(m) }
|
||||
func (*CommunityPoolSpendProposalWithDeposit) ProtoMessage() {}
|
||||
func (*CommunityPoolSpendProposalWithDeposit) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_cd78a31ea281a992, []int{11}
|
||||
}
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) XXX_Unmarshal(b []byte) error {
|
||||
return m.Unmarshal(b)
|
||||
}
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
if deterministic {
|
||||
return xxx_messageInfo_CommunityPoolSpendProposalWithDeposit.Marshal(b, m, deterministic)
|
||||
} else {
|
||||
b = b[:cap(b)]
|
||||
n, err := m.MarshalToSizedBuffer(b)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return b[:n], nil
|
||||
}
|
||||
}
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CommunityPoolSpendProposalWithDeposit.Merge(m, src)
|
||||
}
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) XXX_Size() int {
|
||||
return m.Size()
|
||||
}
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CommunityPoolSpendProposalWithDeposit.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CommunityPoolSpendProposalWithDeposit proto.InternalMessageInfo
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Params)(nil), "cosmos.distribution.v1beta1.Params")
|
||||
proto.RegisterType((*ValidatorHistoricalRewards)(nil), "cosmos.distribution.v1beta1.ValidatorHistoricalRewards")
|
||||
@ -539,8 +636,10 @@ func init() {
|
||||
proto.RegisterType((*ValidatorSlashEvent)(nil), "cosmos.distribution.v1beta1.ValidatorSlashEvent")
|
||||
proto.RegisterType((*ValidatorSlashEvents)(nil), "cosmos.distribution.v1beta1.ValidatorSlashEvents")
|
||||
proto.RegisterType((*FeePool)(nil), "cosmos.distribution.v1beta1.FeePool")
|
||||
proto.RegisterType((*CommunityPoolSpendProposal)(nil), "cosmos.distribution.v1beta1.CommunityPoolSpendProposal")
|
||||
proto.RegisterType((*DelegatorStartingInfo)(nil), "cosmos.distribution.v1beta1.DelegatorStartingInfo")
|
||||
proto.RegisterType((*DelegationDelegatorReward)(nil), "cosmos.distribution.v1beta1.DelegationDelegatorReward")
|
||||
proto.RegisterType((*CommunityPoolSpendProposalWithDeposit)(nil), "cosmos.distribution.v1beta1.CommunityPoolSpendProposalWithDeposit")
|
||||
}
|
||||
|
||||
func init() {
|
||||
@ -548,61 +647,71 @@ func init() {
|
||||
}
|
||||
|
||||
var fileDescriptor_cd78a31ea281a992 = []byte{
|
||||
// 854 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xcf, 0x6f, 0x1b, 0x45,
|
||||
0x14, 0xf6, 0x10, 0xe3, 0xb6, 0x03, 0x4d, 0xe8, 0xc6, 0x6e, 0x5d, 0x17, 0xd6, 0x66, 0x25, 0x44,
|
||||
0x08, 0x64, 0x8d, 0x8b, 0x84, 0x50, 0x6f, 0xb5, 0x5d, 0x04, 0x52, 0xa1, 0xd6, 0x06, 0x71, 0x80,
|
||||
0xc3, 0x6a, 0xbc, 0x3b, 0x59, 0x0f, 0xd9, 0x9d, 0x31, 0x33, 0xb3, 0x4e, 0x72, 0xe0, 0x1e, 0x38,
|
||||
0x00, 0x47, 0xc4, 0x09, 0xc1, 0x25, 0xe2, 0x94, 0x43, 0xfe, 0x88, 0x1c, 0xa3, 0x08, 0x21, 0xc4,
|
||||
0x21, 0x80, 0x73, 0x88, 0xc4, 0x5f, 0x81, 0x66, 0x67, 0xbc, 0x4e, 0x42, 0x14, 0x89, 0x20, 0xab,
|
||||
0x97, 0x28, 0xfb, 0xde, 0xcc, 0xf7, 0x7d, 0xef, 0xe7, 0x18, 0xba, 0x01, 0x13, 0x09, 0x13, 0xcd,
|
||||
0x90, 0x08, 0xc9, 0x49, 0x3f, 0x95, 0x84, 0xd1, 0xe6, 0xa8, 0xd5, 0xc7, 0x12, 0xb5, 0xce, 0x18,
|
||||
0xdd, 0x21, 0x67, 0x92, 0x59, 0xf7, 0xf4, 0x79, 0xf7, 0x8c, 0xcb, 0x9c, 0xaf, 0x95, 0x23, 0x16,
|
||||
0xb1, 0xec, 0x5c, 0x53, 0xfd, 0xa7, 0xaf, 0xd4, 0x6c, 0x43, 0xd1, 0x47, 0x02, 0xe7, 0xd0, 0x01,
|
||||
0x23, 0x06, 0xb2, 0x76, 0x57, 0xfb, 0x7d, 0x7d, 0xd1, 0xe0, 0x6b, 0xd7, 0x2d, 0x94, 0x10, 0xca,
|
||||
0x9a, 0xd9,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||||
0xd1, 0x15, 0x71, 0x7e, 0x05, 0xb0, 0xf6, 0x31, 0x8a, 0x49, 0x88, 0x24, 0xe3, 0xef, 0x11, 0x21,
|
||||
0x19, 0x27, 0x01, 0x8a, 0x35, 0xb1, 0xb0, 0xbe, 0x06, 0xf0, 0x4e, 0x90, 0x26, 0x69, 0x8c, 0x24,
|
||||
0x19, 0x61, 0x13, 0xa4, 0xcf, 0x91, 0x24, 0xac, 0x0a, 0x1a, 0x73, 0x4b, 0xcf, 0xdd, 0x7f, 0xd1,
|
||||
0xf4, 0xa3, 0xab, 0xb2, 0x34, 0xe9, 0x2b, 0x15, 0x51, 0x87, 0x11, 0xaa, 0x13, 0xf1, 0xf3, 0x1f,
|
||||
0xf5, 0xd7, 0x23, 0x22, 0x07, 0x69, 0xdf, 0x0d, 0x58, 0x62, 0xfa, 0xa5, 0x79, 0x4a, 0x9a, 0xdc,
|
||||
0x1a, 0x62, 0x31, 0xb9, 0x23, 0x74, 0x6d, 0x2b, 0x53, 0x5a, 0x2d, 0xc6, 0x53, 0xa4, 0xd6, 0xab,
|
||||
0x70, 0x81, 0xe3, 0x35, 0xcc, 0x31, 0x0d, 0xb0, 0x1f, 0xb0, 0x94, 0xca, 0xac, 0xbe, 0x37, 0xbd,
|
||||
0xf9, 0xdc, 0xdc, 0x51, 0x56, 0xe7, 0x27, 0x00, 0xef, 0xe4, 0x81, 0x75, 0x52, 0xce, 0x31, 0x95,
|
||||
0x93, 0xa8, 0x86, 0xf0, 0x9a, 0x8e, 0x44, 0xcc, 0x38, 0x88, 0x09, 0x8d, 0x75, 0x1b, 0x96, 0x86,
|
||||
0x98, 0x13, 0xa6, 0xbb, 0xb1, 0xe8, 0x99, 0x2f, 0xe7, 0x3b, 0x00, 0xed, 0x5c, 0xe5, 0xc3, 0xc0,
|
||||
0xc4, 0x8c, 0xc3, 0x0e, 0x4b, 0x12, 0x22, 0x04, 0x61, 0xd4, 0x1a, 0x41, 0x18, 0xe4, 0x5f, 0x33,
|
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x85, 0xd0,
|
||||
0x20, 0x56, 0x17, 0x96, 0x06, 0x98, 0x44, 0x03, 0x99, 0xed, 0xe7, 0x62, 0xfb, 0x8d, 0xbf, 0x8f,
|
||||
0xea, 0x0b, 0x01, 0xc7, 0x6a, 0xa5, 0x50, 0x5f, 0xbb, 0x7e, 0x3c, 0xd9, 0x5d, 0x3e, 0x6f, 0xd3,
|
||||
0x20, 0xe6, 0xae, 0xf3, 0x17, 0x80, 0x77, 0x4d, 0x58, 0x84, 0xd1, 0x3c, 0x40, 0xb3, 0xa4, 0x3f,
|
||||
0x84, 0xb7, 0xa6, 0x25, 0x57, 0x5b, 0x1a, 0x0b, 0x61, 0xde, 0xb7, 0x97, 0x0f, 0xf7, 0x56, 0x5e,
|
||||
0x32, 0xd2, 0xa6, 0xd3, 0xae, 0x8f, 0xac, 0x4a, 0xae, 0x86, 0x6a, 0xda, 0xc1, 0xc6, 0x6e, 0x51,
|
||||
0x58, 0xca, 0x1f, 0xb0, 0x59, 0xd6, 0xce, 0xb0, 0x3c, 0x28, 0x6e, 0xff, 0x50, 0x2f, 0xb4, 0x9f,
|
||||
0xec, 0x8c, 0x6d, 0xb0, 0x3f, 0xb6, 0xc1, 0xc1, 0xd8, 0x06, 0x7f, 0x8e, 0x6d, 0xf0, 0xed, 0xb1,
|
||||
0x5d, 0x38, 0x38, 0xb6, 0x0b, 0xbf, 0x1d, 0xdb, 0x85, 0x4f, 0x5a, 0x97, 0xa2, 0x9f, 0x7b, 0x61,
|
||||
0x32, 0xb2, 0x7e, 0x29, 0xfb, 0x11, 0xf0, 0xd6, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xc6,
|
||||
0x8b, 0x82, 0xb7, 0x08, 0x00, 0x00,
|
||||
// 1014 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xc1, 0x6f, 0x1b, 0xc5,
|
||||
0x17, 0xf6, 0x34, 0x89, 0xd3, 0x4c, 0xdb, 0xe4, 0xd7, 0x89, 0x93, 0x3a, 0x6e, 0x7f, 0xb6, 0x59,
|
||||
0x51, 0x61, 0x02, 0xb1, 0x49, 0x91, 0x10, 0xca, 0xad, 0xb1, 0x5b, 0x81, 0x54, 0x68, 0xb4, 0x41,
|
||||
0x20, 0xc1, 0x61, 0x35, 0xde, 0x9d, 0xd8, 0x43, 0x76, 0x67, 0x96, 0x99, 0xb1, 0x93, 0x1c, 0xb8,
|
||||
0x07, 0x0e, 0xc0, 0x0d, 0xd4, 0x53, 0x05, 0x97, 0x8a, 0x53, 0x0e, 0xf9, 0x23, 0x2a, 0x4e, 0x55,
|
||||
0x05, 0x08, 0x71, 0x08, 0x90, 0x1c, 0x82, 0xf8, 0x2b, 0xd0, 0xec, 0x8c, 0x77, 0x9d, 0x10, 0xaa,
|
||||
0x52, 0x64, 0x71, 0x89, 0x32, 0xef, 0xcd, 0xbe, 0xef, 0xfb, 0xde, 0x7c, 0xf3, 0xc6, 0xb0, 0xee,
|
||||
0x73, 0x19, 0x71, 0xd9, 0x08, 0xa8, 0x54, 0x82, 0xb6, 0x7b, 0x8a, 0x72, 0xd6, 0xe8, 0x2f, 0xb7,
|
||||
0x89, 0xc2, 0xcb, 0x27, 0x82, 0xf5, 0x58, 0x70, 0xc5, 0xd1, 0x55, 0xb3, 0xbf, 0x7e, 0x22, 0x65,
|
||||
0xf7, 0x97, 0x0a, 0x1d, 0xde, 0xe1, 0xc9, 0xbe, 0x86, 0xfe, 0xcf, 0x7c, 0x52, 0x2a, 0x5b, 0x88,
|
||||
0x36, 0x96, 0x24, 0x2d, 0xed, 0x73, 0x6a, 0x4b, 0x96, 0x16, 0x4c, 0xde, 0x33, 0x1f, 0xda, 0xfa,
|
||||
0x26, 0x75, 0x19, 0x47, 0x94, 0xf1, 0x46, 0xf2, 0xd7, 0x84, 0x9c, 0x7b, 0x63, 0x30, 0xbf, 0x86,
|
||||
0x05, 0x8e, 0x24, 0xfa, 0x00, 0x5e, 0xf2, 0x79, 0x14, 0xf5, 0x18, 0x55, 0x3b, 0x9e, 0xc2, 0xdb,
|
||||
0x45, 0x50, 0x05, 0xb5, 0xa9, 0xd5, 0xd7, 0x1e, 0x1e, 0x54, 0x72, 0x3f, 0x1f, 0x54, 0x2c, 0x55,
|
||||
0x19, 0x6c, 0xd6, 0x29, 0x6f, 0x44, 0x58, 0x75, 0xeb, 0x77, 0x48, 0x07, 0xfb, 0x3b, 0x2d, 0xe2,
|
||||
0x3f, 0xde, 0x5f, 0x82, 0x16, 0xa9, 0x45, 0xfc, 0x07, 0xc7, 0x7b, 0x8b, 0xc0, 0xbd, 0x98, 0x16,
|
||||
0x7b, 0x07, 0x6f, 0xa3, 0x0f, 0x61, 0x41, 0x13, 0xd6, 0xac, 0x62, 0x2e, 0x89, 0xf0, 0x04, 0xd9,
|
||||
0xc2, 0x22, 0x28, 0x9e, 0x4b, 0x30, 0x5e, 0x7f, 0x36, 0x8c, 0x22, 0x70, 0x91, 0xae, 0xba, 0x66,
|
||||
0x8b, 0xba, 0x49, 0x4d, 0x14, 0xc2, 0xb9, 0x36, 0x67, 0x3d, 0xf9, 0x17, 0xb0, 0xb1, 0x7f, 0x09,
|
||||
0x36, 0x9b, 0x94, 0x3d, 0x85, 0x76, 0x03, 0xce, 0x6d, 0x51, 0xd5, 0x0d, 0x04, 0xde, 0xf2, 0x70,
|
||||
0x10, 0x08, 0x8f, 0x30, 0xdc, 0x0e, 0x49, 0x50, 0x1c, 0xaf, 0x82, 0xda, 0x79, 0x77, 0x76, 0x90,
|
||||
0xbc, 0x19, 0x04, 0xe2, 0x96, 0x49, 0xad, 0x5c, 0xff, 0xf4, 0x78, 0x6f, 0xb1, 0x6a, 0x00, 0x96,
|
||||
0x64, 0xb0, 0xd9, 0xd8, 0x3e, 0xe9, 0x18, 0x73, 0x22, 0xce, 0x8f, 0x00, 0x96, 0xde, 0xc5, 0x21,
|
||||
0x0d, 0xb0, 0xe2, 0xe2, 0x0d, 0x2a, 0x15, 0x17, 0xd4, 0xc7, 0xa1, 0x01, 0x96, 0xe8, 0x33, 0x00,
|
||||
0xaf, 0xf8, 0xbd, 0xa8, 0x17, 0x62, 0x45, 0xfb, 0xc4, 0x8a, 0xf4, 0x04, 0x56, 0x94, 0x17, 0x41,
|
||||
0x75, 0xac, 0x76, 0xe1, 0xc6, 0x35, 0xeb, 0xc7, 0xba, 0xee, 0xd2, 0xc0, 0x57, 0x5a, 0x51, 0x93,
|
||||
0x53, 0x66, 0x1a, 0xf1, 0xed, 0x2f, 0x95, 0x97, 0x3a, 0x54, 0x75, 0x7b, 0xed, 0xba, 0xcf, 0x23,
|
||||
0xeb, 0x97, 0xc6, 0x10, 0x35, 0xb5, 0x13, 0x13, 0x39, 0xf8, 0x46, 0x9a, 0xb3, 0x9d, 0xcb, 0x60,
|
||||
0x0d, 0x19, 0x57, 0x83, 0xa2, 0x17, 0xe0, 0x8c, 0x20, 0x1b, 0x44, 0x10, 0xe6, 0x13, 0xcf, 0xe7,
|
||||
0x3d, 0xa6, 0x92, 0xf3, 0xbd, 0xe4, 0x4e, 0xa7, 0xe1, 0xa6, 0x8e, 0x3a, 0xdf, 0x00, 0x78, 0x25,
|
||||
0x15, 0xd6, 0xec, 0x09, 0x41, 0x98, 0x1a, 0xa8, 0x8a, 0xe1, 0xa4, 0x51, 0x22, 0x47, 0x2c, 0x62,
|
||||
0x00, 0x83, 0xe6, 0x61, 0x3e, 0x26, 0x82, 0x72, 0xe3, 0xc6, 0x71, 0xd7, 0xae, 0x9c, 0xaf, 0x00,
|
||||
0x2c, 0xa7, 0x2c, 0x6f, 0xfa, 0x56, 0x33, 0x09, 0x9a, 0x3c, 0x8a, 0xa8, 0x94, 0x94, 0x33, 0xd4,
|
||||
0x87, 0xd0, 0x4f, 0x57, 0x23, 0xe6, 0x3b, 0x84, 0xe4, 0x7c, 0x0e, 0xe0, 0xd5, 0x94, 0xda, 0xdd,
|
||||
0x9e, 0x92, 0x0a, 0xb3, 0x80, 0xb2, 0xce, 0x7f, 0xd6, 0x44, 0xcd, 0x68, 0x36, 0x65, 0xb4, 0x1e,
|
||||
0x62, 0xd9, 0xbd, 0xd5, 0x27, 0x4c, 0xa1, 0x17, 0xe1, 0xff, 0xfa, 0x83, 0xb0, 0x67, 0xdb, 0x0c,
|
||||
0x92, 0x36, 0xcf, 0xa4, 0xf1, 0xb5, 0x24, 0x8c, 0xde, 0x82, 0xe7, 0x37, 0x04, 0xf6, 0xf5, 0x0d,
|
||||
0xb0, 0x73, 0x61, 0xf9, 0x1f, 0x5f, 0x55, 0x37, 0x2d, 0xe1, 0x7c, 0x02, 0x60, 0xe1, 0x0c, 0x46,
|
||||
0x12, 0x7d, 0x04, 0xe7, 0x33, 0x4a, 0x52, 0x27, 0x3c, 0x92, 0x64, 0x6c, 0xaf, 0x5e, 0xa9, 0x3f,
|
||||
0x61, 0x2a, 0xd7, 0xcf, 0x28, 0xb9, 0x3a, 0xa5, 0x79, 0x9a, 0x86, 0x14, 0xfa, 0x67, 0x40, 0x3a,
|
||||
0xbb, 0x00, 0x4e, 0xde, 0x26, 0x64, 0x8d, 0xf3, 0x10, 0x7d, 0x0c, 0xa7, 0xb3, 0x39, 0x1b, 0x73,
|
||||
0x1e, 0x8e, 0xf8, 0x88, 0xb2, 0xa9, 0xae, 0xe1, 0x9d, 0x2f, 0xcf, 0xc1, 0x52, 0x73, 0x38, 0xb2,
|
||||
0x1e, 0x13, 0x16, 0x98, 0xa1, 0x86, 0x43, 0x54, 0x80, 0x13, 0x8a, 0xaa, 0x90, 0x98, 0xe9, 0xef,
|
||||
0x9a, 0x05, 0xaa, 0xc2, 0x0b, 0x01, 0x91, 0xbe, 0xa0, 0x71, 0x76, 0x3a, 0xee, 0x70, 0x08, 0x5d,
|
||||
0x83, 0x53, 0x82, 0xf8, 0x34, 0xa6, 0x84, 0x29, 0x33, 0x68, 0xdd, 0x2c, 0x80, 0x76, 0x60, 0x1e,
|
||||
0x47, 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0x7a, 0xdc,
|
||||
0x64, 0x77, 0xdb, 0xc6, 0x11, 0x83, 0xf9, 0xf4, 0x69, 0x1f, 0xa5, 0xab, 0x2d, 0xca, 0xca, 0xb8,
|
||||
0x3e, 0x5e, 0xe7, 0x07, 0x00, 0xaf, 0xff, 0xbd, 0xa9, 0xdf, 0xa3, 0xaa, 0xdb, 0x22, 0x31, 0x97,
|
||||
0x54, 0x8d, 0xc8, 0xdf, 0xf3, 0x43, 0xfe, 0xd6, 0x29, 0xbb, 0x42, 0x45, 0x38, 0x19, 0x18, 0xe0,
|
||||
0xe2, 0x44, 0x92, 0x18, 0x2c, 0x57, 0x9e, 0xdf, 0x7d, 0x0a, 0x4b, 0xae, 0xde, 0x7d, 0x70, 0x58,
|
||||
0x06, 0x0f, 0x0f, 0xcb, 0xe0, 0xd1, 0x61, 0x19, 0xfc, 0x7a, 0x58, 0x06, 0x5f, 0x1c, 0x95, 0x73,
|
||||
0x8f, 0x8e, 0xca, 0xb9, 0x9f, 0x8e, 0xca, 0xb9, 0xf7, 0x97, 0x9f, 0xd8, 0xb5, 0x53, 0xbf, 0x29,
|
||||
0x92, 0x26, 0xb6, 0xf3, 0xc9, 0xcf, 0xbe, 0x57, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x5e, 0x43,
|
||||
0x7f, 0xf5, 0xa9, 0x0a, 0x00, 0x00,
|
||||
}
|
||||
|
||||
func (this *Params) Equal(that interface{}) bool {
|
||||
@ -907,6 +1016,42 @@ func (this *DelegationDelegatorReward) Equal(that interface{}) bool {
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (this *CommunityPoolSpendProposalWithDeposit) Equal(that interface{}) bool {
|
||||
if that == nil {
|
||||
return this == nil
|
||||
}
|
||||
|
||||
that1, ok := that.(*CommunityPoolSpendProposalWithDeposit)
|
||||
if !ok {
|
||||
that2, ok := that.(CommunityPoolSpendProposalWithDeposit)
|
||||
if ok {
|
||||
that1 = &that2
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
if that1 == nil {
|
||||
return this == nil
|
||||
} else if this == nil {
|
||||
return false
|
||||
}
|
||||
if this.Title != that1.Title {
|
||||
return false
|
||||
}
|
||||
if this.Description != that1.Description {
|
||||
return false
|
||||
}
|
||||
if this.Recipient != that1.Recipient {
|
||||
return false
|
||||
}
|
||||
if this.Amount != that1.Amount {
|
||||
return false
|
||||
}
|
||||
if this.Deposit != that1.Deposit {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
func (m *Params) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
@ -1240,6 +1385,64 @@ func (m *FeePool) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposal) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposal) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Amount) > 0 {
|
||||
for iNdEx := len(m.Amount) - 1; iNdEx >= 0; iNdEx-- {
|
||||
{
|
||||
size, err := m.Amount[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
i -= size
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(size))
|
||||
}
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
}
|
||||
}
|
||||
if len(m.Recipient) > 0 {
|
||||
i -= len(m.Recipient)
|
||||
copy(dAtA[i:], m.Recipient)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Recipient)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
if len(m.Description) > 0 {
|
||||
i -= len(m.Description)
|
||||
copy(dAtA[i:], m.Description)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Description)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Title) > 0 {
|
||||
i -= len(m.Title)
|
||||
copy(dAtA[i:], m.Title)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Title)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *DelegatorStartingInfo) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
@ -1327,6 +1530,64 @@ func (m *DelegationDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, erro
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) Marshal() (dAtA []byte, err error) {
|
||||
size := m.Size()
|
||||
dAtA = make([]byte, size)
|
||||
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return dAtA[:n], nil
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) MarshalTo(dAtA []byte) (int, error) {
|
||||
size := m.Size()
|
||||
return m.MarshalToSizedBuffer(dAtA[:size])
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
||||
i := len(dAtA)
|
||||
_ = i
|
||||
var l int
|
||||
_ = l
|
||||
if len(m.Deposit) > 0 {
|
||||
i -= len(m.Deposit)
|
||||
copy(dAtA[i:], m.Deposit)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Deposit)))
|
||||
i--
|
||||
dAtA[i] = 0x2a
|
||||
}
|
||||
if len(m.Amount) > 0 {
|
||||
i -= len(m.Amount)
|
||||
copy(dAtA[i:], m.Amount)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Amount)))
|
||||
i--
|
||||
dAtA[i] = 0x22
|
||||
}
|
||||
if len(m.Recipient) > 0 {
|
||||
i -= len(m.Recipient)
|
||||
copy(dAtA[i:], m.Recipient)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Recipient)))
|
||||
i--
|
||||
dAtA[i] = 0x1a
|
||||
}
|
||||
if len(m.Description) > 0 {
|
||||
i -= len(m.Description)
|
||||
copy(dAtA[i:], m.Description)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Description)))
|
||||
i--
|
||||
dAtA[i] = 0x12
|
||||
}
|
||||
if len(m.Title) > 0 {
|
||||
i -= len(m.Title)
|
||||
copy(dAtA[i:], m.Title)
|
||||
i = encodeVarintDistribution(dAtA, i, uint64(len(m.Title)))
|
||||
i--
|
||||
dAtA[i] = 0xa
|
||||
}
|
||||
return len(dAtA) - i, nil
|
||||
}
|
||||
|
||||
func encodeVarintDistribution(dAtA []byte, offset int, v uint64) int {
|
||||
offset -= sovDistribution(v)
|
||||
base := offset
|
||||
@ -1466,6 +1727,33 @@ func (m *FeePool) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposal) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Title)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
l = len(m.Description)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
l = len(m.Recipient)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
if len(m.Amount) > 0 {
|
||||
for _, e := range m.Amount {
|
||||
l = e.Size()
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *DelegatorStartingInfo) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
@ -1502,6 +1790,35 @@ func (m *DelegationDelegatorReward) Size() (n int) {
|
||||
return n
|
||||
}
|
||||
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) Size() (n int) {
|
||||
if m == nil {
|
||||
return 0
|
||||
}
|
||||
var l int
|
||||
_ = l
|
||||
l = len(m.Title)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
l = len(m.Description)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
l = len(m.Recipient)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
l = len(m.Amount)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
l = len(m.Deposit)
|
||||
if l > 0 {
|
||||
n += 1 + l + sovDistribution(uint64(l))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sovDistribution(x uint64) (n int) {
|
||||
return (math_bits.Len64(x|1) + 6) / 7
|
||||
}
|
||||
@ -2325,6 +2642,186 @@ func (m *FeePool) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *CommunityPoolSpendProposal) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: CommunityPoolSpendProposal: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: CommunityPoolSpendProposal: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Title = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Description = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 3:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Recipient = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 4:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
|
||||
}
|
||||
var msglen int
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
msglen |= int(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
if msglen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + msglen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Amount = append(m.Amount, types.Coin{})
|
||||
if err := m.Amount[len(m.Amount)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
||||
return err
|
||||
}
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipDistribution(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *DelegatorStartingInfo) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
@ -2563,6 +3060,216 @@ func (m *DelegationDelegatorReward) Unmarshal(dAtA []byte) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func (m *CommunityPoolSpendProposalWithDeposit) Unmarshal(dAtA []byte) error {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
for iNdEx < l {
|
||||
preIndex := iNdEx
|
||||
var wire uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
wire |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
fieldNum := int32(wire >> 3)
|
||||
wireType := int(wire & 0x7)
|
||||
if wireType == 4 {
|
||||
return fmt.Errorf("proto: CommunityPoolSpendProposalWithDeposit: wiretype end group for non-group")
|
||||
}
|
||||
if fieldNum <= 0 {
|
||||
return fmt.Errorf("proto: CommunityPoolSpendProposalWithDeposit: illegal tag %d (wire type %d)", fieldNum, wire)
|
||||
}
|
||||
switch fieldNum {
|
||||
case 1:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Title = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 2:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Description = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 3:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Recipient", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Recipient = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 4:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Amount = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
case 5:
|
||||
if wireType != 2 {
|
||||
return fmt.Errorf("proto: wrong wireType = %d for field Deposit", wireType)
|
||||
}
|
||||
var stringLen uint64
|
||||
for shift := uint(0); ; shift += 7 {
|
||||
if shift >= 64 {
|
||||
return ErrIntOverflowDistribution
|
||||
}
|
||||
if iNdEx >= l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
b := dAtA[iNdEx]
|
||||
iNdEx++
|
||||
stringLen |= uint64(b&0x7F) << shift
|
||||
if b < 0x80 {
|
||||
break
|
||||
}
|
||||
}
|
||||
intStringLen := int(stringLen)
|
||||
if intStringLen < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
postIndex := iNdEx + intStringLen
|
||||
if postIndex < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if postIndex > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
m.Deposit = string(dAtA[iNdEx:postIndex])
|
||||
iNdEx = postIndex
|
||||
default:
|
||||
iNdEx = preIndex
|
||||
skippy, err := skipDistribution(dAtA[iNdEx:])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
||||
return ErrInvalidLengthDistribution
|
||||
}
|
||||
if (iNdEx + skippy) > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
iNdEx += skippy
|
||||
}
|
||||
}
|
||||
|
||||
if iNdEx > l {
|
||||
return io.ErrUnexpectedEOF
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func skipDistribution(dAtA []byte) (n int, err error) {
|
||||
l := len(dAtA)
|
||||
iNdEx := 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user