From f4af8f4c2b816fa2400ef7743fbfa84e69459d60 Mon Sep 17 00:00:00 2001 From: P-U-D-G-E Date: Thu, 9 Nov 2023 12:38:38 +0530 Subject: [PATCH] fixes queries --- proto/sge/reward/query.proto | 6 +- x/reward/client/cli/query_reward.go | 2 +- x/reward/keeper/query_reward.go | 12 +-- x/reward/types/query.pb.go | 126 ++++++++++++++-------------- x/reward/types/reward.pb.go | 3 + x/reward/types/ticket.pb.go | 78 ++++++++--------- 6 files changed, 115 insertions(+), 112 deletions(-) diff --git a/proto/sge/reward/query.proto b/proto/sge/reward/query.proto index 2cf85b95..0759b557 100644 --- a/proto/sge/reward/query.proto +++ b/proto/sge/reward/query.proto @@ -119,7 +119,7 @@ message QueryRewardsByAddressRequest { // QueryRewardsByAddressResponse is response body of the query all rewards by // address endpoint. message QueryRewardsByAddressResponse { - repeated Reward rewards = 1 [ (gogoproto.nullable) = false ]; + repeated RewardByCategory rewards = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -134,7 +134,7 @@ message QueryRewardsByAddressAndCategoryRequest { // QueryRewardsByAddressAndTypeResponse is response body of the query all // rewards by address and type endpoint. message QueryRewardsByAddressAndCategoryResponse { - repeated Reward rewards = 1 [ (gogoproto.nullable) = false ]; + repeated RewardByCategory rewards = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } @@ -148,6 +148,6 @@ message QueryRewardsByCampaignRequest { // QueryRewardsByCampaignResponse is response body of the query all rewards by // campaign endpoint. message QueryRewardsByCampaignResponse { - repeated Reward rewards = 1 [ (gogoproto.nullable) = false ]; + repeated RewardByCampaign rewards = 1 [ (gogoproto.nullable) = false ]; cosmos.base.query.v1beta1.PageResponse pagination = 2; } diff --git a/x/reward/client/cli/query_reward.go b/x/reward/client/cli/query_reward.go index f698814e..b2a7cc27 100644 --- a/x/reward/client/cli/query_reward.go +++ b/x/reward/client/cli/query_reward.go @@ -152,7 +152,7 @@ func CmdGetRewardByUserAndCategory() *cobra.Command { cmd := &cobra.Command{ Use: "rewards-by-user-category [address] [category]", Short: "shows a list of rewards by user and category", - Args: cobra.ExactArgs(1), + Args: cobra.ExactArgs(2), RunE: func(cmd *cobra.Command, args []string) (err error) { clientCtx := client.GetClientContextFromCmd(cmd) diff --git a/x/reward/keeper/query_reward.go b/x/reward/keeper/query_reward.go index 74da9ff3..c1d2545e 100644 --- a/x/reward/keeper/query_reward.go +++ b/x/reward/keeper/query_reward.go @@ -60,14 +60,14 @@ func (k Keeper) RewardsByAddress(goCtx context.Context, req *types.QueryRewardsB return nil, status.Error(codes.InvalidArgument, "invalid request") } - var rewards []types.Reward + var rewards []types.RewardByCategory ctx := sdk.UnwrapSDKContext(goCtx) store := k.getRewardByReceiverAndCategoryStore(ctx) rewardStore := prefix.NewStore(store, types.GetRewardsByAccPrefix(req.Address)) pageRes, err := query.Paginate(rewardStore, req.Pagination, func(key []byte, value []byte) error { - var reward types.Reward + var reward types.RewardByCategory if err := k.cdc.Unmarshal(value, &reward); err != nil { return err } @@ -87,14 +87,14 @@ func (k Keeper) RewardsByAddressAndCategory(goCtx context.Context, req *types.Qu return nil, status.Error(codes.InvalidArgument, "invalid request") } - var rewards []types.Reward + var rewards []types.RewardByCategory ctx := sdk.UnwrapSDKContext(goCtx) store := k.getRewardByReceiverAndCategoryStore(ctx) rewardStore := prefix.NewStore(store, types.GetRewardsByCategoryPrefix(req.Address, req.Category)) pageRes, err := query.Paginate(rewardStore, req.Pagination, func(key []byte, value []byte) error { - var reward types.Reward + var reward types.RewardByCategory if err := k.cdc.Unmarshal(value, &reward); err != nil { return err } @@ -114,14 +114,14 @@ func (k Keeper) RewardsByCampaign(goCtx context.Context, req *types.QueryRewards return nil, status.Error(codes.InvalidArgument, "invalid request") } - var rewards []types.Reward + var rewards []types.RewardByCampaign ctx := sdk.UnwrapSDKContext(goCtx) store := k.getRewardsByCampaignStore(ctx) rewardStore := prefix.NewStore(store, types.GetRewardsByCampaignPrefix(req.CampaignUid)) pageRes, err := query.Paginate(rewardStore, req.Pagination, func(key []byte, value []byte) error { - var reward types.Reward + var reward types.RewardByCampaign if err := k.cdc.Unmarshal(value, &reward); err != nil { return err } diff --git a/x/reward/types/query.pb.go b/x/reward/types/query.pb.go index 021daf3c..2f3fbd6a 100644 --- a/x/reward/types/query.pb.go +++ b/x/reward/types/query.pb.go @@ -547,7 +547,7 @@ func (m *QueryRewardsByAddressRequest) GetAddress() string { // QueryRewardsByAddressResponse is response body of the query all rewards by // address endpoint. type QueryRewardsByAddressResponse struct { - Rewards []Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` + Rewards []RewardByCategory `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -584,7 +584,7 @@ func (m *QueryRewardsByAddressResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryRewardsByAddressResponse proto.InternalMessageInfo -func (m *QueryRewardsByAddressResponse) GetRewards() []Reward { +func (m *QueryRewardsByAddressResponse) GetRewards() []RewardByCategory { if m != nil { return m.Rewards } @@ -665,7 +665,7 @@ func (m *QueryRewardsByAddressAndCategoryRequest) GetCategory() RewardCategory { // QueryRewardsByAddressAndTypeResponse is response body of the query all // rewards by address and type endpoint. type QueryRewardsByAddressAndCategoryResponse struct { - Rewards []Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` + Rewards []RewardByCategory `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -704,7 +704,7 @@ func (m *QueryRewardsByAddressAndCategoryResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryRewardsByAddressAndCategoryResponse proto.InternalMessageInfo -func (m *QueryRewardsByAddressAndCategoryResponse) GetRewards() []Reward { +func (m *QueryRewardsByAddressAndCategoryResponse) GetRewards() []RewardByCategory { if m != nil { return m.Rewards } @@ -775,7 +775,7 @@ func (m *QueryRewardsByCampaignRequest) GetCampaignUid() string { // QueryRewardsByCampaignResponse is response body of the query all rewards by // campaign endpoint. type QueryRewardsByCampaignResponse struct { - Rewards []Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` + Rewards []RewardByCampaign `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } @@ -812,7 +812,7 @@ func (m *QueryRewardsByCampaignResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryRewardsByCampaignResponse proto.InternalMessageInfo -func (m *QueryRewardsByCampaignResponse) GetRewards() []Reward { +func (m *QueryRewardsByCampaignResponse) GetRewards() []RewardByCampaign { if m != nil { return m.Rewards } @@ -848,60 +848,60 @@ func init() { func init() { proto.RegisterFile("sge/reward/query.proto", fileDescriptor_324afa5f2186a8c0) } var fileDescriptor_324afa5f2186a8c0 = []byte{ - // 836 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0x4d, 0x4f, 0x13, 0x6b, - 0x14, 0xc7, 0xfb, 0xc0, 0xbd, 0x05, 0x0e, 0x37, 0x37, 0xdc, 0x73, 0x01, 0xb1, 0xc2, 0x00, 0xa3, - 0x96, 0x96, 0x97, 0x99, 0xf0, 0xa2, 0xc6, 0xf8, 0x42, 0x80, 0x44, 0xb7, 0xd8, 0xc4, 0x0d, 0x89, - 0x21, 0x53, 0xfa, 0x64, 0x9c, 0x68, 0x3b, 0xa5, 0xcf, 0x54, 0x24, 0xa4, 0x89, 0x71, 0x63, 0xa2, - 0x31, 0x31, 0x21, 0x6e, 0x5d, 0x99, 0xe8, 0xd2, 0xe8, 0x27, 0x70, 0xc7, 0xca, 0x90, 0xb8, 0x71, - 0x61, 0x8c, 0x01, 0x3f, 0x88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 0xb7, 0x9d, 0xa7, - 0x2c, 0x1d, 0xe5, 0x3f, 0x70, 0xe6, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x11, 0x1e, 0xd2, - 0xbe, 0x0d, 0x00, 0x00, + // 848 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x97, 0x4b, 0x4f, 0x13, 0x51, + 0x14, 0xc7, 0x7b, 0x41, 0x0b, 0x5c, 0x8c, 0xc1, 0x23, 0x20, 0x56, 0x18, 0x60, 0xd4, 0x3e, 0x78, + 0xcc, 0x84, 0x87, 0x1a, 0xe3, 0x83, 0x00, 0x89, 0x6c, 0xb1, 0x89, 0x1b, 0x12, 0x43, 0xa6, 0xf4, + 0x66, 0x9c, 0x68, 0x7b, 0xcb, 0xdc, 0xa9, 0xd8, 0x90, 0x26, 0xc6, 0x8d, 0x89, 0xc6, 0xc4, 0x84, + 0xb8, 0x75, 0xe5, 0x07, 0xf0, 0xb1, 0x75, 0xe3, 0x8e, 0x95, 0x21, 0x71, 0xe3, 0xc2, 0x18, 0x03, + 0x7e, 0x10, 0xd3, 0xfb, 0x28, 0xed, 0xf4, 0x35, 0x90, 0x6a, 0x5c, 0xcd, 0x30, 0x73, 0x1e, 0xbf, + 0xf3, 0x3f, 0x77, 0xce, 0xa1, 0x78, 0x90, 0xd9, 0xc4, 0x74, 0xc9, 0x96, 0xe5, 0xa6, 0xcd, 0xcd, + 0x3c, 0x71, 0x0b, 0x46, 0xce, 0xa5, 0x1e, 0x85, 0x01, 0x66, 0x93, 0x2c, 0xf1, 0xb6, 0xa8, 0xfb, + 0xd0, 0x60, 0x36, 0x31, 0x84, 0x49, 0xa4, 0xdf, 0xa6, 0x36, 0xe5, 0x16, 0x66, 0xe9, 0x4e, 0x18, + 0x47, 0x86, 0x6d, 0x4a, 0xed, 0x47, 0xc4, 0xb4, 0x72, 0x8e, 0x69, 0x65, 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5c, 0x2f, 0xcd, 0x27, 0xd1, 0x8a, 0x5e, 0xf5, 0xec, 0x9e, + 0x93, 0xd6, 0x3f, 0x22, 0xac, 0x35, 0x82, 0x39, 0xbe, 0x82, 0x55, 0x53, 0xb8, 0xed, 0x0a, 0xce, + 0x7e, 0xc2, 0xf8, 0x24, 0x87, 0x86, 0xe7, 0x08, 0x87, 0xc5, 0xd6, 0x84, 0x44, 0x03, 0xaa, 0xda, + 0x35, 0x1d, 0x99, 0x08, 0x62, 0x2a, 0xf2, 0xea, 0xd1, 0x67, 0xdf, 0x7e, 0xef, 0x74, 0x8c, 0x81, + 0x66, 0x32, 0x9b, 0x4c, 0x4b, 0x27, 0xb3, 0xe6, 0x5f, 0x09, 0x78, 0x83, 0x70, 0xb7, 0x2a, 0x1c, + 0x26, 0x9b, 0x25, 0xf0, 0x75, 0x3b, 0x32, 0x15, 0xcc, 0x58, 0xf2, 0x18, 0x9c, 0x27, 0x0e, 0xd1, + 0x46, 0x3c, 0xaa, 0xbb, 0xe6, 0x76, 0xde, 0x49, 0x17, 0x61, 0x07, 0xe1, 0x9e, 0xf2, 0x4a, 0x85, + 0x40, 0xb9, 0xca, 0x3a, 0x4d, 0x07, 0xb4, 0x96, 0x68, 0x09, 0x8e, 0x76, 0x11, 0xc6, 0x5b, 0xa1, + 0x31, 0x78, 0x85, 0x70, 0x58, 0x1c, 0x97, 0xe6, 0x7d, 0xab, 0x5a, 0xb3, 0xcd, 0xfb, 0x56, 0xbd, + 0x69, 0xf5, 0x29, 0x0e, 0x13, 0x85, 0x4b, 0x8d, 0x60, 0xe4, 0x45, 0xa8, 0xf4, 0x12, 0xe1, 0x2e, + 0xf9, 0x05, 0x40, 0x80, 0x2c, 0x65, 0x85, 0x26, 0x03, 0xd9, 0x4a, 0xa4, 0x18, 0x47, 0x1a, 0x87, + 0xd1, 0xe6, 0x48, 0x0c, 0xde, 0x23, 0xdc, 0xe7, 0x9f, 0x6d, 0x30, 0x17, 0x20, 0x95, 0x7f, 0x23, + 0x46, 0xe6, 0x8f, 0xe6, 0x24, 0x41, 0x67, 0x38, 0xe8, 0x24, 0x24, 0x5a, 0x80, 0x9a, 0xdb, 0x72, + 0xaa, 0x17, 0xe1, 0x07, 0xc2, 0x17, 0x9a, 0x8c, 0x63, 0xb8, 0x7d, 0x14, 0x90, 0xda, 0xc5, 0x14, + 0x59, 0x38, 0xb6, 0xbf, 0xac, 0xe9, 0x26, 0xaf, 0xe9, 0x2a, 0xcc, 0x07, 0xae, 0xc9, 0xdc, 0x56, + 0x1b, 0xa7, 0x08, 0x5f, 0x10, 0x3e, 0x53, 0x33, 0x21, 0x21, 0x98, 0xba, 0xfe, 0xef, 0xfd, 0xca, + 0x11, 0xbd, 0x64, 0x01, 0x0b, 0xbc, 0x80, 0xeb, 0x70, 0xad, 0x55, 0x01, 0x87, 0x03, 0xa0, 0x72, + 0xf8, 0x17, 0x97, 0x96, 0x77, 0xf7, 0x35, 0xb4, 0xb7, 0xaf, 0xa1, 0x5f, 0xfb, 0x1a, 0x7a, 0x7d, + 0xa0, 0x85, 0xf6, 0x0e, 0xb4, 0xd0, 0xf7, 0x03, 0x2d, 0xb4, 0x96, 0xb0, 0x1d, 0xef, 0x41, 0x3e, + 0x65, 0x6c, 0xd0, 0x4c, 0x4d, 0xf0, 0x27, 0x2a, 0xbc, 0x57, 0xc8, 0x11, 0x96, 0x0a, 0xf3, 0x9f, + 0x3f, 0x73, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x25, 0x82, 0xdd, 0x83, 0xdc, 0x0d, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3193,7 +3193,7 @@ func (m *QueryRewardsByAddressResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rewards = append(m.Rewards, Reward{}) + m.Rewards = append(m.Rewards, RewardByCategory{}) if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3450,7 +3450,7 @@ func (m *QueryRewardsByAddressAndCategoryResponse) Unmarshal(dAtA []byte) error if postIndex > l { return io.ErrUnexpectedEOF } - m.Rewards = append(m.Rewards, Reward{}) + m.Rewards = append(m.Rewards, RewardByCategory{}) if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -3688,7 +3688,7 @@ func (m *QueryRewardsByCampaignResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Rewards = append(m.Rewards, Reward{}) + m.Rewards = append(m.Rewards, RewardByCampaign{}) if err := m.Rewards[len(m.Rewards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/x/reward/types/reward.pb.go b/x/reward/types/reward.pb.go index 7869bf36..9b23e875 100644 --- a/x/reward/types/reward.pb.go +++ b/x/reward/types/reward.pb.go @@ -277,6 +277,7 @@ func (m *Reward) GetMeta() string { return "" } +// RewardAmount type RewardAmount struct { // main account reward amount MainAccountAmount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=main_account_amount,json=mainAccountAmount,proto3,customtype=cosmossdk.io/math.Int" json:"main_account_amount" yaml:"main_account_amount"` @@ -326,6 +327,7 @@ func (m *RewardAmount) GetUnlockPeriod() uint64 { return 0 } +// RewardByCategory type RewardByCategory struct { UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` @@ -386,6 +388,7 @@ func (m *RewardByCategory) GetRewardCategory() RewardCategory { return RewardCategory_REWARD_CATEGORY_UNSPECIFIED } +// RewardByCampaign type RewardByCampaign struct { UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` CampaignUID string `protobuf:"bytes,2,opt,name=campaign_uid,proto3" json:"campaign_uid"` diff --git a/x/reward/types/ticket.pb.go b/x/reward/types/ticket.pb.go index 780d1f01..c0353022 100644 --- a/x/reward/types/ticket.pb.go +++ b/x/reward/types/ticket.pb.go @@ -391,45 +391,45 @@ func init() { func init() { proto.RegisterFile("sge/reward/ticket.proto", fileDescriptor_5d710bc1249ca8ae) } var fileDescriptor_5d710bc1249ca8ae = []byte{ - // 606 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x8d, 0xdb, 0x34, 0x75, 0x26, 0x80, 0x60, 0xdb, 0x08, 0xb7, 0x95, 0x9c, 0x60, 0x84, 0x08, - 0x48, 0xd8, 0x52, 0x7a, 0x83, 0x53, 0x13, 0x04, 0xed, 0xad, 0x72, 0x53, 0x21, 0x71, 0xb1, 0xb6, - 0xf6, 0xe2, 0xae, 0x1a, 0x7b, 0xad, 0xdd, 0x75, 0x8b, 0xaf, 0x7c, 0x01, 0x1f, 0xc5, 0xa1, 0xc7, - 0x1e, 0x11, 0x87, 0x08, 0xa5, 0x37, 0x8e, 0x7c, 0x01, 0xf2, 0xda, 0x75, 0x1d, 0x54, 0x45, 0x3d, - 0x79, 0x66, 0xdf, 0x9b, 0xe7, 0x99, 0xd9, 0xa7, 0x85, 0xa7, 0x22, 0x24, 0x0e, 0x27, 0x17, 0x98, - 0x07, 0x8e, 0xa4, 0xfe, 0x19, 0x91, 0x76, 0xc2, 0x99, 0x64, 0xa8, 0x2b, 0x42, 0x12, 0x13, 0x79, - 0xc1, 0xf8, 0x99, 0x2d, 0x42, 0x62, 0x17, 0x9c, 0xed, 0xcd, 0x90, 0x85, 0x4c, 0x31, 0x9c, 0x3c, - 0x2a, 0xc8, 0xdb, 0x75, 0x95, 0xe2, 0x53, 0x02, 0x5b, 0x35, 0xc0, 0xc7, 0x51, 0x82, 0x69, 0x18, - 0x17, 0x90, 0xf5, 0xa3, 0x09, 0xdd, 0x31, 0x27, 0x58, 0x92, 0x71, 0x09, 0x1c, 0xe2, 0x6c, 0xca, - 0x70, 0x80, 0xb6, 0x41, 0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, 0x1d, 0xb3, 0x30, 0xc4, 0xa8, 0x99, 0xbb, 0xc2, 0x2d, 0xeb, 0x47, 0xe3, 0xcb, 0xb9, 0xa9, - 0x5d, 0xcd, 0x4d, 0xed, 0xf7, 0xdc, 0xd4, 0xbe, 0x5f, 0x9b, 0x8d, 0xab, 0x6b, 0xb3, 0xf1, 0xf3, - 0xda, 0x6c, 0x7c, 0x7e, 0x15, 0x52, 0x79, 0x9a, 0x9e, 0xd8, 0x3e, 0x8b, 0x1c, 0x11, 0x92, 0x37, - 0xa5, 0x7c, 0x1e, 0x3b, 0x5f, 0xab, 0x57, 0x27, 0x4b, 0x88, 0x38, 0x69, 0xa9, 0x47, 0x61, 0xf7, - 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa2, 0x8d, 0x3a, 0x27, 0x90, 0x04, 0x00, 0x00, + // 600 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0x41, 0x6f, 0xd3, 0x4c, + 0x10, 0x8d, 0xdb, 0x34, 0x75, 0x26, 0xdf, 0x87, 0x60, 0xdb, 0x08, 0xd3, 0x4a, 0x4e, 0x30, 0x42, + 0x04, 0x24, 0x6c, 0x29, 0xbd, 0xc1, 0xa9, 0x09, 0x82, 0xf6, 0x56, 0xb9, 0xa9, 0x90, 0xb8, 0x58, + 0x5b, 0x7b, 0x71, 0x57, 0x89, 0xbd, 0xd6, 0xee, 0xba, 0xc1, 0x57, 0x7e, 0x01, 0x3f, 0x8a, 0x43, + 0x8f, 0x3d, 0x22, 0x0e, 0x11, 0x4a, 0x6e, 0x1c, 0xf9, 0x05, 0xc8, 0xeb, 0xd4, 0x75, 0x50, 0x15, + 0xf5, 0xe4, 0x79, 0x3b, 0x6f, 0x9e, 0x67, 0x66, 0x9f, 0x16, 0x1e, 0x8b, 0x90, 0x38, 0x9c, 0x4c, + 0x31, 0x0f, 0x1c, 0x49, 0xfd, 0x31, 0x91, 0x76, 0xc2, 0x99, 0x64, 0xa8, 0x2d, 0x42, 0x12, 0x13, + 0x39, 0x65, 0x7c, 0x6c, 0x8b, 0x90, 0xd8, 0x05, 0x67, 0x6f, 0x37, 0x64, 0x21, 0x53, 0x0c, 0x27, + 0x8f, 0x0a, 0xf2, 0x5e, 0x55, 0xa5, 0xf8, 0x14, 0x09, 0xeb, 0x7b, 0x1d, 0xda, 0x43, 0x4e, 0xb0, + 0x24, 0x43, 0x1c, 0x25, 0x98, 0x86, 0xf1, 0x09, 0xce, 0x26, 0x0c, 0x07, 0x68, 0x0f, 0xf4, 0x84, + 0xb3, 0x88, 0x49, 0xc2, 0x0d, 0xad, 0xab, 0xf5, 0x9a, 0x6e, 0x89, 0xd1, 0x13, 0xd0, 0x85, 0xc4, + 0x5c, 0x7a, 0x52, 0x18, 0x1b, 0x5d, 0xad, 0x57, 0x77, 0xb7, 0x15, 0x1e, 0x09, 0xd4, 0x86, 0x06, + 0x89, 0x83, 0x3c, 0xb1, 0xa9, 0x12, 0x5b, 0x24, 0x0e, 0x46, 0x02, 0x1d, 0x82, 0xee, 0x63, 0x49, + 0x42, 0xc6, 0x33, 0xa3, 0xde, 0xd5, 0x7a, 0x0f, 0xfa, 0xcf, 0xed, 0x3b, 0x07, 0xb0, 0x5d, 0xf5, + 0x19, 0x2e, 0xc9, 0x6e, 0x59, 0x86, 0x06, 0xd0, 0x2a, 0x28, 0x9e, 0xcc, 0x12, 0x62, 0x6c, 0x29, + 0x95, 0xa7, 0x6b, 0x55, 0x46, 0x59, 0x42, 0x5c, 0xe0, 0x65, 0x8c, 0xce, 0x00, 0x2d, 0x35, 0x70, + 0xc4, 0xd2, 0x58, 0x16, 0x52, 0x0d, 0x25, 0xf5, 0x62, 0xad, 0xd4, 0xa1, 0xe2, 0x2b, 0xc1, 0x87, + 0xfc, 0x9f, 0x13, 0x74, 0x04, 0xff, 0xaf, 0xc8, 0x1a, 0xdb, 0x5d, 0xad, 0xd7, 0xea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, 0xdc, 0x27, 0x5e, 0x4a, 0x83, 0xa2, 0xbf, 0xc1, 0xfe, 0x7c, 0xd6, + 0x69, 0x9e, 0xaa, 0xd3, 0xb3, 0xe3, 0x77, 0xbf, 0x67, 0x9d, 0x0a, 0xc5, 0xad, 0xc4, 0xe5, 0x6e, + 0x36, 0x2b, 0xbb, 0x09, 0xc0, 0xf8, 0xc0, 0x71, 0x2c, 0x4f, 0x69, 0x18, 0xa7, 0xc9, 0x4a, 0x3b, + 0xe8, 0x08, 0x1a, 0xbe, 0x6a, 0x49, 0xfd, 0xa8, 0xd5, 0x7f, 0xb5, 0xd6, 0x31, 0x2b, 0x43, 0x0c, + 0xea, 0xb9, 0x2b, 0xdc, 0x65, 0xfd, 0x60, 0x78, 0x35, 0x37, 0xb5, 0xeb, 0xb9, 0xa9, 0xfd, 0x9a, + 0x9b, 0xda, 0xb7, 0x85, 0x59, 0xbb, 0x5e, 0x98, 0xb5, 0x1f, 0x0b, 0xb3, 0xf6, 0xe9, 0x65, 0x48, + 0xe5, 0x45, 0x7a, 0x6e, 0xfb, 0x2c, 0x72, 0x44, 0x48, 0x5e, 0x2f, 0xe5, 0xf3, 0xd8, 0xf9, 0x52, + 0x3e, 0x2d, 0x59, 0x42, 0xc4, 0x79, 0x43, 0x3d, 0x0a, 0x07, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, + 0xf0, 0x5e, 0x08, 0x88, 0x75, 0x04, 0x00, 0x00, } func (m *CreateCampaignPayload) Marshal() (dAtA []byte, err error) {