diff --git a/docs/modules/data/protobuf.md b/docs/modules/data/protobuf.md index 7dcaf5ee8f..91dd136005 100644 --- a/docs/modules/data/protobuf.md +++ b/docs/modules/data/protobuf.md @@ -501,7 +501,7 @@ MsgStoreRawDataRequest is the Msg/StoreRawData request type. | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | sender | [string](#string) | | sender is the address of the sender of the transaction. The sender in StoreData is not attesting to the veracity of the underlying data. They can simply be a intermediary providing services. | -| hash | [ContentHash.Raw](#regen.data.v1alpha2.ContentHash.Raw) | | hash is the hash-based identifier for the anchored content. | +| content_hash | [ContentHash.Raw](#regen.data.v1alpha2.ContentHash.Raw) | | content_hash is the hash-based identifier for the anchored content. | | content | [bytes](#bytes) | | content is the content of the raw data corresponding to the provided content hash. | diff --git a/docs/modules/group/protobuf.md b/docs/modules/group/protobuf.md index a72bbc89cb..18d7a9a9b0 100644 --- a/docs/modules/group/protobuf.md +++ b/docs/modules/group/protobuf.md @@ -322,7 +322,7 @@ ThresholdDecisionPolicy implements the DecisionPolicy interface | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | -| threshold | [string](#string) | | threshold is a fix weight value that must be met or exceeded for a proposal to succeed. | +| threshold | [string](#string) | | threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. | | timeout | [google.protobuf.Duration](#google.protobuf.Duration) | | timeout is the duration from submission of a proposal to the end of voting period Within this times votes and exec messages can be submitted. | @@ -782,7 +782,7 @@ Query is the regen.group.v1alpha1 Query service. | ----------- | ------------ | ------------- | ------------| | GroupInfo | [QueryGroupInfoRequest](#regen.group.v1alpha1.QueryGroupInfoRequest) | [QueryGroupInfoResponse](#regen.group.v1alpha1.QueryGroupInfoResponse) | GroupInfo queries group info based on group id. | | GroupAccountInfo | [QueryGroupAccountInfoRequest](#regen.group.v1alpha1.QueryGroupAccountInfoRequest) | [QueryGroupAccountInfoResponse](#regen.group.v1alpha1.QueryGroupAccountInfoResponse) | GroupAccountInfo queries group account info based on group account address. | -| GroupMembers | [QueryGroupMembersRequest](#regen.group.v1alpha1.QueryGroupMembersRequest) | [QueryGroupMembersResponse](#regen.group.v1alpha1.QueryGroupMembersResponse) | GroupMembers queries members for a group | +| GroupMembers | [QueryGroupMembersRequest](#regen.group.v1alpha1.QueryGroupMembersRequest) | [QueryGroupMembersResponse](#regen.group.v1alpha1.QueryGroupMembersResponse) | GroupMembers queries members of a group | | GroupsByAdmin | [QueryGroupsByAdminRequest](#regen.group.v1alpha1.QueryGroupsByAdminRequest) | [QueryGroupsByAdminResponse](#regen.group.v1alpha1.QueryGroupsByAdminResponse) | GroupsByAdmin queries groups by admin address. | | GroupAccountsByGroup | [QueryGroupAccountsByGroupRequest](#regen.group.v1alpha1.QueryGroupAccountsByGroupRequest) | [QueryGroupAccountsByGroupResponse](#regen.group.v1alpha1.QueryGroupAccountsByGroupResponse) | GroupAccountsByGroup queries group accounts by group id. | | GroupAccountsByAdmin | [QueryGroupAccountsByAdminRequest](#regen.group.v1alpha1.QueryGroupAccountsByAdminRequest) | [QueryGroupAccountsByAdminResponse](#regen.group.v1alpha1.QueryGroupAccountsByAdminResponse) | GroupsByAdmin queries group accounts by admin address. | diff --git a/go.mod b/go.mod index 7adc77cd40..bec2f60d1c 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/stretchr/testify v1.7.0 github.com/tendermint/tendermint v0.34.3 github.com/tendermint/tm-db v0.6.3 - google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506 // indirect + google.golang.org/genproto v0.0.0-20210203152818-3206188e46ba // indirect google.golang.org/grpc v1.35.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index 628ea7c2d5..dfa99b972e 100644 --- a/go.sum +++ b/go.sum @@ -865,8 +865,8 @@ google.golang.org/genproto v0.0.0-20201111145450-ac7456db90a6/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201119123407-9b1e624d6bc4/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201211151036-40ec1c210f7a/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210114201628-6edceaf6022f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506 h1:uLBY0yHDCj2PMQ98KWDSIDFwn9zK2zh+tgWtbvPPBjI= -google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210203152818-3206188e46ba h1:np3A9jnmE/eMtrOwwvUycmQ1XoLyj5nqZ41bAyYLqJ0= +google.golang.org/genproto v0.0.0-20210203152818-3206188e46ba/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.19.1/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= diff --git a/x/data/requests.go b/x/data/requests.go index f823cbf310..7e15dee1b4 100644 --- a/x/data/requests.go +++ b/x/data/requests.go @@ -46,12 +46,12 @@ func (m *MsgSignDataRequest) GetSigners() []sdk.AccAddress { } func (m *MsgStoreRawDataRequest) ValidateBasic() error { - err := m.Hash.Validate() + err := m.ContentHash.Validate() if err != nil { return err } - digestAlgorithm := m.Hash.DigestAlgorithm + digestAlgorithm := m.ContentHash.DigestAlgorithm switch digestAlgorithm { case DigestAlgorithm_DIGEST_ALGORITHM_BLAKE2B_256: hash := crypto.BLAKE2b_256.New() @@ -61,7 +61,7 @@ func (m *MsgStoreRawDataRequest) ValidateBasic() error { } digest := hash.Sum(nil) - if !bytes.Equal(m.Hash.Hash, digest) { + if !bytes.Equal(m.ContentHash.Hash, digest) { return ErrHashVerificationFailed } diff --git a/x/data/requests_test.go b/x/data/requests_test.go index e725c1b28d..305edbc024 100644 --- a/x/data/requests_test.go +++ b/x/data/requests_test.go @@ -205,9 +205,9 @@ func TestMsgStoreRawDataRequest_ValidateBasic(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { m := &MsgStoreRawDataRequest{ - Sender: tt.fields.Sender, - Hash: tt.fields.Hash, - Content: tt.fields.Content, + Sender: tt.fields.Sender, + ContentHash: tt.fields.Hash, + Content: tt.fields.Content, } err := m.ValidateBasic() if len(tt.wantErr) != 0 { diff --git a/x/data/tx.pb.go b/x/data/tx.pb.go index fce1ddf34d..905f593ce7 100644 --- a/x/data/tx.pb.go +++ b/x/data/tx.pb.go @@ -215,8 +215,8 @@ type MsgStoreRawDataRequest struct { // The sender in StoreData is not attesting to the veracity of the underlying // data. They can simply be a intermediary providing services. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - // hash is the hash-based identifier for the anchored content. - Hash *ContentHash_Raw `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` + // content_hash is the hash-based identifier for the anchored content. + ContentHash *ContentHash_Raw `protobuf:"bytes,2,opt,name=content_hash,json=contentHash,proto3" json:"content_hash,omitempty"` // content is the content of the raw data corresponding to the provided content hash. Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` } @@ -261,9 +261,9 @@ func (m *MsgStoreRawDataRequest) GetSender() string { return "" } -func (m *MsgStoreRawDataRequest) GetHash() *ContentHash_Raw { +func (m *MsgStoreRawDataRequest) GetContentHash() *ContentHash_Raw { if m != nil { - return m.Hash + return m.ContentHash } return nil } @@ -324,36 +324,37 @@ func init() { func init() { proto.RegisterFile("regen/data/v1alpha2/tx.proto", fileDescriptor_ff31907a513a4b24) } var fileDescriptor_ff31907a513a4b24 = []byte{ - // 459 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0xeb, 0x75, 0x1a, 0xf4, 0xdd, 0x4e, 0xde, 0x1f, 0x42, 0x84, 0xb2, 0x28, 0x42, 0x10, - 0x60, 0x38, 0xa2, 0x70, 0x98, 0x76, 0xe3, 0x8f, 0x80, 0x4b, 0x0f, 0x04, 0x4e, 0x48, 0x1c, 0xdc, - 0xf6, 0xc5, 0x89, 0x68, 0xed, 0x60, 0xbb, 0x74, 0xdc, 0x39, 0x70, 0xe4, 0x23, 0xf0, 0x21, 0xf8, - 0x10, 0x1c, 0x77, 0xe4, 0x88, 0xda, 0x2f, 0x82, 0x1a, 0x27, 0x6c, 0xdd, 0x5a, 0xb5, 0xb7, 0xbc, - 0x79, 0x1f, 0xfb, 0xf9, 0x3d, 0x7e, 0x6d, 0xb8, 0xa5, 0x51, 0xa0, 0x4c, 0xfa, 0xdc, 0xf2, 0xe4, - 0xcb, 0x23, 0x3e, 0x28, 0x32, 0xde, 0x4e, 0xec, 0x29, 0x2b, 0xb4, 0xb2, 0x8a, 0xee, 0x96, 0x5d, - 0x36, 0xeb, 0xb2, 0xba, 0xeb, 0xef, 0x09, 0x25, 0x54, 0xd9, 0x4f, 0x66, 0x5f, 0x4e, 0xea, 0x1f, - 0x0a, 0xa5, 0xc4, 0x00, 0x93, 0xb2, 0xea, 0x8e, 0x3e, 0x26, 0x36, 0x1f, 0xa2, 0xb1, 0x7c, 0x58, - 0xd4, 0x82, 0x85, 0x4e, 0x5f, 0x0b, 0x34, 0x4e, 0x10, 0xf5, 0x61, 0xaf, 0x63, 0xc4, 0x53, 0xd9, - 0xcb, 0x94, 0x7e, 0xc1, 0x2d, 0x4f, 0xf1, 0xf3, 0x08, 0x8d, 0xa5, 0x07, 0xb0, 0x65, 0x50, 0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, 0xe0, 0x7a, 0x7d, 0x44, 0xf4, 0xee, 0xb2, 0x75, 0x97, 0xc6, 0xe6, 0xc7, - 0xab, 0x85, 0xd5, 0xf6, 0x39, 0xec, 0x5c, 0xcc, 0x48, 0x1f, 0x2c, 0x5d, 0x79, 0x75, 0x1e, 0xfe, - 0xd1, 0x7a, 0x62, 0x67, 0xf5, 0xec, 0xe5, 0xef, 0x49, 0x40, 0xce, 0x26, 0x01, 0xf9, 0x3b, 0x09, - 0xc8, 0x8f, 0x69, 0xd0, 0x38, 0x9b, 0x06, 0x8d, 0x3f, 0xd3, 0xa0, 0xf1, 0xfe, 0x48, 0xe4, 0x36, - 0x1b, 0x75, 0x59, 0x4f, 0x0d, 0x93, 0x72, 0xc7, 0x87, 0x12, 0xed, 0x58, 0xe9, 0x4f, 0x55, 0x35, - 0xc0, 0xbe, 0x40, 0x9d, 0x9c, 0x96, 0xef, 0xae, 0xbb, 0x55, 0x5e, 0xe4, 0xc7, 0xff, 0x02, 0x00, - 0x00, 0xff, 0xff, 0xeb, 0x06, 0xd1, 0xd1, 0xf6, 0x03, 0x00, 0x00, + // 466 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcb, 0x8e, 0xd3, 0x30, + 0x14, 0x86, 0xeb, 0xe9, 0x68, 0xa0, 0xa7, 0x5d, 0x79, 0x2e, 0x84, 0x08, 0x65, 0xa2, 0x08, 0x41, + 0x80, 0xc1, 0x11, 0x85, 0x05, 0x9a, 0x1d, 0x17, 0x31, 0x6c, 0xba, 0xc0, 0xb0, 0x42, 0x42, 0xc8, + 0x4d, 0x8d, 0x13, 0xd1, 0xda, 0xc1, 0x76, 0xe9, 0xf0, 0x06, 0x2c, 0x91, 0x78, 0x01, 0x1e, 0x82, + 0x87, 0x60, 0x39, 0x4b, 0x96, 0xa8, 0x7d, 0x11, 0xd4, 0x5c, 0xa6, 0x9d, 0x99, 0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 0x08, 0xae, 0xa3, 0xd3, 0xfc, 0x37, 0xec, 0xef, + 0xe4, 0xef, 0xfa, 0xf1, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0xa9, 0xd2, 0xbe, 0x05, 0x04, + 0x00, 0x00, } func (m *MsgAnchorDataRequest) Marshal() (dAtA []byte, err error) { @@ -527,9 +528,9 @@ func (m *MsgStoreRawDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) i-- dAtA[i] = 0x1a } - if m.Hash != nil { + if m.ContentHash != nil { { - size, err := m.Hash.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ContentHash.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -651,8 +652,8 @@ func (m *MsgStoreRawDataRequest) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.Hash != nil { - l = m.Hash.Size() + if m.ContentHash != nil { + l = m.ContentHash.Size() n += 1 + l + sovTx(uint64(l)) } l = len(m.Content) @@ -1124,7 +1125,7 @@ func (m *MsgStoreRawDataRequest) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ContentHash", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -1151,10 +1152,10 @@ func (m *MsgStoreRawDataRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Hash == nil { - m.Hash = &ContentHash_Raw{} + if m.ContentHash == nil { + m.ContentHash = &ContentHash_Raw{} } - if err := m.Hash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ContentHash.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/group/query_cosmos.pb.go b/x/group/query_cosmos.pb.go index 83c94f66d7..6c239210ed 100644 --- a/x/group/query_cosmos.pb.go +++ b/x/group/query_cosmos.pb.go @@ -20,7 +20,7 @@ type QueryClient interface { GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error) // GroupAccountInfo queries group account info based on group account address. GroupAccountInfo(ctx context.Context, in *QueryGroupAccountInfoRequest, opts ...grpc.CallOption) (*QueryGroupAccountInfoResponse, error) - // GroupMembers queries members for a group + // GroupMembers queries members of a group GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error) // GroupsByAdmin queries groups by admin address. GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error) @@ -318,7 +318,7 @@ type QueryServer interface { GroupInfo(types.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error) // GroupAccountInfo queries group account info based on group account address. GroupAccountInfo(types.Context, *QueryGroupAccountInfoRequest) (*QueryGroupAccountInfoResponse, error) - // GroupMembers queries members for a group + // GroupMembers queries members of a group GroupMembers(types.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error) // GroupsByAdmin queries groups by admin address. GroupsByAdmin(types.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error) diff --git a/x/group/types.pb.go b/x/group/types.pb.go index f7fd135867..52d9a5422d 100644 --- a/x/group/types.pb.go +++ b/x/group/types.pb.go @@ -242,7 +242,7 @@ func (m *Member) GetMetadata() []byte { // ThresholdDecisionPolicy implements the DecisionPolicy interface type ThresholdDecisionPolicy struct { - // threshold is a fix weight value that must be met or exceeded for a proposal to succeed. + // threshold is the minimum weighted sum of yes votes that must be met or exceeded for a proposal to succeed. Threshold string `protobuf:"bytes,1,opt,name=threshold,proto3" json:"threshold,omitempty"` // timeout is the duration from submission of a proposal to the end of voting period // Within this times votes and exec messages can be submitted.