From 5dc3ecb99a832592cfa3535c363d085111991ad0 Mon Sep 17 00:00:00 2001 From: suhasagg Date: Sun, 10 Mar 2019 23:47:32 +0530 Subject: [PATCH 1/2] GetUserStateRequest & GetUserStateResponse protobuf types SetAllowedKarmaSourcesRequest protobuf type --- builtin/types/karma/karma.pb.go | 270 +++++++++++++++++++++++--------- builtin/types/karma/karma.proto | 13 ++ 2 files changed, 209 insertions(+), 74 deletions(-) diff --git a/builtin/types/karma/karma.pb.go b/builtin/types/karma/karma.pb.go index 4dd96746..b341f3c7 100644 --- a/builtin/types/karma/karma.pb.go +++ b/builtin/types/karma/karma.pb.go @@ -39,7 +39,7 @@ func (x KarmaSourceTarget) String() string { return proto.EnumName(KarmaSourceTarget_name, int32(x)) } func (KarmaSourceTarget) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{0} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{0} } type KarmaInitRequest struct { @@ -57,7 +57,7 @@ func (m *KarmaInitRequest) Reset() { *m = KarmaInitRequest{} } func (m *KarmaInitRequest) String() string { return proto.CompactTextString(m) } func (*KarmaInitRequest) ProtoMessage() {} func (*KarmaInitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{0} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{0} } func (m *KarmaInitRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaInitRequest.Unmarshal(m, b) @@ -123,7 +123,7 @@ func (m *KarmaConfig) Reset() { *m = KarmaConfig{} } func (m *KarmaConfig) String() string { return proto.CompactTextString(m) } func (*KarmaConfig) ProtoMessage() {} func (*KarmaConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{1} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{1} } func (m *KarmaConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaConfig.Unmarshal(m, b) @@ -161,7 +161,7 @@ func (m *KarmaSources) Reset() { *m = KarmaSources{} } func (m *KarmaSources) String() string { return proto.CompactTextString(m) } func (*KarmaSources) ProtoMessage() {} func (*KarmaSources) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{2} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{2} } func (m *KarmaSources) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaSources.Unmarshal(m, b) @@ -199,7 +199,7 @@ func (m *KarmaNewOracle) Reset() { *m = KarmaNewOracle{} } func (m *KarmaNewOracle) String() string { return proto.CompactTextString(m) } func (*KarmaNewOracle) ProtoMessage() {} func (*KarmaNewOracle) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{3} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{3} } func (m *KarmaNewOracle) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaNewOracle.Unmarshal(m, b) @@ -238,7 +238,7 @@ func (m *KarmaUserTarget) Reset() { *m = KarmaUserTarget{} } func (m *KarmaUserTarget) String() string { return proto.CompactTextString(m) } func (*KarmaUserTarget) ProtoMessage() {} func (*KarmaUserTarget) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{4} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{4} } func (m *KarmaUserTarget) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaUserTarget.Unmarshal(m, b) @@ -284,7 +284,7 @@ func (m *KarmaUserAmount) Reset() { *m = KarmaUserAmount{} } func (m *KarmaUserAmount) String() string { return proto.CompactTextString(m) } func (*KarmaUserAmount) ProtoMessage() {} func (*KarmaUserAmount) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{5} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{5} } func (m *KarmaUserAmount) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaUserAmount.Unmarshal(m, b) @@ -331,7 +331,7 @@ func (m *KarmaSourceReward) Reset() { *m = KarmaSourceReward{} } func (m *KarmaSourceReward) String() string { return proto.CompactTextString(m) } func (*KarmaSourceReward) ProtoMessage() {} func (*KarmaSourceReward) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{6} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{6} } func (m *KarmaSourceReward) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaSourceReward.Unmarshal(m, b) @@ -384,7 +384,7 @@ func (m *KarmaSource) Reset() { *m = KarmaSource{} } func (m *KarmaSource) String() string { return proto.CompactTextString(m) } func (*KarmaSource) ProtoMessage() {} func (*KarmaSource) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{7} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{7} } func (m *KarmaSource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaSource.Unmarshal(m, b) @@ -430,7 +430,7 @@ func (m *KarmaUpkeepParams) Reset() { *m = KarmaUpkeepParams{} } func (m *KarmaUpkeepParams) String() string { return proto.CompactTextString(m) } func (*KarmaUpkeepParams) ProtoMessage() {} func (*KarmaUpkeepParams) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{8} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{8} } func (m *KarmaUpkeepParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaUpkeepParams.Unmarshal(m, b) @@ -476,7 +476,7 @@ func (m *KarmaAddressSource) Reset() { *m = KarmaAddressSource{} } func (m *KarmaAddressSource) String() string { return proto.CompactTextString(m) } func (*KarmaAddressSource) ProtoMessage() {} func (*KarmaAddressSource) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{9} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{9} } func (m *KarmaAddressSource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaAddressSource.Unmarshal(m, b) @@ -524,7 +524,7 @@ func (m *KarmaState) Reset() { *m = KarmaState{} } func (m *KarmaState) String() string { return proto.CompactTextString(m) } func (*KarmaState) ProtoMessage() {} func (*KarmaState) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{10} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{10} } func (m *KarmaState) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaState.Unmarshal(m, b) @@ -584,7 +584,7 @@ func (m *KarmaStateKeyUser) Reset() { *m = KarmaStateKeyUser{} } func (m *KarmaStateKeyUser) String() string { return proto.CompactTextString(m) } func (*KarmaStateKeyUser) ProtoMessage() {} func (*KarmaStateKeyUser) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{11} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{11} } func (m *KarmaStateKeyUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaStateKeyUser.Unmarshal(m, b) @@ -629,7 +629,7 @@ func (m *KarmaTotal) Reset() { *m = KarmaTotal{} } func (m *KarmaTotal) String() string { return proto.CompactTextString(m) } func (*KarmaTotal) ProtoMessage() {} func (*KarmaTotal) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{12} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{12} } func (m *KarmaTotal) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaTotal.Unmarshal(m, b) @@ -669,7 +669,7 @@ func (m *KarmaContractRecord) Reset() { *m = KarmaContractRecord{} } func (m *KarmaContractRecord) String() string { return proto.CompactTextString(m) } func (*KarmaContractRecord) ProtoMessage() {} func (*KarmaContractRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{13} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{13} } func (m *KarmaContractRecord) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaContractRecord.Unmarshal(m, b) @@ -720,7 +720,7 @@ func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} } func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) } func (*GetConfigRequest) ProtoMessage() {} func (*GetConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{14} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{14} } func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetConfigRequest.Unmarshal(m, b) @@ -750,7 +750,7 @@ func (m *GetSourceRequest) Reset() { *m = GetSourceRequest{} } func (m *GetSourceRequest) String() string { return proto.CompactTextString(m) } func (*GetSourceRequest) ProtoMessage() {} func (*GetSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{15} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{15} } func (m *GetSourceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSourceRequest.Unmarshal(m, b) @@ -782,7 +782,7 @@ func (m *AddKarmaRequest) Reset() { *m = AddKarmaRequest{} } func (m *AddKarmaRequest) String() string { return proto.CompactTextString(m) } func (*AddKarmaRequest) ProtoMessage() {} func (*AddKarmaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{16} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{16} } func (m *AddKarmaRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddKarmaRequest.Unmarshal(m, b) @@ -827,7 +827,7 @@ func (m *KarmaContractId) Reset() { *m = KarmaContractId{} } func (m *KarmaContractId) String() string { return proto.CompactTextString(m) } func (*KarmaContractId) ProtoMessage() {} func (*KarmaContractId) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{17} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{17} } func (m *KarmaContractId) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaContractId.Unmarshal(m, b) @@ -866,7 +866,7 @@ func (m *UpkeepState) Reset() { *m = UpkeepState{} } func (m *UpkeepState) String() string { return proto.CompactTextString(m) } func (*UpkeepState) ProtoMessage() {} func (*UpkeepState) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_45380584c3a4b79a, []int{18} + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{18} } func (m *UpkeepState) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpkeepState.Unmarshal(m, b) @@ -900,6 +900,120 @@ func (m *UpkeepState) GetLastUpkeepHeight() uint64 { return 0 } +type GetUserStateRequest struct { + User *types.Address `protobuf:"bytes,1,opt,name=user" json:"user,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetUserStateRequest) Reset() { *m = GetUserStateRequest{} } +func (m *GetUserStateRequest) String() string { return proto.CompactTextString(m) } +func (*GetUserStateRequest) ProtoMessage() {} +func (*GetUserStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{19} +} +func (m *GetUserStateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetUserStateRequest.Unmarshal(m, b) +} +func (m *GetUserStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetUserStateRequest.Marshal(b, m, deterministic) +} +func (dst *GetUserStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetUserStateRequest.Merge(dst, src) +} +func (m *GetUserStateRequest) XXX_Size() int { + return xxx_messageInfo_GetUserStateRequest.Size(m) +} +func (m *GetUserStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetUserStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetUserStateRequest proto.InternalMessageInfo + +func (m *GetUserStateRequest) GetUser() *types.Address { + if m != nil { + return m.User + } + return nil +} + +type GetUserStateResponse struct { + Karmastate *KarmaState `protobuf:"bytes,1,opt,name=karmastate" json:"karmastate,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetUserStateResponse) Reset() { *m = GetUserStateResponse{} } +func (m *GetUserStateResponse) String() string { return proto.CompactTextString(m) } +func (*GetUserStateResponse) ProtoMessage() {} +func (*GetUserStateResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{20} +} +func (m *GetUserStateResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetUserStateResponse.Unmarshal(m, b) +} +func (m *GetUserStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetUserStateResponse.Marshal(b, m, deterministic) +} +func (dst *GetUserStateResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetUserStateResponse.Merge(dst, src) +} +func (m *GetUserStateResponse) XXX_Size() int { + return xxx_messageInfo_GetUserStateResponse.Size(m) +} +func (m *GetUserStateResponse) XXX_DiscardUnknown() { + xxx_messageInfo_GetUserStateResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_GetUserStateResponse proto.InternalMessageInfo + +func (m *GetUserStateResponse) GetKarmastate() *KarmaState { + if m != nil { + return m.Karmastate + } + return nil +} + +type SetAllowedKarmaSourcesRequest struct { + Karmasources *KarmaSources `protobuf:"bytes,1,opt,name=Karmasources" json:"Karmasources,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetAllowedKarmaSourcesRequest) Reset() { *m = SetAllowedKarmaSourcesRequest{} } +func (m *SetAllowedKarmaSourcesRequest) String() string { return proto.CompactTextString(m) } +func (*SetAllowedKarmaSourcesRequest) ProtoMessage() {} +func (*SetAllowedKarmaSourcesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{21} +} +func (m *SetAllowedKarmaSourcesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetAllowedKarmaSourcesRequest.Unmarshal(m, b) +} +func (m *SetAllowedKarmaSourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetAllowedKarmaSourcesRequest.Marshal(b, m, deterministic) +} +func (dst *SetAllowedKarmaSourcesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetAllowedKarmaSourcesRequest.Merge(dst, src) +} +func (m *SetAllowedKarmaSourcesRequest) XXX_Size() int { + return xxx_messageInfo_SetAllowedKarmaSourcesRequest.Size(m) +} +func (m *SetAllowedKarmaSourcesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SetAllowedKarmaSourcesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SetAllowedKarmaSourcesRequest proto.InternalMessageInfo + +func (m *SetAllowedKarmaSourcesRequest) GetKarmasources() *KarmaSources { + if m != nil { + return m.Karmasources + } + return nil +} + func init() { proto.RegisterType((*KarmaInitRequest)(nil), "karma.KarmaInitRequest") proto.RegisterType((*KarmaConfig)(nil), "karma.KarmaConfig") @@ -920,62 +1034,70 @@ func init() { proto.RegisterType((*AddKarmaRequest)(nil), "karma.AddKarmaRequest") proto.RegisterType((*KarmaContractId)(nil), "karma.KarmaContractId") proto.RegisterType((*UpkeepState)(nil), "karma.UpkeepState") + proto.RegisterType((*GetUserStateRequest)(nil), "karma.GetUserStateRequest") + proto.RegisterType((*GetUserStateResponse)(nil), "karma.GetUserStateResponse") + proto.RegisterType((*SetAllowedKarmaSourcesRequest)(nil), "karma.SetAllowedKarmaSourcesRequest") proto.RegisterEnum("karma.KarmaSourceTarget", KarmaSourceTarget_name, KarmaSourceTarget_value) } func init() { - proto.RegisterFile("github.com/loomnetwork/go-loom/builtin/types/karma/karma.proto", fileDescriptor_karma_45380584c3a4b79a) -} - -var fileDescriptor_karma_45380584c3a4b79a = []byte{ - // 782 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00,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 0x56, 0x47, - 0xb7, 0xa3, 0x6a, 0x7d, 0x55, 0x29, 0x4c, 0x67, 0x24, 0x09, 0x70, 0x0e, 0x44, 0x5d, 0xa8, 0xa6, - 0x82, 0x26, 0xa2, 0x65, 0x2b, 0xc6, 0x7f, 0x45, 0x86, 0xa9, 0x6f, 0x88, 0x1a, 0x87, 0x8e, 0xa0, - 0x96, 0x4e, 0x27, 0x94, 0x4e, 0x5b, 0x15, 0xd5, 0xc6, 0xbd, 0x3b, 0x6e, 0x55, 0xe6, 0x9a, 0x24, - 0x24, 0x16, 0xd8, 0xe0, 0xd0, 0x3e, 0xd4, 0x7c, 0xce, 0x7e, 0x84, 0xa3, 0x56, 0x55, 0x31, 0x50, - 0x91, 0x31, 0x50, 0x19, 0x6c, 0x10, 0xee, 0x3b, 0x68, 0x14, 0xc2, 0xe8, 0x10, 0x76, 0xe3, 0x90, - 0x79, 0x0a, 0xef, 0x49, 0xee, 0x05, 0x74, 0x1a, 0xf1, 0xb9, 0x12, 0xc0, 0xc6, 0x4e, 0x1c, 0x32, - 0x05, 0xbe, 0xe1, 0xa7, 0x2a, 0xee, 0x9e, 0xc0, 0x66, 0x61, 0x54, 0x51, 0x14, 0xc4, 0x7a, 0xa4, - 0x20, 0xee, 0x5b, 0x68, 0xaa, 0xec, 0x67, 0x3a, 0x33, 0xb2, 0xbe, 0x04, 0x60, 0x74, 0xe6, 0xf1, - 0x72, 0xf1, 0xeb, 0x2c, 0x07, 0xba, 0x04, 0xb6, 0xb5, 0x0a, 0x82, 0x26, 0x37, 0x24, 0x19, 0x51, - 0x89, 0x9e, 0x40, 0x25, 0x93, 0x6d, 0x89, 0xa5, 0xa2, 0x99, 0x96, 0x52, 0xe1, 0x5a, 0x6b, 0x6d, - 0x6b, 0xaf, 0x59, 0xd6, 0x9e, 0xae, 0x83, 0x0d, 0xce, 0xfd, 0x52, 0xb8, 0xa2, 0x1f, 0xf3, 0x94, - 0xad, 0xba, 0xa2, 0x0d, 0x35, 0xa2, 0x70, 0xea, 0x8a, 0x2c, 0x7f, 0x12, 0x8e, 0x6e, 0xcf, 0x99, - 0xc4, 0x26, 0xee, 0xde, 0xc1, 0xce, 0x92, 0x1c, 0x08, 0x41, 0x85, 0x91, 0x58, 0x4f, 0x5b, 0xc7, - 0xea, 0x37, 0xfa, 0x17, 0x6a, 0x89, 0xca, 0xaa, 0x52, 0x36, 0x36, 0xa7, 0xc2, 0x14, 0xf6, 0x23, - 0xa7, 0xe8, 0x9b, 0xaf, 0xac, 0x93, 0xa5, 0x97, 0x3d, 0x83, 0xaa, 0x5f, 0xda, 0xb6, 0x0e, 0xbb, - 0x1f, 0x4c, 0xd7, 0x45, 0xc7, 0x65, 0x85, 0x7c, 0x2e, 0xa4, 0xf1, 0x87, 0xfa, 0x9d, 0x75, 0x3d, - 0xa5, 0x49, 0xc8, 0x03, 0xd5, 0x9d, 0x8d, 0xcd, 0xc9, 0xfd, 0x0e, 0x68, 0xd9, 0xe4, 0x2b, 0xc4, - 0x3c, 0x78, 0xf8, 0xc0, 0x50, 0x89, 0x9f, 0x16, 0x4e, 0xfa, 0x65, 0x01, 0xe8, 0x84, 0x24, 0x92, - 0xa2, 0x63, 0xd8, 0xd2, 0x19, 0x4f, 0x64, 0xe7, 0xdc, 0x92, 0x65, 0x25, 0x36, 0x35, 0x50, 0xf1, - 0x04, 0x7a, 0x03, 0x48, 0xfb, 0x7e, 0xf1, 0x0e, 0x24, 0x89, 0x96, 0x74, 0x71, 0x34, 0xc6, 0x3c, - 0x08, 0x49, 0x22, 0xd4, 0x03, 0xc7, 0x27, 0x51, 0x74, 0x8f, 0x65, 0x3f, 0x60, 0x35, 0x33, 0x44, - 0x81, 0xd3, 0x81, 0x5d, 0x96, 0xc6, 0x1e, 0x9f, 0x31, 0x1a, 0x78, 0x3e, 0x67, 0x32, 0x21, 0xbe, - 0x14, 0xea, 0xa9, 0xdb, 0x78, 0x87, 0xa5, 0xf1, 0x55, 0x96, 0x19, 0xe4, 0x09, 0xf7, 0x3a, 0x37, - 0x4f, 0xd6, 0xea, 0x05, 0x9d, 0x67, 0xbe, 0x44, 0x4f, 0x01, 0xd4, 0x88, 0xde, 0x84, 0xce, 0xf5, - 0x98, 0x75, 0x5c, 0x17, 0x06, 0x21, 0x16, 0x1a, 0xaf, 0x95, 0x69, 0xec, 0x1e, 0x18, 0xd1, 0x74, - 0x3f, 0x0b, 0x1b, 0x58, 0xe5, 0x36, 0xf8, 0x09, 0xbb, 0xf9, 0xbe, 0x50, 0x1d, 0x61, 0xea, 0xf3, - 0x24, 0xc8, 0x68, 0xd9, 0x08, 0xcb, 0xdf, 0x51, 0x87, 0x91, 0x0b, 0xeb, 0x44, 0x47, 0x96, 0xba, - 0xc8, 0x13, 0xe8, 0x39, 0x34, 0x72, 0x01, 0xbc, 0x50, 0xbb, 0xa7, 0x82, 0x21, 0x0f, 0x9d, 0x07, - 0x2e, 0x02, 0xe7, 0x23, 0x95, 0x66, 0x81, 0xe9, 0x25, 0x6d, 0x62, 0xf9, 0x53, 0xd2, 0xb1, 0x31, - 0x6c, 0xf7, 0x83, 0x40, 0xb5, 0x99, 0xef, 0xf2, 0xbf, 0xdb, 0xec, 0x18, 0xb6, 0xf4, 0x37, 0x5b, - 0x6d, 0xb6, 0xcd, 0x49, 0x61, 0xdf, 0xb9, 0x3d, 0xb3, 0x1d, 0x06, 0x8b, 0x26, 0x1f, 0x4e, 0x61, - 0x2d, 0x4d, 0x31, 0x84, 0x86, 0x7e, 0x43, 0xda, 0xa5, 0x2f, 0xa0, 0xa9, 0xd7, 0xb6, 0x47, 0x19, - 0x19, 0x46, 0x54, 0x53, 0x36, 0xf0, 0x96, 0x8e, 0x9e, 0xe9, 0x20, 0x3a, 0x00, 0x14, 0x11, 0x21, - 0x3d, 0x83, 0x1d, 0xd3, 0x70, 0x34, 0xd6, 0x6f, 0xb5, 0x82, 0x9d, 0x2c, 0xa3, 0x6b, 0x7e, 0x52, - 0xf1, 0xfd, 0x57, 0xf7, 0x56, 0x8c, 0x59, 0x8d, 0x1b, 0x50, 0x19, 0xf4, 0x2f, 0x2f, 0x9d, 0x7f, - 0x10, 0x40, 0xed, 0xf4, 0xec, 0xfa, 0xf2, 0xea, 0x9b, 0x63, 0x0d, 0x6b, 0xea, 0x3f, 0xe0, 0xeb, - 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x5c, 0x16, 0x01, 0x5a, 0x7c, 0x07, 0x00, 0x00, + proto.RegisterFile("github.com/loomnetwork/go-loom/builtin/types/karma/karma.proto", fileDescriptor_karma_3befa9c4a0b9ce1e) +} + +var fileDescriptor_karma_3befa9c4a0b9ce1e = []byte{ + // 851 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x61, 0x6f, 0xe3, 0x44, + 0x10, 0xc5, 0x4d, 0x9a, 0x6b, 0x27, 0x6d, 0x2f, 0xdd, 0x20, 0x14, 0x10, 0x07, 0xd1, 0x4a, 0x88, + 0x72, 0xea, 0x25, 0x47, 0x4e, 0xa2, 0x42, 0x42, 0xa0, 0x5c, 0xef, 0x74, 0x54, 0x57, 0xd1, 0xb2, + 0x77, 0x27, 0xc1, 0x27, 0xb3, 0xb1, 0x97, 0xd4, 0x8a, 0xbd, 0x9b, 0x7a, 0xd7, 0x8a, 0xca, 0xbf, + 0xe5, 0x57, 0xf0, 0x15, 0xed, 0xec, 0x3a, 0x38, 0xb5, 0x45, 0xfa, 0x25, 0x8a, 0x67, 0xde, 0x9b, + 0x9d, 0x79, 0x7e, 0x3b, 0x86, 0x1f, 0xe7, 0x89, 0xb9, 0x29, 0x66, 0xa3, 0x48, 0x65, 0xe3, 0x54, + 0xa9, 0x4c, 0x0a, 0xb3, 0x52, 0xf9, 0x62, 0x3c, 0x57, 0xcf, 0xec, 0xe3, 0x78, 0x56, 0x24, 0xa9, + 0x49, 0xe4, 0xd8, 0xdc, 0x2d, 0x85, 0x1e, 0x2f, 0x78, 0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x00, 0x00, } diff --git a/builtin/types/karma/karma.proto b/builtin/types/karma/karma.proto index 1eb7213f..babd8b17 100644 --- a/builtin/types/karma/karma.proto +++ b/builtin/types/karma/karma.proto @@ -100,4 +100,17 @@ message KarmaContractId { message UpkeepState { bool upkeep_enabled = 1; uint64 last_upkeep_height = 2; +} + + +message GetUserStateRequest{ + Address user = 1; +} + +message GetUserStateResponse{ + KarmaState karmastate = 1; +} + +message SetAllowedKarmaSourcesRequest{ + KarmaSources Karmasources = 1; } \ No newline at end of file From 1977b4fece06d77e66acd95d310fdff671411a2c Mon Sep 17 00:00:00 2001 From: suhasagg Date: Thu, 21 Mar 2019 22:15:22 +0530 Subject: [PATCH 2/2] Review change taken into account --- builtin/types/karma/karma.pb.go | 176 ++++++++++++++++---------------- builtin/types/karma/karma.proto | 4 +- 2 files changed, 90 insertions(+), 90 deletions(-) diff --git a/builtin/types/karma/karma.pb.go b/builtin/types/karma/karma.pb.go index b341f3c7..bcafd8ab 100644 --- a/builtin/types/karma/karma.pb.go +++ b/builtin/types/karma/karma.pb.go @@ -39,7 +39,7 @@ func (x KarmaSourceTarget) String() string { return proto.EnumName(KarmaSourceTarget_name, int32(x)) } func (KarmaSourceTarget) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{0} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{0} } type KarmaInitRequest struct { @@ -57,7 +57,7 @@ func (m *KarmaInitRequest) Reset() { *m = KarmaInitRequest{} } func (m *KarmaInitRequest) String() string { return proto.CompactTextString(m) } func (*KarmaInitRequest) ProtoMessage() {} func (*KarmaInitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{0} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{0} } func (m *KarmaInitRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaInitRequest.Unmarshal(m, b) @@ -123,7 +123,7 @@ func (m *KarmaConfig) Reset() { *m = KarmaConfig{} } func (m *KarmaConfig) String() string { return proto.CompactTextString(m) } func (*KarmaConfig) ProtoMessage() {} func (*KarmaConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{1} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{1} } func (m *KarmaConfig) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaConfig.Unmarshal(m, b) @@ -161,7 +161,7 @@ func (m *KarmaSources) Reset() { *m = KarmaSources{} } func (m *KarmaSources) String() string { return proto.CompactTextString(m) } func (*KarmaSources) ProtoMessage() {} func (*KarmaSources) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{2} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{2} } func (m *KarmaSources) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaSources.Unmarshal(m, b) @@ -199,7 +199,7 @@ func (m *KarmaNewOracle) Reset() { *m = KarmaNewOracle{} } func (m *KarmaNewOracle) String() string { return proto.CompactTextString(m) } func (*KarmaNewOracle) ProtoMessage() {} func (*KarmaNewOracle) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{3} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{3} } func (m *KarmaNewOracle) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaNewOracle.Unmarshal(m, b) @@ -238,7 +238,7 @@ func (m *KarmaUserTarget) Reset() { *m = KarmaUserTarget{} } func (m *KarmaUserTarget) String() string { return proto.CompactTextString(m) } func (*KarmaUserTarget) ProtoMessage() {} func (*KarmaUserTarget) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{4} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{4} } func (m *KarmaUserTarget) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaUserTarget.Unmarshal(m, b) @@ -284,7 +284,7 @@ func (m *KarmaUserAmount) Reset() { *m = KarmaUserAmount{} } func (m *KarmaUserAmount) String() string { return proto.CompactTextString(m) } func (*KarmaUserAmount) ProtoMessage() {} func (*KarmaUserAmount) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{5} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{5} } func (m *KarmaUserAmount) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaUserAmount.Unmarshal(m, b) @@ -331,7 +331,7 @@ func (m *KarmaSourceReward) Reset() { *m = KarmaSourceReward{} } func (m *KarmaSourceReward) String() string { return proto.CompactTextString(m) } func (*KarmaSourceReward) ProtoMessage() {} func (*KarmaSourceReward) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{6} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{6} } func (m *KarmaSourceReward) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaSourceReward.Unmarshal(m, b) @@ -384,7 +384,7 @@ func (m *KarmaSource) Reset() { *m = KarmaSource{} } func (m *KarmaSource) String() string { return proto.CompactTextString(m) } func (*KarmaSource) ProtoMessage() {} func (*KarmaSource) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{7} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{7} } func (m *KarmaSource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaSource.Unmarshal(m, b) @@ -430,7 +430,7 @@ func (m *KarmaUpkeepParams) Reset() { *m = KarmaUpkeepParams{} } func (m *KarmaUpkeepParams) String() string { return proto.CompactTextString(m) } func (*KarmaUpkeepParams) ProtoMessage() {} func (*KarmaUpkeepParams) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{8} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{8} } func (m *KarmaUpkeepParams) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaUpkeepParams.Unmarshal(m, b) @@ -476,7 +476,7 @@ func (m *KarmaAddressSource) Reset() { *m = KarmaAddressSource{} } func (m *KarmaAddressSource) String() string { return proto.CompactTextString(m) } func (*KarmaAddressSource) ProtoMessage() {} func (*KarmaAddressSource) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{9} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{9} } func (m *KarmaAddressSource) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaAddressSource.Unmarshal(m, b) @@ -524,7 +524,7 @@ func (m *KarmaState) Reset() { *m = KarmaState{} } func (m *KarmaState) String() string { return proto.CompactTextString(m) } func (*KarmaState) ProtoMessage() {} func (*KarmaState) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{10} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{10} } func (m *KarmaState) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaState.Unmarshal(m, b) @@ -584,7 +584,7 @@ func (m *KarmaStateKeyUser) Reset() { *m = KarmaStateKeyUser{} } func (m *KarmaStateKeyUser) String() string { return proto.CompactTextString(m) } func (*KarmaStateKeyUser) ProtoMessage() {} func (*KarmaStateKeyUser) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{11} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{11} } func (m *KarmaStateKeyUser) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaStateKeyUser.Unmarshal(m, b) @@ -629,7 +629,7 @@ func (m *KarmaTotal) Reset() { *m = KarmaTotal{} } func (m *KarmaTotal) String() string { return proto.CompactTextString(m) } func (*KarmaTotal) ProtoMessage() {} func (*KarmaTotal) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{12} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{12} } func (m *KarmaTotal) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaTotal.Unmarshal(m, b) @@ -669,7 +669,7 @@ func (m *KarmaContractRecord) Reset() { *m = KarmaContractRecord{} } func (m *KarmaContractRecord) String() string { return proto.CompactTextString(m) } func (*KarmaContractRecord) ProtoMessage() {} func (*KarmaContractRecord) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{13} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{13} } func (m *KarmaContractRecord) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaContractRecord.Unmarshal(m, b) @@ -720,7 +720,7 @@ func (m *GetConfigRequest) Reset() { *m = GetConfigRequest{} } func (m *GetConfigRequest) String() string { return proto.CompactTextString(m) } func (*GetConfigRequest) ProtoMessage() {} func (*GetConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{14} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{14} } func (m *GetConfigRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetConfigRequest.Unmarshal(m, b) @@ -750,7 +750,7 @@ func (m *GetSourceRequest) Reset() { *m = GetSourceRequest{} } func (m *GetSourceRequest) String() string { return proto.CompactTextString(m) } func (*GetSourceRequest) ProtoMessage() {} func (*GetSourceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{15} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{15} } func (m *GetSourceRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetSourceRequest.Unmarshal(m, b) @@ -782,7 +782,7 @@ func (m *AddKarmaRequest) Reset() { *m = AddKarmaRequest{} } func (m *AddKarmaRequest) String() string { return proto.CompactTextString(m) } func (*AddKarmaRequest) ProtoMessage() {} func (*AddKarmaRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{16} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{16} } func (m *AddKarmaRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_AddKarmaRequest.Unmarshal(m, b) @@ -827,7 +827,7 @@ func (m *KarmaContractId) Reset() { *m = KarmaContractId{} } func (m *KarmaContractId) String() string { return proto.CompactTextString(m) } func (*KarmaContractId) ProtoMessage() {} func (*KarmaContractId) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{17} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{17} } func (m *KarmaContractId) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_KarmaContractId.Unmarshal(m, b) @@ -866,7 +866,7 @@ func (m *UpkeepState) Reset() { *m = UpkeepState{} } func (m *UpkeepState) String() string { return proto.CompactTextString(m) } func (*UpkeepState) ProtoMessage() {} func (*UpkeepState) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{18} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{18} } func (m *UpkeepState) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_UpkeepState.Unmarshal(m, b) @@ -911,7 +911,7 @@ func (m *GetUserStateRequest) Reset() { *m = GetUserStateRequest{} } func (m *GetUserStateRequest) String() string { return proto.CompactTextString(m) } func (*GetUserStateRequest) ProtoMessage() {} func (*GetUserStateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{19} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{19} } func (m *GetUserStateRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetUserStateRequest.Unmarshal(m, b) @@ -939,7 +939,7 @@ func (m *GetUserStateRequest) GetUser() *types.Address { } type GetUserStateResponse struct { - Karmastate *KarmaState `protobuf:"bytes,1,opt,name=karmastate" json:"karmastate,omitempty"` + UserState *KarmaState `protobuf:"bytes,1,opt,name=user_state,json=userState" json:"user_state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -949,7 +949,7 @@ func (m *GetUserStateResponse) Reset() { *m = GetUserStateResponse{} } func (m *GetUserStateResponse) String() string { return proto.CompactTextString(m) } func (*GetUserStateResponse) ProtoMessage() {} func (*GetUserStateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{20} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{20} } func (m *GetUserStateResponse) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_GetUserStateResponse.Unmarshal(m, b) @@ -969,15 +969,15 @@ func (m *GetUserStateResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetUserStateResponse proto.InternalMessageInfo -func (m *GetUserStateResponse) GetKarmastate() *KarmaState { +func (m *GetUserStateResponse) GetUserState() *KarmaState { if m != nil { - return m.Karmastate + return m.UserState } return nil } type SetAllowedKarmaSourcesRequest struct { - Karmasources *KarmaSources `protobuf:"bytes,1,opt,name=Karmasources" json:"Karmasources,omitempty"` + Sources *KarmaSources `protobuf:"bytes,1,opt,name=sources" json:"sources,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -987,7 +987,7 @@ func (m *SetAllowedKarmaSourcesRequest) Reset() { *m = SetAllowedKarmaSo func (m *SetAllowedKarmaSourcesRequest) String() string { return proto.CompactTextString(m) } func (*SetAllowedKarmaSourcesRequest) ProtoMessage() {} func (*SetAllowedKarmaSourcesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_karma_3befa9c4a0b9ce1e, []int{21} + return fileDescriptor_karma_e0a4bb6a406ab425, []int{21} } func (m *SetAllowedKarmaSourcesRequest) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_SetAllowedKarmaSourcesRequest.Unmarshal(m, b) @@ -1007,9 +1007,9 @@ func (m *SetAllowedKarmaSourcesRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SetAllowedKarmaSourcesRequest proto.InternalMessageInfo -func (m *SetAllowedKarmaSourcesRequest) GetKarmasources() *KarmaSources { +func (m *SetAllowedKarmaSourcesRequest) GetSources() *KarmaSources { if m != nil { - return m.Karmasources + return m.Sources } return nil } @@ -1041,63 +1041,63 @@ func init() { } func init() { - proto.RegisterFile("github.com/loomnetwork/go-loom/builtin/types/karma/karma.proto", fileDescriptor_karma_3befa9c4a0b9ce1e) -} - -var fileDescriptor_karma_3befa9c4a0b9ce1e = []byte{ - // 851 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x61, 0x6f, 0xe3, 0x44, - 0x10, 0xc5, 0x4d, 0x9a, 0x6b, 0x27, 0x6d, 0x2f, 0xdd, 0x20, 0x14, 0x10, 0x07, 0xd1, 0x4a, 0x88, - 0x72, 0xea, 0x25, 0x47, 0x4e, 0xa2, 0x42, 0x42, 0xa0, 0x5c, 0xef, 0x74, 0x54, 0x57, 0xd1, 0xb2, - 0x77, 0x27, 0xc1, 0x27, 0xb3, 0xb1, 0x97, 0xd4, 0x8a, 0xbd, 0x9b, 0x7a, 0xd7, 0x8a, 0xca, 0xbf, - 0xe5, 0x57, 0xf0, 0x15, 0xed, 0xec, 0x3a, 0x38, 0xb5, 0x45, 0xfa, 0x25, 0x8a, 0x67, 0xde, 0x9b, - 0x9d, 0x79, 0x7e, 0x3b, 0x86, 0x1f, 0xe7, 0x89, 0xb9, 0x29, 0x66, 0xa3, 0x48, 0x65, 0xe3, 0x54, - 0xa9, 0x4c, 0x0a, 0xb3, 0x52, 0xf9, 0x62, 0x3c, 0x57, 0xcf, 0xec, 0xe3, 0x78, 0x56, 0x24, 0xa9, - 0x49, 0xe4, 0xd8, 0xdc, 0x2d, 0x85, 0x1e, 0x2f, 0x78, 0x9e, 0x71, 0xf7, 0x3b, 0x5a, 0xe6, 0xca, - 0x28, 0xb2, 0x8b, 0x0f, 0x9f, 0x3d, 0xdf, 0x52, 0xc6, 0xd1, 0xf1, 0xd7, 0x11, 0xe9, 0x3f, 0x01, - 0xf4, 0xde, 0x5a, 0xee, 0x85, 0x4c, 0x0c, 0x13, 0xb7, 0x85, 0xd0, 0x86, 0x0c, 0xa1, 0x73, 0x95, - 0xf3, 0x28, 0x15, 0x83, 0x60, 0x18, 0x9c, 0x74, 0x27, 0x7b, 0xa3, 0x69, 0x1c, 0xe7, 0x42, 0x6b, - 0xe6, 0xe3, 0x64, 0x02, 0x8f, 0xb4, 0x2a, 0xf2, 0x48, 0xe8, 0xc1, 0xce, 0xb0, 0x75, 0xd2, 0x9d, - 0x0c, 0x46, 0xae, 0x1d, 0xac, 0xf5, 0x0e, 0x53, 0x4c, 0xac, 0x78, 0x1e, 0xb3, 0x12, 0x48, 0xc6, - 0xb0, 0x5b, 0x68, 0x91, 0xeb, 0x41, 0x0b, 0x19, 0x9f, 0x56, 0x19, 0xbe, 0xbe, 0x27, 0x3a, 0x1c, - 0x79, 0x0e, 0x9d, 0x62, 0xb9, 0x10, 0x62, 0x39, 0x68, 0x63, 0x1b, 0x1b, 0x67, 0x7c, 0xc0, 0xcc, - 0x35, 0xcf, 0x79, 0xa6, 0x99, 0xc7, 0x91, 0xa7, 0xd0, 0x89, 0x94, 0xfc, 0x33, 0x99, 0x0f, 0x76, - 0x91, 0x41, 0xaa, 0x8c, 0x73, 0xcc, 0x30, 0x8f, 0xa0, 0x3f, 0x40, 0xb7, 0x12, 0x26, 0xcf, 0xa0, - 0x9f, 0x25, 0x32, 0x44, 0x7c, 0x68, 0x54, 0x18, 0x8b, 0x65, 0xaa, 0xee, 0x50, 0x80, 0x16, 0xeb, - 0x65, 0x89, 0x44, 0xf0, 0x7b, 0xf5, 0x0a, 0xe3, 0xf4, 0x25, 0x1c, 0x54, 0x46, 0xd5, 0x55, 0x41, - 0x82, 0x07, 0x0a, 0x42, 0xbf, 0x87, 0x23, 0xcc, 0xfe, 0x22, 0x56, 0x5e, 0xd6, 0xaf, 0x01, 0xa4, - 0x58, 0x85, 0xaa, 0x59, 0xfc, 0x7d, 0x59, 0x02, 0x29, 0x87, 0xc7, 0x4e, 0x05, 0x2d, 0xf2, 0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 0xce, 0xa5, 0x5f, 0xc1, 0x91, 0x5b, 0xdb, - 0xa1, 0x90, 0x7c, 0x96, 0x0a, 0x47, 0xd9, 0x63, 0x87, 0x2e, 0xfa, 0xda, 0x05, 0xc9, 0x29, 0x90, - 0x94, 0x6b, 0x13, 0x7a, 0xec, 0x8d, 0x48, 0xe6, 0x37, 0xee, 0xae, 0xb6, 0x59, 0xcf, 0x66, 0x5c, - 0xcd, 0x9f, 0x31, 0x4e, 0x5f, 0x40, 0xff, 0x8d, 0x30, 0xd6, 0x1b, 0x78, 0xc8, 0x83, 0x54, 0xa0, - 0x17, 0xf0, 0xf1, 0x26, 0x49, 0x2f, 0x95, 0xd4, 0x82, 0x7c, 0x0b, 0x80, 0x43, 0xa3, 0xa1, 0x3c, - 0xf7, 0x78, 0x43, 0x1a, 0x84, 0x57, 0x40, 0xf4, 0x37, 0x78, 0xf2, 0x4e, 0x98, 0x69, 0x9a, 0xaa, - 0x95, 0x88, 0xab, 0x5f, 0x88, 0xb2, 0x93, 0x33, 0xff, 0xe1, 0xf8, 0xef, 0x6b, 0x61, 0xab, 0xf6, - 0xeb, 0x82, 0x6b, 0xb6, 0x01, 0x7c, 0xfa, 0xcd, 0xc6, 0xf2, 0xf4, 0x4b, 0x7f, 0x0f, 0xda, 0xe7, - 0xd3, 0xcb, 0xcb, 0xde, 0x47, 0x04, 0xa0, 0xf3, 0xea, 0xf5, 0xf5, 0xe5, 0xd5, 0xef, 0xbd, 0x60, - 0xd6, 0xc1, 0x6f, 0xfb, 0x8b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xac, 0x4b, 0x9b, 0x22, 0x56, - 0x08, 0x00, 0x00, + proto.RegisterFile("github.com/loomnetwork/go-loom/builtin/types/karma/karma.proto", fileDescriptor_karma_e0a4bb6a406ab425) +} + +var fileDescriptor_karma_e0a4bb6a406ab425 = []byte{ + // 849 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0x51, 0x6f, 0xdb, 0x36, + 0x10, 0x9e, 0x62, 0xc7, 0x8d, 0xcf, 0x49, 0xea, 0xd0, 0xc3, 0xe0, 0x0d, 0xeb, 0x66, 0x10, 0x18, + 0x96, 0x15, 0x89, 0x1d, 0xb8, 0xc0, 0x8a, 0x01, 0xc3, 0x06, 0x37, 0x2d, 0xda, 0xa0, 0x41, 0x93, + 0xb1, 0xed, 0xc3, 0x9e, 0x34, 0x5a, 0xe2, 0x1c, 0xc1, 0x12, 0xe9, 0x8a, 0x14, 0x8c, 0xec, 0xdf, + 0xee, 0x57, 0xec, 0x75, 0x20, 0x8f, 0x32, 0xe4, 0x48, 0x68, 0xf2, 0x22, 0x88, 0x77, 0xf7, 0x1d, + 0xef, 0x3e, 0x7d, 0x77, 0x82, 0xdf, 0x16, 0x89, 0xb9, 0x29, 0xe6, 0xe3, 0x48, 0x65, 0x93, 0x54, + 0xa9, 0x4c, 0x0a, 0xb3, 0x56, 0xf9, 0x72, 0xb2, 0x50, 0xa7, 0xf6, 0x38, 0x99, 0x17, 0x49, 0x6a, + 0x12, 0x39, 0x31, 0xb7, 0x2b, 0xa1, 0x27, 0x4b, 0x9e, 0x67, 0x1c, 0x9f, 0xe3, 0x55, 0xae, 0x8c, + 0x22, 0xbb, 0xee, 0xf0, 0xcd, 0xd9, 0x3d, 0x69, 0x10, 0xee, 0x9e, 0x08, 0xa4, 0xff, 0x05, 0xd0, + 0x7f, 0x6b, 0xb1, 0x17, 0x32, 0x31, 0x4c, 0x7c, 0x2a, 0x84, 0x36, 0x64, 0x04, 0x9d, 0xab, 0x9c, + 0x47, 0xa9, 0x18, 0x06, 0xa3, 0xe0, 0xb8, 0x37, 0xdd, 0x1b, 0xcf, 0xe2, 0x38, 0x17, 0x5a, 0x33, + 0x6f, 0x27, 0x53, 0x78, 0xa4, 0x55, 0x91, 0x47, 0x42, 0x0f, 0x77, 0x46, 0xad, 0xe3, 0xde, 0x74, + 0x38, 0xc6, 0x72, 0x5c, 0xae, 0xf7, 0xce, 0xc5, 0xc4, 0x9a, 0xe7, 0x31, 0x2b, 0x03, 0xc9, 0x04, + 0x76, 0x0b, 0x2d, 0x72, 0x3d, 0x6c, 0x39, 0xc4, 0xd7, 0x55, 0x84, 0xcf, 0xef, 0x81, 0x18, 0x47, + 0xce, 0xa0, 0x53, 0xac, 0x96, 0x42, 0xac, 0x86, 0x6d, 0x57, 0xc6, 0xd6, 0x1d, 0x1f, 0x9d, 0xe7, + 0x9a, 0xe7, 0x3c, 0xd3, 0xcc, 0xc7, 0x91, 0xa7, 0xd0, 0x89, 0x94, 0xfc, 0x3b, 0x59, 0x0c, 0x77, + 0x1d, 0x82, 0x54, 0x11, 0xe7, 0xce, 0xc3, 0x7c, 0x04, 0xfd, 0x15, 0x7a, 0x15, 0x33, 0x39, 0x85, + 0x41, 0x96, 0xc8, 0xd0, 0xc5, 0x87, 0x46, 0x85, 0xb1, 0x58, 0xa5, 0xea, 0xd6, 0x11, 0xd0, 0x62, + 0xfd, 0x2c, 0x91, 0x2e, 0xf8, 0x83, 0x7a, 0xe9, 0xec, 0xf4, 0x05, 0xec, 0x57, 0x5a, 0xd5, 0x55, + 0x42, 0x82, 0x07, 0x12, 0x42, 0x7f, 0x81, 0x43, 0xe7, 0x7d, 0x27, 0xd6, 0x9e, 0xd6, 0x1f, 0x01, + 0xa4, 0x58, 0x87, 0xaa, 0x99, 0xfc, 0xae, 0x2c, 0x03, 0x29, 0x87, 0xc7, 0xc8, 0x82, 0x16, 0xf9, + 0x07, 0x9e, 0x2f, 0x84, 0x21, 0xdf, 0x42, 0xdb, 0xd2, 0x56, 0x43, 0x39, 0xab, 0xe5, 0xd2, 0xb8, + 0xb8, 0xe1, 0xce, 0x28, 0x38, 0x3e, 0x6c, 0x2a, 0x0f, 0xf3, 0x30, 0x1f, 0x47, 0xff, 0xa8, 0x5c, + 0x31, 0xcb, 0x54, 0x21, 0xef, 0xbb, 0x62, 0x04, 0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x06, 0x83, 0xd7, 0xc2, 0x58, 0x6d, 0xb8, 0x4b, 0x1e, 0xc4, 0x02, 0x7d, + 0x03, 0x5f, 0x6e, 0x83, 0xf4, 0x4a, 0x49, 0x2d, 0xc8, 0x19, 0x80, 0xf5, 0xe3, 0x14, 0x79, 0xec, + 0xd1, 0x16, 0x35, 0x2e, 0xbc, 0x5b, 0x94, 0x48, 0xfa, 0x0e, 0x9e, 0xbc, 0x17, 0x66, 0x96, 0xa6, + 0x6a, 0x2d, 0xe2, 0xea, 0x0f, 0xa2, 0x2c, 0xe4, 0xb4, 0xfa, 0x9f, 0xb0, 0xf9, 0x06, 0x75, 0xaa, + 0xf5, 0x66, 0xb0, 0x9f, 0xfe, 0xb4, 0xb5, 0x31, 0xfd, 0xa6, 0xdf, 0x83, 0xf6, 0xf9, 0xec, 0xf2, + 0xb2, 0xff, 0x05, 0x01, 0xe8, 0xbc, 0x7c, 0x75, 0x7d, 0x79, 0xf5, 0x67, 0x3f, 0x98, 0x77, 0xdc, + 0x0f, 0xfd, 0xd9, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x56, 0x7a, 0xe3, 0xca, 0x4b, 0x08, 0x00, + 0x00, } diff --git a/builtin/types/karma/karma.proto b/builtin/types/karma/karma.proto index babd8b17..6408b8e4 100644 --- a/builtin/types/karma/karma.proto +++ b/builtin/types/karma/karma.proto @@ -108,9 +108,9 @@ message GetUserStateRequest{ } message GetUserStateResponse{ - KarmaState karmastate = 1; + KarmaState user_state = 1; } message SetAllowedKarmaSourcesRequest{ - KarmaSources Karmasources = 1; + KarmaSources sources = 1; } \ No newline at end of file