diff --git a/api/cheqd/did/v2/fee.pulsar.go b/api/cheqd/did/v2/fee.pulsar.go index 46b059a90..672962b50 100644 --- a/api/cheqd/did/v2/fee.pulsar.go +++ b/api/cheqd/did/v2/fee.pulsar.go @@ -3,9 +3,9 @@ package didv2 import ( fmt "fmt" + v1beta1 "github.com/cheqd/cheqd-node/api/v2/cosmos/base/v1beta1" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" - types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" @@ -217,11 +217,11 @@ func (x *fastReflection_FeeParams) Get(descriptor protoreflect.FieldDescriptor) func (x *fastReflection_FeeParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cheqd.did.v2.FeeParams.create_did": - x.CreateDid = value.Message().Interface().(*types.Coin) + x.CreateDid = value.Message().Interface().(*v1beta1.Coin) case "cheqd.did.v2.FeeParams.update_did": - x.UpdateDid = value.Message().Interface().(*types.Coin) + x.UpdateDid = value.Message().Interface().(*v1beta1.Coin) case "cheqd.did.v2.FeeParams.deactivate_did": - x.DeactivateDid = value.Message().Interface().(*types.Coin) + x.DeactivateDid = value.Message().Interface().(*v1beta1.Coin) case "cheqd.did.v2.FeeParams.burn_factor": x.BurnFactor = value.Interface().(string) default: @@ -246,17 +246,17 @@ func (x *fastReflection_FeeParams) Mutable(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { case "cheqd.did.v2.FeeParams.create_did": if x.CreateDid == nil { - x.CreateDid = new(types.Coin) + x.CreateDid = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.CreateDid.ProtoReflect()) case "cheqd.did.v2.FeeParams.update_did": if x.UpdateDid == nil { - x.UpdateDid = new(types.Coin) + x.UpdateDid = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.UpdateDid.ProtoReflect()) case "cheqd.did.v2.FeeParams.deactivate_did": if x.DeactivateDid == nil { - x.DeactivateDid = new(types.Coin) + x.DeactivateDid = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.DeactivateDid.ProtoReflect()) case "cheqd.did.v2.FeeParams.burn_factor": @@ -275,13 +275,13 @@ func (x *fastReflection_FeeParams) Mutable(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_FeeParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cheqd.did.v2.FeeParams.create_did": - m := new(types.Coin) + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cheqd.did.v2.FeeParams.update_did": - m := new(types.Coin) + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cheqd.did.v2.FeeParams.deactivate_did": - m := new(types.Coin) + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cheqd.did.v2.FeeParams.burn_factor": return protoreflect.ValueOfString("") @@ -527,7 +527,7 @@ func (x *fastReflection_FeeParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.CreateDid == nil { - x.CreateDid = &types.Coin{} + x.CreateDid = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.CreateDid); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -563,7 +563,7 @@ func (x *fastReflection_FeeParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.UpdateDid == nil { - x.UpdateDid = &types.Coin{} + x.UpdateDid = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UpdateDid); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -599,7 +599,7 @@ func (x *fastReflection_FeeParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.DeactivateDid == nil { - x.DeactivateDid = &types.Coin{} + x.DeactivateDid = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DeactivateDid); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -694,15 +694,15 @@ type FeeParams struct { // Fixed fee for creating a DID // // Default: 50 CHEQ or 50000000000ncheq - CreateDid *types.Coin `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did,omitempty"` + CreateDid *v1beta1.Coin `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did,omitempty"` // Fixed fee for updating a DID // // Default: 25 CHEQ or 25000000000ncheq - UpdateDid *types.Coin `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did,omitempty"` + UpdateDid *v1beta1.Coin `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did,omitempty"` // Fixed fee for deactivating a DID // // Default: 10 CHEQ or 10000000000ncheq - DeactivateDid *types.Coin `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did,omitempty"` + DeactivateDid *v1beta1.Coin `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did,omitempty"` // Percentage of the fixed fee that will be burned // // Default: 0.5 (50%) @@ -729,21 +729,21 @@ func (*FeeParams) Descriptor() ([]byte, []int) { return file_cheqd_did_v2_fee_proto_rawDescGZIP(), []int{0} } -func (x *FeeParams) GetCreateDid() *types.Coin { +func (x *FeeParams) GetCreateDid() *v1beta1.Coin { if x != nil { return x.CreateDid } return nil } -func (x *FeeParams) GetUpdateDid() *types.Coin { +func (x *FeeParams) GetUpdateDid() *v1beta1.Coin { if x != nil { return x.UpdateDid } return nil } -func (x *FeeParams) GetDeactivateDid() *types.Coin { +func (x *FeeParams) GetDeactivateDid() *v1beta1.Coin { if x != nil { return x.DeactivateDid } @@ -814,8 +814,8 @@ func file_cheqd_did_v2_fee_proto_rawDescGZIP() []byte { var file_cheqd_did_v2_fee_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_cheqd_did_v2_fee_proto_goTypes = []interface{}{ - (*FeeParams)(nil), // 0: cheqd.did.v2.FeeParams - (*types.Coin)(nil), // 1: cosmos.base.v1beta1.Coin + (*FeeParams)(nil), // 0: cheqd.did.v2.FeeParams + (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin } var file_cheqd_did_v2_fee_proto_depIdxs = []int32{ 1, // 0: cheqd.did.v2.FeeParams.create_did:type_name -> cosmos.base.v1beta1.Coin diff --git a/api/cheqd/did/v2/query.pulsar.go b/api/cheqd/did/v2/query.pulsar.go index 2fd3fff1f..fb6d13329 100644 --- a/api/cheqd/did/v2/query.pulsar.go +++ b/api/cheqd/did/v2/query.pulsar.go @@ -3,8 +3,8 @@ package didv2 import ( fmt "fmt" + v1beta1 "github.com/cheqd/cheqd-node/api/v2/cosmos/base/query/v1beta1" runtime "github.com/cosmos/cosmos-proto/runtime" - query "github.com/cosmos/cosmos-sdk/types/query" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" @@ -1962,7 +1962,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataRequest) Set(fd protorefle case "cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest.id": x.Id = value.Interface().(string) case "cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest")) @@ -1985,7 +1985,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataRequest) Mutable(fd protor switch fd.FullName() { case "cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest.pagination": if x.Pagination == nil { - x.Pagination = new(query.PageRequest) + x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) case "cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest.id": @@ -2006,7 +2006,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataRequest) NewField(fd proto case "cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest.id": return protoreflect.ValueOfString("") case "cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest.pagination": - m := new(query.PageRequest) + m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -2246,7 +2246,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataRequest) ProtoMethods() *p return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Pagination == nil { - x.Pagination = &query.PageRequest{} + x.Pagination = &v1beta1.PageRequest{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -2517,7 +2517,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataResponse) Set(fd protorefl clv := lv.(*_QueryAllDidDocVersionsMetadataResponse_1_list) x.Versions = *clv.list case "cheqd.did.v2.QueryAllDidDocVersionsMetadataResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cheqd.did.v2.QueryAllDidDocVersionsMetadataResponse")) @@ -2546,7 +2546,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataResponse) Mutable(fd proto return protoreflect.ValueOfList(value) case "cheqd.did.v2.QueryAllDidDocVersionsMetadataResponse.pagination": if x.Pagination == nil { - x.Pagination = new(query.PageResponse) + x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: @@ -2566,7 +2566,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataResponse) NewField(fd prot list := []*Metadata{} return protoreflect.ValueOfList(&_QueryAllDidDocVersionsMetadataResponse_1_list{list: &list}) case "cheqd.did.v2.QueryAllDidDocVersionsMetadataResponse.pagination": - m := new(query.PageResponse) + m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -2819,7 +2819,7 @@ func (x *fastReflection_QueryAllDidDocVersionsMetadataResponse) ProtoMethods() * return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Pagination == nil { - x.Pagination = &query.PageResponse{} + x.Pagination = &v1beta1.PageResponse{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -3069,7 +3069,7 @@ type QueryAllDidDocVersionsMetadataRequest struct { // - did:cheqd:testnet:wGHEXrZvJxR8vw5P3UWH1j Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryAllDidDocVersionsMetadataRequest) Reset() { @@ -3099,7 +3099,7 @@ func (x *QueryAllDidDocVersionsMetadataRequest) GetId() string { return "" } -func (x *QueryAllDidDocVersionsMetadataRequest) GetPagination() *query.PageRequest { +func (x *QueryAllDidDocVersionsMetadataRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } @@ -3115,7 +3115,7 @@ type QueryAllDidDocVersionsMetadataResponse struct { // versions is the list of all versions of the requested DID Document Versions []*Metadata `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryAllDidDocVersionsMetadataResponse) Reset() { @@ -3145,7 +3145,7 @@ func (x *QueryAllDidDocVersionsMetadataResponse) GetVersions() []*Metadata { return nil } -func (x *QueryAllDidDocVersionsMetadataResponse) GetPagination() *query.PageResponse { +func (x *QueryAllDidDocVersionsMetadataResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -3261,9 +3261,9 @@ var file_cheqd_did_v2_query_proto_goTypes = []interface{}{ (*QueryAllDidDocVersionsMetadataRequest)(nil), // 4: cheqd.did.v2.QueryAllDidDocVersionsMetadataRequest (*QueryAllDidDocVersionsMetadataResponse)(nil), // 5: cheqd.did.v2.QueryAllDidDocVersionsMetadataResponse (*DidDocWithMetadata)(nil), // 6: cheqd.did.v2.DidDocWithMetadata - (*query.PageRequest)(nil), // 7: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageRequest)(nil), // 7: cosmos.base.query.v1beta1.PageRequest (*Metadata)(nil), // 8: cheqd.did.v2.Metadata - (*query.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse + (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse } var file_cheqd_did_v2_query_proto_depIdxs = []int32{ 6, // 0: cheqd.did.v2.QueryDidDocResponse.value:type_name -> cheqd.did.v2.DidDocWithMetadata diff --git a/api/cheqd/did/v2/tx.pulsar.go b/api/cheqd/did/v2/tx.pulsar.go index bbe02ca49..6510a1419 100644 --- a/api/cheqd/did/v2/tx.pulsar.go +++ b/api/cheqd/did/v2/tx.pulsar.go @@ -3,11 +3,11 @@ package didv2 import ( fmt "fmt" + _ "github.com/cheqd/cheqd-node/api/v2/amino" + v1beta1 "github.com/cheqd/cheqd-node/api/v2/cosmos/base/v1beta1" + _ "github.com/cheqd/cheqd-node/api/v2/cosmos/msg/v1" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" - types "github.com/cosmos/cosmos-sdk/types" - _ "github.com/cosmos/cosmos-sdk/types/msgservice" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" @@ -7518,7 +7518,7 @@ func (x *fastReflection_MsgDeactivateDidDocResponse) ProtoMethods() *protoiface. var _ protoreflect.List = (*_MsgBurn_2_list)(nil) type _MsgBurn_2_list struct { - list *[]*types.Coin + list *[]*v1beta1.Coin } func (x *_MsgBurn_2_list) Len() int { @@ -7534,18 +7534,18 @@ func (x *_MsgBurn_2_list) Get(i int) protoreflect.Value { func (x *_MsgBurn_2_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*types.Coin) + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) (*x.list)[i] = concreteValue } func (x *_MsgBurn_2_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*types.Coin) + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) *x.list = append(*x.list, concreteValue) } func (x *_MsgBurn_2_list) AppendMutable() protoreflect.Value { - v := new(types.Coin) + v := new(v1beta1.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -7558,7 +7558,7 @@ func (x *_MsgBurn_2_list) Truncate(n int) { } func (x *_MsgBurn_2_list) NewElement() protoreflect.Value { - v := new(types.Coin) + v := new(v1beta1.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -7768,7 +7768,7 @@ func (x *fastReflection_MsgBurn) Mutable(fd protoreflect.FieldDescriptor) protor switch fd.FullName() { case "cheqd.did.v2.MsgBurn.amount": if x.Amount == nil { - x.Amount = []*types.Coin{} + x.Amount = []*v1beta1.Coin{} } value := &_MsgBurn_2_list{list: &x.Amount} return protoreflect.ValueOfList(value) @@ -7790,7 +7790,7 @@ func (x *fastReflection_MsgBurn) NewField(fd protoreflect.FieldDescriptor) proto case "cheqd.did.v2.MsgBurn.from_address": return protoreflect.ValueOfString("") case "cheqd.did.v2.MsgBurn.amount": - list := []*types.Coin{} + list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_MsgBurn_2_list{list: &list}) default: if fd.IsExtension() { @@ -8033,7 +8033,7 @@ func (x *fastReflection_MsgBurn) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = append(x.Amount, &types.Coin{}) + x.Amount = append(x.Amount, &v1beta1.Coin{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -8432,7 +8432,7 @@ func (x *fastReflection_MsgBurnResponse) ProtoMethods() *protoiface.Methods { var _ protoreflect.List = (*_MsgMint_3_list)(nil) type _MsgMint_3_list struct { - list *[]*types.Coin + list *[]*v1beta1.Coin } func (x *_MsgMint_3_list) Len() int { @@ -8448,18 +8448,18 @@ func (x *_MsgMint_3_list) Get(i int) protoreflect.Value { func (x *_MsgMint_3_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*types.Coin) + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) (*x.list)[i] = concreteValue } func (x *_MsgMint_3_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*types.Coin) + concreteValue := valueUnwrapped.Interface().(*v1beta1.Coin) *x.list = append(*x.list, concreteValue) } func (x *_MsgMint_3_list) AppendMutable() protoreflect.Value { - v := new(types.Coin) + v := new(v1beta1.Coin) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -8472,7 +8472,7 @@ func (x *_MsgMint_3_list) Truncate(n int) { } func (x *_MsgMint_3_list) NewElement() protoreflect.Value { - v := new(types.Coin) + v := new(v1beta1.Coin) return protoreflect.ValueOfMessage(v.ProtoReflect()) } @@ -8699,7 +8699,7 @@ func (x *fastReflection_MsgMint) Mutable(fd protoreflect.FieldDescriptor) protor switch fd.FullName() { case "cheqd.did.v2.MsgMint.amount": if x.Amount == nil { - x.Amount = []*types.Coin{} + x.Amount = []*v1beta1.Coin{} } value := &_MsgMint_3_list{list: &x.Amount} return protoreflect.ValueOfList(value) @@ -8725,7 +8725,7 @@ func (x *fastReflection_MsgMint) NewField(fd protoreflect.FieldDescriptor) proto case "cheqd.did.v2.MsgMint.to_address": return protoreflect.ValueOfString("") case "cheqd.did.v2.MsgMint.amount": - list := []*types.Coin{} + list := []*v1beta1.Coin{} return protoreflect.ValueOfList(&_MsgMint_3_list{list: &list}) default: if fd.IsExtension() { @@ -9011,7 +9011,7 @@ func (x *fastReflection_MsgMint) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = append(x.Amount, &types.Coin{}) + x.Amount = append(x.Amount, &v1beta1.Coin{}) if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amount[len(x.Amount)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } @@ -10089,8 +10089,8 @@ type MsgBurn struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` - Amount []*types.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"` + FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` + Amount []*v1beta1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"` } func (x *MsgBurn) Reset() { @@ -10120,7 +10120,7 @@ func (x *MsgBurn) GetFromAddress() string { return "" } -func (x *MsgBurn) GetAmount() []*types.Coin { +func (x *MsgBurn) GetAmount() []*v1beta1.Coin { if x != nil { return x.Amount } @@ -10162,9 +10162,9 @@ type MsgMint struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` - ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` - Amount []*types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` + Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` + ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` + Amount []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"` } func (x *MsgMint) Reset() { @@ -10201,7 +10201,7 @@ func (x *MsgMint) GetToAddress() string { return "" } -func (x *MsgMint) GetAmount() []*types.Coin { +func (x *MsgMint) GetAmount() []*v1beta1.Coin { if x != nil { return x.Amount } @@ -10468,7 +10468,7 @@ var file_cheqd_did_v2_tx_proto_goTypes = []interface{}{ (*VerificationMethod)(nil), // 14: cheqd.did.v2.VerificationMethod (*Service)(nil), // 15: cheqd.did.v2.Service (*DidDocWithMetadata)(nil), // 16: cheqd.did.v2.DidDocWithMetadata - (*types.Coin)(nil), // 17: cosmos.base.v1beta1.Coin + (*v1beta1.Coin)(nil), // 17: cosmos.base.v1beta1.Coin } var file_cheqd_did_v2_tx_proto_depIdxs = []int32{ 4, // 0: cheqd.did.v2.MsgCreateDidDoc.payload:type_name -> cheqd.did.v2.MsgCreateDidDocPayload diff --git a/api/cheqd/resource/v2/fee.pulsar.go b/api/cheqd/resource/v2/fee.pulsar.go index 1c35fba32..5fee9462e 100644 --- a/api/cheqd/resource/v2/fee.pulsar.go +++ b/api/cheqd/resource/v2/fee.pulsar.go @@ -3,9 +3,9 @@ package resourcev2 import ( fmt "fmt" + v1beta1 "github.com/cheqd/cheqd-node/api/v2/cosmos/base/v1beta1" _ "github.com/cosmos/cosmos-proto" runtime "github.com/cosmos/cosmos-proto/runtime" - types "github.com/cosmos/cosmos-sdk/types" _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" @@ -217,11 +217,11 @@ func (x *fastReflection_FeeParams) Get(descriptor protoreflect.FieldDescriptor) func (x *fastReflection_FeeParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { case "cheqd.resource.v2.FeeParams.image": - x.Image = value.Message().Interface().(*types.Coin) + x.Image = value.Message().Interface().(*v1beta1.Coin) case "cheqd.resource.v2.FeeParams.json": - x.Json = value.Message().Interface().(*types.Coin) + x.Json = value.Message().Interface().(*v1beta1.Coin) case "cheqd.resource.v2.FeeParams.default": - x.Default = value.Message().Interface().(*types.Coin) + x.Default = value.Message().Interface().(*v1beta1.Coin) case "cheqd.resource.v2.FeeParams.burn_factor": x.BurnFactor = value.Interface().(string) default: @@ -246,17 +246,17 @@ func (x *fastReflection_FeeParams) Mutable(fd protoreflect.FieldDescriptor) prot switch fd.FullName() { case "cheqd.resource.v2.FeeParams.image": if x.Image == nil { - x.Image = new(types.Coin) + x.Image = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.Image.ProtoReflect()) case "cheqd.resource.v2.FeeParams.json": if x.Json == nil { - x.Json = new(types.Coin) + x.Json = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.Json.ProtoReflect()) case "cheqd.resource.v2.FeeParams.default": if x.Default == nil { - x.Default = new(types.Coin) + x.Default = new(v1beta1.Coin) } return protoreflect.ValueOfMessage(x.Default.ProtoReflect()) case "cheqd.resource.v2.FeeParams.burn_factor": @@ -275,13 +275,13 @@ func (x *fastReflection_FeeParams) Mutable(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_FeeParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { case "cheqd.resource.v2.FeeParams.image": - m := new(types.Coin) + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cheqd.resource.v2.FeeParams.json": - m := new(types.Coin) + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cheqd.resource.v2.FeeParams.default": - m := new(types.Coin) + m := new(v1beta1.Coin) return protoreflect.ValueOfMessage(m.ProtoReflect()) case "cheqd.resource.v2.FeeParams.burn_factor": return protoreflect.ValueOfString("") @@ -527,7 +527,7 @@ func (x *fastReflection_FeeParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Image == nil { - x.Image = &types.Coin{} + x.Image = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Image); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -563,7 +563,7 @@ func (x *fastReflection_FeeParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Json == nil { - x.Json = &types.Coin{} + x.Json = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Json); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -599,7 +599,7 @@ func (x *fastReflection_FeeParams) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Default == nil { - x.Default = &types.Coin{} + x.Default = &v1beta1.Coin{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Default); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -695,15 +695,15 @@ type FeeParams struct { // Fixed fee for creating a resource with media type 'image/*' // // Default: 10 CHEQ or 10000000000ncheq - Image *types.Coin `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + Image *v1beta1.Coin `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // Fixed fee for creating a resource with media type 'application/json' // // Default: 2.5 CHEQ or 2500000000ncheq - Json *types.Coin `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` + Json *v1beta1.Coin `protobuf:"bytes,2,opt,name=json,proto3" json:"json,omitempty"` // Fixed fee for creating a resource with all other media types // // Default: 5 CHEQ or 5000000000ncheq - Default *types.Coin `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"` + Default *v1beta1.Coin `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"` // Percentage of the fixed fee that will be burned // // Default: 0.5 (50%) @@ -730,21 +730,21 @@ func (*FeeParams) Descriptor() ([]byte, []int) { return file_cheqd_resource_v2_fee_proto_rawDescGZIP(), []int{0} } -func (x *FeeParams) GetImage() *types.Coin { +func (x *FeeParams) GetImage() *v1beta1.Coin { if x != nil { return x.Image } return nil } -func (x *FeeParams) GetJson() *types.Coin { +func (x *FeeParams) GetJson() *v1beta1.Coin { if x != nil { return x.Json } return nil } -func (x *FeeParams) GetDefault() *types.Coin { +func (x *FeeParams) GetDefault() *v1beta1.Coin { if x != nil { return x.Default } @@ -816,8 +816,8 @@ func file_cheqd_resource_v2_fee_proto_rawDescGZIP() []byte { var file_cheqd_resource_v2_fee_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_cheqd_resource_v2_fee_proto_goTypes = []interface{}{ - (*FeeParams)(nil), // 0: cheqd.resource.v2.FeeParams - (*types.Coin)(nil), // 1: cosmos.base.v1beta1.Coin + (*FeeParams)(nil), // 0: cheqd.resource.v2.FeeParams + (*v1beta1.Coin)(nil), // 1: cosmos.base.v1beta1.Coin } var file_cheqd_resource_v2_fee_proto_depIdxs = []int32{ 1, // 0: cheqd.resource.v2.FeeParams.image:type_name -> cosmos.base.v1beta1.Coin diff --git a/api/cheqd/resource/v2/query.pulsar.go b/api/cheqd/resource/v2/query.pulsar.go index 85e754317..513bd6db3 100644 --- a/api/cheqd/resource/v2/query.pulsar.go +++ b/api/cheqd/resource/v2/query.pulsar.go @@ -3,8 +3,8 @@ package resourcev2 import ( fmt "fmt" + v1beta1 "github.com/cheqd/cheqd-node/api/v2/cosmos/base/query/v1beta1" runtime "github.com/cosmos/cosmos-proto/runtime" - query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -2027,7 +2027,7 @@ func (x *fastReflection_QueryCollectionResourcesRequest) Set(fd protoreflect.Fie case "cheqd.resource.v2.QueryCollectionResourcesRequest.collection_id": x.CollectionId = value.Interface().(string) case "cheqd.resource.v2.QueryCollectionResourcesRequest.pagination": - x.Pagination = value.Message().Interface().(*query.PageRequest) + x.Pagination = value.Message().Interface().(*v1beta1.PageRequest) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cheqd.resource.v2.QueryCollectionResourcesRequest")) @@ -2050,7 +2050,7 @@ func (x *fastReflection_QueryCollectionResourcesRequest) Mutable(fd protoreflect switch fd.FullName() { case "cheqd.resource.v2.QueryCollectionResourcesRequest.pagination": if x.Pagination == nil { - x.Pagination = new(query.PageRequest) + x.Pagination = new(v1beta1.PageRequest) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) case "cheqd.resource.v2.QueryCollectionResourcesRequest.collection_id": @@ -2071,7 +2071,7 @@ func (x *fastReflection_QueryCollectionResourcesRequest) NewField(fd protoreflec case "cheqd.resource.v2.QueryCollectionResourcesRequest.collection_id": return protoreflect.ValueOfString("") case "cheqd.resource.v2.QueryCollectionResourcesRequest.pagination": - m := new(query.PageRequest) + m := new(v1beta1.PageRequest) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -2311,7 +2311,7 @@ func (x *fastReflection_QueryCollectionResourcesRequest) ProtoMethods() *protoif return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Pagination == nil { - x.Pagination = &query.PageRequest{} + x.Pagination = &v1beta1.PageRequest{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -2582,7 +2582,7 @@ func (x *fastReflection_QueryCollectionResourcesResponse) Set(fd protoreflect.Fi clv := lv.(*_QueryCollectionResourcesResponse_1_list) x.Resources = *clv.list case "cheqd.resource.v2.QueryCollectionResourcesResponse.pagination": - x.Pagination = value.Message().Interface().(*query.PageResponse) + x.Pagination = value.Message().Interface().(*v1beta1.PageResponse) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: cheqd.resource.v2.QueryCollectionResourcesResponse")) @@ -2611,7 +2611,7 @@ func (x *fastReflection_QueryCollectionResourcesResponse) Mutable(fd protoreflec return protoreflect.ValueOfList(value) case "cheqd.resource.v2.QueryCollectionResourcesResponse.pagination": if x.Pagination == nil { - x.Pagination = new(query.PageResponse) + x.Pagination = new(v1beta1.PageResponse) } return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: @@ -2631,7 +2631,7 @@ func (x *fastReflection_QueryCollectionResourcesResponse) NewField(fd protorefle list := []*Metadata{} return protoreflect.ValueOfList(&_QueryCollectionResourcesResponse_1_list{list: &list}) case "cheqd.resource.v2.QueryCollectionResourcesResponse.pagination": - m := new(query.PageResponse) + m := new(v1beta1.PageResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { @@ -2884,7 +2884,7 @@ func (x *fastReflection_QueryCollectionResourcesResponse) ProtoMethods() *protoi return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } if x.Pagination == nil { - x.Pagination = &query.PageResponse{} + x.Pagination = &v1beta1.PageResponse{} } if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err @@ -3132,7 +3132,7 @@ type QueryCollectionResourcesRequest struct { // - wGHEXrZvJxR8vw5P3UWH1j CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` // pagination defines an optional pagination for the request. - Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryCollectionResourcesRequest) Reset() { @@ -3162,7 +3162,7 @@ func (x *QueryCollectionResourcesRequest) GetCollectionId() string { return "" } -func (x *QueryCollectionResourcesRequest) GetPagination() *query.PageRequest { +func (x *QueryCollectionResourcesRequest) GetPagination() *v1beta1.PageRequest { if x != nil { return x.Pagination } @@ -3178,7 +3178,7 @@ type QueryCollectionResourcesResponse struct { // resources is the requested collection of resource metadata Resources []*Metadata `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` // pagination defines the pagination in the response. - Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` + Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (x *QueryCollectionResourcesResponse) Reset() { @@ -3208,7 +3208,7 @@ func (x *QueryCollectionResourcesResponse) GetResources() []*Metadata { return nil } -func (x *QueryCollectionResourcesResponse) GetPagination() *query.PageResponse { +func (x *QueryCollectionResourcesResponse) GetPagination() *v1beta1.PageResponse { if x != nil { return x.Pagination } @@ -3345,8 +3345,8 @@ var file_cheqd_resource_v2_query_proto_goTypes = []interface{}{ (*QueryCollectionResourcesResponse)(nil), // 5: cheqd.resource.v2.QueryCollectionResourcesResponse (*ResourceWithMetadata)(nil), // 6: cheqd.resource.v2.ResourceWithMetadata (*Metadata)(nil), // 7: cheqd.resource.v2.Metadata - (*query.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest - (*query.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse + (*v1beta1.PageRequest)(nil), // 8: cosmos.base.query.v1beta1.PageRequest + (*v1beta1.PageResponse)(nil), // 9: cosmos.base.query.v1beta1.PageResponse } var file_cheqd_resource_v2_query_proto_depIdxs = []int32{ 6, // 0: cheqd.resource.v2.QueryResourceResponse.resource:type_name -> cheqd.resource.v2.ResourceWithMetadata diff --git a/go.mod b/go.mod index c22142472..3a55c7286 100644 --- a/go.mod +++ b/go.mod @@ -209,6 +209,7 @@ require ( ) replace ( + cosmossdk.io/api => cosmossdk.io/api v0.3.1 // Keyring replacement from Cosmos SDK v0.46.8 github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0 diff --git a/proto/buf.gen.pulsar.yaml b/proto/buf.gen.pulsar.yaml index 9050d0c0b..26266da58 100644 --- a/proto/buf.gen.pulsar.yaml +++ b/proto/buf.gen.pulsar.yaml @@ -10,7 +10,6 @@ managed: - buf.build/googleapis/googleapis - buf.build/cosmos/gogo-proto - buf.build/cosmos/cosmos-proto - - buf.build/cosmos/cosmos-sdk plugins: - name: go-pulsar