From 2979172bbc67a7dd71c54a7e7e81befae9163af1 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:49:33 -0400 Subject: [PATCH 1/2] added report forms to drop deals from providers if they misbehave (social consensus) --- proto/canine_chain/storage/providers.proto | 4 + proto/canine_chain/storage/tx.proto | 21 + x/storage/handler.go | 6 + x/storage/keeper/contract_killing.go | 21 + x/storage/keeper/msg_server_report.go | 133 +++ x/storage/keeper/reports.go | 61 + x/storage/keeper/rewards.go | 17 +- x/storage/types/key_providers.go | 14 + x/storage/types/message_attest.go | 2 +- x/storage/types/message_report.go | 113 ++ x/storage/types/providers.pb.go | 286 ++++- x/storage/types/tx.pb.go | 1170 ++++++++++++++++++-- 12 files changed, 1696 insertions(+), 152 deletions(-) create mode 100644 x/storage/keeper/msg_server_report.go create mode 100644 x/storage/keeper/reports.go create mode 100644 x/storage/types/message_report.go diff --git a/proto/canine_chain/storage/providers.proto b/proto/canine_chain/storage/providers.proto index fe58aa96b..8976f8940 100644 --- a/proto/canine_chain/storage/providers.proto +++ b/proto/canine_chain/storage/providers.proto @@ -27,6 +27,10 @@ message AttestationForm { string cid = 2; } +message ReportForm { + repeated Attestation attestations = 1; + string cid = 2; +} message Collateral { string address = 1; diff --git a/proto/canine_chain/storage/tx.proto b/proto/canine_chain/storage/tx.proto index e51b1a075..194eb4dd3 100644 --- a/proto/canine_chain/storage/tx.proto +++ b/proto/canine_chain/storage/tx.proto @@ -23,6 +23,8 @@ service Msg { rpc RemoveProviderClaimer(MsgRemoveClaimer) returns (MsgRemoveClaimerResponse); rpc RequestAttestationForm(MsgRequestAttestationForm) returns (MsgRequestAttestationFormResponse); rpc Attest(MsgAttest) returns (MsgAttestResponse); + rpc RequestReportForm(MsgRequestReportForm) returns (MsgRequestReportFormResponse); + rpc Report(MsgReport) returns (MsgReportResponse); // this line is used by starport scaffolding # proto/tx/rpc @@ -164,3 +166,22 @@ message MsgAttest { } message MsgAttestResponse {} + +message MsgRequestReportForm { + string creator = 1; + string cid = 2; +} + +message MsgRequestReportFormResponse { + repeated string providers = 1; + bool success = 2; + string error = 3; + string cid = 4; +} + +message MsgReport { + string creator = 1; + string cid = 2; +} + +message MsgReportResponse {} diff --git a/x/storage/handler.go b/x/storage/handler.go index a771e2eb7..aeb7d4b1d 100644 --- a/x/storage/handler.go +++ b/x/storage/handler.go @@ -65,6 +65,12 @@ func NewHandler(k keeper.Keeper) sdk.Handler { case *types.MsgAttest: res, err := msgServer.Attest(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgRequestReportForm: + res, err := msgServer.RequestReportForm(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) + case *types.MsgReport: + res, err := msgServer.Report(sdk.WrapSDKContext(ctx), msg) + return sdk.WrapServiceResult(ctx, res, err) default: errMsg := fmt.Sprintf("unrecognized %s message type: %T", types.ModuleName, msg) return nil, sdkerrors.Wrap(sdkerrors.ErrUnknownRequest, errMsg) diff --git a/x/storage/keeper/contract_killing.go b/x/storage/keeper/contract_killing.go index cfe55eb0f..a56a58003 100644 --- a/x/storage/keeper/contract_killing.go +++ b/x/storage/keeper/contract_killing.go @@ -2,6 +2,8 @@ package keeper import ( sdk "github.com/cosmos/cosmos-sdk/types" + sdkerror "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/jackalLabs/canine-chain/v3/x/storage/types" ) func (k Keeper) KillOldContracts(ctx sdk.Context) { @@ -14,3 +16,22 @@ func (k Keeper) KillOldContracts(ctx sdk.Context) { } } } + +func (k Keeper) DropDeal(ctx sdk.Context, deal types.ActiveDeals) error { + intBlock, ok := sdk.NewIntFromString(deal.Endblock) + if !ok { + return sdkerror.Wrapf(sdkerror.ErrInvalidType, "int parse failed for endblock") + } + // Creating new stray file from the burned active deal + strayDeal := types.Strays{ + Cid: deal.Cid, + Fid: deal.Fid, + Signee: deal.Signee, + Filesize: deal.Filesize, + Merkle: deal.Merkle, + End: intBlock.Int64(), + } + k.SetStrays(ctx, strayDeal) + k.RemoveActiveDeals(ctx, deal.Cid) + return nil +} diff --git a/x/storage/keeper/msg_server_report.go b/x/storage/keeper/msg_server_report.go new file mode 100644 index 000000000..66514704e --- /dev/null +++ b/x/storage/keeper/msg_server_report.go @@ -0,0 +1,133 @@ +package keeper + +import ( + "context" + + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" + "github.com/tendermint/tendermint/libs/rand" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/jackalLabs/canine-chain/v3/x/storage/types" +) + +func (k Keeper) Report(ctx sdk.Context, cid string, creator string) error { + form, found := k.GetReportForm(ctx, cid) + if !found { + return sdkerrors.Wrapf(types.ErrAttestInvalid, "cannot find this report") + } + + done := false + + var count int64 + + attestations := form.Attestations + for _, attestation := range attestations { + if attestation.Provider == creator { + attestation.Complete = true + done = true + } + + if attestation.Complete { + count++ + } + } + + if !done { + return sdkerrors.Wrapf(types.ErrAttestInvalid, "you cannot attest to this deal") + } + + if count < k.GetParams(ctx).AttestMinToPass { + form.Attestations = attestations + k.SetReportForm(ctx, form) + return nil + } + + deal, found := k.GetActiveDeals(ctx, cid) + + if !found { + return sdkerrors.Wrapf(types.ErrDealNotFound, "cannot find active deal from form") + } + + k.RemoveReport(ctx, cid) + + return k.DropDeal(ctx, deal) +} + +func (k msgServer) Report(goCtx context.Context, msg *types.MsgReport) (*types.MsgReportResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + + err := k.Keeper.Report(ctx, msg.Cid, msg.Creator) + if err != nil { + return nil, err + } + + return &types.MsgReportResponse{}, nil +} + +func (k Keeper) RequestReport(ctx sdk.Context, cid string) ([]string, error) { + _, found := k.GetActiveDeals(ctx, cid) + if !found { + return nil, sdkerrors.Wrapf(types.ErrDealNotFound, "cannot find active deal for report form") + } + + _, found = k.GetReportForm(ctx, cid) + if found { + return nil, sdkerrors.Wrapf(types.ErrAttestAlreadyExists, "report form already exists") + } + + providers := k.GetActiveProviders(ctx) // get a random list of active providers + params := k.GetParams(ctx) + + if len(providers) < int(params.AttestFormSize) { + return nil, sdkerrors.Wrapf(types.ErrInvalidLengthQuery, "not enough providers online") + } + + rand.Seed(ctx.BlockTime().UnixNano()) + + attestations := make([]*types.Attestation, params.AttestFormSize) + + providerAddresses := make([]string, params.AttestFormSize) + + for i := 0; i < int(params.AttestFormSize); i++ { + p := providers[i] + + providerAddresses[i] = p.Address + + attestations[i] = &types.Attestation{ + Provider: p.Address, + Complete: false, + } + } + + form := types.ReportForm{ + Attestations: attestations, + Cid: cid, + } + + k.SetReportForm(ctx, form) + + return providerAddresses, nil +} + +func (k msgServer) RequestReportForm(goCtx context.Context, msg *types.MsgRequestReportForm) (*types.MsgRequestReportFormResponse, error) { + ctx := sdk.UnwrapSDKContext(goCtx) + cid := msg.Cid + + providerAddresses, err := k.RequestReport(ctx, cid) + + success := true + + errorString := "" + + if err != nil { + success = false + errorString = err.Error() + } + + return &types.MsgRequestReportFormResponse{ + Providers: providerAddresses, + Success: success, + Error: errorString, + Cid: cid, + }, nil +} diff --git a/x/storage/keeper/reports.go b/x/storage/keeper/reports.go new file mode 100644 index 000000000..20fbee792 --- /dev/null +++ b/x/storage/keeper/reports.go @@ -0,0 +1,61 @@ +package keeper + +import ( + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/jackalLabs/canine-chain/v3/x/storage/types" +) + +// SetReportForm sets a specific report in the store from its index +func (k Keeper) SetReportForm(ctx sdk.Context, report types.ReportForm) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ReportKeyPrefix)) + b := k.cdc.MustMarshal(&report) + store.Set(types.ReportKey( + report.Cid, + ), b) +} + +// GetReportForm returns a report from its index +func (k Keeper) GetReportForm( + ctx sdk.Context, + cid string, +) (val types.ReportForm, found bool) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ReportKeyPrefix)) + + b := store.Get(types.ReportKey( + cid, + )) + if b == nil { + return val, false + } + + k.cdc.MustUnmarshal(b, &val) + return val, true +} + +// RemoveReport removes an attestation from the store +func (k Keeper) RemoveReport( + ctx sdk.Context, + cid string, +) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ReportKeyPrefix)) + store.Delete(types.ReportKey( + cid, + )) +} + +// GetAllReport returns all reports +func (k Keeper) GetAllReport(ctx sdk.Context) (list []types.ReportForm) { + store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.ReportKeyPrefix)) + iterator := sdk.KVStorePrefixIterator(store, []byte{}) + + defer iterator.Close() + + for ; iterator.Valid(); iterator.Next() { + var val types.ReportForm + k.cdc.MustUnmarshal(iterator.Value(), &val) + list = append(list, val) + } + + return +} diff --git a/x/storage/keeper/rewards.go b/x/storage/keeper/rewards.go index ba0f225c1..b839611fa 100644 --- a/x/storage/keeper/rewards.go +++ b/x/storage/keeper/rewards.go @@ -94,22 +94,7 @@ func (k Keeper) manageDealReward(ctx sdk.Context, deal types.ActiveDeals, networ provider.BurnedContracts = fmt.Sprintf("%d", curburn.Int64()+1) k.SetProviders(ctx, provider) - intBlock, ok := sdk.NewIntFromString(deal.Endblock) - if !ok { - return sdkerror.Wrapf(sdkerror.ErrInvalidType, "int parse failed for endblock") - } - // Creating new stray file from the burned active deal - strayDeal := types.Strays{ - Cid: deal.Cid, - Fid: deal.Fid, - Signee: deal.Signee, - Filesize: deal.Filesize, - Merkle: deal.Merkle, - End: intBlock.Int64(), - } - k.SetStrays(ctx, strayDeal) - k.RemoveActiveDeals(ctx, deal.Cid) - return nil + return k.DropDeal(ctx, deal) } deal.Proofsmissed = fmt.Sprintf("%d", misses) diff --git a/x/storage/types/key_providers.go b/x/storage/types/key_providers.go index 0416b43d0..0bb31dae9 100644 --- a/x/storage/types/key_providers.go +++ b/x/storage/types/key_providers.go @@ -11,6 +11,7 @@ const ( CollateralKeyPrefix = "Collateral/value/" AttestationKeyPrefix = "Attestation/value/" + ReportKeyPrefix = "Report/value/" ) // ActiveProvidersKey returns the store key to retrieve an Active Provider from the index fields @@ -52,6 +53,19 @@ func AttestationKey( return key } +// ReportKey returns the store key to retrieve a Report from the index fields +func ReportKey( + cid string, +) []byte { + var key []byte + + cidBytes := []byte(cid) + key = append(key, cidBytes...) + key = append(key, []byte("/")...) + + return key +} + // CollateralKey returns the store key to retrieve a Collateral Index from the index fields func CollateralKey( address string, diff --git a/x/storage/types/message_attest.go b/x/storage/types/message_attest.go index 6361309bb..6d793c357 100644 --- a/x/storage/types/message_attest.go +++ b/x/storage/types/message_attest.go @@ -106,7 +106,7 @@ func (msg *MsgAttest) ValidateBasic() error { if err != nil { return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid cid (%s)", err) } - if prefix != "jklc" { + if prefix != CidPrefix { return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid cid prefix (%s)", fmt.Errorf("%s is not a valid prefix here. Expected `jklc`", prefix)) } return nil diff --git a/x/storage/types/message_report.go b/x/storage/types/message_report.go new file mode 100644 index 000000000..27e6bd111 --- /dev/null +++ b/x/storage/types/message_report.go @@ -0,0 +1,113 @@ +package types + +import ( + fmt "fmt" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/bech32" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +const ( + TypeMsgRequestReportForm = "request_report_form" + TypeMsgReport = "report" +) + +var ( + _ sdk.Msg = &MsgRequestReportForm{} + _ sdk.Msg = &MsgReport{} +) + +func NewMsgRequestReportForm(creator string, cid string) *MsgRequestReportForm { + return &MsgRequestReportForm{ + Creator: creator, + Cid: cid, + } +} + +func (msg *MsgRequestReportForm) Route() string { + return RouterKey +} + +func (msg *MsgRequestReportForm) Type() string { + return TypeMsgRequestReportForm +} + +func (msg *MsgRequestReportForm) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgRequestReportForm) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgRequestReportForm) ValidateBasic() error { + prefix, _, err := bech32.DecodeAndConvert(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + if prefix != AddressPrefix { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator prefix (%s)", fmt.Errorf("%s is not a valid prefix here. Expected `jkl`", prefix)) + } + + prefix, _, err = bech32.DecodeAndConvert(msg.Cid) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid cid (%s)", err) + } + if prefix != CidPrefix { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid cid prefix (%s)", fmt.Errorf("%s is not a valid prefix here. Expected `jklc`", prefix)) + } + return nil +} + +func NewMsgReport(creator string, cid string) *MsgReport { + return &MsgReport{ + Creator: creator, + Cid: cid, + } +} + +func (msg *MsgReport) Route() string { + return RouterKey +} + +func (msg *MsgReport) Type() string { + return TypeMsgReport +} + +func (msg *MsgReport) GetSigners() []sdk.AccAddress { + creator, err := sdk.AccAddressFromBech32(msg.Creator) + if err != nil { + panic(err) + } + return []sdk.AccAddress{creator} +} + +func (msg *MsgReport) GetSignBytes() []byte { + bz := ModuleCdc.MustMarshalJSON(msg) + return sdk.MustSortJSON(bz) +} + +func (msg *MsgReport) ValidateBasic() error { + prefix, _, err := bech32.DecodeAndConvert(msg.Creator) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) + } + if prefix != AddressPrefix { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator prefix (%s)", fmt.Errorf("%s is not a valid prefix here. Expected `jkl`", prefix)) + } + + prefix, _, err = bech32.DecodeAndConvert(msg.Cid) + if err != nil { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid cid (%s)", err) + } + if prefix != "jklc" { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidRequest, "invalid cid prefix (%s)", fmt.Errorf("%s is not a valid prefix here. Expected `jklc`", prefix)) + } + return nil +} diff --git a/x/storage/types/providers.pb.go b/x/storage/types/providers.pb.go index c6cdcf1da..e3375c877 100644 --- a/x/storage/types/providers.pb.go +++ b/x/storage/types/providers.pb.go @@ -262,6 +262,58 @@ func (m *AttestationForm) GetCid() string { return "" } +type ReportForm struct { + Attestations []*Attestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations,omitempty"` + Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (m *ReportForm) Reset() { *m = ReportForm{} } +func (m *ReportForm) String() string { return proto.CompactTextString(m) } +func (*ReportForm) ProtoMessage() {} +func (*ReportForm) Descriptor() ([]byte, []int) { + return fileDescriptor_bf0b782528f3c2f0, []int{4} +} +func (m *ReportForm) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReportForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReportForm.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReportForm) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReportForm.Merge(m, src) +} +func (m *ReportForm) XXX_Size() int { + return m.Size() +} +func (m *ReportForm) XXX_DiscardUnknown() { + xxx_messageInfo_ReportForm.DiscardUnknown(m) +} + +var xxx_messageInfo_ReportForm proto.InternalMessageInfo + +func (m *ReportForm) GetAttestations() []*Attestation { + if m != nil { + return m.Attestations + } + return nil +} + +func (m *ReportForm) GetCid() string { + if m != nil { + return m.Cid + } + return "" +} + type Collateral struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` @@ -271,7 +323,7 @@ func (m *Collateral) Reset() { *m = Collateral{} } func (m *Collateral) String() string { return proto.CompactTextString(m) } func (*Collateral) ProtoMessage() {} func (*Collateral) Descriptor() ([]byte, []int) { - return fileDescriptor_bf0b782528f3c2f0, []int{4} + return fileDescriptor_bf0b782528f3c2f0, []int{5} } func (m *Collateral) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -319,6 +371,7 @@ func init() { proto.RegisterType((*ActiveProviders)(nil), "canine_chain.storage.ActiveProviders") proto.RegisterType((*Attestation)(nil), "canine_chain.storage.Attestation") proto.RegisterType((*AttestationForm)(nil), "canine_chain.storage.AttestationForm") + proto.RegisterType((*ReportForm)(nil), "canine_chain.storage.ReportForm") proto.RegisterType((*Collateral)(nil), "canine_chain.storage.Collateral") } @@ -327,33 +380,33 @@ func init() { } var fileDescriptor_bf0b782528f3c2f0 = []byte{ - // 405 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x6e, 0xd3, 0x40, - 0x10, 0x86, 0xe3, 0x18, 0xd2, 0x66, 0x5a, 0x48, 0xb5, 0x42, 0xc8, 0xe2, 0x60, 0x15, 0xc3, 0x21, + // 415 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x41, 0x6f, 0xd3, 0x40, + 0x10, 0x85, 0xe3, 0x18, 0xd2, 0x66, 0x5a, 0x48, 0xb5, 0x42, 0xc8, 0xe2, 0x60, 0x15, 0xc3, 0x21, 0x08, 0xe1, 0x48, 0xe5, 0x8e, 0x54, 0xa2, 0x22, 0x21, 0xf5, 0x80, 0x7c, 0xe4, 0x12, 0x8d, 0xd7, - 0xa3, 0x66, 0x5b, 0x7b, 0xd7, 0xda, 0x9d, 0x54, 0xe4, 0x2d, 0x78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 0x72, 0x8c, 0xac, 0x74, 0x2d, 0x9e, 0xc1, 0xe1, + 0xee, 0x44, 0xbd, 0x73, 0xaf, 0x9b, 0x77, 0x52, 0x57, 0xa6, 0x24, 0xa6, 0xf6, 0x88, 0x0e, 0xb3, + 0xbd, 0x4e, 0xae, 0x61, 0xd2, 0x5b, 0xf3, 0x41, 0xdb, 0x4a, 0x5c, 0xc0, 0x31, 0xfe, 0x46, 0x4d, + 0x70, 0x38, 0x3d, 0x3a, 0x7b, 0x9e, 0xfe, 0xed, 0x82, 0xd2, 0xde, 0x70, 0xf6, 0xc7, 0x98, 0x38, + 0x81, 0x50, 0xaa, 0xc2, 0xdf, 0x49, 0xf3, 0x98, 0x10, 0x40, 0x46, 0x46, 0x5b, 0xbe, 0xdf, 0x98, + 0x77, 0x00, 0x73, 0x5d, 0x96, 0xc8, 0x64, 0xb1, 0xfc, 0x47, 0x67, 0x9e, 0xc2, 0x08, 0x2b, 0xbd, + 0xaa, 0xb9, 0x1d, 0x0e, 0x33, 0xaf, 0xde, 0x5f, 0x7e, 0xdb, 0xc4, 0xc1, 0xdd, 0x26, 0x0e, 0x7e, + 0x6c, 0xe2, 0xe0, 0xeb, 0x36, 0x1e, 0xdc, 0x6d, 0xe3, 0xc1, 0xf7, 0x6d, 0x3c, 0xf8, 0x7c, 0x76, + 0xa5, 0x78, 0xb9, 0xca, 0x53, 0xa9, 0xab, 0xd9, 0x35, 0xca, 0x1b, 0x2c, 0x2f, 0x31, 0x77, 0xb3, + 0xee, 0x8b, 0xdf, 0x74, 0xfd, 0xfe, 0xb2, 0x6f, 0x38, 0xaf, 0x0d, 0xb9, 0x7c, 0xd4, 0xd6, 0xfb, + 0xed, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8a, 0x3a, 0x9d, 0x38, 0x06, 0x03, 0x00, 0x00, } func (m *Providers) Marshal() (dAtA []byte, err error) { @@ -544,6 +597,50 @@ func (m *AttestationForm) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *ReportForm) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReportForm) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReportForm) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Cid) > 0 { + i -= len(m.Cid) + copy(dAtA[i:], m.Cid) + i = encodeVarintProviders(dAtA, i, uint64(len(m.Cid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Attestations) > 0 { + for iNdEx := len(m.Attestations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Attestations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintProviders(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + func (m *Collateral) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -677,6 +774,25 @@ func (m *AttestationForm) Size() (n int) { return n } +func (m *ReportForm) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Attestations) > 0 { + for _, e := range m.Attestations { + l = e.Size() + n += 1 + l + sovProviders(uint64(l)) + } + } + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovProviders(uint64(l)) + } + return n +} + func (m *Collateral) Size() (n int) { if m == nil { return 0 @@ -1273,6 +1389,122 @@ func (m *AttestationForm) Unmarshal(dAtA []byte) error { } return nil } +func (m *ReportForm) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProviders + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReportForm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReportForm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Attestations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProviders + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthProviders + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthProviders + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Attestations = append(m.Attestations, &Attestation{}) + if err := m.Attestations[len(m.Attestations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowProviders + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthProviders + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthProviders + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipProviders(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthProviders + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Collateral) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/storage/types/tx.pb.go b/x/storage/types/tx.pb.go index c9e7ef50d..ef02e1030 100644 --- a/x/storage/types/tx.pb.go +++ b/x/storage/types/tx.pb.go @@ -1595,6 +1595,214 @@ func (m *MsgAttestResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAttestResponse proto.InternalMessageInfo +type MsgRequestReportForm struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (m *MsgRequestReportForm) Reset() { *m = MsgRequestReportForm{} } +func (m *MsgRequestReportForm) String() string { return proto.CompactTextString(m) } +func (*MsgRequestReportForm) ProtoMessage() {} +func (*MsgRequestReportForm) Descriptor() ([]byte, []int) { + return fileDescriptor_2194ba0b2c3d6a97, []int{32} +} +func (m *MsgRequestReportForm) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRequestReportForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRequestReportForm.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRequestReportForm) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestReportForm.Merge(m, src) +} +func (m *MsgRequestReportForm) XXX_Size() int { + return m.Size() +} +func (m *MsgRequestReportForm) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestReportForm.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRequestReportForm proto.InternalMessageInfo + +func (m *MsgRequestReportForm) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgRequestReportForm) GetCid() string { + if m != nil { + return m.Cid + } + return "" +} + +type MsgRequestReportFormResponse struct { + Providers []string `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"` + Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Cid string `protobuf:"bytes,4,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (m *MsgRequestReportFormResponse) Reset() { *m = MsgRequestReportFormResponse{} } +func (m *MsgRequestReportFormResponse) String() string { return proto.CompactTextString(m) } +func (*MsgRequestReportFormResponse) ProtoMessage() {} +func (*MsgRequestReportFormResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2194ba0b2c3d6a97, []int{33} +} +func (m *MsgRequestReportFormResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgRequestReportFormResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgRequestReportFormResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgRequestReportFormResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgRequestReportFormResponse.Merge(m, src) +} +func (m *MsgRequestReportFormResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgRequestReportFormResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgRequestReportFormResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgRequestReportFormResponse proto.InternalMessageInfo + +func (m *MsgRequestReportFormResponse) GetProviders() []string { + if m != nil { + return m.Providers + } + return nil +} + +func (m *MsgRequestReportFormResponse) GetSuccess() bool { + if m != nil { + return m.Success + } + return false +} + +func (m *MsgRequestReportFormResponse) GetError() string { + if m != nil { + return m.Error + } + return "" +} + +func (m *MsgRequestReportFormResponse) GetCid() string { + if m != nil { + return m.Cid + } + return "" +} + +type MsgReport struct { + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (m *MsgReport) Reset() { *m = MsgReport{} } +func (m *MsgReport) String() string { return proto.CompactTextString(m) } +func (*MsgReport) ProtoMessage() {} +func (*MsgReport) Descriptor() ([]byte, []int) { + return fileDescriptor_2194ba0b2c3d6a97, []int{34} +} +func (m *MsgReport) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgReport.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgReport) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgReport.Merge(m, src) +} +func (m *MsgReport) XXX_Size() int { + return m.Size() +} +func (m *MsgReport) XXX_DiscardUnknown() { + xxx_messageInfo_MsgReport.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgReport proto.InternalMessageInfo + +func (m *MsgReport) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *MsgReport) GetCid() string { + if m != nil { + return m.Cid + } + return "" +} + +type MsgReportResponse struct { +} + +func (m *MsgReportResponse) Reset() { *m = MsgReportResponse{} } +func (m *MsgReportResponse) String() string { return proto.CompactTextString(m) } +func (*MsgReportResponse) ProtoMessage() {} +func (*MsgReportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2194ba0b2c3d6a97, []int{35} +} +func (m *MsgReportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *MsgReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_MsgReportResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *MsgReportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgReportResponse.Merge(m, src) +} +func (m *MsgReportResponse) XXX_Size() int { + return m.Size() +} +func (m *MsgReportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgReportResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_MsgReportResponse proto.InternalMessageInfo + func init() { proto.RegisterType((*MsgPostContract)(nil), "canine_chain.storage.MsgPostContract") proto.RegisterType((*MsgPostContractResponse)(nil), "canine_chain.storage.MsgPostContractResponse") @@ -1628,79 +1836,87 @@ func init() { proto.RegisterType((*MsgRequestAttestationFormResponse)(nil), "canine_chain.storage.MsgRequestAttestationFormResponse") proto.RegisterType((*MsgAttest)(nil), "canine_chain.storage.MsgAttest") proto.RegisterType((*MsgAttestResponse)(nil), "canine_chain.storage.MsgAttestResponse") + proto.RegisterType((*MsgRequestReportForm)(nil), "canine_chain.storage.MsgRequestReportForm") + proto.RegisterType((*MsgRequestReportFormResponse)(nil), "canine_chain.storage.MsgRequestReportFormResponse") + proto.RegisterType((*MsgReport)(nil), "canine_chain.storage.MsgReport") + proto.RegisterType((*MsgReportResponse)(nil), "canine_chain.storage.MsgReportResponse") } func init() { proto.RegisterFile("canine_chain/storage/tx.proto", fileDescriptor_2194ba0b2c3d6a97) } var fileDescriptor_2194ba0b2c3d6a97 = []byte{ - // 1064 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0x45, - 0x18, 0xce, 0xda, 0xcd, 0x87, 0x5f, 0x9c, 0x12, 0xb6, 0x49, 0xeb, 0x6c, 0x89, 0x53, 0xb6, 0x82, - 0x16, 0xaa, 0xda, 0xa2, 0x95, 0xe8, 0x05, 0x09, 0xa5, 0x41, 0xa0, 0xd2, 0x1a, 0x82, 0x53, 0x24, - 0x04, 0x88, 0x68, 0xbc, 0x3b, 0x5e, 0x6f, 0x62, 0xef, 0x2c, 0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, 0x10, 0x1b, 0x8d, 0x7d, 0xc6, 0x55, 0x82, 0x3a, 0x16, 0x69, 0x38, 0xbe, 0xab, 0xb2, - 0x13, 0x3f, 0xed, 0xe7, 0xb0, 0x99, 0xd6, 0x8a, 0x73, 0x10, 0x9a, 0x6c, 0xea, 0x38, 0x98, 0x31, - 0xa9, 0xb9, 0xd6, 0x8f, 0x43, 0xd3, 0x86, 0x26, 0xa6, 0x94, 0xd0, 0x1e, 0x66, 0x0c, 0x79, 0x71, - 0x71, 0x32, 0x63, 0xf6, 0x97, 0xb2, 0xce, 0x87, 0xbe, 0x17, 0xcc, 0x51, 0x67, 0x95, 0x54, 0x4d, - 0x27, 0x65, 0x6e, 0xc3, 0x5a, 0x88, 0x66, 0x47, 0x24, 0x70, 0xa2, 0x1a, 0xaf, 0xf5, 0x57, 0x43, - 0x34, 0xfb, 0x2c, 0x70, 0xb0, 0x2a, 0x5b, 0x9a, 0x59, 0x97, 0xed, 0x7d, 0xd8, 0x10, 0x53, 0x98, - 0x1f, 0x50, 0x72, 0xea, 0xbb, 0x98, 0x3e, 0x39, 0xa8, 0x50, 0xbd, 0x0a, 0x35, 0x3f, 0x54, 0xa2, - 0x35, 0x3f, 0xb4, 0x2d, 0x68, 0xe5, 0x57, 0x6b, 0xe6, 0xa7, 0xb0, 0x95, 0x9d, 0x7b, 0x8a, 0x67, - 0x03, 0x14, 0x55, 0xa9, 0x84, 0xbe, 0x05, 0xab, 0x27, 0x11, 0x48, 0x69, 0xc4, 0xa1, 0xbd, 0x0b, - 0x3b, 0x85, 0x64, 0x5a, 0xed, 0x93, 0x7c, 0x26, 0xcf, 0x09, 0x47, 0x63, 0x16, 0x22, 0xa7, 0x4a, - 0x70, 0x13, 0x96, 0x25, 0x44, 0xc9, 0x45, 0x81, 0x6d, 0xc3, 0xad, 0x32, 0x2e, 0xad, 0xf7, 0x29, - 0xac, 0xf7, 0x98, 0xb7, 0xe7, 0xba, 0xfb, 0x63, 0xe4, 0x4f, 0x30, 0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7d, 0x58, 0x51, 0x5e, 0xb5, - 0x5b, 0x5e, 0x2c, 0x09, 0xb0, 0xee, 0x5c, 0x02, 0x88, 0x39, 0x1f, 0x3f, 0xfb, 0xf3, 0xac, 0x6d, - 0xbc, 0x3c, 0x6b, 0x1b, 0x7f, 0x9f, 0xb5, 0x8d, 0x5f, 0xcf, 0xdb, 0x4b, 0x2f, 0xcf, 0xdb, 0x4b, - 0x7f, 0x9d, 0xb7, 0x97, 0xbe, 0x7a, 0xe0, 0xf9, 0x7c, 0x34, 0x1d, 0x74, 0x1c, 0x32, 0xe9, 0x1e, - 0x23, 0xe7, 0x04, 0x8d, 0x9f, 0xa1, 0x01, 0xeb, 0x46, 0xbc, 0xf7, 0xa3, 0xaf, 0xeb, 0x17, 0xc9, - 0xf7, 0xf5, 0x2c, 0xc4, 0x6c, 0xb0, 0x22, 0xbf, 0xb1, 0x1f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, - 0x2c, 0xab, 0x81, 0xde, 0x84, 0x0f, 0x00, 0x00, + // 1122 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0x4d, 0x6f, 0x1b, 0x45, + 0x18, 0xce, 0xc6, 0xcd, 0xd7, 0x8b, 0x13, 0xd2, 0x6d, 0xd2, 0x3a, 0xdb, 0xc6, 0x29, 0x5b, 0x41, + 0x4b, 0xab, 0xda, 0x22, 0x95, 0xe8, 0x05, 0x09, 0x25, 0x41, 0xa0, 0xd2, 0x1a, 0x82, 0x53, 0x24, + 0x04, 0x88, 0x68, 0xbc, 0x3b, 0x5e, 0x6f, 0x62, 0xef, 0x2c, 0x33, 0xe3, 0x50, 0x73, 0x00, 0x09, + 0x4e, 0xdc, 0xf8, 0x0b, 0x1c, 0xf8, 0x2f, 0x1c, 0x7b, 0xe4, 0x88, 0x92, 0x9f, 0xc1, 0x05, 0xed, + 0xec, 0xec, 0xec, 0x87, 0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, 0xf1, 0x8c, 0x07, 0x94, 0x13, 0x5d, 0x58, 0x94, 0xdd, 0x7b, 0xa7, 0x38, + 0x59, 0x02, 0x60, 0xdc, 0xbd, 0x04, 0xa0, 0x38, 0x19, 0x5c, 0x9d, 0xee, 0xe1, 0xf7, 0x2f, 0xf3, + 0x30, 0xc6, 0x1a, 0xbb, 0xd5, 0xb1, 0xc9, 0x40, 0x64, 0xd3, 0xdd, 0x29, 0x39, 0x1d, 0x00, 0x4a, + 0x02, 0x49, 0x77, 0xdf, 0xfd, 0x67, 0x7f, 0x9c, 0x37, 0xb5, 0x97, 0xe7, 0x4d, 0xed, 0xaf, 0xf3, + 0xa6, 0xf6, 0xeb, 0x45, 0x73, 0xee, 0xe5, 0x45, 0x73, 0xee, 0xcf, 0x8b, 0xe6, 0xdc, 0x97, 0xbb, + 0x8e, 0xcb, 0x07, 0xe3, 0x5e, 0xcb, 0x22, 0xa3, 0xf6, 0x09, 0xb2, 0x4e, 0xd1, 0xf0, 0x19, 0xea, + 0xb1, 0x76, 0xc8, 0xfb, 0x30, 0xfc, 0x70, 0xf2, 0x22, 0xfe, 0x74, 0x32, 0xf1, 0x31, 0xeb, 0x2d, + 0x8a, 0xcf, 0x27, 0x8f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0xf6, 0xe0, 0x25, 0x52, 0x5f, 0x11, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1731,6 +1947,8 @@ type MsgClient interface { RemoveProviderClaimer(ctx context.Context, in *MsgRemoveClaimer, opts ...grpc.CallOption) (*MsgRemoveClaimerResponse, error) RequestAttestationForm(ctx context.Context, in *MsgRequestAttestationForm, opts ...grpc.CallOption) (*MsgRequestAttestationFormResponse, error) Attest(ctx context.Context, in *MsgAttest, opts ...grpc.CallOption) (*MsgAttestResponse, error) + RequestReportForm(ctx context.Context, in *MsgRequestReportForm, opts ...grpc.CallOption) (*MsgRequestReportFormResponse, error) + Report(ctx context.Context, in *MsgReport, opts ...grpc.CallOption) (*MsgReportResponse, error) } type msgClient struct { @@ -1885,6 +2103,24 @@ func (c *msgClient) Attest(ctx context.Context, in *MsgAttest, opts ...grpc.Call return out, nil } +func (c *msgClient) RequestReportForm(ctx context.Context, in *MsgRequestReportForm, opts ...grpc.CallOption) (*MsgRequestReportFormResponse, error) { + out := new(MsgRequestReportFormResponse) + err := c.cc.Invoke(ctx, "/canine_chain.storage.Msg/RequestReportForm", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) Report(ctx context.Context, in *MsgReport, opts ...grpc.CallOption) (*MsgReportResponse, error) { + out := new(MsgReportResponse) + err := c.cc.Invoke(ctx, "/canine_chain.storage.Msg/Report", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. type MsgServer interface { PostContract(context.Context, *MsgPostContract) (*MsgPostContractResponse, error) @@ -1903,6 +2139,8 @@ type MsgServer interface { RemoveProviderClaimer(context.Context, *MsgRemoveClaimer) (*MsgRemoveClaimerResponse, error) RequestAttestationForm(context.Context, *MsgRequestAttestationForm) (*MsgRequestAttestationFormResponse, error) Attest(context.Context, *MsgAttest) (*MsgAttestResponse, error) + RequestReportForm(context.Context, *MsgRequestReportForm) (*MsgRequestReportFormResponse, error) + Report(context.Context, *MsgReport) (*MsgReportResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -1957,6 +2195,12 @@ func (*UnimplementedMsgServer) RequestAttestationForm(ctx context.Context, req * func (*UnimplementedMsgServer) Attest(ctx context.Context, req *MsgAttest) (*MsgAttestResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Attest not implemented") } +func (*UnimplementedMsgServer) RequestReportForm(ctx context.Context, req *MsgRequestReportForm) (*MsgRequestReportFormResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RequestReportForm not implemented") +} +func (*UnimplementedMsgServer) Report(ctx context.Context, req *MsgReport) (*MsgReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Report not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -2250,6 +2494,42 @@ func _Msg_Attest_Handler(srv interface{}, ctx context.Context, dec func(interfac return interceptor(ctx, in, info, handler) } +func _Msg_RequestReportForm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgRequestReportForm) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).RequestReportForm(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/canine_chain.storage.Msg/RequestReportForm", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).RequestReportForm(ctx, req.(*MsgRequestReportForm)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgReport) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).Report(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/canine_chain.storage.Msg/Report", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).Report(ctx, req.(*MsgReport)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "canine_chain.storage.Msg", HandlerType: (*MsgServer)(nil), @@ -2318,6 +2598,14 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "Attest", Handler: _Msg_Attest_Handler, }, + { + MethodName: "RequestReportForm", + Handler: _Msg_RequestReportForm_Handler, + }, + { + MethodName: "Report", + Handler: _Msg_Report_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "canine_chain/storage/tx.proto", @@ -3434,57 +3722,210 @@ func (m *MsgAttestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func encodeVarintTx(dAtA []byte, offset int, v uint64) int { - offset -= sovTx(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *MsgRequestReportForm) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - dAtA[offset] = uint8(v) - return base + return dAtA[:n], nil } -func (m *MsgPostContract) Size() (n int) { - if m == nil { - return 0 - } + +func (m *MsgRequestReportForm) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRequestReportForm) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i var l int _ = l - l = len(m.Creator) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Merkle) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Signee) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.Filesize) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Cid) > 0 { + i -= len(m.Cid) + copy(dAtA[i:], m.Cid) + i = encodeVarintTx(dAtA, i, uint64(len(m.Cid))) + i-- + dAtA[i] = 0x12 } - l = len(m.Fid) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa } - return n + return len(dAtA) - i, nil } -func (m *MsgPostContractResponse) Size() (n int) { - if m == nil { - return 0 +func (m *MsgRequestReportFormResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err } - var l int - _ = l - return n + return dAtA[:n], nil } -func (m *MsgPostproof) Size() (n int) { - if m == nil { +func (m *MsgRequestReportFormResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgRequestReportFormResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Cid) > 0 { + i -= len(m.Cid) + copy(dAtA[i:], m.Cid) + i = encodeVarintTx(dAtA, i, uint64(len(m.Cid))) + i-- + dAtA[i] = 0x22 + } + if len(m.Error) > 0 { + i -= len(m.Error) + copy(dAtA[i:], m.Error) + i = encodeVarintTx(dAtA, i, uint64(len(m.Error))) + i-- + dAtA[i] = 0x1a + } + if m.Success { + i-- + if m.Success { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(m.Providers) > 0 { + for iNdEx := len(m.Providers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Providers[iNdEx]) + copy(dAtA[i:], m.Providers[iNdEx]) + i = encodeVarintTx(dAtA, i, uint64(len(m.Providers[iNdEx]))) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *MsgReport) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgReport) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgReport) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Cid) > 0 { + i -= len(m.Cid) + copy(dAtA[i:], m.Cid) + i = encodeVarintTx(dAtA, i, uint64(len(m.Cid))) + i-- + dAtA[i] = 0x12 + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTx(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *MsgReportResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MsgReportResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MsgReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func encodeVarintTx(dAtA []byte, offset int, v uint64) int { + offset -= sovTx(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *MsgPostContract) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Merkle) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Signee) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Filesize) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Fid) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgPostContractResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *MsgPostproof) Size() (n int) { + if m == nil { return 0 } var l int @@ -3940,6 +4381,75 @@ func (m *MsgAttestResponse) Size() (n int) { return n } +func (m *MsgRequestReportForm) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgRequestReportFormResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Providers) > 0 { + for _, s := range m.Providers { + l = len(s) + n += 1 + l + sovTx(uint64(l)) + } + } + if m.Success { + n += 2 + } + l = len(m.Error) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgReport) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovTx(uint64(l)) + } + return n +} + +func (m *MsgReportResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + func sovTx(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -7174,6 +7684,450 @@ func (m *MsgAttestResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *MsgRequestReportForm) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRequestReportForm: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRequestReportForm: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgRequestReportFormResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgRequestReportFormResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgRequestReportFormResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Providers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Providers = append(m.Providers, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Success = bool(v != 0) + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Error = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgReport) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgReport: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgReport: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MsgReportResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: MsgReportResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MsgReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipTx(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTx + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTx(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 From c22740a35c747ee4b19bea3eb81b047284db97d3 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Thu, 22 Jun 2023 15:18:56 -0400 Subject: [PATCH 2/2] added test suite --- proto/canine_chain/storage/query.proto | 28 + x/storage/keeper/grpc_query_report.go | 56 ++ x/storage/keeper/report_test.go | 160 ++++ x/storage/types/query.pb.go | 1197 ++++++++++++++++++++---- x/storage/types/query.pb.gw.go | 184 ++++ 5 files changed, 1449 insertions(+), 176 deletions(-) create mode 100644 x/storage/keeper/grpc_query_report.go create mode 100644 x/storage/keeper/report_test.go diff --git a/proto/canine_chain/storage/query.proto b/proto/canine_chain/storage/query.proto index acfb64196..a6e0504fb 100644 --- a/proto/canine_chain/storage/query.proto +++ b/proto/canine_chain/storage/query.proto @@ -71,6 +71,18 @@ service Query { option (google.api.http).get = "/jackal-dao/canine-chain/storage/attestations"; } + // Queries a Report by index. + rpc Reports(QueryReportRequest) returns (QueryReportResponse) { + option (google.api.http).get = + "/jackal-dao/canine-chain/storage/reports/{cid}"; + } + + // Queries a list of Attestation items. + rpc ReportsAll(QueryAllReportRequest) + returns (QueryAllReportResponse) { + option (google.api.http).get = "/jackal-dao/canine-chain/storage/reports"; + } + // Queries a list of Freespace items. rpc Freespace(QueryFreespaceRequest) returns (QueryFreespaceResponse) { option (google.api.http).get = @@ -233,6 +245,22 @@ message QueryAllAttestationsResponse { cosmos.base.query.v1beta1.PageResponse pagination = 2; } + +message QueryReportRequest { string cid = 1; } + +message QueryReportResponse { + ReportForm report = 1 [ (gogoproto.nullable) = false ]; +} + +message QueryAllReportRequest { + cosmos.base.query.v1beta1.PageRequest pagination = 1; +} + +message QueryAllReportResponse { + repeated ReportForm reports = 1 [ (gogoproto.nullable) = false ]; + cosmos.base.query.v1beta1.PageResponse pagination = 2; +} + message QueryFreespaceRequest { string address = 1; } message QueryStoreCountRequest { string address = 1; } diff --git a/x/storage/keeper/grpc_query_report.go b/x/storage/keeper/grpc_query_report.go new file mode 100644 index 000000000..f4cf88875 --- /dev/null +++ b/x/storage/keeper/grpc_query_report.go @@ -0,0 +1,56 @@ +package keeper + +import ( + "context" + + "github.com/cosmos/cosmos-sdk/store/prefix" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/query" + "github.com/jackalLabs/canine-chain/v3/x/storage/types" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +func (k Keeper) ReportsAll(c context.Context, req *types.QueryAllReportRequest) (*types.QueryAllReportResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + + var reports []types.ReportForm + ctx := sdk.UnwrapSDKContext(c) + + store := ctx.KVStore(k.storeKey) + reportStore := prefix.NewStore(store, types.KeyPrefix(types.ReportKeyPrefix)) + + pageRes, err := query.Paginate(reportStore, req.Pagination, func(key []byte, value []byte) error { + var providers types.ReportForm + if err := k.cdc.Unmarshal(value, &providers); err != nil { + return err + } + + reports = append(reports, providers) + return nil + }) + if err != nil { + return nil, status.Error(codes.Internal, err.Error()) + } + + return &types.QueryAllReportResponse{Reports: reports, Pagination: pageRes}, nil +} + +func (k Keeper) Reports(c context.Context, req *types.QueryReportRequest) (*types.QueryReportResponse, error) { + if req == nil { + return nil, status.Error(codes.InvalidArgument, "invalid request") + } + ctx := sdk.UnwrapSDKContext(c) + + val, found := k.GetReportForm( + ctx, + req.Cid, + ) + if !found { + return nil, status.Error(codes.NotFound, "not found") + } + + return &types.QueryReportResponse{Report: val}, nil +} diff --git a/x/storage/keeper/report_test.go b/x/storage/keeper/report_test.go new file mode 100644 index 000000000..bac9aba11 --- /dev/null +++ b/x/storage/keeper/report_test.go @@ -0,0 +1,160 @@ +package keeper_test + +import ( + "fmt" + + "github.com/jackalLabs/canine-chain/v3/testutil" + "github.com/jackalLabs/canine-chain/v3/x/storage/types" +) + +// testing attestations.go file +func (suite *KeeperTestSuite) TestSetReportForm() { + suite.SetupSuite() + + var att []*types.Attestation + report := types.ReportForm{ + Attestations: att, + Cid: cid, + } + + suite.storageKeeper.SetReportForm(suite.ctx, report) + + reportRequest := types.QueryReportRequest{ + Cid: cid, + } + + res, err := suite.queryClient.Reports(suite.ctx.Context(), &reportRequest) + suite.Require().NoError(err) + suite.Require().Equal(report.Cid, res.Report.Cid) + suite.Require().Equal(report.Attestations, res.Report.Attestations) +} + +func (suite *KeeperTestSuite) TestGetReportForm() { + suite.SetupSuite() + + var att []*types.Attestation + report := types.ReportForm{ + Attestations: att, + Cid: cid, + } + + suite.storageKeeper.SetReportForm(suite.ctx, report) + + foundReport, found := suite.storageKeeper.GetReportForm(suite.ctx, cid) + suite.Require().Equal(found, true) + suite.Require().Equal(foundReport.Cid, report.Cid) + suite.Require().Equal(foundReport.Attestations, report.Attestations) +} + +func (suite *KeeperTestSuite) TestGetAllReportForm() { + suite.SetupSuite() + + report := types.ReportForm{ + Attestations: []*types.Attestation{}, + Cid: cid, + } + + report2 := types.ReportForm{ + Attestations: []*types.Attestation{}, + Cid: "jklc1321", + } + + allReportFormsBefore := suite.storageKeeper.GetAllReport(suite.ctx) + suite.Require().Equal(0, len(allReportFormsBefore)) + + suite.storageKeeper.SetReportForm(suite.ctx, report) + suite.storageKeeper.SetReportForm(suite.ctx, report2) + + allReportForm := suite.storageKeeper.GetAllReport(suite.ctx) + suite.Require().Equal(2, len(allReportForm)) +} + +func (suite *KeeperTestSuite) TestRemoveReportForm() { + suite.SetupSuite() + + report := types.ReportForm{ + Attestations: []*types.Attestation{}, + Cid: cid, + } + suite.storageKeeper.SetReportForm(suite.ctx, report) + + suite.storageKeeper.RemoveReport(suite.ctx, cid) + + foundReport, found := suite.storageKeeper.GetReportForm(suite.ctx, cid) + suite.Require().Equal(found, false) + + var atts []*types.Attestation + ghostReport := types.ReportForm{ + Attestations: atts, + Cid: "", + } + + suite.Require().Equal(foundReport, ghostReport) +} + +func (suite *KeeperTestSuite) TestMakeReport() { + suite.SetupSuite() + params := suite.storageKeeper.GetParams(suite.ctx) + + addresses, err := testutil.CreateTestAddresses("jkl", 50) + suite.NoError(err) + + for _, address := range addresses { + suite.storageKeeper.SetActiveProviders(suite.ctx, types.ActiveProviders{ + Address: address, + }) + } + + deal := types.ActiveDeals{ + Cid: cid, + Signee: "", + Provider: addresses[10], + Startblock: "", + Endblock: "0", + Filesize: "", + Proofverified: "false", + Proofsmissed: "", + Blocktoprove: "", + Creator: "", + Merkle: "", + Fid: "", + } + + suite.storageKeeper.SetActiveDeals(suite.ctx, deal) // creating storage deal + + _, err = suite.storageKeeper.RequestReport(suite.ctx, cid) + suite.NoError(err) + + form, found := suite.storageKeeper.GetReportForm(suite.ctx, cid) + suite.Equal(true, found) + + for _, attestation := range form.Attestations { + fmt.Printf("%s %t\n", attestation.Provider, attestation.Complete) + } + + _ = form + allReportForm := suite.storageKeeper.GetAllReport(suite.ctx) + suite.Require().Equal(1, len(allReportForm)) + + d, found := suite.storageKeeper.GetActiveDeals(suite.ctx, cid) + suite.Equal(true, found) + suite.Equal("false", d.Proofverified) + + for i, attestation := range form.Attestations { + err := suite.storageKeeper.Report(suite.ctx, cid, attestation.Provider) + if i >= int(params.AttestMinToPass) { + suite.Require().Error(err) + } else { + suite.Require().NoError(err) + } + } + + _, found = suite.storageKeeper.GetReportForm(suite.ctx, cid) + suite.Equal(false, found) + + _, found = suite.storageKeeper.GetActiveDeals(suite.ctx, cid) + suite.Equal(false, found) + + _, found = suite.storageKeeper.GetStrays(suite.ctx, cid) + suite.Equal(true, found) +} diff --git a/x/storage/types/query.pb.go b/x/storage/types/query.pb.go index f2660ff12..2e8f7e75c 100644 --- a/x/storage/types/query.pb.go +++ b/x/storage/types/query.pb.go @@ -850,6 +850,190 @@ func (m *QueryAllAttestationsResponse) GetPagination() *query.PageResponse { return nil } +type QueryReportRequest struct { + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` +} + +func (m *QueryReportRequest) Reset() { *m = QueryReportRequest{} } +func (m *QueryReportRequest) String() string { return proto.CompactTextString(m) } +func (*QueryReportRequest) ProtoMessage() {} +func (*QueryReportRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9fe03bff51a37284, []int{18} +} +func (m *QueryReportRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryReportRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryReportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryReportRequest.Merge(m, src) +} +func (m *QueryReportRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryReportRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryReportRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryReportRequest proto.InternalMessageInfo + +func (m *QueryReportRequest) GetCid() string { + if m != nil { + return m.Cid + } + return "" +} + +type QueryReportResponse struct { + Report ReportForm `protobuf:"bytes,1,opt,name=report,proto3" json:"report"` +} + +func (m *QueryReportResponse) Reset() { *m = QueryReportResponse{} } +func (m *QueryReportResponse) String() string { return proto.CompactTextString(m) } +func (*QueryReportResponse) ProtoMessage() {} +func (*QueryReportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9fe03bff51a37284, []int{19} +} +func (m *QueryReportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryReportResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryReportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryReportResponse.Merge(m, src) +} +func (m *QueryReportResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryReportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryReportResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryReportResponse proto.InternalMessageInfo + +func (m *QueryReportResponse) GetReport() ReportForm { + if m != nil { + return m.Report + } + return ReportForm{} +} + +type QueryAllReportRequest struct { + Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllReportRequest) Reset() { *m = QueryAllReportRequest{} } +func (m *QueryAllReportRequest) String() string { return proto.CompactTextString(m) } +func (*QueryAllReportRequest) ProtoMessage() {} +func (*QueryAllReportRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_9fe03bff51a37284, []int{20} +} +func (m *QueryAllReportRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllReportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllReportRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllReportRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllReportRequest.Merge(m, src) +} +func (m *QueryAllReportRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryAllReportRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllReportRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllReportRequest proto.InternalMessageInfo + +func (m *QueryAllReportRequest) GetPagination() *query.PageRequest { + if m != nil { + return m.Pagination + } + return nil +} + +type QueryAllReportResponse struct { + Reports []ReportForm `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports"` + Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (m *QueryAllReportResponse) Reset() { *m = QueryAllReportResponse{} } +func (m *QueryAllReportResponse) String() string { return proto.CompactTextString(m) } +func (*QueryAllReportResponse) ProtoMessage() {} +func (*QueryAllReportResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_9fe03bff51a37284, []int{21} +} +func (m *QueryAllReportResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryAllReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryAllReportResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryAllReportResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryAllReportResponse.Merge(m, src) +} +func (m *QueryAllReportResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryAllReportResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryAllReportResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryAllReportResponse proto.InternalMessageInfo + +func (m *QueryAllReportResponse) GetReports() []ReportForm { + if m != nil { + return m.Reports + } + return nil +} + +func (m *QueryAllReportResponse) GetPagination() *query.PageResponse { + if m != nil { + return m.Pagination + } + return nil +} + type QueryFreespaceRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } @@ -858,7 +1042,7 @@ func (m *QueryFreespaceRequest) Reset() { *m = QueryFreespaceRequest{} } func (m *QueryFreespaceRequest) String() string { return proto.CompactTextString(m) } func (*QueryFreespaceRequest) ProtoMessage() {} func (*QueryFreespaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{18} + return fileDescriptor_9fe03bff51a37284, []int{22} } func (m *QueryFreespaceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -902,7 +1086,7 @@ func (m *QueryStoreCountRequest) Reset() { *m = QueryStoreCountRequest{} func (m *QueryStoreCountRequest) String() string { return proto.CompactTextString(m) } func (*QueryStoreCountRequest) ProtoMessage() {} func (*QueryStoreCountRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{19} + return fileDescriptor_9fe03bff51a37284, []int{23} } func (m *QueryStoreCountRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -946,7 +1130,7 @@ func (m *QueryFreespaceResponse) Reset() { *m = QueryFreespaceResponse{} func (m *QueryFreespaceResponse) String() string { return proto.CompactTextString(m) } func (*QueryFreespaceResponse) ProtoMessage() {} func (*QueryFreespaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{20} + return fileDescriptor_9fe03bff51a37284, []int{24} } func (m *QueryFreespaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -990,7 +1174,7 @@ func (m *QueryStoreCountResponse) Reset() { *m = QueryStoreCountResponse func (m *QueryStoreCountResponse) String() string { return proto.CompactTextString(m) } func (*QueryStoreCountResponse) ProtoMessage() {} func (*QueryStoreCountResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{21} + return fileDescriptor_9fe03bff51a37284, []int{25} } func (m *QueryStoreCountResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1034,7 +1218,7 @@ func (m *QueryFindFileRequest) Reset() { *m = QueryFindFileRequest{} } func (m *QueryFindFileRequest) String() string { return proto.CompactTextString(m) } func (*QueryFindFileRequest) ProtoMessage() {} func (*QueryFindFileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{22} + return fileDescriptor_9fe03bff51a37284, []int{26} } func (m *QueryFindFileRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1078,7 +1262,7 @@ func (m *QueryFindFileResponse) Reset() { *m = QueryFindFileResponse{} } func (m *QueryFindFileResponse) String() string { return proto.CompactTextString(m) } func (*QueryFindFileResponse) ProtoMessage() {} func (*QueryFindFileResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{23} + return fileDescriptor_9fe03bff51a37284, []int{27} } func (m *QueryFindFileResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1122,7 +1306,7 @@ func (m *QueryStrayRequest) Reset() { *m = QueryStrayRequest{} } func (m *QueryStrayRequest) String() string { return proto.CompactTextString(m) } func (*QueryStrayRequest) ProtoMessage() {} func (*QueryStrayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{24} + return fileDescriptor_9fe03bff51a37284, []int{28} } func (m *QueryStrayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1166,7 +1350,7 @@ func (m *QueryStrayResponse) Reset() { *m = QueryStrayResponse{} } func (m *QueryStrayResponse) String() string { return proto.CompactTextString(m) } func (*QueryStrayResponse) ProtoMessage() {} func (*QueryStrayResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{25} + return fileDescriptor_9fe03bff51a37284, []int{29} } func (m *QueryStrayResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1210,7 +1394,7 @@ func (m *QueryAllStraysRequest) Reset() { *m = QueryAllStraysRequest{} } func (m *QueryAllStraysRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllStraysRequest) ProtoMessage() {} func (*QueryAllStraysRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{26} + return fileDescriptor_9fe03bff51a37284, []int{30} } func (m *QueryAllStraysRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1255,7 +1439,7 @@ func (m *QueryAllStraysResponse) Reset() { *m = QueryAllStraysResponse{} func (m *QueryAllStraysResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllStraysResponse) ProtoMessage() {} func (*QueryAllStraysResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{27} + return fileDescriptor_9fe03bff51a37284, []int{31} } func (m *QueryAllStraysResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1306,7 +1490,7 @@ func (m *QueryClientFreeSpaceRequest) Reset() { *m = QueryClientFreeSpac func (m *QueryClientFreeSpaceRequest) String() string { return proto.CompactTextString(m) } func (*QueryClientFreeSpaceRequest) ProtoMessage() {} func (*QueryClientFreeSpaceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{28} + return fileDescriptor_9fe03bff51a37284, []int{32} } func (m *QueryClientFreeSpaceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1350,7 +1534,7 @@ func (m *QueryClientFreeSpaceResponse) Reset() { *m = QueryClientFreeSpa func (m *QueryClientFreeSpaceResponse) String() string { return proto.CompactTextString(m) } func (*QueryClientFreeSpaceResponse) ProtoMessage() {} func (*QueryClientFreeSpaceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{29} + return fileDescriptor_9fe03bff51a37284, []int{33} } func (m *QueryClientFreeSpaceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1394,7 +1578,7 @@ func (m *QueryFidCidRequest) Reset() { *m = QueryFidCidRequest{} } func (m *QueryFidCidRequest) String() string { return proto.CompactTextString(m) } func (*QueryFidCidRequest) ProtoMessage() {} func (*QueryFidCidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{30} + return fileDescriptor_9fe03bff51a37284, []int{34} } func (m *QueryFidCidRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1438,7 +1622,7 @@ func (m *QueryFidCidResponse) Reset() { *m = QueryFidCidResponse{} } func (m *QueryFidCidResponse) String() string { return proto.CompactTextString(m) } func (*QueryFidCidResponse) ProtoMessage() {} func (*QueryFidCidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{31} + return fileDescriptor_9fe03bff51a37284, []int{35} } func (m *QueryFidCidResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1482,7 +1666,7 @@ func (m *QueryAllFidCidRequest) Reset() { *m = QueryAllFidCidRequest{} } func (m *QueryAllFidCidRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllFidCidRequest) ProtoMessage() {} func (*QueryAllFidCidRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{32} + return fileDescriptor_9fe03bff51a37284, []int{36} } func (m *QueryAllFidCidRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1527,7 +1711,7 @@ func (m *QueryAllFidCidResponse) Reset() { *m = QueryAllFidCidResponse{} func (m *QueryAllFidCidResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllFidCidResponse) ProtoMessage() {} func (*QueryAllFidCidResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{33} + return fileDescriptor_9fe03bff51a37284, []int{37} } func (m *QueryAllFidCidResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1578,7 +1762,7 @@ func (m *QueryPayDataRequest) Reset() { *m = QueryPayDataRequest{} } func (m *QueryPayDataRequest) String() string { return proto.CompactTextString(m) } func (*QueryPayDataRequest) ProtoMessage() {} func (*QueryPayDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{34} + return fileDescriptor_9fe03bff51a37284, []int{38} } func (m *QueryPayDataRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1623,7 +1807,7 @@ func (m *QueryPayDataResponse) Reset() { *m = QueryPayDataResponse{} } func (m *QueryPayDataResponse) String() string { return proto.CompactTextString(m) } func (*QueryPayDataResponse) ProtoMessage() {} func (*QueryPayDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{35} + return fileDescriptor_9fe03bff51a37284, []int{39} } func (m *QueryPayDataResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1674,7 +1858,7 @@ func (m *QueryStoragePaymentInfoRequest) Reset() { *m = QueryStoragePaym func (m *QueryStoragePaymentInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryStoragePaymentInfoRequest) ProtoMessage() {} func (*QueryStoragePaymentInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{36} + return fileDescriptor_9fe03bff51a37284, []int{40} } func (m *QueryStoragePaymentInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1718,7 +1902,7 @@ func (m *QueryStoragePaymentInfoResponse) Reset() { *m = QueryStoragePay func (m *QueryStoragePaymentInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryStoragePaymentInfoResponse) ProtoMessage() {} func (*QueryStoragePaymentInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{37} + return fileDescriptor_9fe03bff51a37284, []int{41} } func (m *QueryStoragePaymentInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1762,7 +1946,7 @@ func (m *QueryAllStoragePaymentInfoRequest) Reset() { *m = QueryAllStora func (m *QueryAllStoragePaymentInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryAllStoragePaymentInfoRequest) ProtoMessage() {} func (*QueryAllStoragePaymentInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{38} + return fileDescriptor_9fe03bff51a37284, []int{42} } func (m *QueryAllStoragePaymentInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1807,7 +1991,7 @@ func (m *QueryAllStoragePaymentInfoResponse) Reset() { *m = QueryAllStor func (m *QueryAllStoragePaymentInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryAllStoragePaymentInfoResponse) ProtoMessage() {} func (*QueryAllStoragePaymentInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{39} + return fileDescriptor_9fe03bff51a37284, []int{43} } func (m *QueryAllStoragePaymentInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1859,7 +2043,7 @@ func (m *QueryFileUploadCheckRequest) Reset() { *m = QueryFileUploadChec func (m *QueryFileUploadCheckRequest) String() string { return proto.CompactTextString(m) } func (*QueryFileUploadCheckRequest) ProtoMessage() {} func (*QueryFileUploadCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{40} + return fileDescriptor_9fe03bff51a37284, []int{44} } func (m *QueryFileUploadCheckRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1910,7 +2094,7 @@ func (m *QueryFileUploadCheckResponse) Reset() { *m = QueryFileUploadChe func (m *QueryFileUploadCheckResponse) String() string { return proto.CompactTextString(m) } func (*QueryFileUploadCheckResponse) ProtoMessage() {} func (*QueryFileUploadCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{41} + return fileDescriptor_9fe03bff51a37284, []int{45} } func (m *QueryFileUploadCheckResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1955,7 +2139,7 @@ func (m *QueryPriceCheckRequest) Reset() { *m = QueryPriceCheckRequest{} func (m *QueryPriceCheckRequest) String() string { return proto.CompactTextString(m) } func (*QueryPriceCheckRequest) ProtoMessage() {} func (*QueryPriceCheckRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{42} + return fileDescriptor_9fe03bff51a37284, []int{46} } func (m *QueryPriceCheckRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2006,7 +2190,7 @@ func (m *QueryPriceCheckResponse) Reset() { *m = QueryPriceCheckResponse func (m *QueryPriceCheckResponse) String() string { return proto.CompactTextString(m) } func (*QueryPriceCheckResponse) ProtoMessage() {} func (*QueryPriceCheckResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{43} + return fileDescriptor_9fe03bff51a37284, []int{47} } func (m *QueryPriceCheckResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2049,7 +2233,7 @@ func (m *QueryActiveProvidersRequest) Reset() { *m = QueryActiveProvider func (m *QueryActiveProvidersRequest) String() string { return proto.CompactTextString(m) } func (*QueryActiveProvidersRequest) ProtoMessage() {} func (*QueryActiveProvidersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{44} + return fileDescriptor_9fe03bff51a37284, []int{48} } func (m *QueryActiveProvidersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2086,7 +2270,7 @@ func (m *QueryActiveProvidersResponse) Reset() { *m = QueryActiveProvide func (m *QueryActiveProvidersResponse) String() string { return proto.CompactTextString(m) } func (*QueryActiveProvidersResponse) ProtoMessage() {} func (*QueryActiveProvidersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{45} + return fileDescriptor_9fe03bff51a37284, []int{49} } func (m *QueryActiveProvidersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2129,7 +2313,7 @@ func (m *QueryStorageStatsRequest) Reset() { *m = QueryStorageStatsReque func (m *QueryStorageStatsRequest) String() string { return proto.CompactTextString(m) } func (*QueryStorageStatsRequest) ProtoMessage() {} func (*QueryStorageStatsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{46} + return fileDescriptor_9fe03bff51a37284, []int{50} } func (m *QueryStorageStatsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2169,7 +2353,7 @@ func (m *QueryStorageStatsResponse) Reset() { *m = QueryStorageStatsResp func (m *QueryStorageStatsResponse) String() string { return proto.CompactTextString(m) } func (*QueryStorageStatsResponse) ProtoMessage() {} func (*QueryStorageStatsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9fe03bff51a37284, []int{47} + return fileDescriptor_9fe03bff51a37284, []int{51} } func (m *QueryStorageStatsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2238,6 +2422,10 @@ func init() { proto.RegisterType((*QueryAttestationResponse)(nil), "canine_chain.storage.QueryAttestationResponse") proto.RegisterType((*QueryAllAttestationsRequest)(nil), "canine_chain.storage.QueryAllAttestationsRequest") proto.RegisterType((*QueryAllAttestationsResponse)(nil), "canine_chain.storage.QueryAllAttestationsResponse") + proto.RegisterType((*QueryReportRequest)(nil), "canine_chain.storage.QueryReportRequest") + proto.RegisterType((*QueryReportResponse)(nil), "canine_chain.storage.QueryReportResponse") + proto.RegisterType((*QueryAllReportRequest)(nil), "canine_chain.storage.QueryAllReportRequest") + proto.RegisterType((*QueryAllReportResponse)(nil), "canine_chain.storage.QueryAllReportResponse") proto.RegisterType((*QueryFreespaceRequest)(nil), "canine_chain.storage.QueryFreespaceRequest") proto.RegisterType((*QueryStoreCountRequest)(nil), "canine_chain.storage.QueryStoreCountRequest") proto.RegisterType((*QueryFreespaceResponse)(nil), "canine_chain.storage.QueryFreespaceResponse") @@ -2273,128 +2461,135 @@ func init() { func init() { proto.RegisterFile("canine_chain/storage/query.proto", fileDescriptor_9fe03bff51a37284) } var fileDescriptor_9fe03bff51a37284 = []byte{ - // 1936 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0xcf, 0x6f, 0xdc, 0x4e, - 0x15, 0x8f, 0xbb, 0xf9, 0xe6, 0xdb, 0x9d, 0x84, 0x6f, 0x61, 0x48, 0x21, 0x98, 0x90, 0x1f, 0x16, - 0x69, 0xd2, 0x34, 0x59, 0x27, 0xdb, 0xf4, 0x57, 0x5a, 0xa9, 0x24, 0xa9, 0x12, 0x5a, 0xb5, 0x22, - 0xdd, 0xa8, 0x17, 0x84, 0xb4, 0x4c, 0xec, 0xd9, 0x8d, 0xc9, 0xc6, 0xde, 0xda, 0xde, 0x88, 0x55, - 0xd4, 0x0b, 0xdc, 0x11, 0x02, 0x21, 0xb8, 0xb4, 0x07, 0x7e, 0xa8, 0xaa, 0x84, 0x84, 0x54, 0x38, - 0x70, 0xe1, 0x00, 0x12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9, - 0x90, 0x1c, 0x7a, 0xbd, 0x7b, 0xfe, 0x30, 0xda, 0x95, 0xcd, 0x1d, 0x0e, 0xc7, 0xd8, 0xbf, 0x38, - 0x5c, 0xfd, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5a, 0xbc, 0xfa, 0xb4, 0x84, 0x22, 0x00, 0x00, + // 2037 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x5a, 0xcd, 0x8f, 0x1c, 0x47, + 0x15, 0x77, 0x79, 0x9c, 0xb5, 0xe7, 0xed, 0x92, 0x40, 0xb1, 0x01, 0x33, 0x98, 0xf5, 0xba, 0x85, + 0xed, 0xcd, 0xda, 0x3b, 0xbd, 0xbb, 0xb6, 0xe3, 0xc4, 0x89, 0x48, 0xec, 0xb5, 0xd6, 0x38, 0x72, + 0xc4, 0x66, 0x2c, 0x5f, 0x10, 0xd2, 0x50, 0xdb, 0x5d, 0x33, 0x6e, 0x3c, 0xdb, 0x3d, 0xe9, 0xee, + 0x5d, 0xb1, 0x5a, 0xf9, 0x02, 0x77, 0x84, 0x40, 0x7c, 0x1d, 0x92, 0x03, 0x01, 0x45, 0x11, 0x48, + 0x48, 0x81, 0x03, 0x17, 0x0e, 0x20, 0x21, 0xe5, 0x46, 0x24, 0x2e, 0x88, 0x43, 0x84, 0x6c, 0xfe, + 0x10, 0xd4, 0x55, 0xaf, 0xba, 0xab, 0xa7, 0x7b, 0xaa, 0xbb, 0xad, 0xe1, 0xb4, 0x53, 0xd5, 0xef, + 0x55, 0xfd, 0xde, 0x67, 0x55, 0xfd, 0xb4, 0xb0, 0xec, 0x30, 0xdf, 0xf3, 0x79, 0xdf, 0x79, 0xc8, + 0x3c, 0xdf, 0x8e, 0xe2, 0x20, 0x64, 0x43, 0x6e, 0xbf, 0xbb, 0xcf, 0xc3, 0xc3, 0xee, 0x38, 0x0c, + 0xe2, 0x80, 0x2e,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69, 0xd0, 0x96, 0x15, 0x5f, 0x98, 0x5c, + 0xa6, 0xa3, 0x5b, 0xf7, 0x3e, 0x79, 0xb2, 0x44, 0x3e, 0x7d, 0xb2, 0x44, 0xfe, 0xf3, 0x64, 0x89, + 0xfc, 0xf8, 0xe9, 0xd2, 0xb1, 0x4f, 0x9f, 0x2e, 0x1d, 0xfb, 0xd7, 0xd3, 0xa5, 0x63, 0xdf, 0xde, + 0xd4, 0xc8, 0x19, 0xb9, 0xe6, 0x3d, 0xb6, 0x1b, 0xe5, 0xd7, 0xfc, 0x7e, 0xba, 0xaa, 0x20, 0x6b, + 0x76, 0xe7, 0xc4, 0x7f, 0xe7, 0x5c, 0xf9, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7e, 0x97, 0x20, + 0x27, 0x3f, 0x25, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2427,6 +2622,10 @@ type QueryClient interface { Attestation(ctx context.Context, in *QueryAttestationRequest, opts ...grpc.CallOption) (*QueryAttestationResponse, error) // Queries a list of Attestation items. AttestationsAll(ctx context.Context, in *QueryAllAttestationsRequest, opts ...grpc.CallOption) (*QueryAllAttestationsResponse, error) + // Queries a Report by index. + Reports(ctx context.Context, in *QueryReportRequest, opts ...grpc.CallOption) (*QueryReportResponse, error) + // Queries a list of Attestation items. + ReportsAll(ctx context.Context, in *QueryAllReportRequest, opts ...grpc.CallOption) (*QueryAllReportResponse, error) // Queries a list of Freespace items. Freespace(ctx context.Context, in *QueryFreespaceRequest, opts ...grpc.CallOption) (*QueryFreespaceResponse, error) // Queries a list of Freespace items. @@ -2548,6 +2747,24 @@ func (c *queryClient) AttestationsAll(ctx context.Context, in *QueryAllAttestati return out, nil } +func (c *queryClient) Reports(ctx context.Context, in *QueryReportRequest, opts ...grpc.CallOption) (*QueryReportResponse, error) { + out := new(QueryReportResponse) + err := c.cc.Invoke(ctx, "/canine_chain.storage.Query/Reports", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) ReportsAll(ctx context.Context, in *QueryAllReportRequest, opts ...grpc.CallOption) (*QueryAllReportResponse, error) { + out := new(QueryAllReportResponse) + err := c.cc.Invoke(ctx, "/canine_chain.storage.Query/ReportsAll", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *queryClient) Freespace(ctx context.Context, in *QueryFreespaceRequest, opts ...grpc.CallOption) (*QueryFreespaceResponse, error) { out := new(QueryFreespaceResponse) err := c.cc.Invoke(ctx, "/canine_chain.storage.Query/Freespace", in, out, opts...) @@ -2703,6 +2920,10 @@ type QueryServer interface { Attestation(context.Context, *QueryAttestationRequest) (*QueryAttestationResponse, error) // Queries a list of Attestation items. AttestationsAll(context.Context, *QueryAllAttestationsRequest) (*QueryAllAttestationsResponse, error) + // Queries a Report by index. + Reports(context.Context, *QueryReportRequest) (*QueryReportResponse, error) + // Queries a list of Attestation items. + ReportsAll(context.Context, *QueryAllReportRequest) (*QueryAllReportResponse, error) // Queries a list of Freespace items. Freespace(context.Context, *QueryFreespaceRequest) (*QueryFreespaceResponse, error) // Queries a list of Freespace items. @@ -2766,6 +2987,12 @@ func (*UnimplementedQueryServer) Attestation(ctx context.Context, req *QueryAtte func (*UnimplementedQueryServer) AttestationsAll(ctx context.Context, req *QueryAllAttestationsRequest) (*QueryAllAttestationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AttestationsAll not implemented") } +func (*UnimplementedQueryServer) Reports(ctx context.Context, req *QueryReportRequest) (*QueryReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Reports not implemented") +} +func (*UnimplementedQueryServer) ReportsAll(ctx context.Context, req *QueryAllReportRequest) (*QueryAllReportResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReportsAll not implemented") +} func (*UnimplementedQueryServer) Freespace(ctx context.Context, req *QueryFreespaceRequest) (*QueryFreespaceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Freespace not implemented") } @@ -2978,6 +3205,42 @@ func _Query_AttestationsAll_Handler(srv interface{}, ctx context.Context, dec fu return interceptor(ctx, in, info, handler) } +func _Query_Reports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).Reports(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/canine_chain.storage.Query/Reports", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).Reports(ctx, req.(*QueryReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_ReportsAll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryAllReportRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).ReportsAll(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/canine_chain.storage.Query/ReportsAll", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).ReportsAll(ctx, req.(*QueryAllReportRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _Query_Freespace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryFreespaceRequest) if err := dec(in); err != nil { @@ -3288,6 +3551,14 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "AttestationsAll", Handler: _Query_AttestationsAll_Handler, }, + { + MethodName: "Reports", + Handler: _Query_Reports_Handler, + }, + { + MethodName: "ReportsAll", + Handler: _Query_ReportsAll_Handler, + }, { MethodName: "Freespace", Handler: _Query_Freespace_Handler, @@ -3997,7 +4268,7 @@ func (m *QueryAllAttestationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryFreespaceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryReportRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4007,27 +4278,27 @@ func (m *QueryFreespaceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryFreespaceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryReportRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryFreespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + if len(m.Cid) > 0 { + i -= len(m.Cid) + copy(dAtA[i:], m.Cid) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Cid))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryStoreCountRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryReportResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4037,27 +4308,30 @@ func (m *QueryStoreCountRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryStoreCountRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryReportResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStoreCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) - i-- - dAtA[i] = 0xa + { + size, err := m.Report.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryFreespaceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryAllReportRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -4067,21 +4341,165 @@ func (m *QueryFreespaceResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryFreespaceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryAllReportRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryFreespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryAllReportRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Space) > 0 { - i -= len(m.Space) - copy(dAtA[i:], m.Space) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Space))) - i-- + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryAllReportResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryAllReportResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryAllReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.Reports) > 0 { + for iNdEx := len(m.Reports) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Reports[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *QueryFreespaceRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFreespaceRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFreespaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryStoreCountRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryStoreCountRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStoreCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryFreespaceResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryFreespaceResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryFreespaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Space) > 0 { + i -= len(m.Space) + copy(dAtA[i:], m.Space) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Space))) + i-- dAtA[i] = 0xa } return len(dAtA) - i, nil @@ -5256,6 +5674,62 @@ func (m *QueryAllAttestationsResponse) Size() (n int) { return n } +func (m *QueryReportRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Cid) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryReportResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Report.Size() + n += 1 + l + sovQuery(uint64(l)) + return n +} + +func (m *QueryAllReportRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + +func (m *QueryAllReportResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Reports) > 0 { + for _, e := range m.Reports { + l = e.Size() + n += 1 + l + sovQuery(uint64(l)) + } + } + if m.Pagination != nil { + l = m.Pagination.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n +} + func (m *QueryFreespaceRequest) Size() (n int) { if m == nil { return 0 @@ -7287,6 +7761,377 @@ func (m *QueryAllAttestationsResponse) Unmarshal(dAtA []byte) error { } return nil } +func (m *QueryReportRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryReportRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Cid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryReportResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryReportResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Report", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Report.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllReportRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllReportRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllReportRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryAllReportResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryAllReportResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryAllReportResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reports", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reports = append(m.Reports, ReportForm{}) + if err := m.Reports[len(m.Reports)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &query.PageResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *QueryFreespaceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/x/storage/types/query.pb.gw.go b/x/storage/types/query.pb.gw.go index fac9340be..08fb55ecb 100644 --- a/x/storage/types/query.pb.gw.go +++ b/x/storage/types/query.pb.gw.go @@ -411,6 +411,96 @@ func local_request_Query_AttestationsAll_0(ctx context.Context, marshaler runtim } +func request_Query_Reports_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryReportRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["cid"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "cid") + } + + protoReq.Cid, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "cid", err) + } + + msg, err := client.Reports(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_Reports_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryReportRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["cid"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "cid") + } + + protoReq.Cid, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "cid", err) + } + + msg, err := server.Reports(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_ReportsAll_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_ReportsAll_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllReportRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ReportsAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ReportsAll(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_ReportsAll_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryAllReportRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_ReportsAll_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ReportsAll(ctx, &protoReq) + return msg, metadata, err + +} + func request_Query_Freespace_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryFreespaceRequest var metadata runtime.ServerMetadata @@ -1312,6 +1402,52 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) + mux.Handle("GET", pattern_Query_Reports_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_Reports_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Reports_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ReportsAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_ReportsAll_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ReportsAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Freespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -1878,6 +2014,46 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) + mux.Handle("GET", pattern_Query_Reports_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_Reports_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_Reports_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_ReportsAll_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_ReportsAll_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_ReportsAll_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + mux.Handle("GET", pattern_Query_Freespace_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -2200,6 +2376,10 @@ var ( pattern_Query_AttestationsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"jackal-dao", "canine-chain", "storage", "attestations"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Reports_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"jackal-dao", "canine-chain", "storage", "reports", "cid"}, "", runtime.AssumeColonVerbOpt(false))) + + pattern_Query_ReportsAll_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"jackal-dao", "canine-chain", "storage", "reports"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Freespace_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"jackal-dao", "canine-chain", "storage", "freespace", "address"}, "", runtime.AssumeColonVerbOpt(false))) pattern_Query_StoreCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"jackal-dao", "canine-chain", "storage", "storing", "address"}, "", runtime.AssumeColonVerbOpt(false))) @@ -2250,6 +2430,10 @@ var ( forward_Query_AttestationsAll_0 = runtime.ForwardResponseMessage + forward_Query_Reports_0 = runtime.ForwardResponseMessage + + forward_Query_ReportsAll_0 = runtime.ForwardResponseMessage + forward_Query_Freespace_0 = runtime.ForwardResponseMessage forward_Query_StoreCount_0 = runtime.ForwardResponseMessage